I am trying to convert maven1 project.xml to maven 2 pom.xml.
maven one:convert plugin converts project.xml to pom.xml.
Tried the steps
- Installed maven 2
- cd project-dir (which has my project.xml)
- mvn -e one:convert
I had maven-one-plugin-1.2.jar
in $MAVEN_HOME/lib
Settings.xml
had the following local repository settings
<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>
Got this error message
[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
It does not connect to local repository.
No Settings.xml
file in $M2_HOME/.m2
dir