[jira] Commented: (MANTRUN-51) Can't find plugin dependency in multiproject

2008-05-06 Thread bastian kaempfe (JIRA)

[ 
http://jira.codehaus.org/browse/MANTRUN-51?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=133654#action_133654
 ] 

bastian kaempfe commented on MANTRUN-51:


My guess is that the problem is caused ANT.
ANT simply can set properties only ONE TIME. if you try to set a named property 
severeal times, you succeed only the first time.
every next try does not overwrite the first value, thus when using the 
property, you will always get the first value.

the maven-antrun-plugins tries to set several properties, for example: 
maven.plugin.classpath.
so the first project wins. every property this antrun-plugin sets will be 
available in every other projet, running after this one.
and no other project can overwrite properties, the first project has set.

maybe the solution could be to start the ant-task in an own java-process, like 
the fork of the maven-compiler-plugin.
another way could be to define a prefix or suffix for every property that 
will be set by maven within a maven-antrun-plugin-block.
could be: prefix=srcgen - maven property : maven.plugin.classpath.srcgen 
instead of only maven.plugin.classpath
or one could use the maven-antrun-plugin-id, if one is provided.
so if my execution-id is backend-wsdl2java the maven-set properties could be 
maven.plugin.classpath.backend-wsdl2java

i hope, this helps in understanding and solving...


 Can't find plugin dependency in multiproject
 

 Key: MANTRUN-51
 URL: http://jira.codehaus.org/browse/MANTRUN-51
 Project: Maven 2.x Antrun Plugin
  Issue Type: Bug
Affects Versions: 1.0, 1.1
 Environment: maven 2.0.4, antrun 1.0  1.1, jdk 1.5.0_06, windows xp
Reporter: Fredrik Vraalsen

 I'm using antrun in my project to create an IzPack installation.  The plugin 
 configuration is below.  
 When maven is run from the top-level project, the ant taskdef fails because 
 it cannot find the IzPackTask class.  However, when I run maven from the 
 subproject itself, it works fine.  Not sure if this is related to 
 http://jira.codehaus.org/browse/MANTRUN-49.  The error message from maven is 
 at the bottom.
 {noformat}
 plugin
   groupIdorg.apache.maven.plugins/groupId
   artifactIdmaven-antrun-plugin/artifactId
   executions
   execution
   phasepackage/phase
   configuration
   tasks
   taskdef name=izpack 
 classname=com.izforge.izpack.ant.IzPackTask/
   izpack 
 input=${project.build.directory}/classes/izPack.xml 
 output=${project.build.directory}/CorasTool-${coras.version}-installer.jar 
 basedir=${project.build.directory}/
   /tasks
   /configuration
   goals
   goalrun/goal
   /goals
   /execution
   /executions
   dependencies
   dependency
   groupIdizpack/groupId
   artifactIdstandalone-compiler/artifactId
   version3.8.0/version
   /dependency
   /dependencies
 /plugin
 [INFO] [antrun:run {execution: default}]
 [INFO] Executing tasks
 [INFO] 
 
 [ERROR] BUILD ERROR
 [INFO] 
 
 [INFO] Error executing ant tasks
 Embedded error: taskdef class com.izforge.izpack.ant.IzPackTask cannot be 
 found
 [INFO] 
 
 [INFO] Trace
 org.apache.maven.lifecycle.LifecycleExecutionException: Error executing ant 
 tasks
 at 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:559)
 at 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:475)
 at 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:454)
 at 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306)
 at 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273)
 at 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140)
 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:256)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at 
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   

[jira] Commented: (MANTRUN-51) Can't find plugin dependency in multiproject

2008-03-10 Thread gotama (JIRA)

[ 
http://jira.codehaus.org/browse/MANTRUN-51?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_126760
 ] 

gotama commented on MANTRUN-51:
---

Steinar - THANK YOU for the workaround! OMG I was going nuts for 2 days trying 
to figure this out. I figured it was a bug. I was simply trying to use Ant to 
scp some files and discovered the same - that on the module itself, it works 
but when exec from a parent POM on a multi-module project, the 'scp' fails. I 
added:

dependencies
dependency
groupIdant/groupId
artifactIdant-optional/artifactId
version1.5.3-1/version
/dependency
dependency
groupIdant/groupId
artifactIdant-jsch/artifactId
version1.6.5/version
/dependency
/dependencies

to the ant plugin for the first executing module in the multi-module project 
and when the last module was exec'd w/ the 'scp' command, all worked ok.

OK, so this bug is 2 years old and still causing pain.  Whats the status on 
getting this fixed? Any interest? Thanks.




 Can't find plugin dependency in multiproject
 

 Key: MANTRUN-51
 URL: http://jira.codehaus.org/browse/MANTRUN-51
 Project: Maven 2.x Antrun Plugin
  Issue Type: Bug
Affects Versions: 1.0, 1.1
 Environment: maven 2.0.4, antrun 1.0  1.1, jdk 1.5.0_06, windows xp
Reporter: Fredrik Vraalsen

 I'm using antrun in my project to create an IzPack installation.  The plugin 
 configuration is below.  
 When maven is run from the top-level project, the ant taskdef fails because 
 it cannot find the IzPackTask class.  However, when I run maven from the 
 subproject itself, it works fine.  Not sure if this is related to 
 http://jira.codehaus.org/browse/MANTRUN-49.  The error message from maven is 
 at the bottom.
 {noformat}
 plugin
   groupIdorg.apache.maven.plugins/groupId
   artifactIdmaven-antrun-plugin/artifactId
   executions
   execution
   phasepackage/phase
   configuration
   tasks
   taskdef name=izpack 
 classname=com.izforge.izpack.ant.IzPackTask/
   izpack 
 input=${project.build.directory}/classes/izPack.xml 
 output=${project.build.directory}/CorasTool-${coras.version}-installer.jar 
 basedir=${project.build.directory}/
   /tasks
   /configuration
   goals
   goalrun/goal
   /goals
   /execution
   /executions
   dependencies
   dependency
   groupIdizpack/groupId
   artifactIdstandalone-compiler/artifactId
   version3.8.0/version
   /dependency
   /dependencies
 /plugin
 [INFO] [antrun:run {execution: default}]
 [INFO] Executing tasks
 [INFO] 
 
 [ERROR] BUILD ERROR
 [INFO] 
 
 [INFO] Error executing ant tasks
 Embedded error: taskdef class com.izforge.izpack.ant.IzPackTask cannot be 
 found
 [INFO] 
 
 [INFO] Trace
 org.apache.maven.lifecycle.LifecycleExecutionException: Error executing ant 
 tasks
 at 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:559)
 at 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:475)
 at 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:454)
 at 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306)
 at 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273)
 at 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140)
 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:256)
 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:585)
   

[jira] Commented: (MANTRUN-51) Can't find plugin dependency in multiproject

2007-12-09 Thread Steinar Bang (JIRA)

[ 
http://jira.codehaus.org/browse/MANTRUN-51?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_116302
 ] 

Steinar Bang commented on MANTRUN-51:
-

I encountered this issue when using the replaceregexp task.  To make it work I 
had to put the following inside the plugin def for maven-antrun-plugin:
 dependencies
  dependency
   !-- Pulls in a JAR used by the replaceregexp optional Ant task --
   groupIdant/groupId
   artifactIdant-nodeps/artifactId
   version1.6.5/version
  /dependency
 /dependencies
(put it between the executions end tag and the plugin end tag).

When I tried running this project as a module in a multi-module product the use 
of replaceregexp failed because it could not be found on the classpath.

The workaround I did was (as indicated in a different comment) to add the 
dependency setting to the maven-antrun-plugin config of a module that was 
built before the failing module (even though that maven-antrun-plugin config 
didn't have any tasks needing it).  Then I could build from the top pom without 
failure.

 Can't find plugin dependency in multiproject
 

 Key: MANTRUN-51
 URL: http://jira.codehaus.org/browse/MANTRUN-51
 Project: Maven 2.x Antrun Plugin
  Issue Type: Bug
Affects Versions: 1.0, 1.1
 Environment: maven 2.0.4, antrun 1.0  1.1, jdk 1.5.0_06, windows xp
Reporter: Fredrik Vraalsen

 I'm using antrun in my project to create an IzPack installation.  The plugin 
 configuration is below.  
 When maven is run from the top-level project, the ant taskdef fails because 
 it cannot find the IzPackTask class.  However, when I run maven from the 
 subproject itself, it works fine.  Not sure if this is related to 
 http://jira.codehaus.org/browse/MANTRUN-49.  The error message from maven is 
 at the bottom.
 {noformat}
 plugin
   groupIdorg.apache.maven.plugins/groupId
   artifactIdmaven-antrun-plugin/artifactId
   executions
   execution
   phasepackage/phase
   configuration
   tasks
   taskdef name=izpack 
 classname=com.izforge.izpack.ant.IzPackTask/
   izpack 
 input=${project.build.directory}/classes/izPack.xml 
 output=${project.build.directory}/CorasTool-${coras.version}-installer.jar 
 basedir=${project.build.directory}/
   /tasks
   /configuration
   goals
   goalrun/goal
   /goals
   /execution
   /executions
   dependencies
   dependency
   groupIdizpack/groupId
   artifactIdstandalone-compiler/artifactId
   version3.8.0/version
   /dependency
   /dependencies
 /plugin
 [INFO] [antrun:run {execution: default}]
 [INFO] Executing tasks
 [INFO] 
 
 [ERROR] BUILD ERROR
 [INFO] 
 
 [INFO] Error executing ant tasks
 Embedded error: taskdef class com.izforge.izpack.ant.IzPackTask cannot be 
 found
 [INFO] 
 
 [INFO] Trace
 org.apache.maven.lifecycle.LifecycleExecutionException: Error executing ant 
 tasks
 at 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:559)
 at 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:475)
 at 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:454)
 at 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306)
 at 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273)
 at 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140)
 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:256)
 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:585)
 at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
 at 

[jira] Commented: (MANTRUN-51) Can't find plugin dependency in multiproject

2007-09-06 Thread Patrick Vinograd (JIRA)

[ 
http://jira.codehaus.org/browse/MANTRUN-51?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_106673
 ] 

Patrick Vinograd commented on MANTRUN-51:
-

Just ran into this issue.  For those encountering the same problem, Filippos's 
suggestion does NOT work.  All of my executions have unique id elements and 
this behavior still occurs.

 Can't find plugin dependency in multiproject
 

 Key: MANTRUN-51
 URL: http://jira.codehaus.org/browse/MANTRUN-51
 Project: Maven 2.x Antrun Plugin
  Issue Type: Bug
Affects Versions: 1.0, 1.1
 Environment: maven 2.0.4, antrun 1.0  1.1, jdk 1.5.0_06, windows xp
Reporter: Fredrik Vraalsen

 I'm using antrun in my project to create an IzPack installation.  The plugin 
 configuration is below.  
 When maven is run from the top-level project, the ant taskdef fails because 
 it cannot find the IzPackTask class.  However, when I run maven from the 
 subproject itself, it works fine.  Not sure if this is related to 
 http://jira.codehaus.org/browse/MANTRUN-49.  The error message from maven is 
 at the bottom.
 {noformat}
 plugin
   groupIdorg.apache.maven.plugins/groupId
   artifactIdmaven-antrun-plugin/artifactId
   executions
   execution
   phasepackage/phase
   configuration
   tasks
   taskdef name=izpack 
 classname=com.izforge.izpack.ant.IzPackTask/
   izpack 
 input=${project.build.directory}/classes/izPack.xml 
 output=${project.build.directory}/CorasTool-${coras.version}-installer.jar 
 basedir=${project.build.directory}/
   /tasks
   /configuration
   goals
   goalrun/goal
   /goals
   /execution
   /executions
   dependencies
   dependency
   groupIdizpack/groupId
   artifactIdstandalone-compiler/artifactId
   version3.8.0/version
   /dependency
   /dependencies
 /plugin
 [INFO] [antrun:run {execution: default}]
 [INFO] Executing tasks
 [INFO] 
 
 [ERROR] BUILD ERROR
 [INFO] 
 
 [INFO] Error executing ant tasks
 Embedded error: taskdef class com.izforge.izpack.ant.IzPackTask cannot be 
 found
 [INFO] 
 
 [INFO] Trace
 org.apache.maven.lifecycle.LifecycleExecutionException: Error executing ant 
 tasks
 at 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:559)
 at 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:475)
 at 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:454)
 at 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306)
 at 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273)
 at 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140)
 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:256)
 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:585)
 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.MojoExecutionException: Error executing 
 ant tasks
 at 
 org.apache.maven.plugin.antrun.AbstractAntMojo.executeTasks(AbstractAntMojo.java:77)
 at 
 org.apache.maven.plugin.antrun.AntRunMojo.execute(AntRunMojo.java:72)
 at 
 org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412)
 at 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534)
 ... 16 more
 Caused by: taskdef class com.izforge.izpack.ant.IzPackTask 

[jira] Commented: (MANTRUN-51) Can't find plugin dependency in multiproject

2007-04-25 Thread Elid OR (JIRA)

[ 
http://jira.codehaus.org/browse/MANTRUN-51?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_94071
 ] 

Elid OR commented on MANTRUN-51:


There are multiple poms, one per module. And in each pom there is a antrun 
section. In each antrun section there could be multiple execution section, for 
me there is only one exection section in each antrun declaration. And I have 
set a unique Id for each execution but it doesn't now work. Only  plugin 
classpath of the first antrun section of the first pom is used in all module of 
a multi project.

 Can't find plugin dependency in multiproject
 

 Key: MANTRUN-51
 URL: http://jira.codehaus.org/browse/MANTRUN-51
 Project: Maven 2.x Antrun Plugin
  Issue Type: Bug
Affects Versions: 1.0, 1.1
 Environment: maven 2.0.4, antrun 1.0  1.1, jdk 1.5.0_06, windows xp
Reporter: Fredrik Vraalsen

 I'm using antrun in my project to create an IzPack installation.  The plugin 
 configuration is below.  
 When maven is run from the top-level project, the ant taskdef fails because 
 it cannot find the IzPackTask class.  However, when I run maven from the 
 subproject itself, it works fine.  Not sure if this is related to 
 http://jira.codehaus.org/browse/MANTRUN-49.  The error message from maven is 
 at the bottom.
 {noformat}
 plugin
   groupIdorg.apache.maven.plugins/groupId
   artifactIdmaven-antrun-plugin/artifactId
   executions
   execution
   phasepackage/phase
   configuration
   tasks
   taskdef name=izpack 
 classname=com.izforge.izpack.ant.IzPackTask/
   izpack 
 input=${project.build.directory}/classes/izPack.xml 
 output=${project.build.directory}/CorasTool-${coras.version}-installer.jar 
 basedir=${project.build.directory}/
   /tasks
   /configuration
   goals
   goalrun/goal
   /goals
   /execution
   /executions
   dependencies
   dependency
   groupIdizpack/groupId
   artifactIdstandalone-compiler/artifactId
   version3.8.0/version
   /dependency
   /dependencies
 /plugin
 [INFO] [antrun:run {execution: default}]
 [INFO] Executing tasks
 [INFO] 
 
 [ERROR] BUILD ERROR
 [INFO] 
 
 [INFO] Error executing ant tasks
 Embedded error: taskdef class com.izforge.izpack.ant.IzPackTask cannot be 
 found
 [INFO] 
 
 [INFO] Trace
 org.apache.maven.lifecycle.LifecycleExecutionException: Error executing ant 
 tasks
 at 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:559)
 at 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:475)
 at 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:454)
 at 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306)
 at 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273)
 at 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140)
 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:256)
 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:585)
 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.MojoExecutionException: Error executing 
 ant tasks
 at 
 org.apache.maven.plugin.antrun.AbstractAntMojo.executeTasks(AbstractAntMojo.java:77)
 at 
 org.apache.maven.plugin.antrun.AntRunMojo.execute(AntRunMojo.java:72)
 at 
 

[jira] Commented: (MANTRUN-51) Can't find plugin dependency in multiproject

2007-04-24 Thread Elid OR (JIRA)

[ 
http://jira.codehaus.org/browse/MANTRUN-51?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_93980
 ] 

Elid OR commented on MANTRUN-51:


Near one year later this bug isn't not fixed yet ...

A solution (not elegant) is to add your dependencies (in the dependencies of 
the antrun plugin section)  in the pom.xml of the first module launched in the 
build order.
This allow all other projects to benefit of these dependencies.

 Can't find plugin dependency in multiproject
 

 Key: MANTRUN-51
 URL: http://jira.codehaus.org/browse/MANTRUN-51
 Project: Maven 2.x Antrun Plugin
  Issue Type: Bug
Affects Versions: 1.0, 1.1
 Environment: maven 2.0.4, antrun 1.0  1.1, jdk 1.5.0_06, windows xp
Reporter: Fredrik Vraalsen

 I'm using antrun in my project to create an IzPack installation.  The plugin 
 configuration is below.  
 When maven is run from the top-level project, the ant taskdef fails because 
 it cannot find the IzPackTask class.  However, when I run maven from the 
 subproject itself, it works fine.  Not sure if this is related to 
 http://jira.codehaus.org/browse/MANTRUN-49.  The error message from maven is 
 at the bottom.
 {noformat}
 plugin
   groupIdorg.apache.maven.plugins/groupId
   artifactIdmaven-antrun-plugin/artifactId
   executions
   execution
   phasepackage/phase
   configuration
   tasks
   taskdef name=izpack 
 classname=com.izforge.izpack.ant.IzPackTask/
   izpack 
 input=${project.build.directory}/classes/izPack.xml 
 output=${project.build.directory}/CorasTool-${coras.version}-installer.jar 
 basedir=${project.build.directory}/
   /tasks
   /configuration
   goals
   goalrun/goal
   /goals
   /execution
   /executions
   dependencies
   dependency
   groupIdizpack/groupId
   artifactIdstandalone-compiler/artifactId
   version3.8.0/version
   /dependency
   /dependencies
 /plugin
 [INFO] [antrun:run {execution: default}]
 [INFO] Executing tasks
 [INFO] 
 
 [ERROR] BUILD ERROR
 [INFO] 
 
 [INFO] Error executing ant tasks
 Embedded error: taskdef class com.izforge.izpack.ant.IzPackTask cannot be 
 found
 [INFO] 
 
 [INFO] Trace
 org.apache.maven.lifecycle.LifecycleExecutionException: Error executing ant 
 tasks
 at 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:559)
 at 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:475)
 at 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:454)
 at 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306)
 at 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273)
 at 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140)
 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:256)
 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:585)
 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.MojoExecutionException: Error executing 
 ant tasks
 at 
 org.apache.maven.plugin.antrun.AbstractAntMojo.executeTasks(AbstractAntMojo.java:77)
 at 
 org.apache.maven.plugin.antrun.AntRunMojo.execute(AntRunMojo.java:72)
 at 
 org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412)
 at 
 

[jira] Commented: (MANTRUN-51) Can't find plugin dependency in multiproject

2007-04-24 Thread Filippos Slavik (JIRA)

[ 
http://jira.codehaus.org/browse/MANTRUN-51?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_93981
 ] 

Filippos Slavik commented on MANTRUN-51:


Give an unique id for each execution section of the antrun plugin  in your 
pom's and let us know if this fixes the issue.

 Can't find plugin dependency in multiproject
 

 Key: MANTRUN-51
 URL: http://jira.codehaus.org/browse/MANTRUN-51
 Project: Maven 2.x Antrun Plugin
  Issue Type: Bug
Affects Versions: 1.0, 1.1
 Environment: maven 2.0.4, antrun 1.0  1.1, jdk 1.5.0_06, windows xp
Reporter: Fredrik Vraalsen

 I'm using antrun in my project to create an IzPack installation.  The plugin 
 configuration is below.  
 When maven is run from the top-level project, the ant taskdef fails because 
 it cannot find the IzPackTask class.  However, when I run maven from the 
 subproject itself, it works fine.  Not sure if this is related to 
 http://jira.codehaus.org/browse/MANTRUN-49.  The error message from maven is 
 at the bottom.
 {noformat}
 plugin
   groupIdorg.apache.maven.plugins/groupId
   artifactIdmaven-antrun-plugin/artifactId
   executions
   execution
   phasepackage/phase
   configuration
   tasks
   taskdef name=izpack 
 classname=com.izforge.izpack.ant.IzPackTask/
   izpack 
 input=${project.build.directory}/classes/izPack.xml 
 output=${project.build.directory}/CorasTool-${coras.version}-installer.jar 
 basedir=${project.build.directory}/
   /tasks
   /configuration
   goals
   goalrun/goal
   /goals
   /execution
   /executions
   dependencies
   dependency
   groupIdizpack/groupId
   artifactIdstandalone-compiler/artifactId
   version3.8.0/version
   /dependency
   /dependencies
 /plugin
 [INFO] [antrun:run {execution: default}]
 [INFO] Executing tasks
 [INFO] 
 
 [ERROR] BUILD ERROR
 [INFO] 
 
 [INFO] Error executing ant tasks
 Embedded error: taskdef class com.izforge.izpack.ant.IzPackTask cannot be 
 found
 [INFO] 
 
 [INFO] Trace
 org.apache.maven.lifecycle.LifecycleExecutionException: Error executing ant 
 tasks
 at 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:559)
 at 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:475)
 at 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:454)
 at 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306)
 at 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273)
 at 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140)
 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:256)
 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:585)
 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.MojoExecutionException: Error executing 
 ant tasks
 at 
 org.apache.maven.plugin.antrun.AbstractAntMojo.executeTasks(AbstractAntMojo.java:77)
 at 
 org.apache.maven.plugin.antrun.AntRunMojo.execute(AntRunMojo.java:72)
 at 
 org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412)
 at 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534)
 ... 16 more
 Caused by: taskdef class com.izforge.izpack.ant.IzPackTask cannot be found
 at 
 

[jira] Commented: (MANTRUN-51) Can't find plugin dependency in multiproject

2006-12-28 Thread Filippos Slavik (JIRA)
[ http://jira.codehaus.org/browse/MANTRUN-51?page=comments#action_83491 ] 

Filippos Slavik commented on MANTRUN-51:


Well, I have the same problem and I finally have an explanation. The problem 
occurs in a multi-module projects where the antrun plugin is being used in more 
than one module. 

In my case, let's say that my multi-module project has modules A and B. Both 
modules are using the antrun plugin, but only module B specifies an additional  
classpath  for the antrun plugin. If I invoke the antrun plugin within module B 
everything works great but if I do that  from the parent, then my build fails. 
This is because module A ran it's build cycle before B and for some reason the 
maven.plugin.classpath was not altered for the antrun plugin when running 
module B build  (perhaps because it was already defined from module A).

Thanks


 Can't find plugin dependency in multiproject
 

 Key: MANTRUN-51
 URL: http://jira.codehaus.org/browse/MANTRUN-51
 Project: Maven 2.x Antrun Plugin
  Issue Type: Bug
Affects Versions: 1.0, 1.1
 Environment: maven 2.0.4, antrun 1.0  1.1, jdk 1.5.0_06, windows xp
Reporter: Fredrik Vraalsen

 I'm using antrun in my project to create an IzPack installation.  The plugin 
 configuration is below.  
 When maven is run from the top-level project, the ant taskdef fails because 
 it cannot find the IzPackTask class.  However, when I run maven from the 
 subproject itself, it works fine.  Not sure if this is related to 
 http://jira.codehaus.org/browse/MANTRUN-49.  The error message from maven is 
 at the bottom.
 {noformat}
 plugin
   groupIdorg.apache.maven.plugins/groupId
   artifactIdmaven-antrun-plugin/artifactId
   executions
   execution
   phasepackage/phase
   configuration
   tasks
   taskdef name=izpack 
 classname=com.izforge.izpack.ant.IzPackTask/
   izpack 
 input=${project.build.directory}/classes/izPack.xml 
 output=${project.build.directory}/CorasTool-${coras.version}-installer.jar 
 basedir=${project.build.directory}/
   /tasks
   /configuration
   goals
   goalrun/goal
   /goals
   /execution
   /executions
   dependencies
   dependency
   groupIdizpack/groupId
   artifactIdstandalone-compiler/artifactId
   version3.8.0/version
   /dependency
   /dependencies
 /plugin
 [INFO] [antrun:run {execution: default}]
 [INFO] Executing tasks
 [INFO] 
 
 [ERROR] BUILD ERROR
 [INFO] 
 
 [INFO] Error executing ant tasks
 Embedded error: taskdef class com.izforge.izpack.ant.IzPackTask cannot be 
 found
 [INFO] 
 
 [INFO] Trace
 org.apache.maven.lifecycle.LifecycleExecutionException: Error executing ant 
 tasks
 at 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:559)
 at 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:475)
 at 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:454)
 at 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306)
 at 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273)
 at 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140)
 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:256)
 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:585)
 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.MojoExecutionException: Error 

[jira] Commented: (MANTRUN-51) Can't find plugin dependency in multiproject

2006-09-22 Thread Alexey Kharlamov (JIRA)
[ http://jira.codehaus.org/browse/MANTRUN-51?page=comments#action_75458 ] 

Alexey Kharlamov commented on MANTRUN-51:
-

I have the same problem. Any progress since 06/May?

 Can't find plugin dependency in multiproject
 

 Key: MANTRUN-51
 URL: http://jira.codehaus.org/browse/MANTRUN-51
 Project: Maven 2.x Antrun Plugin
  Issue Type: Bug
Affects Versions: 1.0, 1.1
 Environment: maven 2.0.4, antrun 1.0  1.1, jdk 1.5.0_06, windows xp
Reporter: Fredrik Vraalsen

 I'm using antrun in my project to create an IzPack installation.  The plugin 
 configuration is below.  
 When maven is run from the top-level project, the ant taskdef fails because 
 it cannot find the IzPackTask class.  However, when I run maven from the 
 subproject itself, it works fine.  Not sure if this is related to 
 http://jira.codehaus.org/browse/MANTRUN-49.  The error message from maven is 
 at the bottom.
 {noformat}
 plugin
   groupIdorg.apache.maven.plugins/groupId
   artifactIdmaven-antrun-plugin/artifactId
   executions
   execution
   phasepackage/phase
   configuration
   tasks
   taskdef name=izpack 
 classname=com.izforge.izpack.ant.IzPackTask/
   izpack 
 input=${project.build.directory}/classes/izPack.xml 
 output=${project.build.directory}/CorasTool-${coras.version}-installer.jar 
 basedir=${project.build.directory}/
   /tasks
   /configuration
   goals
   goalrun/goal
   /goals
   /execution
   /executions
   dependencies
   dependency
   groupIdizpack/groupId
   artifactIdstandalone-compiler/artifactId
   version3.8.0/version
   /dependency
   /dependencies
 /plugin
 [INFO] [antrun:run {execution: default}]
 [INFO] Executing tasks
 [INFO] 
 
 [ERROR] BUILD ERROR
 [INFO] 
 
 [INFO] Error executing ant tasks
 Embedded error: taskdef class com.izforge.izpack.ant.IzPackTask cannot be 
 found
 [INFO] 
 
 [INFO] Trace
 org.apache.maven.lifecycle.LifecycleExecutionException: Error executing ant 
 tasks
 at 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:559)
 at 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:475)
 at 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:454)
 at 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306)
 at 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273)
 at 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140)
 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:256)
 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:585)
 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.MojoExecutionException: Error executing 
 ant tasks
 at 
 org.apache.maven.plugin.antrun.AbstractAntMojo.executeTasks(AbstractAntMojo.java:77)
 at 
 org.apache.maven.plugin.antrun.AntRunMojo.execute(AntRunMojo.java:72)
 at 
 org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412)
 at 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534)
 ... 16 more
 Caused by: taskdef class com.izforge.izpack.ant.IzPackTask cannot be found
 at 
 org.apache.tools.ant.taskdefs.Definer.addDefinition(Definer.java:483)
 at org.apache.tools.ant.taskdefs.Definer.execute(Definer.java:183)