Last active
October 7, 2015 13:57
-
-
Save jlandure/3175119 to your computer and use it in GitHub Desktop.
maven command line
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mvn -Dmaven.test.skip | |
mvn dependency:resolve | |
mvn dependency:tree : arbre | |
mvn install:install-file -Dfile=as3corelib.swc -DgroupId=com.adobe -DartifactId=as3corelib -Dversion=0.93 -Dpackaging=swc -DgeneratePom=true -DcreateChecksum=true | |
#compiler src/test/java car compile tout court ne fait que src/main/java | |
mvn test-compile | |
mvn versions:set -DnewVersion=1.2.3-SNAPSHOT | |
#mettre à jour les sousmodules | |
mvn versions:update-child-modules | |
mvn versions:display-dependency-updates | |
#creation de branche avec changement de version | |
mvn release:branch -DbranchName=Iteration2 -DupdateBranchVersions=true -DupdateWorkingCopyVersions=false -DreleaseVersion=2.1-SNAPSHOT -DautoVersionSubmodules=true | |
#creation de release avec changement de version (ignore les snapshots car bloque sinon) | |
mvn -B -U release:prepare -DdevelopmentVersion=2.4-SNAPSHOT -DignoreSnapshots=true | |
mvn -B -U release:perform | |
#hibernate tool | |
mvn clean:clean process-test-resources hibernate3:hbm2ddl | |
#sonar tool | |
mvn org.codehaus.sonar:sonar-maven-plugin:1.5.1:sonar -Dsonar.projectDate=2008-10-24 | |
#faire que son test | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-surefire-plugin</artifactId> | |
<configuration> | |
<argLine>-Dfile.encoding=${project.build.sourceEncoding} | |
-javaagent:"${settings.localRepository}\org\aspectj\aspectjweaver\${aspectj.version}\aspectjweaver-${aspectj.version}.jar" | |
</argLine> | |
<excludes> | |
<exclude>**/*$*</exclude> | |
<exclude>**/Abstract*</exclude> | |
</excludes> | |
<includes> | |
<include>**/com/proy/core/dao/**/*Test.java</include> | |
</includes> | |
<forkMode>always</forkMode> | |
</configuration> | |
</plugin> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment