glassfish
  1. glassfish
  2. GLASSFISH-17545

cannot build glassfish 3.1.1 from sources (tag 3.1.1)

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Blocker Blocker
    • Resolution: Invalid
    • Affects Version/s: 3.1.1
    • Fix Version/s: None
    • Component/s: build_system
    • Labels:
      None
    • Environment:

      windows 7, 64 bit

      Description

      downloaded sources from https://svn.java.net/svn/glassfish~svn/tags/3.1.1
      called : mvn install
      got the following exception:

      [INFO] antlr.all version 2.7.6 repackaged as a module .... SUCCESS [0.727s]
      [INFO] support-sqlstore module for cmp ................... SUCCESS [11.676s]
      [INFO] support ejb module for cmp ........................ SUCCESS [8.311s]
      [INFO] GlassFish cmp scripts ............................. SUCCESS [0.058s]
      [INFO] CMP tier for GlassFish ............................ FAILURE [3.756s]
      [INFO] GlassFish Extras modules .......................... SKIPPED
      [INFO] GlassFish Grizzly adapter container implementation SKIPPED
      [INFO] GlassFish OSGi adapter to use OSGi modules as application code SKIPPED

      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 2:21.542s
      [INFO] Finished at: Tue Nov 01 08:54:54 CET 2011
      [INFO] Final Memory: 172M/1922M
      [INFO] ------------------------------------------------------------------------
      [ERROR] Failed to execute goal on project cmp-all: Could not resolve dependencies for project org.glassfish.persistence.cmp:cmp-all:pom:3.1.1: Could not find artifact org.glassfish.persistence.cmp:cmp-scripts:distribution-fragment:3.1.1 in glassfish-repo-archive (http://maven.glassfish.org/content/groups/glassfish)

        Activity

        Hide
        Joe Di Pol added a comment -

        worked with proper mvn version

        Show
        Joe Di Pol added a comment - worked with proper mvn version
        Hide
        scatari added a comment -

        GlassFish 3.1.2 does not support maven 3.0.x.

        Show
        scatari added a comment - GlassFish 3.1.2 does not support maven 3.0.x.
        Hide
        Veit Ullmann added a comment -

        Thank you, that worked!!!

        Show
        Veit Ullmann added a comment - Thank you, that worked!!!
        Hide
        Veit Ullmann added a comment -

        I used maven 3.0.3, o.k., I will try it with maven 2.2.1

        Show
        Veit Ullmann added a comment - I used maven 3.0.3, o.k., I will try it with maven 2.2.1
        Hide
        Snjezana Sevo-Zenzerovic added a comment -

        Which Maven version is being used? IIRC, this was the same error we were running into with 3.1.1 workspace and Maven 3.x since distribution-fragment type modules were not being correctly resolved. Fix went into trunk workspace but 3.1.1 tag would still have the same issue. If that is the case, you'll need to build using Maven 2.2.x.

        Show
        Snjezana Sevo-Zenzerovic added a comment - Which Maven version is being used? IIRC, this was the same error we were running into with 3.1.1 workspace and Maven 3.x since distribution-fragment type modules were not being correctly resolved. Fix went into trunk workspace but 3.1.1 tag would still have the same issue. If that is the case, you'll need to build using Maven 2.2.x.
        Hide
        Veit Ullmann added a comment -

        I tried building with "mvn -Prelease-phase1 install" first and then "mvn install".

        This is the original error:

        [ERROR] Failed to execute goal on project ejb-all: Could not resolve dependencies for project org.glassfish.ejb:ejb-all:pom:3.1.1: Could not find artifact org.glassfish.ejb:ejb-timer-databases:distribution-fragment:3.1.1 in glassfish-repo-archive (http://maven.glassfish.org/content/groups/glassfish) -> [Help 1]

        I just commented the ejb-timer-databases:distribution-fragment in pom.xml of ejb-all and got the error with cmp-scripts:distribution-fragment:3.1.1.

        The distribution-fragments seem to be the reasons for the problems, but how to fix this?

        Show
        Veit Ullmann added a comment - I tried building with "mvn -Prelease-phase1 install" first and then "mvn install". This is the original error: [ERROR] Failed to execute goal on project ejb-all: Could not resolve dependencies for project org.glassfish.ejb:ejb-all:pom:3.1.1: Could not find artifact org.glassfish.ejb:ejb-timer-databases:distribution-fragment:3.1.1 in glassfish-repo-archive ( http://maven.glassfish.org/content/groups/glassfish ) -> [Help 1] I just commented the ejb-timer-databases:distribution-fragment in pom.xml of ejb-all and got the error with cmp-scripts:distribution-fragment:3.1.1. The distribution-fragments seem to be the reasons for the problems, but how to fix this?
        Hide
        janey added a comment -

        can you try building with "mvn -Prelease-phase1 install" first and then "mvn install".

        Jane

        Show
        janey added a comment - can you try building with "mvn -Prelease-phase1 install" first and then "mvn install". Jane
        Hide
        Veit Ullmann added a comment -

        [INFO] — maven-bundle-plugin:2.0.1:manifest (bundle-manifest) @ ejb-timer-databases —
        [WARNING] Ignoring project type distribution-fragment - supportedProjectTypes = [hk2-jar, bundle]
        [INFO]

        Show
        Veit Ullmann added a comment - [INFO] — maven-bundle-plugin:2.0.1:manifest (bundle-manifest) @ ejb-timer-databases — [WARNING] Ignoring project type distribution-fragment - supportedProjectTypes = [hk2-jar, bundle] [INFO]

          People

          • Assignee:
            Unassigned
            Reporter:
            Veit Ullmann
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: