Notice: Undefined index: searchOption in /home/vivekvermani/public_html/UnixCommand/searchUnixCommandsScripts.php on line 140
Unix Commands/Scripts for '#Maven'
Share

Search Unix Commands/Scripts


  Help us in improving the repository. Add new commands/scripts through 'Submit Commands/Scripts ' link.





Unix Commands/Scripts for '#Maven' - 13 Commands/Scripts found

 Sample 1. Maven Clean install without executing tests

mvn clean install -DskipTests

   Like      Feedback     maven  maven clean install  maven install  maven install without test  maven build


 Sample 2. Do a maven clean install without tests and only display Error lines

mvn clean install -DskipTests | grep "ERROR"

   Like      Feedback     maven  maven install  maven build  maven clean install


 Sample 3. Check the Dependency Tree of a maven project

mvn dependency:tree

   Like      Feedback     maven  maven dependency  maven dependency tree


 Sample 4. Get the Maven Dependency Tree of a project in a separate file

mvn dependency:tree >> file.txt

   Like      Feedback     maven  maven dependency  maven dependency tree


Subscribe to Java News and Posts. Get latest updates and posts on Java from Buggybread.com
Enter your email address:
Delivered by FeedBurner
 Sample 5. Get Maven Dependency using command line get

mvn dependency:get -Dartifact=org.springframework:spring-context:5.0.0.BUILD-SNAPSHOT

i.e

mvn dependency:get -Dartifact=<group Id>:<artifact Id>:<version>

   Like      Feedback     Get Maven Dependency using command line get


 Sample 6. Run Jetty server through command line using maven

mvn jetty:run

   Like      Feedback     run jetty


 Sample 7. To see which POM contains missing transitive dependency

run mvn -X

   Like      Feedback     maven  check missing transitive dependency


 Sample 8. To know the version of Maven

mvn --version

   Like      Feedback     maven  maven version


 Sample 9. Default Location of Maven Repository

~/m2./repository

   Like      Feedback     maven


Subscribe to Java News and Posts. Get latest updates and posts on Java from Buggybread.com
Enter your email address:
Delivered by FeedBurner
 Sample 10. Command to create new project based on archtype

mvn archetype:generate

   Like      Feedback     maven


 Sample 11. Build Maven project offline

mvn o package

   Like      Feedback     maven


 Sample 12. Command to package maven project

mvn --package

   Like      Feedback     maven


 Sample 13. Execute class with main method using maven

Execute it from the folder with pom file

mvn exec:java -Dexec.mainClass="com.*.*"

   Like      Feedback     



Subscribe to Java News and Posts. Get latest updates and posts on Java from Buggybread.com
Enter your email address:
Delivered by FeedBurner



comments powered by Disqus