maven 使用

1. download maven from http://maven.apache.org/

2. unzip, setup MAVEN_HOME

3. change the configuration in %MAVEN_HOME%/conf/settings.xml

  (1) add local repository, change <localRepository>C:\software\apache-maven-3.1.1\m2_repository</localRepository> to your select folder, this folder used for save JARs

 (2) add proxy if you need

4. download Eclipse with Maven, eg: Kepler 

5. setup the Eclipse to the Maven

6. import project as Maven project 

7. right click pom.xml -> run as -> you can see the option you can do 

 

note:

(1) add tomcat plugin Sysdeo to make development convenient

(2) issue Plugin execution not covered by lifecycle configuration: org.codehaus.mojo:aspectj-maven-plugin:1.0:test-compile (execution:default, phase: process-test-sources)Plugin execution not covered by lifecycle configuration: org.codehaus.mojo:aspectj-maven-plugin:1.0:compile (execution:default, phase: process-sources)

solution:

In my case of a similar problem, instead of using Andrew's suggestion for the fix, it worked simply after I introduced <pluginManagement> tag to the pom.xml in question. Looks like that error is due to a missing <pluginManagement> tag. So, in order to avoid the exceptions in Eclipse, looks like one needs to simply enclose all the plugin tags inside a <pluginManagement> tag, like so:

<build>
    <pluginManagement>
        <plugins>
            <plugin> ... </plugin>
            <plugin> ... </plugin>
                  ....
        </plugins>
    </pluginManagement>
</build>

Once this structure is in place, the error goes away.

 

转载于:https://www.cnblogs.com/zeng200103/p/3630883.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值