Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 361565 - No way to hide warning "maven-enforcer-plugin (goal "enforce") is ignored by m2e"
Summary: No way to hide warning "maven-enforcer-plugin (goal "enforce") is ignored by ...
Status: CLOSED WORKSFORME
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: m2e (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-20 11:34 EDT by Sébastien Vauclair CLA
Modified: 2021-04-19 13:23 EDT (History)
1 user (show)

See Also:


Attachments
sample project that demonstrates <ignore/> mapping (1.80 KB, application/xml)
2011-10-20 12:58 EDT, Igor Fedorenko CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sébastien Vauclair CLA 2011-10-20 11:34:05 EDT
Build Identifier: 20110916-0149

m2e version: 1.0.100.20110804-1717

The following plugin definition causes the m2e warning.
There is no way to tell m2e to not display this warning (explicit lifecycle-mapping does NOT do the trick).

      <plugin>
        <artifactId>maven-enforcer-plugin</artifactId>
        <version>1.0.1</version>
        <executions>
          <execution>
            <id>enforcer-execution</id>
            <goals>
              <goal>enforce</goal>
            </goals>
            <configuration>
              <rules>
                <requireJavaVersion>
                  <version>1.6.0</version>
                </requireJavaVersion>
                <requireMavenVersion>
                  <version>2.1</version>
                </requireMavenVersion>
                <requireReleaseDeps>
                  <message>message</message>
                  <onlyWhenRelease>true</onlyWhenRelease>
                </requireReleaseDeps>
              </rules>
            </configuration>
          </execution>
        </executions>
      </plugin>


Reproducible: Always

Steps to Reproduce:
0. Start from clean m2e project (no warning)
1. Add the plugin definition
2. Update Maven project configuration in m2e
3. The warning is displayed in Eclipse, no quick fix available (and no workaround possible)
Comment 1 Igor Fedorenko CLA 2011-10-20 12:58:24 EDT
Created attachment 205664 [details]
sample project that demonstrates <ignore/> mapping

Attached sample project does not have any enforcer-related workings when imported in current m2e 1.1.
Comment 2 Denis Roy CLA 2021-04-19 13:23:28 EDT
Moved to https://github.com/eclipse-m2e/m2e-core/issues/