Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 350443 - Quickfix for lifecycle mapping ignore does not always work
Summary: Quickfix for lifecycle mapping ignore does not always work
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: m2e (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-27 09:29 EDT by Ulli Hafner CLA
Modified: 2021-04-19 13:24 EDT (History)
2 users (show)

See Also:


Attachments
Screenshot (56.42 KB, image/png)
2011-06-27 09:30 EDT, Ulli Hafner CLA
no flags Details
Exception thrown when starting quick fix (5.42 KB, text/x-log)
2011-06-28 05:26 EDT, Ulli Hafner CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ulli Hafner CLA 2011-06-27 09:29:57 EDT
Build Identifier: I20110613-1736

While most times the quick fixes to ignore a lifecyle mapping works (and the dialog is opened), for one error I can't get the quickfix to open the corresponding dialog. Attached is a screenshot: here you see that I select the quickfix 'Permanently ignore ...'. However, after selecting the quickfix, nothing happens. No dialog is shown. (This worked for other lifecycle goals).

Reproducible: Always
Comment 1 Ulli Hafner CLA 2011-06-27 09:30:17 EDT
Created attachment 198647 [details]
Screenshot
Comment 2 Milos Kleint CLA 2011-06-27 09:31:56 EDT
anything in the error log?
Comment 3 Ulli Hafner CLA 2011-06-27 09:59:55 EDT
No, the log is empty. I finally ended up to manually edit the pom to add the ignore section.
Comment 4 Ulli Hafner CLA 2011-06-28 05:24:51 EDT
I found another problem where the quickfix does nothing. Here, even manual edition of the pom does not work:

I'm deriving from a parent pom that contains the following plug-in definition for the maven-enforcer-plugin plug-in:

    <plugins>
      <plugin>
        <artifactId>maven-enforcer-plugin</artifactId>
        <version>${maven-enforcer-plugin.version}</version>
        <executions>
          <execution>
            <phase>validate</phase>
            <goals>
              <goal>display-info</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
Comment 5 Ulli Hafner CLA 2011-06-28 05:26:43 EDT
Created attachment 198710 [details]
Exception thrown when starting quick fix
Comment 6 Igor Fedorenko CLA 2011-08-03 08:10:41 EDT
Should be fixed now. http://git.eclipse.org/c/m2e/m2e-core.git/commit/?id=9b0f9f606581c7e5385cdcf01cdaa90b1ce63fad


There were two unrelated problems, one caused by incorrect interpretation of ${property} versions in plugin versions as mentioned in comment 4 and another caused by use of uninitialized MavenProject cache (only happens right after workspace restart so was tricky to reproduce).
Comment 7 Denis Roy CLA 2021-04-19 13:24:28 EDT
Moved to https://github.com/eclipse-m2e/m2e-core/issues/