maven使用自己资料
maven.apache.org/guides/getting-started/index.html#What_is_Maven
新建JAVA普通项目:
mvn archetype:create \
-DarchetypeGroupId=org.apache.maven.archetypes \
-DgroupId=com.mycompany.app \
-DartifactId=my-app
新建WTP web项目:
mvn archetype:create \
-DarchetypeGroupId=org.apache.maven.archetypes \
-DarchetypeArtifactId=maven-archetype-webapp \
-DgroupId=com.mycompany.app \
-DartifactId=my-webapp
下面是对pom.xml文件里面的标签进行讲解:
以下maven自已的命令格式:
mvn compile
mvn test
mvn test-compile ( simply want to compile your test sources )
mvn clean test-compile
mvn install
mvn clean install
mvn clean
mvn install(可将你的项目打包成jar文件放到你的.m2/repo下面了)
mvn package
mvn site
mvn resources:resources
mvn idea:idea
mvn eclipse:eclipse
mvn eclipse:clean
mvn process-resources
mvn process-resources "-Dcommand.line.prop=hello again"
# application.properties
java.version=${java.version}
command.line.prop=${command.line.prop}
# application.properties
application.name=${pom.name}
application.version=${pom.version}
- [...]
- <distributionManagement>
- <repository>
- <id>proficio-repositoryid>
- <name>Proficio Repositoryname>
- <url>file://${basedir}/target/deployurl>
- repository>
- distributionManagement>
- [...]
指定编译后目录:
- <build>
- <directory>${basedir}/targetdirectory>
- build>
For this example, we will configure the Java compiler to allow JDK 5.0 sources. This is as simple as adding this to your POM:
... |
dependencies
dependency这行依赖
http://www.devzuz.com/web/guest/downloads
发表评论
- 浏览: 4259 次
- 性别:

- 来自: 北京

- 详细资料
搜索本博客
我的相册
共 6 张
最近加入圈子
最新评论
-
glassfish服务器推送技术
很好,我们公司也在考虑换glassfish,就是为了推..
-- by sway -
glassfish服务器推送技术
我想问你com.sun.enterprise.web.connector.gri ...
-- by TITLE02 -
好不容易打个电话
汗。。。。
-- by javaoldboy -
请教:spring+hbernate sea ...
直接按照hibernate annottion文档标识UUID生存即可,不需要改 ...
-- by liuzongan -
请教:spring+hbernate sea ...
麻烦能具体说一下解决过程吗?还有,如果使用UUID生成主键应该怎样标识主键的生成 ...
-- by roy042






评论排行榜