I typically download the code, modify the pom to include my own internal remote repository in the distributionManagement section, and install/deploy as needed. Then I will typically check this modified code & pom into my own svn repository in case I need to modify again. When you have the code already, this seems easier than trying the install:install etc. In this case, because the parent is a snapshot, you should go to the mojo-sandbox folder and run install to install the parent. (or if you have checked out the whole mojo or mojo-sandbox folder, it will find the parent at ../pom.xml.)
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 18, 2006 4:29 PM To: Maven Users List Cc: Maven Users List Subject: RE: M-2.0.2 - Error in downloading build-helper-maven-plugin No it was missed while coping it from the command line... can u give any simple steps/sample how to manually download and use plugins Appreciate your help in this Thanks, Raghurajan G "Brian E. Fox" <[EMAIL PROTECTED]> 01/18/2006 03:15 PM Please respond to "Maven Users List" To: "Maven Users List" <[email protected]> cc: Subject: RE: M-2.0.2 - Error in downloading build-helper-maven-plugin -DgroupId="org.code aus.mojo" Missing the h in codehaus -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 18, 2006 4:06 PM To: Maven Users List Cc: Maven Users List Subject: RE: M-2.0.2 - Error in downloading build-helper-maven-plugin Brain, what i do i need to do after downloading this, i tried to do 3rd party jar install as described in http://maven.apache.org/guides/mini/guide-installing-3rd-party-jars.html C:\Raghu\downloads>mvn install:install -Dfile="build-helper-maven-plugin-1.0-20060106.071921-1.jar" -DgroupId="org.code aus.mojo" -DartifactId="build-helper-maven-plugin" -Dversion="1.0-SNAPSHOT" -Dpackaging="jar" [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'install'. [INFO] org.codehaus.mojo: checking for updates from central [WARNING] *** CHECKSUM FAILED - Checksum failed on download: local = '3aa1e9bc702196182205da3177f19764ef6f5daf'; remote = 'cdd8afa9299218eedeffc6d9da031e5a349d3516' - RETRYING [WARNING] *** CHECKSUM FAILED - Checksum failed on download: local = '3aa1e9bc702196182205da3177f19764ef6f5daf'; remote = 'cdd8afa9299218eedeffc6d9da031e5a349d3516' - IGNORING [INFO] ------------------------------------------------------------------------ ---- [INFO] Building Maven Default Project [INFO] task-segment: [install:install] [INFO] ------------------------------------------------------------------------ ---- [INFO] ------------------------------------------------------------------------ ---- [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ ---- [INFO] Cannot execute mojo: install. It requires a project with an existing pom.xml, but the build is not using one. [INFO] ------------------------------------------------------------------------ ---- [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ ---- [INFO] Total time: 3 seconds [INFO] Finished at: Wed Jan 18 14:58:12 CST 2006 [INFO] Final Memory: 1M/2M [INFO] ------------------------------------------------------------------------ ---- C:\Raghu\downloads>mvn install:install -Dfile="build-helper-maven-plugin-1.0-20060106.071921-1.pom" -DgroupId="org.code aus.mojo" -DartifactId="build-helper-maven-plugin" -Dversion="1.0-SNAPSHOT" -Dpackaging="maven-plugin" [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'install'. [INFO] ------------------------------------------------------------------------ ---- [INFO] Building Maven Default Project [INFO] task-segment: [install:install] [INFO] ------------------------------------------------------------------------ ---- [INFO] ------------------------------------------------------------------------ ---- [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ ---- [INFO] Cannot execute mojo: install. It requires a project with an existing pom.xml, but the build is not using one. [INFO] ------------------------------------------------------------------------ ---- [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ ---- [INFO] Total time: < 1 second [INFO] Finished at: Wed Jan 18 15:01:16 CST 2006 [INFO] Final Memory: 1M/2M [INFO] ------------------------------------------------------------------------ ---- Thanks, Raghurajan G "Brian E. Fox" <[EMAIL PROTECTED]> 01/18/2006 01:40 PM Please respond to "Maven Users List" To: "Maven Users List" <[email protected]> cc: Subject: RE: M-2.0.2 - Error in downloading build-helper-maven-plugin Curious. It found the pom but not the jar. But if you go there manually, the jar is able to be downloaded: http://snapshots.maven.codehaus.org/maven2/org/codehaus/mojo/build-helpe r-maven-plugin/1.0-SNAPSHOT/ -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 18, 2006 12:58 PM To: Maven Users List Cc: Maven Users List Subject: RE: M-2.0.2 - Error in downloading build-helper-maven-plugin Hi Brain Thanks for your reply, i added the version as ;;;;;;; <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>build-helper-maven-plugin</artifactId> <version>1.0-SNAPSHOT</version> ;;;;;;;;;;;;;;;;;; i tried it after adding version, but it still throws error like [INFO] ------------------------------------------------------------------------ ---- [INFO] snapshot org.codehaus.mojo:build-helper-maven-plugin:1.0-SNAPSHOT: checking for updates from My-Repo [INFO] snapshot org.codehaus.mojo:build-helper-maven-plugin:1.0-SNAPSHOT: checking for updates from M2-Snapshot Downloading: http://snapshots.maven.codehaus.org/maven2//org/codehaus/mojo/build-help er-maven-plugin/1.0-SNAPSHOT/build- helper-maven-plugin-1.0-20060116.040255-4.pom 1K downloaded [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 downl oad the artifact from any repository org.codehaus.mojo:build-helper-maven-plugin:maven-plugin:1.0-SNAPSHOT from the specified remote repositories: central (http://repo1.maven.org/maven2) org.codehaus.mojo:build-helper-maven-plugin:maven-plugin:1.0-SNAPSHOT from the specified remote repositories: central (http://repo1.maven.org/maven2) [INFO] ------------------------------------------------------------------------ ---- [INFO] 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 org.codehaus.mojo:build-helper-maven-plugin:maven-plugin:1.0-SNAPSHOT from the specified remote repositories: central (http://repo1.maven.org/maven2) org.codehaus.mojo:build-helper-maven-plugin:maven-plugin:1.0-SNAPSHOT from the specified remote repositories: central (http://repo1.maven.org/maven2) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultL ifecycleExecutor.java:460) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandle Failures(DefaultLifecycleExecutor.jav a:303) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments( DefaultLifecycleExecutor.java:270) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifec ycleExecutor.java:139) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115) at org.apache.maven.cli.MavenCli.main(MavenCli.java:249) 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: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 corr ect: Unable to download the artifact from any repository org.codehaus.mojo:build-helper-maven-plugin:maven-plugin:1.0-SNAPSHOT from the specified remote repositories: central (http://repo1.maven.org/maven2) org.codehaus.mojo:build-helper-maven-plugin:maven-plugin:1.0-SNAPSHOT from the specified remote repositories: central (http://repo1.maven.org/maven2) at org.apache.maven.plugin.DefaultPluginManager.verifyVersionedPlugin(Defau ltPluginManager.java:229) at org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPluginM anager.java:165) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(Default LifecycleExecutor.java:1218) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.bindPluginToLifecycl e(DefaultLifecycleExecutor.java:1182) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.constructLifecycleMa ppings(DefaultLifecycleExecutor.java: 950) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultL ifecycleExecutor.java:450) ... 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(Defaul tWagonManager.java:260) at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(Defau ltArtifactResolver.java:124) at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(Defau ltArtifactResolver.java:63) at org.apache.maven.plugin.DefaultPluginManager.verifyVersionedPlugin(Defau ltPluginManager.java:192) ... 19 more [INFO] ------------------------------------------------------------------------ ---- [INFO] Total time: 12 seconds [INFO] Finished at: Wed Jan 18 11:48:54 CST 2006 [INFO] Final Memory: 1M/4M [INFO] ------------------------------------------------------------------------ ---- Is there something else i'm doing wrong here??? Thanks, Raghurajan G "Brian E. Fox" <[EMAIL PROTECTED]> 01/18/2006 11:15 AM Please respond to "Maven Users List" To: "Maven Users List" <[email protected]> cc: Subject: RE: M-2.0.2 - Error in downloading build-helper-maven-plugin Set the <version> tag. I think the latest is 1.0-SNAPSHOT -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 18, 2006 12:10 PM To: Maven Users List Subject: M-2.0.2 - Error in downloading build-helper-maven-plugin Hi All, How do i download "build-helper-maven-plugin" from http://snapshots.maven.codehaus.org/maven2/ I follwed instruction from http://mojo.codehaus.org/index.html 1. This is what i added into my pom.xml <repositories> <repository> <id>My-repo</id> <name>My Repository</name> <url>http://localhost/M2-Repository</url> </repository> <repository> <id>M2-Snapshot</id> <url>http://snapshots.maven.codehaus.org/maven2/</url> <snapshots> <enabled>true</enabled> </snapshots> <releases> <enabled>false</enabled> </releases> </repository> </repositories> 2. and i tried to use this plugin in my build section as <plugins> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>build-helper-maven-plugin</artifactId> <executions> <execution> <id>add-source</id> <phase>generate-sources</phase> <goals> <goal>add-source</goal> </goals> <configuration> <sources> <source>${basedir}/../client</source> </sources> <compilerVersion>1.4</compilerVersion> </configuration> </execution> </executions> </plugin> </plugins> but i'm getting the following error [INFO] ------------------------------------------------------------------------ ---- [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ ---- [INFO] The plugin 'org.codehaus.mojo:build-helper-maven-plugin' does not exist or no valid version could be found [INFO] ------------------------------------------------------------------------ ---- [INFO] Trace org.apache.maven.lifecycle.LifecycleExecutionException: The plugin 'org.codehaus.mojo:build-helper-maven-plugin' does no t exist or no valid version could be found at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(Default LifecycleExecutor.java:1247) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.bindPluginToLifecycl e(DefaultLifecycleExecutor.java:1182) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.constructLifecycleMa ppings(DefaultLifecycleExecutor.java: 950) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultL ifecycleExecutor.java:450) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandle Failures(DefaultLifecycleExecutor.jav a:303) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments( DefaultLifecycleExecutor.java:270) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifec ycleExecutor.java:139) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115) at org.apache.maven.cli.MavenCli.main(MavenCli.java:249) 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: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.version.PluginVersionNotFoundException: The plugin 'org.codehaus.mojo:build-helper-ma ven-plugin' does not exist or no valid version could be found at org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePlugi nVersion(DefaultPluginVersionManager. java:225) at org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePlugi nVersion(DefaultPluginVersionManager. java:87) Any one please help!! Thanks, Raghurajan G --------------------------------------------------------------------- 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] --------------------------------------------------------------------- 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]
