[jira] Created: (MNGECLIPSE-507) antrun broken with m2eclipse 0.9.0

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

[jira] Created: (MNGECLIPSE-507) antrun broken with m2eclipse 0.9.0

JIRA jira@codehaus.org
antrun broken with m2eclipse 0.9.0
----------------------------------

                 Key: MNGECLIPSE-507
                 URL: http://jira.codehaus.org/browse/MNGECLIPSE-507
             Project: Maven Integration for Eclipse
          Issue Type: Bug
    Affects Versions: 0.9.0
            Reporter: Jit
         Attachments: MNGECLIPSE-parent.zip, MNGECLIPSE-test.zip

Since upgrading to the 0.9.0 plugin the antrun task configured in the attached sample project fails to run.

To recreate the issue follow these steps:

1. Add the MNGECLIPSE-parent and MNGECLIPSE-test projects to Eclipse.
2. Enable the Maven plugin for both projects.
3. Install the MNGECLIPSE-parent project via 'mvn install'.
4. From the Maven context menu select 'Update Source Folders' on the MNGECLIPSE-test project.
5. This produces the following error:

----------------
[org.apache.maven:maven-project:jar:2.0.1:runtime, org.apache.maven:maven-plugin-api:jar:2.0.1:runtime, org.apache.maven:maven-profile:jar:2.0.1:runtime, junit:junit:jar:3.8.1:runtime, org.apache.maven:maven-artifact-manager:jar:2.0.1:runtime, org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8:runtime, ant:ant:jar:1.6.5:runtime, org.apache.maven:maven-artifact:jar:2.0.1:runtime, org.codehaus.plexus:plexus-utils:jar:1.1:runtime, org.apache.maven:maven-model:jar:2.0.1:runtime, ant:ant-launcher:jar:1.6.5:runtime, org.apache.maven.wagon:wagon-provider-api:jar:1.0-alpha-5:runtime, org.apache.maven:maven-repository-metadata:jar:2.0.1:runtime]

for plugin: /plugins/org.apache.maven.plugins:maven-antrun-plugin:1.1@48/thread:Worker-5
28/03/08 12:22:41 GMT: [DEBUG] Looking up mojo org.apache.maven.plugins:maven-antrun-plugin:1.1:run in realm /plugins/org.apache.maven.plugins:maven-antrun-plugin:1.1@48/thread:Worker-5 - descRealmId=/plugins/org.apache.maven.plugins:maven-antrun-plugin:1.1@48/thread:Worker-5
28/03/08 12:22:41 GMT: [DEBUG] Looked up - org.apache.maven.plugin.antrun.AntRunMojo@1291e95 - ClassRealm[/plugins/org.apache.maven.plugins:maven-antrun-plugin:1.1@48/thread:Worker-5, parent: ClassRealm[plexus.core, parent: null]]
28/03/08 12:22:41 GMT: [DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-antrun-plugin:1.1:run' with override configurator -->
28/03/08 12:22:41 GMT: [DEBUG]   (f) artifacts = [org.apache.maven:maven-project:jar:2.0.1:runtime, org.apache.maven:maven-plugin-api:jar:2.0.1:runtime, org.apache.maven:maven-profile:jar:2.0.1:runtime, junit:junit:jar:3.8.1:runtime, org.apache.maven:maven-artifact-manager:jar:2.0.1:runtime, org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8:runtime, ant:ant:jar:1.6.5:runtime, org.apache.maven:maven-artifact:jar:2.0.1:runtime, org.codehaus.plexus:plexus-utils:jar:1.1:runtime, org.apache.maven:maven-model:jar:2.0.1:runtime, ant:ant-launcher:jar:1.6.5:runtime, org.apache.maven.wagon:wagon-provider-api:jar:1.0-alpha-5:runtime, org.apache.maven:maven-repository-metadata:jar:2.0.1:runtime]
28/03/08 12:22:41 GMT: [DEBUG]   (f) project = MavenProject: org.maven.ide.eclipse.projects:MNGECLIPSE-test:0.0.1-SNAPSHOT @ C:\CPDS_CVS\MNGECLIPSE-test\pom.xml
28/03/08 12:22:41 GMT: [DEBUG]   (f) tasks =
28/03/08 12:22:41 GMT: [DEBUG] -- end configuration --
28/03/08 12:22:41 GMT: antrun:run
28/03/08 12:22:41 GMT: [DEBUG] Setting context classloader for plugin to: /plugins/org.apache.maven.plugins:maven-antrun-plugin:1.1@48/thread:Worker-5 (instance is: ClassRealm[/plugins/org.apache.maven.plugins:maven-antrun-plugin:1.1@48/thread:Worker-5, parent: ClassRealm[plexus.core, parent: null]])
28/03/08 12:22:42 GMT: [INFO] Executing tasks
28/03/08 12:22:42 GMT: [DEBUG] getProperty(ns=null, name=ant.reuse.loader, user=false)
28/03/08 12:22:42 GMT: [DEBUG] getProperty(ns=null, name=compile.classpath, user=false)
28/03/08 12:22:42 GMT: [DEBUG] getProperty(ns=null, name=ant.reuse.loader, user=false)
28/03/08 12:22:42 GMT: [DEBUG] getProperty(ns=null, name=build.sysclasspath, user=false)
28/03/08 12:22:42 GMT: [DEBUG] getProperty(ns=null, name=dir.gen.src, user=false)
28/03/08 12:22:42 GMT: [DEBUG] getProperty(ns=null, name=dir.gen.src.dest, user=false)
28/03/08 12:22:42 GMT: [DEBUG] getProperty(ns=null, name=database.type, user=false)
28/03/08 12:22:42 GMT: [DEBUG] getProperty(ns=null, name=dir.gen.src, user=false)
28/03/08 12:22:42 GMT: [FATAL ERROR] org.apache.maven.plugin.antrun.AntRunMojo#execute() caused a linkage error (java.lang.NoClassDefFoundError) and may be out-of-date. Check the realms:
28/03/08 12:22:42 GMT: [FATAL ERROR] Plugin realm = /plugins/org.apache.maven.plugins:maven-antrun-plugin:1.1@48/thread:Worker-5
urls[0] = file:/c:/.m2/org/apache/maven/plugins/maven-antrun-plugin/1.1/maven-antrun-plugin-1.1.jar
urls[1] = file:/c:/.m2/junit/junit/3.8.1/junit-3.8.1.jar
urls[2] = file:/c:/.m2/ant/ant/1.6.5/ant-1.6.5.jar
urls[3] = file:/c:/.m2/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar
urls[4] = file:/c:/.m2/ant/ant-launcher/1.6.5/ant-launcher-1.6.5.jar
28/03/08 12:22:42 GMT: [FATAL ERROR] Container realm = plexus.core

28/03/08 12:22:42 GMT: ERROR mojo-execute : antrun:run : org/apache/log/format/Formatter
28/03/08 12:22:42 GMT: Build error for /MNGECLIPSE-test/pom.xml; java.lang.NoClassDefFoundError: org/apache/log/format/Formatter
----------------

Using plugin version 0.0.12 everything works correctly (no errors), everything works correctly from the command line.


--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (MNGECLIPSE-507) antrun broken with m2eclipse 0.9.0

JIRA jira@codehaus.org

    [ http://jira.codehaus.org/browse/MNGECLIPSE-507?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=131038#action_131038 ]

John Casey commented on MNGECLIPSE-507:
---------------------------------------

the MNGECLIPSE-test project is incorrect.

To use custom ant tasks in the antrun plugin, you'll need to add the custom task artifact (MNGECLIPSE-parent in this case) to the plugin entry itself, like this:

{noformat}
    <build>
        <plugins>
            <plugin>
                <artifactId>maven-antrun-plugin</artifactId>

                <dependencies>
                  <dependency>
                    <groupId>org.maven.ide.eclipse.projects</groupId>
                    <artifactId>MNGECLIPSE-parent</artifactId>
                    <version>0.0.1-SNAPSHOT</version>
                  </dependency>
                </dependencies>

        [...]
{noformat}


> antrun broken with m2eclipse 0.9.0
> ----------------------------------
>
>                 Key: MNGECLIPSE-507
>                 URL: http://jira.codehaus.org/browse/MNGECLIPSE-507
>             Project: Maven Integration for Eclipse
>          Issue Type: Bug
>    Affects Versions: 0.9.0
>            Reporter: Jit
>         Attachments: MNGECLIPSE-parent.zip, MNGECLIPSE-test.zip
>
>
> Since upgrading to the 0.9.0 plugin the antrun task configured in the attached sample project fails to run.
> To recreate the issue follow these steps:
> 1. Add the MNGECLIPSE-parent and MNGECLIPSE-test projects to Eclipse.
> 2. Enable the Maven plugin for both projects.
> 3. Install the MNGECLIPSE-parent project via 'mvn install'.
> 4. From the Maven context menu select 'Update Source Folders' on the MNGECLIPSE-test project.
> 5. This produces the following error:
> ----------------
> [org.apache.maven:maven-project:jar:2.0.1:runtime, org.apache.maven:maven-plugin-api:jar:2.0.1:runtime, org.apache.maven:maven-profile:jar:2.0.1:runtime, junit:junit:jar:3.8.1:runtime, org.apache.maven:maven-artifact-manager:jar:2.0.1:runtime, org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8:runtime, ant:ant:jar:1.6.5:runtime, org.apache.maven:maven-artifact:jar:2.0.1:runtime, org.codehaus.plexus:plexus-utils:jar:1.1:runtime, org.apache.maven:maven-model:jar:2.0.1:runtime, ant:ant-launcher:jar:1.6.5:runtime, org.apache.maven.wagon:wagon-provider-api:jar:1.0-alpha-5:runtime, org.apache.maven:maven-repository-metadata:jar:2.0.1:runtime]
> for plugin: /plugins/org.apache.maven.plugins:maven-antrun-plugin:1.1@48/thread:Worker-5
> 28/03/08 12:22:41 GMT: [DEBUG] Looking up mojo org.apache.maven.plugins:maven-antrun-plugin:1.1:run in realm /plugins/org.apache.maven.plugins:maven-antrun-plugin:1.1@48/thread:Worker-5 - descRealmId=/plugins/org.apache.maven.plugins:maven-antrun-plugin:1.1@48/thread:Worker-5
> 28/03/08 12:22:41 GMT: [DEBUG] Looked up - org.apache.maven.plugin.antrun.AntRunMojo@1291e95 - ClassRealm[/plugins/org.apache.maven.plugins:maven-antrun-plugin:1.1@48/thread:Worker-5, parent: ClassRealm[plexus.core, parent: null]]
> 28/03/08 12:22:41 GMT: [DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-antrun-plugin:1.1:run' with override configurator -->
> 28/03/08 12:22:41 GMT: [DEBUG]   (f) artifacts = [org.apache.maven:maven-project:jar:2.0.1:runtime, org.apache.maven:maven-plugin-api:jar:2.0.1:runtime, org.apache.maven:maven-profile:jar:2.0.1:runtime, junit:junit:jar:3.8.1:runtime, org.apache.maven:maven-artifact-manager:jar:2.0.1:runtime, org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8:runtime, ant:ant:jar:1.6.5:runtime, org.apache.maven:maven-artifact:jar:2.0.1:runtime, org.codehaus.plexus:plexus-utils:jar:1.1:runtime, org.apache.maven:maven-model:jar:2.0.1:runtime, ant:ant-launcher:jar:1.6.5:runtime, org.apache.maven.wagon:wagon-provider-api:jar:1.0-alpha-5:runtime, org.apache.maven:maven-repository-metadata:jar:2.0.1:runtime]
> 28/03/08 12:22:41 GMT: [DEBUG]   (f) project = MavenProject: org.maven.ide.eclipse.projects:MNGECLIPSE-test:0.0.1-SNAPSHOT @ C:\CPDS_CVS\MNGECLIPSE-test\pom.xml
> 28/03/08 12:22:41 GMT: [DEBUG]   (f) tasks =
> 28/03/08 12:22:41 GMT: [DEBUG] -- end configuration --
> 28/03/08 12:22:41 GMT: antrun:run
> 28/03/08 12:22:41 GMT: [DEBUG] Setting context classloader for plugin to: /plugins/org.apache.maven.plugins:maven-antrun-plugin:1.1@48/thread:Worker-5 (instance is: ClassRealm[/plugins/org.apache.maven.plugins:maven-antrun-plugin:1.1@48/thread:Worker-5, parent: ClassRealm[plexus.core, parent: null]])
> 28/03/08 12:22:42 GMT: [INFO] Executing tasks
> 28/03/08 12:22:42 GMT: [DEBUG] getProperty(ns=null, name=ant.reuse.loader, user=false)
> 28/03/08 12:22:42 GMT: [DEBUG] getProperty(ns=null, name=compile.classpath, user=false)
> 28/03/08 12:22:42 GMT: [DEBUG] getProperty(ns=null, name=ant.reuse.loader, user=false)
> 28/03/08 12:22:42 GMT: [DEBUG] getProperty(ns=null, name=build.sysclasspath, user=false)
> 28/03/08 12:22:42 GMT: [DEBUG] getProperty(ns=null, name=dir.gen.src, user=false)
> 28/03/08 12:22:42 GMT: [DEBUG] getProperty(ns=null, name=dir.gen.src.dest, user=false)
> 28/03/08 12:22:42 GMT: [DEBUG] getProperty(ns=null, name=database.type, user=false)
> 28/03/08 12:22:42 GMT: [DEBUG] getProperty(ns=null, name=dir.gen.src, user=false)
> 28/03/08 12:22:42 GMT: [FATAL ERROR] org.apache.maven.plugin.antrun.AntRunMojo#execute() caused a linkage error (java.lang.NoClassDefFoundError) and may be out-of-date. Check the realms:
> 28/03/08 12:22:42 GMT: [FATAL ERROR] Plugin realm = /plugins/org.apache.maven.plugins:maven-antrun-plugin:1.1@48/thread:Worker-5
> urls[0] = file:/c:/.m2/org/apache/maven/plugins/maven-antrun-plugin/1.1/maven-antrun-plugin-1.1.jar
> urls[1] = file:/c:/.m2/junit/junit/3.8.1/junit-3.8.1.jar
> urls[2] = file:/c:/.m2/ant/ant/1.6.5/ant-1.6.5.jar
> urls[3] = file:/c:/.m2/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar
> urls[4] = file:/c:/.m2/ant/ant-launcher/1.6.5/ant-launcher-1.6.5.jar
> 28/03/08 12:22:42 GMT: [FATAL ERROR] Container realm = plexus.core
> 28/03/08 12:22:42 GMT: ERROR mojo-execute : antrun:run : org/apache/log/format/Formatter
> 28/03/08 12:22:42 GMT: Build error for /MNGECLIPSE-test/pom.xml; java.lang.NoClassDefFoundError: org/apache/log/format/Formatter
> ----------------
> Using plugin version 0.0.12 everything works correctly (no errors), everything works correctly from the command line.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (MNGECLIPSE-507) antrun broken with m2eclipse 0.9.0

JIRA jira@codehaus.org
In reply to this post by JIRA jira@codehaus.org

    [ http://jira.codehaus.org/browse/MNGECLIPSE-507?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=131114#action_131114 ]

Jit commented on MNGECLIPSE-507:
--------------------------------

Hi John,

Thanks the pointer. Having added the dependency under the plugin section I can confirm that the 'Update Source Folders' now works correctly with the 0.9 version of the plugin!

I'm a little surprised that the old version of the plugin (0.0.12) and the Maven CLI work when the dependency is just listed at the project level.  I guess they're a little more lenient.

Thanks

Jit

> antrun broken with m2eclipse 0.9.0
> ----------------------------------
>
>                 Key: MNGECLIPSE-507
>                 URL: http://jira.codehaus.org/browse/MNGECLIPSE-507
>             Project: Maven Integration for Eclipse
>          Issue Type: Bug
>    Affects Versions: 0.9.0
>            Reporter: Jit
>         Attachments: MNGECLIPSE-parent.zip, MNGECLIPSE-test.zip
>
>
> Since upgrading to the 0.9.0 plugin the antrun task configured in the attached sample project fails to run.
> To recreate the issue follow these steps:
> 1. Add the MNGECLIPSE-parent and MNGECLIPSE-test projects to Eclipse.
> 2. Enable the Maven plugin for both projects.
> 3. Install the MNGECLIPSE-parent project via 'mvn install'.
> 4. From the Maven context menu select 'Update Source Folders' on the MNGECLIPSE-test project.
> 5. This produces the following error:
> ----------------
> [org.apache.maven:maven-project:jar:2.0.1:runtime, org.apache.maven:maven-plugin-api:jar:2.0.1:runtime, org.apache.maven:maven-profile:jar:2.0.1:runtime, junit:junit:jar:3.8.1:runtime, org.apache.maven:maven-artifact-manager:jar:2.0.1:runtime, org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8:runtime, ant:ant:jar:1.6.5:runtime, org.apache.maven:maven-artifact:jar:2.0.1:runtime, org.codehaus.plexus:plexus-utils:jar:1.1:runtime, org.apache.maven:maven-model:jar:2.0.1:runtime, ant:ant-launcher:jar:1.6.5:runtime, org.apache.maven.wagon:wagon-provider-api:jar:1.0-alpha-5:runtime, org.apache.maven:maven-repository-metadata:jar:2.0.1:runtime]
> for plugin: /plugins/org.apache.maven.plugins:maven-antrun-plugin:1.1@48/thread:Worker-5
> 28/03/08 12:22:41 GMT: [DEBUG] Looking up mojo org.apache.maven.plugins:maven-antrun-plugin:1.1:run in realm /plugins/org.apache.maven.plugins:maven-antrun-plugin:1.1@48/thread:Worker-5 - descRealmId=/plugins/org.apache.maven.plugins:maven-antrun-plugin:1.1@48/thread:Worker-5
> 28/03/08 12:22:41 GMT: [DEBUG] Looked up - org.apache.maven.plugin.antrun.AntRunMojo@1291e95 - ClassRealm[/plugins/org.apache.maven.plugins:maven-antrun-plugin:1.1@48/thread:Worker-5, parent: ClassRealm[plexus.core, parent: null]]
> 28/03/08 12:22:41 GMT: [DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-antrun-plugin:1.1:run' with override configurator -->
> 28/03/08 12:22:41 GMT: [DEBUG]   (f) artifacts = [org.apache.maven:maven-project:jar:2.0.1:runtime, org.apache.maven:maven-plugin-api:jar:2.0.1:runtime, org.apache.maven:maven-profile:jar:2.0.1:runtime, junit:junit:jar:3.8.1:runtime, org.apache.maven:maven-artifact-manager:jar:2.0.1:runtime, org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8:runtime, ant:ant:jar:1.6.5:runtime, org.apache.maven:maven-artifact:jar:2.0.1:runtime, org.codehaus.plexus:plexus-utils:jar:1.1:runtime, org.apache.maven:maven-model:jar:2.0.1:runtime, ant:ant-launcher:jar:1.6.5:runtime, org.apache.maven.wagon:wagon-provider-api:jar:1.0-alpha-5:runtime, org.apache.maven:maven-repository-metadata:jar:2.0.1:runtime]
> 28/03/08 12:22:41 GMT: [DEBUG]   (f) project = MavenProject: org.maven.ide.eclipse.projects:MNGECLIPSE-test:0.0.1-SNAPSHOT @ C:\CPDS_CVS\MNGECLIPSE-test\pom.xml
> 28/03/08 12:22:41 GMT: [DEBUG]   (f) tasks =
> 28/03/08 12:22:41 GMT: [DEBUG] -- end configuration --
> 28/03/08 12:22:41 GMT: antrun:run
> 28/03/08 12:22:41 GMT: [DEBUG] Setting context classloader for plugin to: /plugins/org.apache.maven.plugins:maven-antrun-plugin:1.1@48/thread:Worker-5 (instance is: ClassRealm[/plugins/org.apache.maven.plugins:maven-antrun-plugin:1.1@48/thread:Worker-5, parent: ClassRealm[plexus.core, parent: null]])
> 28/03/08 12:22:42 GMT: [INFO] Executing tasks
> 28/03/08 12:22:42 GMT: [DEBUG] getProperty(ns=null, name=ant.reuse.loader, user=false)
> 28/03/08 12:22:42 GMT: [DEBUG] getProperty(ns=null, name=compile.classpath, user=false)
> 28/03/08 12:22:42 GMT: [DEBUG] getProperty(ns=null, name=ant.reuse.loader, user=false)
> 28/03/08 12:22:42 GMT: [DEBUG] getProperty(ns=null, name=build.sysclasspath, user=false)
> 28/03/08 12:22:42 GMT: [DEBUG] getProperty(ns=null, name=dir.gen.src, user=false)
> 28/03/08 12:22:42 GMT: [DEBUG] getProperty(ns=null, name=dir.gen.src.dest, user=false)
> 28/03/08 12:22:42 GMT: [DEBUG] getProperty(ns=null, name=database.type, user=false)
> 28/03/08 12:22:42 GMT: [DEBUG] getProperty(ns=null, name=dir.gen.src, user=false)
> 28/03/08 12:22:42 GMT: [FATAL ERROR] org.apache.maven.plugin.antrun.AntRunMojo#execute() caused a linkage error (java.lang.NoClassDefFoundError) and may be out-of-date. Check the realms:
> 28/03/08 12:22:42 GMT: [FATAL ERROR] Plugin realm = /plugins/org.apache.maven.plugins:maven-antrun-plugin:1.1@48/thread:Worker-5
> urls[0] = file:/c:/.m2/org/apache/maven/plugins/maven-antrun-plugin/1.1/maven-antrun-plugin-1.1.jar
> urls[1] = file:/c:/.m2/junit/junit/3.8.1/junit-3.8.1.jar
> urls[2] = file:/c:/.m2/ant/ant/1.6.5/ant-1.6.5.jar
> urls[3] = file:/c:/.m2/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar
> urls[4] = file:/c:/.m2/ant/ant-launcher/1.6.5/ant-launcher-1.6.5.jar
> 28/03/08 12:22:42 GMT: [FATAL ERROR] Container realm = plexus.core
> 28/03/08 12:22:42 GMT: ERROR mojo-execute : antrun:run : org/apache/log/format/Formatter
> 28/03/08 12:22:42 GMT: Build error for /MNGECLIPSE-test/pom.xml; java.lang.NoClassDefFoundError: org/apache/log/format/Formatter
> ----------------
> Using plugin version 0.0.12 everything works correctly (no errors), everything works correctly from the command line.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|

[jira] Issue Comment Edited: (MNGECLIPSE-507) antrun broken with m2eclipse 0.9.0

JIRA jira@codehaus.org
In reply to this post by JIRA jira@codehaus.org

    [ http://jira.codehaus.org/browse/MNGECLIPSE-507?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=131114#action_131114 ]

jitesh edited comment on MNGECLIPSE-507 at 4/17/08 6:22 AM:
---------------------------------------------------------

Hi John,

Thanks the pointer. Having added the dependency under the plugin section I can confirm that the 'Update Source Folders' now works correctly with the 0.9 version of the plugin!

I'm a little surprised that the old version of the plugin (0.0.12) and the Maven CLI work when the dependency is just listed at the project level.  I guess they're a little more lenient.  Would be interesting to find out whether the Maven spec allows project level dependencies to be available to plugin tasks.

Thanks

Jit

      was (Author: jitesh):
    Hi John,

Thanks the pointer. Having added the dependency under the plugin section I can confirm that the 'Update Source Folders' now works correctly with the 0.9 version of the plugin!

I'm a little surprised that the old version of the plugin (0.0.12) and the Maven CLI work when the dependency is just listed at the project level.  I guess they're a little more lenient.

Thanks

Jit
 

> antrun broken with m2eclipse 0.9.0
> ----------------------------------
>
>                 Key: MNGECLIPSE-507
>                 URL: http://jira.codehaus.org/browse/MNGECLIPSE-507
>             Project: Maven Integration for Eclipse
>          Issue Type: Bug
>    Affects Versions: 0.9.0
>            Reporter: Jit
>         Attachments: MNGECLIPSE-parent.zip, MNGECLIPSE-test.zip
>
>
> Since upgrading to the 0.9.0 plugin the antrun task configured in the attached sample project fails to run.
> To recreate the issue follow these steps:
> 1. Add the MNGECLIPSE-parent and MNGECLIPSE-test projects to Eclipse.
> 2. Enable the Maven plugin for both projects.
> 3. Install the MNGECLIPSE-parent project via 'mvn install'.
> 4. From the Maven context menu select 'Update Source Folders' on the MNGECLIPSE-test project.
> 5. This produces the following error:
> ----------------
> [org.apache.maven:maven-project:jar:2.0.1:runtime, org.apache.maven:maven-plugin-api:jar:2.0.1:runtime, org.apache.maven:maven-profile:jar:2.0.1:runtime, junit:junit:jar:3.8.1:runtime, org.apache.maven:maven-artifact-manager:jar:2.0.1:runtime, org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8:runtime, ant:ant:jar:1.6.5:runtime, org.apache.maven:maven-artifact:jar:2.0.1:runtime, org.codehaus.plexus:plexus-utils:jar:1.1:runtime, org.apache.maven:maven-model:jar:2.0.1:runtime, ant:ant-launcher:jar:1.6.5:runtime, org.apache.maven.wagon:wagon-provider-api:jar:1.0-alpha-5:runtime, org.apache.maven:maven-repository-metadata:jar:2.0.1:runtime]
> for plugin: /plugins/org.apache.maven.plugins:maven-antrun-plugin:1.1@48/thread:Worker-5
> 28/03/08 12:22:41 GMT: [DEBUG] Looking up mojo org.apache.maven.plugins:maven-antrun-plugin:1.1:run in realm /plugins/org.apache.maven.plugins:maven-antrun-plugin:1.1@48/thread:Worker-5 - descRealmId=/plugins/org.apache.maven.plugins:maven-antrun-plugin:1.1@48/thread:Worker-5
> 28/03/08 12:22:41 GMT: [DEBUG] Looked up - org.apache.maven.plugin.antrun.AntRunMojo@1291e95 - ClassRealm[/plugins/org.apache.maven.plugins:maven-antrun-plugin:1.1@48/thread:Worker-5, parent: ClassRealm[plexus.core, parent: null]]
> 28/03/08 12:22:41 GMT: [DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-antrun-plugin:1.1:run' with override configurator -->
> 28/03/08 12:22:41 GMT: [DEBUG]   (f) artifacts = [org.apache.maven:maven-project:jar:2.0.1:runtime, org.apache.maven:maven-plugin-api:jar:2.0.1:runtime, org.apache.maven:maven-profile:jar:2.0.1:runtime, junit:junit:jar:3.8.1:runtime, org.apache.maven:maven-artifact-manager:jar:2.0.1:runtime, org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8:runtime, ant:ant:jar:1.6.5:runtime, org.apache.maven:maven-artifact:jar:2.0.1:runtime, org.codehaus.plexus:plexus-utils:jar:1.1:runtime, org.apache.maven:maven-model:jar:2.0.1:runtime, ant:ant-launcher:jar:1.6.5:runtime, org.apache.maven.wagon:wagon-provider-api:jar:1.0-alpha-5:runtime, org.apache.maven:maven-repository-metadata:jar:2.0.1:runtime]
> 28/03/08 12:22:41 GMT: [DEBUG]   (f) project = MavenProject: org.maven.ide.eclipse.projects:MNGECLIPSE-test:0.0.1-SNAPSHOT @ C:\CPDS_CVS\MNGECLIPSE-test\pom.xml
> 28/03/08 12:22:41 GMT: [DEBUG]   (f) tasks =
> 28/03/08 12:22:41 GMT: [DEBUG] -- end configuration --
> 28/03/08 12:22:41 GMT: antrun:run
> 28/03/08 12:22:41 GMT: [DEBUG] Setting context classloader for plugin to: /plugins/org.apache.maven.plugins:maven-antrun-plugin:1.1@48/thread:Worker-5 (instance is: ClassRealm[/plugins/org.apache.maven.plugins:maven-antrun-plugin:1.1@48/thread:Worker-5, parent: ClassRealm[plexus.core, parent: null]])
> 28/03/08 12:22:42 GMT: [INFO] Executing tasks
> 28/03/08 12:22:42 GMT: [DEBUG] getProperty(ns=null, name=ant.reuse.loader, user=false)
> 28/03/08 12:22:42 GMT: [DEBUG] getProperty(ns=null, name=compile.classpath, user=false)
> 28/03/08 12:22:42 GMT: [DEBUG] getProperty(ns=null, name=ant.reuse.loader, user=false)
> 28/03/08 12:22:42 GMT: [DEBUG] getProperty(ns=null, name=build.sysclasspath, user=false)
> 28/03/08 12:22:42 GMT: [DEBUG] getProperty(ns=null, name=dir.gen.src, user=false)
> 28/03/08 12:22:42 GMT: [DEBUG] getProperty(ns=null, name=dir.gen.src.dest, user=false)
> 28/03/08 12:22:42 GMT: [DEBUG] getProperty(ns=null, name=database.type, user=false)
> 28/03/08 12:22:42 GMT: [DEBUG] getProperty(ns=null, name=dir.gen.src, user=false)
> 28/03/08 12:22:42 GMT: [FATAL ERROR] org.apache.maven.plugin.antrun.AntRunMojo#execute() caused a linkage error (java.lang.NoClassDefFoundError) and may be out-of-date. Check the realms:
> 28/03/08 12:22:42 GMT: [FATAL ERROR] Plugin realm = /plugins/org.apache.maven.plugins:maven-antrun-plugin:1.1@48/thread:Worker-5
> urls[0] = file:/c:/.m2/org/apache/maven/plugins/maven-antrun-plugin/1.1/maven-antrun-plugin-1.1.jar
> urls[1] = file:/c:/.m2/junit/junit/3.8.1/junit-3.8.1.jar
> urls[2] = file:/c:/.m2/ant/ant/1.6.5/ant-1.6.5.jar
> urls[3] = file:/c:/.m2/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar
> urls[4] = file:/c:/.m2/ant/ant-launcher/1.6.5/ant-launcher-1.6.5.jar
> 28/03/08 12:22:42 GMT: [FATAL ERROR] Container realm = plexus.core
> 28/03/08 12:22:42 GMT: ERROR mojo-execute : antrun:run : org/apache/log/format/Formatter
> 28/03/08 12:22:42 GMT: Build error for /MNGECLIPSE-test/pom.xml; java.lang.NoClassDefFoundError: org/apache/log/format/Formatter
> ----------------
> Using plugin version 0.0.12 everything works correctly (no errors), everything works correctly from the command line.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|

[jira] Issue Comment Edited: (MNGECLIPSE-507) antrun broken with m2eclipse 0.9.0

JIRA jira@codehaus.org
In reply to this post by JIRA jira@codehaus.org

    [ http://jira.codehaus.org/browse/MNGECLIPSE-507?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=131114#action_131114 ]

jitesh edited comment on MNGECLIPSE-507 at 4/17/08 6:44 AM:
---------------------------------------------------------

Hi John,

Thanks for the pointer. Having added the dependency under the plugin section I can confirm that the 'Update Source Folders' now works correctly with the 0.9 version of the plugin!

I'm a little surprised that the old version of the plugin (0.0.12) and the Maven CLI work when the dependency is just listed at the project level.  I guess they're a little more lenient.  Would be interesting to find out whether the Maven spec allows project level dependencies to be available to plugin tasks.

Thanks

Jit

      was (Author: jitesh):
    Hi John,

Thanks the pointer. Having added the dependency under the plugin section I can confirm that the 'Update Source Folders' now works correctly with the 0.9 version of the plugin!

I'm a little surprised that the old version of the plugin (0.0.12) and the Maven CLI work when the dependency is just listed at the project level.  I guess they're a little more lenient.  Would be interesting to find out whether the Maven spec allows project level dependencies to be available to plugin tasks.

Thanks

Jit
 

> antrun broken with m2eclipse 0.9.0
> ----------------------------------
>
>                 Key: MNGECLIPSE-507
>                 URL: http://jira.codehaus.org/browse/MNGECLIPSE-507
>             Project: Maven Integration for Eclipse
>          Issue Type: Bug
>    Affects Versions: 0.9.0
>            Reporter: Jit
>         Attachments: MNGECLIPSE-parent.zip, MNGECLIPSE-test.zip
>
>
> Since upgrading to the 0.9.0 plugin the antrun task configured in the attached sample project fails to run.
> To recreate the issue follow these steps:
> 1. Add the MNGECLIPSE-parent and MNGECLIPSE-test projects to Eclipse.
> 2. Enable the Maven plugin for both projects.
> 3. Install the MNGECLIPSE-parent project via 'mvn install'.
> 4. From the Maven context menu select 'Update Source Folders' on the MNGECLIPSE-test project.
> 5. This produces the following error:
> ----------------
> [org.apache.maven:maven-project:jar:2.0.1:runtime, org.apache.maven:maven-plugin-api:jar:2.0.1:runtime, org.apache.maven:maven-profile:jar:2.0.1:runtime, junit:junit:jar:3.8.1:runtime, org.apache.maven:maven-artifact-manager:jar:2.0.1:runtime, org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8:runtime, ant:ant:jar:1.6.5:runtime, org.apache.maven:maven-artifact:jar:2.0.1:runtime, org.codehaus.plexus:plexus-utils:jar:1.1:runtime, org.apache.maven:maven-model:jar:2.0.1:runtime, ant:ant-launcher:jar:1.6.5:runtime, org.apache.maven.wagon:wagon-provider-api:jar:1.0-alpha-5:runtime, org.apache.maven:maven-repository-metadata:jar:2.0.1:runtime]
> for plugin: /plugins/org.apache.maven.plugins:maven-antrun-plugin:1.1@48/thread:Worker-5
> 28/03/08 12:22:41 GMT: [DEBUG] Looking up mojo org.apache.maven.plugins:maven-antrun-plugin:1.1:run in realm /plugins/org.apache.maven.plugins:maven-antrun-plugin:1.1@48/thread:Worker-5 - descRealmId=/plugins/org.apache.maven.plugins:maven-antrun-plugin:1.1@48/thread:Worker-5
> 28/03/08 12:22:41 GMT: [DEBUG] Looked up - org.apache.maven.plugin.antrun.AntRunMojo@1291e95 - ClassRealm[/plugins/org.apache.maven.plugins:maven-antrun-plugin:1.1@48/thread:Worker-5, parent: ClassRealm[plexus.core, parent: null]]
> 28/03/08 12:22:41 GMT: [DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-antrun-plugin:1.1:run' with override configurator -->
> 28/03/08 12:22:41 GMT: [DEBUG]   (f) artifacts = [org.apache.maven:maven-project:jar:2.0.1:runtime, org.apache.maven:maven-plugin-api:jar:2.0.1:runtime, org.apache.maven:maven-profile:jar:2.0.1:runtime, junit:junit:jar:3.8.1:runtime, org.apache.maven:maven-artifact-manager:jar:2.0.1:runtime, org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8:runtime, ant:ant:jar:1.6.5:runtime, org.apache.maven:maven-artifact:jar:2.0.1:runtime, org.codehaus.plexus:plexus-utils:jar:1.1:runtime, org.apache.maven:maven-model:jar:2.0.1:runtime, ant:ant-launcher:jar:1.6.5:runtime, org.apache.maven.wagon:wagon-provider-api:jar:1.0-alpha-5:runtime, org.apache.maven:maven-repository-metadata:jar:2.0.1:runtime]
> 28/03/08 12:22:41 GMT: [DEBUG]   (f) project = MavenProject: org.maven.ide.eclipse.projects:MNGECLIPSE-test:0.0.1-SNAPSHOT @ C:\CPDS_CVS\MNGECLIPSE-test\pom.xml
> 28/03/08 12:22:41 GMT: [DEBUG]   (f) tasks =
> 28/03/08 12:22:41 GMT: [DEBUG] -- end configuration --
> 28/03/08 12:22:41 GMT: antrun:run
> 28/03/08 12:22:41 GMT: [DEBUG] Setting context classloader for plugin to: /plugins/org.apache.maven.plugins:maven-antrun-plugin:1.1@48/thread:Worker-5 (instance is: ClassRealm[/plugins/org.apache.maven.plugins:maven-antrun-plugin:1.1@48/thread:Worker-5, parent: ClassRealm[plexus.core, parent: null]])
> 28/03/08 12:22:42 GMT: [INFO] Executing tasks
> 28/03/08 12:22:42 GMT: [DEBUG] getProperty(ns=null, name=ant.reuse.loader, user=false)
> 28/03/08 12:22:42 GMT: [DEBUG] getProperty(ns=null, name=compile.classpath, user=false)
> 28/03/08 12:22:42 GMT: [DEBUG] getProperty(ns=null, name=ant.reuse.loader, user=false)
> 28/03/08 12:22:42 GMT: [DEBUG] getProperty(ns=null, name=build.sysclasspath, user=false)
> 28/03/08 12:22:42 GMT: [DEBUG] getProperty(ns=null, name=dir.gen.src, user=false)
> 28/03/08 12:22:42 GMT: [DEBUG] getProperty(ns=null, name=dir.gen.src.dest, user=false)
> 28/03/08 12:22:42 GMT: [DEBUG] getProperty(ns=null, name=database.type, user=false)
> 28/03/08 12:22:42 GMT: [DEBUG] getProperty(ns=null, name=dir.gen.src, user=false)
> 28/03/08 12:22:42 GMT: [FATAL ERROR] org.apache.maven.plugin.antrun.AntRunMojo#execute() caused a linkage error (java.lang.NoClassDefFoundError) and may be out-of-date. Check the realms:
> 28/03/08 12:22:42 GMT: [FATAL ERROR] Plugin realm = /plugins/org.apache.maven.plugins:maven-antrun-plugin:1.1@48/thread:Worker-5
> urls[0] = file:/c:/.m2/org/apache/maven/plugins/maven-antrun-plugin/1.1/maven-antrun-plugin-1.1.jar
> urls[1] = file:/c:/.m2/junit/junit/3.8.1/junit-3.8.1.jar
> urls[2] = file:/c:/.m2/ant/ant/1.6.5/ant-1.6.5.jar
> urls[3] = file:/c:/.m2/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar
> urls[4] = file:/c:/.m2/ant/ant-launcher/1.6.5/ant-launcher-1.6.5.jar
> 28/03/08 12:22:42 GMT: [FATAL ERROR] Container realm = plexus.core
> 28/03/08 12:22:42 GMT: ERROR mojo-execute : antrun:run : org/apache/log/format/Formatter
> 28/03/08 12:22:42 GMT: Build error for /MNGECLIPSE-test/pom.xml; java.lang.NoClassDefFoundError: org/apache/log/format/Formatter
> ----------------
> Using plugin version 0.0.12 everything works correctly (no errors), everything works correctly from the command line.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|

[jira] Issue Comment Edited: (MNGECLIPSE-507) antrun broken with m2eclipse 0.9.0

JIRA jira@codehaus.org
In reply to this post by JIRA jira@codehaus.org

    [ http://jira.codehaus.org/browse/MNGECLIPSE-507?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=131114#action_131114 ]

jitesh edited comment on MNGECLIPSE-507 at 4/17/08 6:44 AM:
---------------------------------------------------------

Hi John,

Thanks for the pointer. Having added the dependency under the plugin section, I can confirm that the 'Update Source Folders' now works correctly with the 0.9 version of the plugin!

I'm a little surprised that the old version of the plugin (0.0.12) and the Maven CLI work when the dependency is just listed at the project level.  I guess they're a little more lenient.  Would be interesting to find out whether the Maven spec allows project level dependencies to be available to plugin tasks.

Thanks

Jit

      was (Author: jitesh):
    Hi John,

Thanks for the pointer. Having added the dependency under the plugin section I can confirm that the 'Update Source Folders' now works correctly with the 0.9 version of the plugin!

I'm a little surprised that the old version of the plugin (0.0.12) and the Maven CLI work when the dependency is just listed at the project level.  I guess they're a little more lenient.  Would be interesting to find out whether the Maven spec allows project level dependencies to be available to plugin tasks.

Thanks

Jit
 

> antrun broken with m2eclipse 0.9.0
> ----------------------------------
>
>                 Key: MNGECLIPSE-507
>                 URL: http://jira.codehaus.org/browse/MNGECLIPSE-507
>             Project: Maven Integration for Eclipse
>          Issue Type: Bug
>    Affects Versions: 0.9.0
>            Reporter: Jit
>         Attachments: MNGECLIPSE-parent.zip, MNGECLIPSE-test.zip
>
>
> Since upgrading to the 0.9.0 plugin the antrun task configured in the attached sample project fails to run.
> To recreate the issue follow these steps:
> 1. Add the MNGECLIPSE-parent and MNGECLIPSE-test projects to Eclipse.
> 2. Enable the Maven plugin for both projects.
> 3. Install the MNGECLIPSE-parent project via 'mvn install'.
> 4. From the Maven context menu select 'Update Source Folders' on the MNGECLIPSE-test project.
> 5. This produces the following error:
> ----------------
> [org.apache.maven:maven-project:jar:2.0.1:runtime, org.apache.maven:maven-plugin-api:jar:2.0.1:runtime, org.apache.maven:maven-profile:jar:2.0.1:runtime, junit:junit:jar:3.8.1:runtime, org.apache.maven:maven-artifact-manager:jar:2.0.1:runtime, org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8:runtime, ant:ant:jar:1.6.5:runtime, org.apache.maven:maven-artifact:jar:2.0.1:runtime, org.codehaus.plexus:plexus-utils:jar:1.1:runtime, org.apache.maven:maven-model:jar:2.0.1:runtime, ant:ant-launcher:jar:1.6.5:runtime, org.apache.maven.wagon:wagon-provider-api:jar:1.0-alpha-5:runtime, org.apache.maven:maven-repository-metadata:jar:2.0.1:runtime]
> for plugin: /plugins/org.apache.maven.plugins:maven-antrun-plugin:1.1@48/thread:Worker-5
> 28/03/08 12:22:41 GMT: [DEBUG] Looking up mojo org.apache.maven.plugins:maven-antrun-plugin:1.1:run in realm /plugins/org.apache.maven.plugins:maven-antrun-plugin:1.1@48/thread:Worker-5 - descRealmId=/plugins/org.apache.maven.plugins:maven-antrun-plugin:1.1@48/thread:Worker-5
> 28/03/08 12:22:41 GMT: [DEBUG] Looked up - org.apache.maven.plugin.antrun.AntRunMojo@1291e95 - ClassRealm[/plugins/org.apache.maven.plugins:maven-antrun-plugin:1.1@48/thread:Worker-5, parent: ClassRealm[plexus.core, parent: null]]
> 28/03/08 12:22:41 GMT: [DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-antrun-plugin:1.1:run' with override configurator -->
> 28/03/08 12:22:41 GMT: [DEBUG]   (f) artifacts = [org.apache.maven:maven-project:jar:2.0.1:runtime, org.apache.maven:maven-plugin-api:jar:2.0.1:runtime, org.apache.maven:maven-profile:jar:2.0.1:runtime, junit:junit:jar:3.8.1:runtime, org.apache.maven:maven-artifact-manager:jar:2.0.1:runtime, org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8:runtime, ant:ant:jar:1.6.5:runtime, org.apache.maven:maven-artifact:jar:2.0.1:runtime, org.codehaus.plexus:plexus-utils:jar:1.1:runtime, org.apache.maven:maven-model:jar:2.0.1:runtime, ant:ant-launcher:jar:1.6.5:runtime, org.apache.maven.wagon:wagon-provider-api:jar:1.0-alpha-5:runtime, org.apache.maven:maven-repository-metadata:jar:2.0.1:runtime]
> 28/03/08 12:22:41 GMT: [DEBUG]   (f) project = MavenProject: org.maven.ide.eclipse.projects:MNGECLIPSE-test:0.0.1-SNAPSHOT @ C:\CPDS_CVS\MNGECLIPSE-test\pom.xml
> 28/03/08 12:22:41 GMT: [DEBUG]   (f) tasks =
> 28/03/08 12:22:41 GMT: [DEBUG] -- end configuration --
> 28/03/08 12:22:41 GMT: antrun:run
> 28/03/08 12:22:41 GMT: [DEBUG] Setting context classloader for plugin to: /plugins/org.apache.maven.plugins:maven-antrun-plugin:1.1@48/thread:Worker-5 (instance is: ClassRealm[/plugins/org.apache.maven.plugins:maven-antrun-plugin:1.1@48/thread:Worker-5, parent: ClassRealm[plexus.core, parent: null]])
> 28/03/08 12:22:42 GMT: [INFO] Executing tasks
> 28/03/08 12:22:42 GMT: [DEBUG] getProperty(ns=null, name=ant.reuse.loader, user=false)
> 28/03/08 12:22:42 GMT: [DEBUG] getProperty(ns=null, name=compile.classpath, user=false)
> 28/03/08 12:22:42 GMT: [DEBUG] getProperty(ns=null, name=ant.reuse.loader, user=false)
> 28/03/08 12:22:42 GMT: [DEBUG] getProperty(ns=null, name=build.sysclasspath, user=false)
> 28/03/08 12:22:42 GMT: [DEBUG] getProperty(ns=null, name=dir.gen.src, user=false)
> 28/03/08 12:22:42 GMT: [DEBUG] getProperty(ns=null, name=dir.gen.src.dest, user=false)
> 28/03/08 12:22:42 GMT: [DEBUG] getProperty(ns=null, name=database.type, user=false)
> 28/03/08 12:22:42 GMT: [DEBUG] getProperty(ns=null, name=dir.gen.src, user=false)
> 28/03/08 12:22:42 GMT: [FATAL ERROR] org.apache.maven.plugin.antrun.AntRunMojo#execute() caused a linkage error (java.lang.NoClassDefFoundError) and may be out-of-date. Check the realms:
> 28/03/08 12:22:42 GMT: [FATAL ERROR] Plugin realm = /plugins/org.apache.maven.plugins:maven-antrun-plugin:1.1@48/thread:Worker-5
> urls[0] = file:/c:/.m2/org/apache/maven/plugins/maven-antrun-plugin/1.1/maven-antrun-plugin-1.1.jar
> urls[1] = file:/c:/.m2/junit/junit/3.8.1/junit-3.8.1.jar
> urls[2] = file:/c:/.m2/ant/ant/1.6.5/ant-1.6.5.jar
> urls[3] = file:/c:/.m2/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar
> urls[4] = file:/c:/.m2/ant/ant-launcher/1.6.5/ant-launcher-1.6.5.jar
> 28/03/08 12:22:42 GMT: [FATAL ERROR] Container realm = plexus.core
> 28/03/08 12:22:42 GMT: ERROR mojo-execute : antrun:run : org/apache/log/format/Formatter
> 28/03/08 12:22:42 GMT: Build error for /MNGECLIPSE-test/pom.xml; java.lang.NoClassDefFoundError: org/apache/log/format/Formatter
> ----------------
> Using plugin version 0.0.12 everything works correctly (no errors), everything works correctly from the command line.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (MNGECLIPSE-507) antrun broken with m2eclipse 0.9.0

JIRA jira@codehaus.org
In reply to this post by JIRA jira@codehaus.org

    [ http://jira.codehaus.org/browse/MNGECLIPSE-507?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=131143#action_131143 ]

Eugene Kuleshov commented on MNGECLIPSE-507:
--------------------------------------------

Jit, we found that issue is actually deeper then John's workaround and it is related to quite complicated classloading stuff. We are still investigating proper solution.

> antrun broken with m2eclipse 0.9.0
> ----------------------------------
>
>                 Key: MNGECLIPSE-507
>                 URL: http://jira.codehaus.org/browse/MNGECLIPSE-507
>             Project: Maven Integration for Eclipse
>          Issue Type: Bug
>    Affects Versions: 0.9.0
>            Reporter: Jit
>         Attachments: MNGECLIPSE-parent.zip, MNGECLIPSE-test.zip
>
>
> Since upgrading to the 0.9.0 plugin the antrun task configured in the attached sample project fails to run.
> To recreate the issue follow these steps:
> 1. Add the MNGECLIPSE-parent and MNGECLIPSE-test projects to Eclipse.
> 2. Enable the Maven plugin for both projects.
> 3. Install the MNGECLIPSE-parent project via 'mvn install'.
> 4. From the Maven context menu select 'Update Source Folders' on the MNGECLIPSE-test project.
> 5. This produces the following error:
> ----------------
> [org.apache.maven:maven-project:jar:2.0.1:runtime, org.apache.maven:maven-plugin-api:jar:2.0.1:runtime, org.apache.maven:maven-profile:jar:2.0.1:runtime, junit:junit:jar:3.8.1:runtime, org.apache.maven:maven-artifact-manager:jar:2.0.1:runtime, org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8:runtime, ant:ant:jar:1.6.5:runtime, org.apache.maven:maven-artifact:jar:2.0.1:runtime, org.codehaus.plexus:plexus-utils:jar:1.1:runtime, org.apache.maven:maven-model:jar:2.0.1:runtime, ant:ant-launcher:jar:1.6.5:runtime, org.apache.maven.wagon:wagon-provider-api:jar:1.0-alpha-5:runtime, org.apache.maven:maven-repository-metadata:jar:2.0.1:runtime]
> for plugin: /plugins/org.apache.maven.plugins:maven-antrun-plugin:1.1@48/thread:Worker-5
> 28/03/08 12:22:41 GMT: [DEBUG] Looking up mojo org.apache.maven.plugins:maven-antrun-plugin:1.1:run in realm /plugins/org.apache.maven.plugins:maven-antrun-plugin:1.1@48/thread:Worker-5 - descRealmId=/plugins/org.apache.maven.plugins:maven-antrun-plugin:1.1@48/thread:Worker-5
> 28/03/08 12:22:41 GMT: [DEBUG] Looked up - org.apache.maven.plugin.antrun.AntRunMojo@1291e95 - ClassRealm[/plugins/org.apache.maven.plugins:maven-antrun-plugin:1.1@48/thread:Worker-5, parent: ClassRealm[plexus.core, parent: null]]
> 28/03/08 12:22:41 GMT: [DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-antrun-plugin:1.1:run' with override configurator -->
> 28/03/08 12:22:41 GMT: [DEBUG]   (f) artifacts = [org.apache.maven:maven-project:jar:2.0.1:runtime, org.apache.maven:maven-plugin-api:jar:2.0.1:runtime, org.apache.maven:maven-profile:jar:2.0.1:runtime, junit:junit:jar:3.8.1:runtime, org.apache.maven:maven-artifact-manager:jar:2.0.1:runtime, org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8:runtime, ant:ant:jar:1.6.5:runtime, org.apache.maven:maven-artifact:jar:2.0.1:runtime, org.codehaus.plexus:plexus-utils:jar:1.1:runtime, org.apache.maven:maven-model:jar:2.0.1:runtime, ant:ant-launcher:jar:1.6.5:runtime, org.apache.maven.wagon:wagon-provider-api:jar:1.0-alpha-5:runtime, org.apache.maven:maven-repository-metadata:jar:2.0.1:runtime]
> 28/03/08 12:22:41 GMT: [DEBUG]   (f) project = MavenProject: org.maven.ide.eclipse.projects:MNGECLIPSE-test:0.0.1-SNAPSHOT @ C:\CPDS_CVS\MNGECLIPSE-test\pom.xml
> 28/03/08 12:22:41 GMT: [DEBUG]   (f) tasks =
> 28/03/08 12:22:41 GMT: [DEBUG] -- end configuration --
> 28/03/08 12:22:41 GMT: antrun:run
> 28/03/08 12:22:41 GMT: [DEBUG] Setting context classloader for plugin to: /plugins/org.apache.maven.plugins:maven-antrun-plugin:1.1@48/thread:Worker-5 (instance is: ClassRealm[/plugins/org.apache.maven.plugins:maven-antrun-plugin:1.1@48/thread:Worker-5, parent: ClassRealm[plexus.core, parent: null]])
> 28/03/08 12:22:42 GMT: [INFO] Executing tasks
> 28/03/08 12:22:42 GMT: [DEBUG] getProperty(ns=null, name=ant.reuse.loader, user=false)
> 28/03/08 12:22:42 GMT: [DEBUG] getProperty(ns=null, name=compile.classpath, user=false)
> 28/03/08 12:22:42 GMT: [DEBUG] getProperty(ns=null, name=ant.reuse.loader, user=false)
> 28/03/08 12:22:42 GMT: [DEBUG] getProperty(ns=null, name=build.sysclasspath, user=false)
> 28/03/08 12:22:42 GMT: [DEBUG] getProperty(ns=null, name=dir.gen.src, user=false)
> 28/03/08 12:22:42 GMT: [DEBUG] getProperty(ns=null, name=dir.gen.src.dest, user=false)
> 28/03/08 12:22:42 GMT: [DEBUG] getProperty(ns=null, name=database.type, user=false)
> 28/03/08 12:22:42 GMT: [DEBUG] getProperty(ns=null, name=dir.gen.src, user=false)
> 28/03/08 12:22:42 GMT: [FATAL ERROR] org.apache.maven.plugin.antrun.AntRunMojo#execute() caused a linkage error (java.lang.NoClassDefFoundError) and may be out-of-date. Check the realms:
> 28/03/08 12:22:42 GMT: [FATAL ERROR] Plugin realm = /plugins/org.apache.maven.plugins:maven-antrun-plugin:1.1@48/thread:Worker-5
> urls[0] = file:/c:/.m2/org/apache/maven/plugins/maven-antrun-plugin/1.1/maven-antrun-plugin-1.1.jar
> urls[1] = file:/c:/.m2/junit/junit/3.8.1/junit-3.8.1.jar
> urls[2] = file:/c:/.m2/ant/ant/1.6.5/ant-1.6.5.jar
> urls[3] = file:/c:/.m2/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar
> urls[4] = file:/c:/.m2/ant/ant-launcher/1.6.5/ant-launcher-1.6.5.jar
> 28/03/08 12:22:42 GMT: [FATAL ERROR] Container realm = plexus.core
> 28/03/08 12:22:42 GMT: ERROR mojo-execute : antrun:run : org/apache/log/format/Formatter
> 28/03/08 12:22:42 GMT: Build error for /MNGECLIPSE-test/pom.xml; java.lang.NoClassDefFoundError: org/apache/log/format/Formatter
> ----------------
> Using plugin version 0.0.12 everything works correctly (no errors), everything works correctly from the command line.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email