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.

Doh, that was it; thanks! And changing <ignore /> to <execute />
gratefully actually made it work again; thanks a ton for making me aware
of that, Robert. Danke schoen.

-Matthew

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

<pluginManagement/> element is misplaced, it has to be under <build/>.

I've opened https://bugs.eclipse.org/bugs/show_bug.cgi?id=350466 to
track missing error marker for wrong pom.xml markup.

--
Regards,
Igor

On 11-06-27 7:46 PM, matthew.lieder@xxxxxxxxxxxxxxxxxx wrote:
> I get the message "maven-dependency-plugin (goals "copy-dependencies",
> "unpack") is not supported by m2e." on the"<execution>" element of the
> maven-dependency-plugin. I'm using a fresh install of Indigo and the
> latest build of m2e. To reproduce, create a new Java project, create a
> pom.xml with the following contents, and convert it to a Maven
Project:
>
> <project xmlns="http://maven.apache.org/POM/4.0.0";
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>           xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> http://maven.apache.org/maven-v4_0_0.xsd";>
>      <modelVersion>4.0.0</modelVersion>
>      <groupId>com.findlaw</groupId>
>      <artifactId>maven-test</artifactId>
>      <packaging>jar</packaging>
>      <version>1.0</version>
>      <dependencies>
>      </dependencies>
>      <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>
> </project>
>
> -Matthew
>
> -----Original Message-----
> From: m2e-users-bounces@xxxxxxxxxxx
> [mailto:m2e-users-bounces@xxxxxxxxxxx] On Behalf Of Igor Fedorenko
> Sent: Monday, June 27, 2011 10:04 AM
> To: m2e-users@xxxxxxxxxxx
> Subject: Re: [m2e-users] maven-dependency-plugin (goals
> "copy-dependencies", "unpack") is not supported by m2e.
>
> This exact configuration works for me. What error marker you have? Can
> you provide a sample project?
>
> --
> Regards,
> Igor
>
> On 11-06-27 6:11 PM, matthew.lieder@xxxxxxxxxxxxxxxxxx wrote:
>> 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
>> _______________________________________________
>> m2e-users mailing list
>> m2e-users@xxxxxxxxxxx
>> https://dev.eclipse.org/mailman/listinfo/m2e-users
> _______________________________________________
> m2e-users mailing list
> m2e-users@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/m2e-users
> _______________________________________________
> m2e-users mailing list
> m2e-users@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/m2e-users
_______________________________________________
m2e-users mailing list
m2e-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/m2e-users


Back to the top