我正在尝试将 maven1 project.xml 转换为 maven 2 pom.xml。
maven one:convert 插件将 project.xml 转换为 pom.xml。
试过步骤
- 安装的maven 2
- cd project-dir (里面有我的 project.xml)
- mvn -e 一:转换
我 maven-one-plugin-1.2.jar
在$MAVEN_HOME/lib
Settings.xml
具有以下本地存储库设置
<localRepository>path_to_mavenhome/lib</localRepository>
<offline>true</offline>
<pluginGroups>
<pluginGroup>org.apache.maven.plugins:maven-one-plugin</pluginGroup>
</pluginGroups>
<profile>
<id>central</id>
<repositories>
<repository>
<id>local</id>
<url>file://pathtomavenhome\lib</url>
<layout>default</layout>
</repository>
</repositories>
</profile>
收到此错误消息
[INFO] Searching repository for plugin with prefix: 'one'.
[INFO] org.apache.maven.plugins:maven-one-plugin: checking for updates from central
[WARNING] repository metadata for: 'org.apache.maven.plugins:maven-one-plugin' could not be retrieved from repository: central due to an error: Error transferring file: Connection timed out: connect
[INFO] Repository 'central' will be blackliste
d
它不连接到本地存储库。目录中没有Settings.xml
文件$M2_HOME/.m2