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 ...)

        Activity

        Hide
        Mohan K added a comment -

        Seeing the same thing..any news on fix

        Show
        Mohan K added a comment - Seeing the same thing..any news on fix
        Hide
        brianfox brianfox added a comment -

        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
        brianfox brianfox added a comment - 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
        Justin Edelson added a comment -

        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 - 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
          • Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated: