Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 345861 - m2e confused by multiple executions
Summary: m2e confused by multiple executions
Status: CLOSED INVALID
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: m2e (show other bugs)
Version: unspecified   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-15 18:07 EDT by benson margulies CLA
Modified: 2021-04-19 13:23 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description benson margulies CLA 2011-05-15 18:07:00 EDT
Build Identifier: I20110428-0848

    m2e - Maven Integration for Eclipse (Incubation)	0.13.0.201104282116	org.eclipse.m2e.feature.feature.group.

I have two executions of the dependency plugin. M2E offered to exclude one of them from the POM. However, it refuses to offer to exclude the other.  Manually adding the second goal to the pom exclusion works.

<plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-dependency-plugin</artifactId>
                <version>2.2</version>
                <executions>
                    <execution>
                        <id>unpack-wars</id>
                        <phase>generate-sources</phase>
                        <goals>
                            <goal>unpack</goal>
                        </goals>
                        <configuration>
                            <artifactItems>
                                <artifactItem>
                                    <groupId>org.apache.solr</groupId>
                                    <artifactId>solr-webapp</artifactId>
                                    <version>4.0-2010-12-15_08-06-00</version>
                                    <type>war</type>
                                    <overWrite>false</overWrite>
                                    <outputDirectory>${project.build.directory}/solr</outputDirectory>
                                </artifactItem>
                            </artifactItems>
                            <overWriteReleases>false</overWriteReleases>
                            <overWriteSnapshots>true</overWriteSnapshots>
                        </configuration>
                    </execution>
		    <execution>
		      <id>unpack-dependencies</id>
		      <phase>generate-sources</phase>
		      <goals>
			<goal>unpack-dependencies</goal>
		      </goals>
		      <configuration>
			<includeArtifactIds>lsh-service</includeArtifactIds>
			<outputDirectory>${project.build.directory}/lsh-service</outputDirectory>
			<overWriteReleases>false</overWriteReleases>
			<overWriteSnapshots>true</overWriteSnapshots>
		      </configuration>
		    </execution>
                </executions>
            </plugin>

Reproducible: Always

Steps to Reproduce:
1. Make a pom with a plugin as in the details.
2. see two red 'x's
3. quick-fix and exclude for one
4. no more quick fix offers.
Comment 1 Igor Fedorenko CLA 2013-09-28 23:33:19 EDT
closing old/stale bugreports
Comment 2 Denis Roy CLA 2021-04-19 13:23:24 EDT
Moved to https://github.com/eclipse-m2e/m2e-core/issues/