Here is a quick list of commands i use all the time... there are a grep from my history
Basic Build
- mvn clean
- mvn clean install
- mvn clean install -Dmaven.test.skip (install without running tests)
Testing
- mvn clean test -Dtest=MyTest (runs a single test) you can use this for testing packages also
- mvn clean surefire-report:report ( run unit test and builds a surefire reports in target site dir. )
Testing Code coverage
- mvn clean cobertura:check ( run unit test and make sure we clear the check )
- mvn clean cobertura:cobertura
Building
- mvn -Dusername=gdawoud release:prepare (build step 1)
- mvn release:perform (build step 2)
Maven 2 Commands that i use the most
Subscribe to:
Post Comments (Atom)
Popular Posts
- Missing indirectly referenced artifact javax.transaction:jta:jar:1.0.1B:compile
- Grails: Log4j Configuration Tricks/Issues
- Maven 2 - WSDL TO Java using Jaxb
- Java: Know your Java Collection API
- Installing Tomcat 6 on Ubuntu 9.10 - Full guide
- Maven: The Definitive Guide - FREE PDF Download
- Gradle + Groovy + Spring + Nexus = NO Maven
- Java: #1 programming language in use today.
- Web Services Developers: Check out this chrome REST Browser Plugin
- Using Log4J category to create specialized log files



0 Comments:
Post a Comment