Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [m2e-users] maven-dependency-plugin (goals "copy-dependencies", "unpack") is not supported by m2e.

Robert, am I reading correctly that you're saying you found a way to get
m2e to ignore the "maven-dependency-plugin (goals
"copy-dependencies","unpack") is not supported by m2e" error? I've tried
to do that myself with no luck and am curious as to what exactly you put
in your pom.xml in order to do that. Here's what I have, which isn't
working:

    <build>
      <plugins>
              <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-dependency-plugin</artifactId>
                <configuration>
 
<outputDirectory>${project.build.outputDirectory}/lib</outputDirectory>
                    <includeScope>runtime</includeScope>
                    <excludeScope>provided</excludeScope> 
                </configuration>
                <executions>
                    <execution>
                        <id>copy-dependencies</id>
                        <phase>generate-resources</phase>
                        <goals>
                            <goal>copy-dependencies</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
      </plugins>
    </build>
   <pluginManagement>
    <plugins>
      <plugin>
        <groupId>org.eclipse.m2e</groupId>
        <artifactId>lifecycle-mapping</artifactId>
        <version>1.0.0</version>
        <configuration>
          <lifecycleMappingMetadata>
            <pluginExecutions>
              <pluginExecution>
                <pluginExecutionFilter>
                  <groupId>org.apache.maven.plugins</groupId>
                  <artifactId>maven-dependency-plugin</artifactId>
                  <versionRange>[2.0,)</versionRange>
                  <goals>
                    <goal>copy-dependencies</goal>
                  </goals>
                </pluginExecutionFilter>
                <action>
                  <ignore />
                </action>
              </pluginExecution>
            </pluginExecutions>
          </lifecycleMappingMetadata>
        </configuration>
      </plugin>
    </plugins>
  </pluginManagement>

Thanks,

Matthew Lieder
Senior Software Engineer
FindLaw, a Thomson Reuters business
Eagan, MN
www.findlaw.com

-----Original Message-----
From: m2e-users-bounces@xxxxxxxxxxx
[mailto:m2e-users-bounces@xxxxxxxxxxx] On Behalf Of
Robert.Klaus@xxxxxxxxxxxx
Sent: Monday, June 27, 2011 8:42 AM
To: m2e-users@xxxxxxxxxxx
Subject: Re: [m2e-users] maven-dependency-plugin (goals
"copy-dependencies","unpack") is not supported by m2e.

Hi,

I defined a lifecycle mapping for the plugin (as Igor pointed out) and
that did the trick of getting rid of the error marker.

Thnx for the help!

But this solution wasn't so obvious for me. I already knew
http://wiki.eclipse.org/M2E_plugin_execution_not_covered as m2e
complained about some plugins.
Maybe someone could update the wiki with this information?

Are some other plugins as troublesome as the dependency-plugin (just
noticed a warning about the enforcer plugin ...)?

Cheers,

Robert Klaus

Bosch Software Innovations GmbH
Development - Technology (INST/EST)
Ziegelei 7
88090 Immenstaad
GERMANY
www.bosch-si.de

Tel. +49 7545 202-339
Fax +49 7545 202-301
robert.klaus@xxxxxxxxxxxx

Registered office: Immenstaad, Register court: Amtsgericht Ulm, HRB
631888; 
Executives: Heinz Derenbach; Achim Berger, Thomas Cotic, Thomas Schmid

This message may contain confidential and privileged information. Any
unauthorized review, use, disclosure or distribution is prohibited. 
If you are not the intended recipient, please inform us immediately and
destroy this message including all copies thereof.


_______________________________________________
m2e-users mailing list
m2e-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/m2e-users


Back to the top