Reputation: 1559
I have seen many threads regarding deploying a jar file for maven projects. But I am having different requirements.
Thank you.
Upvotes: 1
Views: 1389
Reputation: 1559
I have finally find the solution for this.
As @JF Meier explained mvn clean install
does the job. But before that I had to move to the step definitions which was inside the test
packages. Actually those step definitions are not belongs to the test
package since it won't test my project.
Thanks All.
Upvotes: 1
Reputation: 262
Please try below steps :- Hope so its will be help you pack200 can drastically reduce the JAR size. heck your dependencies via:
mvn dependency:analyze
or take a look at the dep tree like this:
mvn dependency:tree
do you have unused dependencies?if yes Remove the unused dependency in pom.xml file.
Upvotes: 1
Reputation: 35805
When you build a jar with maven (like clean install
or clean deploy
), the jar:
So your requirements seem to be met automatically.
Upvotes: 1