I started to migrate some of our ASG projects from Maven 1 to Maven 2. The new Maven version finally provides everything I expected from the first version, especially dependency trees. The IBiblio repository is still a mess. Therefore you might need to deploy some needed libraries manually to your own (company ?) Maven2 repository:
In ASG, my repository login is not the same as my local user name. Therefore, I first needed to patch MAVEN2_HOME/conf/preferences.xml in order to add the username and password for the remote access (see here). The name/password pair is referenced by the server id, which you can provide in the deployment command:
C:\maven-2.0.4\bin>
mvn deploy:deploy-file
-Durl=sftp://xxx.asg-platform.org/xxx/maven2/repository
-DrepositoryId=ASG
-Dfile=y:\.maven\repository\j2ee\jars\j2ee-1.4.jar
-DgroupId=j2ee
-DartifactId=j2ee
-Dversion=1.4
-Dpackaging=jar
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'deploy'.
[INFO] -------------------------------------------------------------------------
[INFO] Building Maven Default Project
[INFO] task-segment: [deploy:deploy-file] (aggregator-style)
[INFO] -------------------------------------------------------------------------
---
[INFO] [deploy:deploy-file]
Uploading: sftp://maven.asg-platform.org/opt/maven/maven2/repository/j2ee/j2ee/1
.4/j2ee-1.4.jar
[INFO] Retrieving previous metadata from ASG
[INFO] Uploading repository metadata for: 'artifact j2ee:j2ee'
[INFO] Retrieving previous metadata from ASG
[INFO] Uploading project information for j2ee 1.4
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 7 seconds
[INFO] Finished at: Fri Sep 22 12:03:37 CEST 2006
[INFO] Final Memory: 3M/5M
[INFO] ------------------------------------------------------------------------
Please note that Maven2 generates the necessary POM information for you.