Hi, see if this helps: http://maven.apache.org/guides/mini/guide-m1-m2.html


[EMAIL PROTECTED] wrote:

Hi,
A colleague of mine started working with m1. But the Eclipse plugin is not working out for us since we have multiple (12!) projects with dependencies between them. The new Eclipse plugin for m2 sounds very promising. I'd like to convert the various m1 project.xml to m2 pom.xml automatically. I guess I'm not the only one with this problem. I've downloaded the Maven 2.0 source code (maven-site) and found PomV3ToV4Converter.java under maven-repository-tools. Is this what I need to automatically convert to m2 pom.xml? If yes, how do I use it? Is there a bat file/shell script that puts all the neccessary jar files into my classpath? I tried compiling the maven-repository-tools project but I get:
mvn -e install
+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO] ----------------------------------------------------------------------------
[INFO] Building Maven Repo Reaper
[INFO]    task-segment: [install]
[INFO] ----------------------------------------------------------------------------
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
Downloading: http://repo1.maven.org/maven2/plexus/plexus/1.0-alpha-1/plexus-1.0-alpha-1.p om [WARNING] Unable to get resource from repository central (http://repo1.maven.org/maven2) Downloading: http://repo1.maven.org/maven2/isorelax/isorelax/20020414/isorelax-20020414.j ar
131K downloaded
[INFO] ----------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ----------------------------------------------------------------------------
[INFO] Failed to resolve artifact.
GroupId: org.apache.maven
ArtifactId: maven-core
Version: 2.0-SNAPSHOT
Reason: Unable to download the artifact from any repository
org.apache.maven:maven-core:2.0-SNAPSHOT:jar
from the specified remote repositories:
central (http://repo1.maven.org/maven2)

[INFO] ----------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Unable to download the artifact from any repository
org.apache.maven:maven-core:2.0-SNAPSHOT:jar
from the specified remote repositories:
central (http://repo1.maven.org/maven2)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLife cycleExecutor.java:528) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle (DefaultLifecycleExecutor.java:469) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifec ycleExecutor.java:448) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFail ures(DefaultLifecycleExecutor.java:301) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(Defa ultLifecycleExecutor.java:268) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycle Executor.java:137)
      at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:316)
      at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:113)
      at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
      at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
      at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.artifact.resolver.ArtifactNotFoundException: Unable to download the artifact from any repository
org.apache.maven:maven-core:2.0-SNAPSHOT:jar
from the specified remote repositories:
central (http://repo1.maven.org/maven2)
at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultAr tifactResolver.java:136) at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultAr tifactResolver.java:63) at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTransitive ly(DefaultArtifactResolver.java:230) at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTransitive ly(DefaultArtifactResolver.java:211) at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTransitive ly(DefaultArtifactResolver.java:182) at org.apache.maven.plugin.DefaultPluginManager.resolveTransitiveDependencies(D efaultPluginManager.java:1152) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManage r.java:353) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLife cycleExecutor.java:519)
      ... 16 more
Caused by: org.apache.maven.wagon.ResourceDoesNotExistException: Unable to download the artifact from any repository at org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact(DefaultWag onManager.java:260) at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultAr tifactResolver.java:124)
      ... 23 more
[INFO] ----------------------------------------------------------------------------
[INFO] Total time: 2 minutes 1 second
[INFO] Finished at: Mon Nov 14 19:37:19 MST 2005
[INFO] Final Memory: 3M/6M
[INFO] ----------------------------------------------------------------------------
Thanks!
Benny

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to