glassfish
  1. glassfish
  2. GLASSFISH-20845

Unable to build 4.0.1-SNAPSHOT with Maven on Mountain Lion using Oracle Java7

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Invalid
    • Affects Version/s: 4.0
    • Fix Version/s: None
    • Component/s: build_system
    • Labels:
      None
    • Environment:

      Description

      Following the directions provided at https://wikis.oracle.com/display/GlassFish/FullBuildInstructions, and with an initially empty local Maven repository, I am unable to build Glassfish from a clean checkout of the source trunk as at revision 62773.
      Using "mvn clean install", the build fails while attempting to satisfy dependencies of the "ejb-container" child module.
      Specifically:

      [ERROR] Failed to execute goal on project ejb-container: Could not resolve dependencies for project org.glassfish.main.ejb:ejb-container:glassfish-jar:4.0.1-SNAPSHOT: Could not find artifact org.glassfish.metro:webservices-api-osgi:jar:2.3.1-b111 in maven-central (http://repo1.maven.org/maven2/) -> [Help 1]

      Both the POM and JAR are unavailable and it is not clear if or where the source for this dependency might reside within the glassfish~svn repository:

      [INFO] ------------------------------------------------------------------------
      [INFO] Building GlassFish Core EJB container implementation 4.0.1-SNAPSHOT
      [INFO] ------------------------------------------------------------------------
      Downloading: http://repo1.maven.org/maven2/org/glassfish/metro/webservices-api-osgi/2.3.1-b111/webservices-api-osgi-2.3.1-b111.pom
      [WARNING] The POM for org.glassfish.metro:webservices-api-osgi:jar:2.3.1-b111 is missing, no dependency information available
      Downloading: http://repo1.maven.org/maven2/org/glassfish/metro/webservices-api-osgi/2.3.1-b111/webservices-api-osgi-2.3.1-b111.jar

        Activity

        Hide
        Romain Grécourt added a comment -

        Can you share your mirroring configuration ?

        There is no settings.xml requirement to build the GlassFish trunk.
        The advised configuration is the only way to workaround the references to the maven.glassfish.org, and is only required to build 3.x workspaces.

        Show
        Romain Grécourt added a comment - Can you share your mirroring configuration ? There is no settings.xml requirement to build the GlassFish trunk. The advised configuration is the only way to workaround the references to the maven.glassfish.org, and is only required to build 3.x workspaces.
        Hide
        Dave Whitla added a comment -

        Hi Romain,

        I apologise I've been unable to respond sooner.

        <mirrors>
        <mirror>
        <id>maven-central</id>
        <url>http://repo1.maven.org/maven2/</url>
        <mirrorOf>*,!eclipselink.repository</mirrorOf>
        </mirror>
        </mirrors>

        Show
        Dave Whitla added a comment - Hi Romain, I apologise I've been unable to respond sooner. <mirrors> <mirror> <id>maven-central</id> <url> http://repo1.maven.org/maven2/ </url> <mirrorOf>*,!eclipselink.repository</mirrorOf> </mirror> </mirrors>
        Hide
        Romain Grécourt added a comment -

        Ok, that's what I expected.
        You can use the following, or no mirroring at all:

         <mirrors>
            <mirror>
              <id>maven-central</id>
              <url>http://repo1.maven.org/maven2/</url>
              <mirrorOf>*,!eclipselink.repository,!jvnet-nexus-promoted</mirrorOf>
            </mirror>
          </mirrors>
        

        I've updated the documentation at https://wikis.oracle.com/display/GlassFish/FullBuildInstructions, this is the advised configuration for mirroring now, however note it's only required to build GlassFish 3.x

        Please, try with or without the new mirroring and let me know if it's working, I will close this issue then.

        Thanks.

        Show
        Romain Grécourt added a comment - Ok, that's what I expected. You can use the following, or no mirroring at all: <mirrors> <mirror> <id>maven-central</id> <url>http://repo1.maven.org/maven2/</url> <mirrorOf>*,!eclipselink.repository,!jvnet-nexus-promoted</mirrorOf> </mirror> </mirrors> I've updated the documentation at https://wikis.oracle.com/display/GlassFish/FullBuildInstructions , this is the advised configuration for mirroring now, however note it's only required to build GlassFish 3.x Please, try with or without the new mirroring and let me know if it's working, I will close this issue then. Thanks.
        Hide
        Dave Whitla added a comment -

        Thanks Romain,

        Finally had time to progress my GFv4 stuff today.
        By ignoring the old documentation the build does indeed complete successfully.

        If I were being pedantic I'd resolve as a documentation error rather than invalid.

        Show
        Dave Whitla added a comment - Thanks Romain, Finally had time to progress my GFv4 stuff today. By ignoring the old documentation the build does indeed complete successfully. If I were being pedantic I'd resolve as a documentation error rather than invalid.

          People

          • Assignee:
            Romain Grécourt
            Reporter:
            Dave Whitla
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: