Sorry, no good recommendation here.

Most of m2e value for the work that I do comes from workspace dependency resolution, so I never considered this option. If you can do without it, than yes, disabling workspace resolution will solve the problem.

If you can afford running locally compiled maven-dependency-plugin, then there is a patch attached to MDEP-187.

You can also play with your pom.xml files and/or goals that get executed by m2e to disable maven-dependency-plugin execution.

Unfortunately, these are the only alternatives I only, and they are not pretty.

--
Regards,
Igor

Mohan K R wrote:
So, what's the recommendation. Disable WS resolution? Thanks, facing the same issue

On Tue, Nov 18, 2008 at 9:16 AM, Igor Fedorenko <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote:

    Currently, maven-dependency-plugin is not compatible with workspace
    artifact resolution. There is a bug report
    (http://jira.codehaus.org/browse/MDEP-187) and I was told the fix is
    scheduled for maven-dependency-plugin 2.1.

    --
    Regards,
    Igor


    europheus wrote:

        Hello,
        I'm running into a build error when I force clean on my
        eclipse project.  During the process-test-resources phase, I need to
        copy a dependency jar into a folder for my test cases to find
        and link
        with.  This configuration works fine using maven at the command
        line,
        but using m2eclipse v 0.96 and 0.97 I am getting this error:

        11/14/08
        11:19:42 AM EST: Build errors for content;
        org.apache.maven.lifecycle.LifecycleExecutionException: Internal
        error
        in the plugin manager executing goal
        'org.apache.maven.plugins:maven-dependency-
        plugin:2.0:copy': Mojo execution failed.

        When I enable debug output, I do not see any new information
        regarding the error.
        I am using eclipse 3.4 and I have set up to use the external
        install of maven version 2.09

        Here is how I configured the dependency plugin:

                   <plugin>
                       <groupId>org.apache.maven.plugins</groupId>
                       <artifactId>maven-dependency-plugin</artifactId>
                       <version>2.0</version>
                       <executions>
                           <execution>
                               <id>copy</id>
                               <phase>process-test-resources</phase>
                               <goals>
                                   <goal>copy</goal>
                               </goals>
                               <configuration>
                                   <artifactItems>
                                       <artifactItem>
                                           <groupId>com.mygroup</groupId>
<artifactId>my-artifact</artifactId> <version>${my-artifact.version}</version>
                                           <type>jar</type>
<outputDirectory>${basedir}/target/test-classes/dependencies</outputDirectory>
                                           <overWrite>true</overWrite>
                                       </artifactItem>
                                   </artifactItems>
                               </configuration>
                           </execution>
                       </executions>
                   </plugin>


        Is there a workaround for this or is this a bug?
        Thanks



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

      http://xircles.codehaus.org/manage_email





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

   http://xircles.codehaus.org/manage_email


Reply via email to