As you can see from the trace, it is not attempting to use your internal repository. You need to add a <pluginRepository> element.
-Brett On 10/18/05, andrew <[EMAIL PROTECTED]> wrote: > maven-2.0-RC > > Hi, > > I've created a m2 plugin and deployed it as a SNAPSHOT to an internal > (distinct from my local) repository. > > When building projects that use this plugin, the plugin resolves and > works as expected when it is already in my local repository. > > If I clean out my local repository (the plugin is now deployed only to > my internal repository) projects that use this plugin can resolve the > correct SNAPSHOT POM but cannot resolve the plugin jar itself [1]. > > I'm unsure of the correct settings for and/or interactions between the > - <snapshotRepository> > - <snapshotPolicy>, and > - <snapshot> > configuration directives. My current effort [2] appears to allow the > deployment of a plugin SNAPSHOT to the internal repository but not > building from it. > > Any ideas most appreciated. > > Thanks, > ...andrew > > Listing 1: > > $ m2 -X -Dmaven.test.skip clean:clean deploy > + Error stacktraces are turned on. > [DEBUG] Building Maven user-level plugin registry from: > '/home/amm/.m2/plugin-registry.xml' > [DEBUG] Building Maven global-level plugin registry from: > '/opt/maven/conf/plugin-registry.xml' > [INFO] Scanning for projects... > [INFO] Searching repository for plugin with prefix: 'clean'. > [DEBUG] maven-clean-plugin: resolved to version 2.0 from repository central > [DEBUG] Retrieving parent-POM from the repository for project: > null:maven-clean-plugin:maven-plugin:2.0 > [INFO] > ---------------------------------------------------------------------------- > [INFO] Building Maven Quick Start Archetype > [INFO] task-segment: [clean:clean, deploy] > [INFO] > ---------------------------------------------------------------------------- > [DEBUG] org.apache.maven.plugins:maven-clean-plugin:maven-plugin:2.0 > (selected for runtime) > [DEBUG] Configuring mojo > 'org.apache.maven.plugins:maven-clean-plugin:2.0:clean' --> > [DEBUG] (f) directory = /secure/home/amm/prj/bt3/distra/test/target > [DEBUG] (f) outputDirectory = > /secure/home/amm/prj/bt3/distra/test/target/classes > [DEBUG] (f) testOutputDirectory = > /secure/home/amm/prj/bt3/distra/test/target/test-classes > [DEBUG] -- end configuration -- > [INFO] [clean:clean] > [DEBUG] maven-resources-plugin: resolved to version 2.0 from repository > central > [DEBUG] Retrieving parent-POM from the repository for project: > null:maven-resources-plugin:maven-plugin:2.0 > [DEBUG] maven-compiler-plugin: resolved to version 2.0 from repository > central > [DEBUG] Retrieving parent-POM from the repository for project: > null:maven-compiler-plugin:maven-plugin:2.0 > [DEBUG] maven-surefire-plugin: resolved to version 2.0-beta-1 from > repository central > [DEBUG] Retrieving parent-POM from the repository for project: > null:maven-surefire-plugin:maven-plugin:2.0-beta-1 > [DEBUG] maven-jar-plugin: resolved to version 2.0 from repository central > [DEBUG] Retrieving parent-POM from the repository for project: > null:maven-jar-plugin:maven-plugin:2.0 > [DEBUG] maven-install-plugin: resolved to version 2.0 from repository > central > [DEBUG] Retrieving parent-POM from the repository for project: > null:maven-install-plugin:maven-plugin:2.0 > [DEBUG] maven-deploy-plugin: resolved to version 2.0 from repository central > [DEBUG] Retrieving parent-POM from the repository for project: > null:maven-deploy-plugin:maven-plugin:2.0 > [DEBUG] Skipping disabled repository central > [INFO] snapshot > com.distra.maven-plugins:distra-compile-source-root-plugin:1.0-SNAPSHOT: > checking for updates from distra > [DEBUG] Skipping disabled repository central > [DEBUG] distra-compile-source-root-plugin: resolved to version > 1.0-20051018.065951-1 from repository distra > [DEBUG] Retrieving parent-POM from the repository for project: > com.distra.maven-plugins:distra-compile-source-root-plugin:maven-plugin:1.0-20051018.065951-1 > [DEBUG] Skipping disabled repository central > [INFO] snapshot com.distra:maven-plugins:1.0-SNAPSHOT: checking for > updates from distra > [DEBUG] Skipping disabled repository central > [DEBUG] maven-plugins: resolved to version 1.0-20051018.065951-1 from > repository distra > [DEBUG] Retrieving parent-POM from the repository for project: > com.distra:maven-plugins:pom:1.0-SNAPSHOT > [DEBUG] Skipping disabled repository central > [INFO] snapshot com.distra:bt3:1.0-SNAPSHOT: checking for updates from > distra > [DEBUG] Skipping disabled repository central > [DEBUG] bt3: resolved to version 1.0-20051018.065951-5 from repository > distra > [DEBUG] distra-compile-source-root-plugin: using locally installed snapshot > [DEBUG] Skipping disabled repository central > [INFO] > ---------------------------------------------------------------------------- > [ERROR] BUILD FAILURE > [INFO] > ---------------------------------------------------------------------------- > [INFO] A required plugin was not found: Plugin could not be found - > check that the goal name is correct: Unable to download the artifact > from any repository > > com.distra.maven-plugins:distra-compile-source-root-plugin:1.0-SNAPSHOT:maven-plugin > > from the specified remote repositories: > central (http://www.ibiblio.org/maven2) > > > com.distra.maven-plugins:distra-compile-source-root-plugin:1.0-SNAPSHOT:maven-plugin > > from the specified remote repositories: > central (http://www.ibiblio.org/maven2) > > [INFO] > ---------------------------------------------------------------------------- > [DEBUG] Trace > org.apache.maven.BuildFailureException: A required plugin was not found: > Plugin could not be found - check that the goal name is correct: Unable > to download the artifact from any repository > com.distra.maven-plugins:distra-compile-source-root-plugin:1.0-SNAPSHOT:maven-plugin > > from the specified remote repositories: > central (http://www.ibiblio.org/maven2) > > > com.distra.maven-plugins:distra-compile-source-root-plugin:1.0-SNAPSHOT:maven-plugin > > from the specified remote repositories: > central (http://www.ibiblio.org/maven2) > > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:457) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:301) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:268) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.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.plugin.PluginNotFoundException: Plugin could > not be found - check that the goal name is correct: Unable to download > the artifact from any repository > > com.distra.maven-plugins:distra-compile-source-root-plugin:1.0-SNAPSHOT:maven-plugin > > from the specified remote repositories: > central (http://www.ibiblio.org/maven2) > > > com.distra.maven-plugins:distra-compile-source-root-plugin:1.0-SNAPSHOT:maven-plugin > > from the specified remote repositories: > central (http://www.ibiblio.org/maven2) > > at > org.apache.maven.plugin.DefaultPluginManager.verifyVersionedPlugin(DefaultPluginManager.java:227) > at > org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPluginManager.java:163) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1095) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.bindPluginToLifecycle(DefaultLifecycleExecutor.java:1060) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.constructLifecycleMappings(DefaultLifecycleExecutor.java:869) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:447) > ... 14 more > Caused by: org.apache.maven.wagon.ResourceDoesNotExistException: Unable > to download the artifact from any repository > at > org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact(DefaultWagonManager.java:260) > at > org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:124) > at > org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:63) > at > org.apache.maven.plugin.DefaultPluginManager.verifyVersionedPlugin(DefaultPluginManager.java:190) > ... 19 more > [INFO] > ---------------------------------------------------------------------------- > [INFO] Total time: 3 seconds > [INFO] Finished at: Tue Oct 18 17:09:23 EST 2005 > [INFO] Final Memory: 2M/5M > [INFO] > ---------------------------------------------------------------------------- > > Listing 2 pom.xml: > > ... > <distributionManagement> > <repository> > <id>distra</id> > <url>file:///secure/development/bt3/m2/distra</url> > </repository> > <snapshotRepository> > <id>distra</id> > <url>file:///secure/development/bt3/m2/distra</url> > </snapshotRepository> > </distributionManagement> > ... > > -- > > --------------------------------------------------------------------- > 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]
