jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
Signup
Maven Integration for Eclipse
  • Maven Integration for Eclipse
  • MNGECLIPSE-768

[mng] fail to run enforcer plugin

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Open Open
  • Priority: Minor Minor
  • Resolution: Unresolved
  • Affects Version/s: 0.9.5
  • Fix Version/s: None
  • Component/s: Maven Embedder
  • Labels:
    None
  • Environment:
    eclipse 3.4 windows
    maven 2.0.9
    m2eclipse 0.9.5
  • Testcase included:
    yes
  • Number of attachments :
    1

Description

Attached project demonstrates the issue.

Here is the result I get in m2eclipse console :

 
22/07/08 16:34:58 CEST: Generating sources /test/pom.xml
22/07/08 16:34:58 CEST: [INFO] Scanning for projects...
22/07/08 16:34:59 CEST: [WARN] Attempting to build MavenProject instance for Artifact (org.apache.maven.plugins:maven-enforcer-plugin:1.0-20080605.105126-11) of type: maven-plugin; constructing POM artifact instead.
22/07/08 16:34:59 CEST: [INFO] ------------------------------------------------------------------------
22/07/08 16:34:59 CEST: [INFO] Building test
22/07/08 16:34:59 CEST: [INFO] 
22/07/08 16:34:59 CEST: [INFO] Id: test:test:jar:1-SNAPSHOT
22/07/08 16:34:59 CEST: [INFO] task-segment: [process-resources]
22/07/08 16:34:59 CEST: [INFO] ------------------------------------------------------------------------
22/07/08 16:34:59 CEST: [WARN] Attempting to build MavenProject instance for Artifact (org.apache.maven.plugins:maven-enforcer-plugin:1.0-20080605.105126-11) of type: maven-plugin; constructing POM artifact instead.
22/07/08 16:34:59 CEST: [WARN] Attempting to build MavenProject instance for Artifact (org.apache.maven.plugins:maven-enforcer-plugin:1.0-20080605.105126-11) of type: maven-plugin; constructing POM artifact instead.
22/07/08 16:35:00 CEST: [WARN] Attempting to build MavenProject instance for Artifact (org.apache.maven.plugins:maven-enforcer-plugin:1.0-20080605.105126-11) of type: maven-plugin; constructing POM artifact instead.
22/07/08 16:35:00 CEST: [INFO] [enforcer:enforce]
22/07/08 16:35:00 CEST: Unable to update source folders test; java.lang.NullPointerException

The resulting java project has no maven structure but eclipse default one(source folder = project root, compile to bin ...)

  • Options
    • Sort By Name
    • Sort By Date
    • Ascending
    • Descending
    • Download All

Attachments

  1. Hide
    Zip Archive
    enforcer-issue.zip
    22/Jul/08 9:38 AM
    1 kB
    nicolas de loof
    1. XML File
      pom.xml 2 kB
    Download Zip
    Show
    Zip Archive
    enforcer-issue.zip
    22/Jul/08 9:38 AM
    1 kB
    nicolas de loof

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Mohan K added a comment - 01/Jan/09 1:38 PM

Seeing the same thing..any news on fix

Show
Mohan K added a comment - 01/Jan/09 1:38 PM Seeing the same thing..any news on fix
Hide
Permalink
Brian Fox added a comment - 06/Jan/09 10:46 AM

I fixed the enforcer to simply skip with a warning since it's not compatible yet with the new maven. The latest snapshot should work, we'll be doing a release in the near future. Just waiting on some book keeping maven pom releases etc.

Show
Brian Fox added a comment - 06/Jan/09 10:46 AM I fixed the enforcer to simply skip with a warning since it's not compatible yet with the new maven. The latest snapshot should work, we'll be doing a release in the near future. Just waiting on some book keeping maven pom releases etc.
Hide
Permalink
Justin Edelson added a comment - 06/Jan/09 12:04 PM

So I'll need to update my poms to refer to the next version of maven-enforcer-plugin (1.0-alpha-5 I'd guess)?

Show
Justin Edelson added a comment - 06/Jan/09 12:04 PM So I'll need to update my poms to refer to the next version of maven-enforcer-plugin (1.0-alpha-5 I'd guess)?

People

  • Assignee:
    Unassigned
    Reporter:
    nicolas de loof
Vote (2)
Watch (4)

Dates

  • Created:
    22/Jul/08 9:38 AM
    Updated:
    06/Jan/09 12:04 PM
  • Atlassian JIRA (v5.2.7#850-sha1:b2af0c8)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.