MAVEN备忘录

来源:互联网 发布:沪昆高铁质量 知乎 编辑:程序博客网 时间:2024/06/03 17:21
    Go to Maven installation folder C:\apache-maven-3.1.0\conf\
    Copy settings.xml to C:\Users\[UserFolder]\.m2

    Modify the proxy in settings.xml based on the info that you get from the above link.

        <proxy>
          <active>true</active>
          <protocol>http</protocol>
          <host>your proxy</host>
          <port>your port</port>
        </proxy>

    Open eclipse

    Go to: Windows > Preferences > Maven > User Settings

    Browse the settings.xml from .m2 folder

    Click Update Settings

    Click Reindex

    Apply the changes and Click OK



some command

1.mvn archetype:generate -DgroupId=cn.luxh.app -DartifactId=my-app -DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=false

2.mvn eclipse:eclipse

3.mvn help:help

4.mvn clean package

5.mvn archetype:generate -DgroupId=cn.luxh.app -DartifactId=my-web-app -DarchetypeArtifactId=maven-archetype-webapp -DinteractivMode=false


tool.jar找不到

elicpse jre 手动添加tool.jsr


■参考

http://blog.csdn.net/edward0830ly/article/details/8748986

jetty

http://www.cnblogs.com/xiazh/articles/2293015.html

http://phoenix-mvp.iteye.com/blog/1435445

springMVC × maven

http://www.cnblogs.com/fangjins/archive/2012/05/06/2485459.html


maven中央库

http://mvnrepository.com

0 0
原创粉丝点击