Hi,
We have a lot of ANT script that are used to build our product and I am currently trying to setup maven 2 to do this task for us. We would ideally like to keep these scripts and I noticed that Maven 1 would run ANT scripts. Is it possible to do this in M2? Also has anyone got the SCM plugin working in M2? Whenever I try running SCM commands I get an exception; m2 -e scm:checkout + Error stacktraces are turned on. [INFO] ------------------------------------------------------------------------ ---- [INFO] Building Maven Quick Start Archetype [INFO] ------------------------------------------------------------------------ ---- [INFO] maven-scm-plugin: checking for updates from central-plugins [INFO] Retrieving release information for maven-scm-plugin FATAL ERROR: Error executing Maven for a project Error stacktrace: org.apache.maven.reactor.ReactorException: Error executing project within the reactor at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:190) at org.apache.maven.cli.MavenCli.main(MavenCli.java:269) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav a:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor Impl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:303) at org.codehaus.classworlds.Launcher.launch(Launcher.java:243) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:416) at org.codehaus.classworlds.Launcher.main(Launcher.java:363) Caused by: org.apache.maven.lifecycle.LifecycleExecutionException: Error resolving plugin version at org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(De faultLifecycleExecutor.java:537) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoa l(DefaultLifecycleExecutor.java:149) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultL ifecycleExecutor.java:133) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifec ycleExecutor.java:103) at org.apache.maven.DefaultMaven.processProject(DefaultMaven.java:261) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:180) ... 9 more Caused by: org.apache.maven.plugin.version.PluginVersionResolutionException: Error resolving version for 'org.apache.maven.plugins:maven-scm-plugin': Cannot resolve RELEASE version of this plugin. at org.apache.maven.plugin.version.DefaultPluginVersionManager.resolveRelea seVersion(DefaultPluginVersionManager.java:570) at org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePlugi nVersion(DefaultPluginVersionManager.java:130) at org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPluginM anager.java:192) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(De faultLifecycleExecutor.java:528) ... 14 more Caused by: org.apache.maven.artifact.resolver.ArtifactResolutionException: Unable to find release for artifact org.apache.maven.plugins:maven-scm-plugin:maven-plugin:RELEASE org.apache.maven.plugins:maven-scm-plugin:RELEASE:maven-plugin from the specified remote repositories: http://repo1.maven.org/maven2/plugins at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(Defau ltArtifactResolver.java:88) at org.apache.maven.plugin.version.DefaultPluginVersionManager.resolveRelea seVersion(DefaultPluginVersionManager.java:566) ... 17 more Caused by: org.apache.maven.artifact.metadata.ArtifactMetadataRetrievalException: Unable to find release for artifact org.apache.maven.plugins:maven-scm-plugin:maven-plugin:RELEASE at org.apache.maven.artifact.transform.ReleaseArtifactTransformation.retrie veFromRemoteRepository(ReleaseArtifactTransformation.java:86) at org.apache.maven.artifact.transform.AbstractVersionTransformation.resolv eVersion(AbstractVersionTransformation.java:104) at org.apache.maven.artifact.transform.ReleaseArtifactTransformation.transf ormForResolve(ReleaseArtifactTransformation.java:51) at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(Defau ltArtifactResolver.java:84) ... 18 more Caused by: org.apache.maven.wagon.ResourceDoesNotExistException: Unable to locate resource in repository at org.apache.maven.wagon.providers.http.LightweightHttpWagon.fillInputData (LightweightHttpWagon.java:81) at org.apache.maven.wagon.StreamWagon.get(StreamWagon.java:70) at org.apache.maven.artifact.manager.DefaultWagonManager.getRemoteFile(Defa ultWagonManager.java:310) at org.apache.maven.artifact.manager.DefaultWagonManager.getArtifactMetadat a(DefaultWagonManager.java:242) at org.apache.maven.artifact.metadata.AbstractVersionArtifactMetadata.retri eveFromRemoteRepository(AbstractVersionArtifactMetadata.java:94) at org.apache.maven.artifact.transform.ReleaseArtifactTransformation.retrie veFromRemoteRepository(ReleaseArtifactTransformation.java:80) ... 21 more Caused by: java.io.FileNotFoundException: http://www.ibiblio.org/maven2/plugins/org/apache/maven/plugins/maven-scm -plugin/maven-scm-plugin-RELEASE.version.txt at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnec tion.java:798) at org.apache.maven.wagon.providers.http.LightweightHttpWagon.fillInputData (LightweightHttpWagon.java:71) ... 26 more Thanks Chris Haskins Senior Analyst Developer Logistics & Information Systems Customer Solutions & Support BAE SYSTEMS Email: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> Tel: + 44 (0) 1454 284900 Fax: + 44 (0) 1454 284950 This email and any attachments are confidential to the intended recipient and may also be privileged. If you are not the intended recipient please delete it from your system and notify the sender. You should not copy it or use it for any purpose nor disclose or distribute its contents to any other person.