Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 345861

Summary: m2e confused by multiple executions
Product: z_Archived Reporter: benson margulies <bimargulies>
Component: m2eAssignee: Project Inbox <m2e.core-inbox>
Status: CLOSED INVALID QA Contact:
Severity: normal    
Priority: P3 CC: igor
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

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/