Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.3
-
Fix Version/s: 1.3
-
Labels:None
-
Environment:linux ,1.0 maven rc2
Description
download of plugins does not work any more
example:
maven -e -X -Dmaven.repo.remote=http://maven-plugins.sourceforge.net/maven,http://www.ibiblio.org/maven -DartifactId=maven-sdocbook-plugin -DgroupId=maven-plugins -Dversion=1.3 plugin:download
fails but the file exists
possible reason (classloader?):
Could not load class: org.apache.maven.util.HttpUtils. Reason: java.lang.reflect.InvocationTargetException
BUILD FAILED
Unable to find plug-in
at org.apache.tools.ant.taskdefs.Exit.execute(Exit.java:104)
at org.apache.tools.ant.Task.perform(Task.java:341)
at org.apache.commons.jelly.tags.ant.AntTag.doTag(AntTag.java:232)
at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279)
at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135)
at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:233)
at org.apache.commons.jelly.tags.core.IfTag.doTag(IfTag.java:88)
at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279)
at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135)
at org.apache.maven.jelly.tags.werkz.MavenGoalTag.runBodyTag(MavenGoalTag.java:117)
at org.apache.maven.jelly.tags.werkz.MavenGoalTag$MavenGoalAction.performAction(MavenGoalTag.java:143)
at com.werken.werkz.Goal.fire(Goal.java:639)
at com.werken.werkz.Goal.attain(Goal.java:575)
at com.werken.werkz.Goal.attainPrecursors(Goal.java:488)
at com.werken.werkz.Goal.attain(Goal.java:573)
at com.werken.werkz.WerkzProject.attainGoal(WerkzProject.java:193)
at org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:565)
at org.apache.maven.MavenSession.attainGoals(MavenSession.java:304)
at org.apache.maven.cli.App.doMain(App.java:490)
at org.apache.maven.cli.App.main(App.java:1141)
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 com.werken.forehead.Forehead.run(Forehead.java:551)
at com.werken.forehead.Forehead.main(Forehead.java:581)
File...... file:/home/keesj/.maven/plugins/maven-plugin-plugin-1.3-SNAPSHOT/plugin.jelly
Element... ant:fail
Line...... 230
Column.... 52
Unable to find plug-in
com.werken.werkz.UnattainableGoalException: Unable to obtain goal [plugin:download-artifact] – file:/home/keesj/
.maven/plugins/maven-plugin-plugin-1.3-SNAPSHOT/plugin.jelly:230:52: <ant:fail> Unable to find plug-in
at com.werken.werkz.Goal.fire(Goal.java:646)
at com.werken.werkz.Goal.attain(Goal.java:575)
at com.werken.werkz.Goal.attainPrecursors(Goal.java:488)
at com.werken.werkz.Goal.attain(Goal.java:573)
at com.werken.werkz.WerkzProject.attainGoal(WerkzProject.java:193)
at org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:565)
at org.apache.maven.MavenSession.attainGoals(MavenSession.java:304)
at org.apache.maven.cli.App.doMain(App.java:490)
at org.apache.maven.cli.App.main(App.java:1141)
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 com.werken.forehead.Forehead.run(Forehead.java:551)
at com.werken.forehead.Forehead.main(Forehead.java:581)
org.apache.commons.jelly.JellyTagException: file:/home/keesj/.maven/plugins/maven-plug
Issue Links
- is depended upon by
-
MAVEN-1166
plugin issues to fix by RC2
-
after some more research. I think it has to do with the destination directory. If the destination does not exist the download fails