zoukankan      html  css  js  c++  java
  • 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:softwareapache-maven-3.1.1m2_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.

  • 相关阅读:
    mysql对库,表,数据类型的操作以及完整性约束
    mysql数据库初步了解
    响应式及Bootstrap
    事件流丶事件对象
    JQuery初识(三 )
    JQuery初识(二)
    JQuery初识
    sencha touch tpl 实现按钮功能
    sencha touch 分享到微博扩展
    sencha touch 隐藏滚动条样式的几种方式
  • 原文地址:https://www.cnblogs.com/zeng200103/p/3630883.html
Copyright © 2011-2022 走看看