maven学习过程中问题的解决方案

1. Error getting POM for 'org.apache.maven.plugins:maven-archetype-plugin'

    换成3.0版本后解决。在2.0上怎么也解决不了。

2. Plugin org.apache.maven.plugins:maven-archetype-plugin:2.0-alpha-5 or one of its dependencies could not be resolved:
Failure to find org.codehaus.plexus:plexus-interactivity-api:jar:1.0-alpha-5 in http://localhost:8081/nexus/content/groups/public was cached in the local repository,
resolution will not be reattempted until the update interval of Nexus has elapsed or updates are forced

    出现这个问题的具体原因不知道。但是每次出现这个问题,我到对应的本地的.m2目录中就会发现以下文件:

    plexus-interactivity-api-1.0-alpha-5.jar.lastUpdated

    可见上次update的时候该文件没有下载完成。我的做法是将该目录的所有文件均删除掉。在运行一次要执行的动作,就会开始下载,并成功应用。

3. 安装3.0的时候自作聪明的设置了一个M3_HOME。这个时候会报错。因为M3_HOME中的bat启动脚本使用的还是M2_HOME作为maven的标示。

4. 在version标签中如果有英文的话,会在deploy的时候出错。原因不明。

 

 

你可能感兴趣的:(apache,maven,脚本)