My Common Script

================= MAVEN =====================

set M2_HOME=C:\apache-maven-2.0.10

set PATH=%path%;C:\apache-maven-2.0.10\bin

Mvn -version
mvn archetype:create -DgroupId=com.mycompany.app -DartifactId=my-app
mvn compile
mvn test
mvn test-compile
mvn package

mvn install
mvn install -Dmaven.test.skip=true
mvn install assembly:assembly

java -cp target/my-app-1.0-SNAPSHOT.jar com.mycompany.app.App

mvn site
mvn clean
mvn idea:idea
mvn eclipse:eclipse

mvn help:describe -Dplugin=help
mvn help:describe -Dplugin=help -Dfull
mvn help:effective-pom
mvn help:describe -Dplugin=exec -Dfull

mvn dependency:resolve
mvn test
mvn test -Dmaven.test.failure.ignore=true

mvn jetty:run

mvn archetype:create -DarchetypeGroupId=org.apache.maven.archetypes -DarchetypeArtifactId=maven-archetype-webapp -DgroupId=com.mycompany.app -DartifactId=my-webapp

mvn archetype:create -DgroupId=org.sonatype.mavenbook.ch05 -DartifactId=simple-webapp -DpackageName=org.sonatype.mavenbook -DarchetypeArtifactId=maven-archetype-webapp


mvn archetype:create -DgroupId=org.sonatype.mavenbook.ch03 -DartifactId=simple -DpackageName=org.sonatype.mavenbook
mvn archetype:create -DgroupId=org.sonatype.mavenbook.ch04 -DartifactId=simple-weather -DpackageName=org.sonatype.mavenbook -Dversion=1.0

mvn exec:java -Dexec.mainClass=org.sonatype.mavenbook.weather.Main

java -cp target/simple-command-jar-with-dependencies.jar org.sonatype.mavenbook.weather.Main 60202
java -cp target/simple-command-jar-with-dependencies.jar org.sonatype.mavenbook.weather.Main 60202 history


================= MULE =========================

set MULE_HOME=C:\mule-2.1.2

set PATH=%PATH%;C:\mule-2.1.2\bin

set PATH=%PATH%;%MULE_HOME%\bin

set CLASSPATH=%CLASSPATH%;C:\mule-2.1.2\lib\mule;C:\mule-2.1.2\lib\boot;C:\mule-2.1.2\lib\endorsed;C:\mule-2.1.2\lib\opt;C:\mule-2.1.2\lib\user

================== JDK ========================

set JAVA_HOME=j:\apps_pub\jdk15910

set CLASSPATH=%JAVA_HOME%\jre\lib\rt.jar;.

set PATH=%JAVA_HOME%\bin

你可能感兴趣的:(java,eclipse,maven,C++,C#)