`

maven command examples

阅读更多

mvn install :  build application

 

mvn site    : generate application site

 

mvn test    : run unit test. (Put your test in src/test/java; add a test-scoped dependency on either TestNG or JUnit)

 

mvn -v       : check maven version, java version, os info

 

mvn help:describe -Dplugin=help          :  brief description on the plugin help

 

mvn help:describe -Dplugin=help -Dfull :  full description on the plugin help

 

mvn help:describe -Dplugin=compiler -Dmojo=compile -Dfull : full description on the plugin compiler, goal compile

 

mvn archetype:create -DgroupId=org.sonatype.mavenbook.ch03 -DartifactId=simple -DpackageName=org.sonatype.mavenbook : create new simple empty project named simple

 

mvn archetype:create -DgroupId=org.sonatype.mavenbook.ch04 -DartifactId=simple-weather

-DpackageName=org.sonatype.mavenbook -Dversion=1.0

 

mvn help:effective-pom    : final POM which is composed of current project's POM and all ancestor's POMs. 

 

mvn dependency:resolve    : list out the jar files needed by the project

 

mvn dependency:tree         : list out the entire dependency tree

 

 

 

 

 

 

mvn one:convert       : convert maven 1 to maven 2 projects.

 

分享到:
评论

相关推荐

    Maven-The Complete Reference.pdf

    To verify that Maven is installed correctly, open a command prompt and run `mvn --version`. This command should display the version of Maven installed on your system. **2.5 Maven Installation Details...

    android-async-http 源码

    To run Sample application, simply clone the repository and run this command, to install it on connected device gradle :sample:installDebug Maven You can now integrate this library in your project ...

    Gradle in Action

    Practical, real-world examples Transitioning from Ant and Maven In-depth plugin development Continuous delivery with Gradle About the Author Benjamin Muschko is a member of the Gradleware engineering ...

    微博客户端APIweiboclient4j.zip

    更多的使用例子可以参考 weiboclient4j.examples.OAuth2CommandLine API参数对象化 WeiboClient里面,大部分的方法都没有Javadoc,取而代之的是大部分的参数都是特定的对象,这样做的原因是因为: 写Javadoc太...

    spring-boot-reference.pdf

    Examples 48. What to Read Next V. Spring Boot Actuator: Production-ready features 49. Enabling Production-ready Features 50. Endpoints 50.1. Enabling Endpoints 50.2. Exposing Endpoints 50.3. Securing...

    javacv-platform-1.3.3-src

    This downloads binaries for all platforms, but to get binaries for only one platform we can set the javacpp.platform system property (via the -D command line option) to something like android-arm, ...

    hadoop-2.2.0-x64.tar.gz part3

    [INFO] Apache Hadoop Maven Plugins ....................... SUCCESS [3.311s] [INFO] Apache Hadoop Auth ................................ SUCCESS [12.206s] [INFO] Apache Hadoop Auth Examples ...............

    hadoop-2.2.0-x64.tar.gz part1

    [INFO] Apache Hadoop Maven Plugins ....................... SUCCESS [3.311s] [INFO] Apache Hadoop Auth ................................ SUCCESS [12.206s] [INFO] Apache Hadoop Auth Examples ...............

    hadoop-2.2.0-x64.tar.gz part2

    [INFO] Apache Hadoop Maven Plugins ....................... SUCCESS [3.311s] [INFO] Apache Hadoop Auth ................................ SUCCESS [12.206s] [INFO] Apache Hadoop Auth Examples ...............

Global site tag (gtag.js) - Google Analytics