Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


How do you build fat jar using maven?



How do you build fat jar using maven?..

Answer / Ram Prakash

"To build a fat JAR using Maven, you can use the "maven-shade-plugin". In your pom.xml, add the plugin configuration and set up the shade goal:
```
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.2.4</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<!-- configure the shade plugin here -->
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
```
n

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Apache Maven Interview Questions

What is pom in maven?

1 Answers  


What is the command to build your maven site?

1 Answers  


What are the tasks which are performed by maven?

1 Answers  


How to force the intellij idea to reread/update all dependencies specified in the pom file?

1 Answers  


How profiles are specified in maven?

1 Answers  


What types of maven repository?

1 Answers  


What is the meaning of the message “you cannot have two plugin executions with the same or missing elements”?

1 Answers  


Explain how you can produce execution debug output or error messages?

1 Answers  


What is the difference between jenkins and maven?

1 Answers  


What is meant by a goal in maven?

1 Answers  


What does it mean when you say maven uses convention over configuration?

1 Answers  


How to run the clean plugin automatically during the build?

1 Answers  


Categories