Maven


1. 'Convention Over Configuration', I like it.
 pom.xml  - lifecycle

 > mvn install
 > mvn site
2-- view a plugin information. Exp., the following command line is what the plugin "help" describes.

> mvn help:describe -Dplugin=help -Dfull
3-- Create a simple project and a directory "demo1" including a pom.xml and other directory(src).
> mvn archetype:create -DgroupId=my.demo01 -DartifactId=demo1 -DpackageName=org.demo01.pge

4 > mvn install
 equity > mvn resource:resource compiler:compile resources:testResources compiler:testCompile surefire:test jar:jar

5 Repository is at c:\Documents and Settings\USERNAME\.m2\repository or c:\Users\USERNAME\.m2\respository

h t t p: / / maven. apache. org / mail-lists . h t m l

How to get source codes:
mvn dependency:sources 
In eclipse, project-> run as -> maven build... ,type "dependency:sources" in goal

6 mvn install:install-file -Dfile="parameters" -DgroupId=par -DartifactId=p -Dversion= -Dpackaging=jar
E.g. mvn install:install-file -Dfile="D:\Users\Administrator\test\TestPublic.jar" -DgroupId=myjar -DartifactId=OrgPublic -Dversion=1.0 -Dpackaging=jar
Or copy directly TestPublic.jar into /lib folder.

7. localRepository  Default: ${user.home}/.m2/repository in D:\opt\apache-maven-3.5.0\conf\settings.xml
TEMP = %USERPROFILE%\AppData\Local\Temp in window10
TMP = %USERPROFILE%\AppData\Local\Temp
%SystemRoot%\TEMP

评论

此博客中的热门博文

XML, XSL, HTML

Input in element.eleme.io

Data URI是由RFC 2397 ACE