dev@glassfish.java.net

RE: building Glassfish 3.1.2 from source using maven

From: peter belbin <pbelbin_at_gmail.com>
Date: Sun, 18 Mar 2012 20:26:07 -0500

I believe I already have that in my setting.xml, which I include here:

 

<settings xmlns="http://maven.apache.org/SETTINGS/1.1.0"

  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

  xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.1.0

                      http://maven.apache.org/xsd/settings-1.1.0.xsd">

  <localRepository/>

  <interactiveMode/>

  <usePluginRegistry/>

  <offline/>

  <pluginGroups/>

  <servers/>

<mirrors>

        <mirror>

                <id>maven-central</id>

                <url>http://repo1.maven.org/maven2/</url>

                <mirrorOf>*,!eclipselink.repository</mirrorOf>

        </mirror>

</mirrors>

  <proxies/>

  <profiles>

<profile>

<id>gf-repo</id>

    <repositories>

        <repository>

                <id>maven2-repository.dev.java.net</id>

                <name>Java.net Repository for Maven</name>

                <url>http://download.java.net/maven/2/</url>

                <layout>default</layout>

 
<releases><enabled>true</enabled><updatePolicy>always</updatePolicy></releas
es>

 
<snapshots><enabled>true</enabled><updatePolicy>always</updatePolicy></snaps
hots>

        </repository>

        <repository>

            <id>eclipselink.repository</id>

            <name>EclipseLink Repo</name>

            <releases>

                <enabled>true</enabled>

<updatePolicy>always</updatePolicy>

            </releases>

            <snapshots>

                <enabled>false</enabled>

            </snapshots>

 
<url>http://download.eclipse.org/rt/eclipselink/maven.repo/</url>

            <layout>default</layout>

        </repository>

        <repository>

            <id>netbeans.repository</id>

            <name>Maven Repo containing NetBeans artifacts</name>

            <releases>

                <enabled>true</enabled>

<updatePolicy>always</updatePolicy>

            </releases>

            <snapshots>

                <enabled>false</enabled>

            </snapshots>

            <url>http://dev.nightlabs.org/maven-repository/repo/</url>

            <layout>default</layout>

        </repository>

    </repositories>

</profile>

  </profiles>

  <activeProfiles>

<activeProfile>gf-repo</activeProfile>

</activeProfiles>

 

 

 

 

From: Jane Young [mailto:jane.young_at_oracle.com]
Sent: Sunday, March 18, 2012 7:38 PM
To: dev_at_glassfish.java.net
Cc: peter belbin; 'Romain Grecourt'
Subject: Re: building Glassfish 3.1.2 from source using maven

 

Looks like it's not finding the netbeans artifacts.
Did you add the following repo in the profile:



 <repository>

            <id>netbeans.repository</id>

            <name>Maven Repo containing NetBeans artifacts</name>

            <releases>

                <enabled>true</enabled>

            </releases>

            <snapshots>

                <enabled>false</enabled>

            </snapshots>

            <url>http://dev.nightlabs.org/maven-repository/repo/
<http://dev.nightlabs.org/maven-repository/repo/%3c/url> </url>

            <layout>default</layout>

        </repository>


Please see:
https://wikis.oracle.com/display/GlassFish/FullBuildInstructions#FullBuildIn
structions-Unabletobuildbecausemaven.glassfish.orgisoffline

Thanks,
Jane


On 3/17/12 4:24 PM, peter belbin wrote:

Ok, so I'm still not there yet, building glassfish 3.1.2.

 

I am using JDK 6u30 with Maven 2.2.1.

 

Please help!

 

Here is what Maven is saying:

 

 

[ERROR] BUILD ERROR

[INFO]
------------------------------------------------------------------------

[INFO] Failed to resolve artifact.

 

Missing:

----------

1) org.netbeans.api:org-netbeans-modules-schema2beans:jar:RELEASE55

 

  Try downloading the file manually from the project website.

 

  Then, install it using the command:

      mvn install:install-file -DgroupId=org.netbeans.api
-DartifactId=org-netbeans-modules-schema2beans -Dversion=RELEASE55
-Dpackaging=jar -Dfile=/path/to/file

 

  Alternatively, if you host your own repository you can deploy the file
there:

      mvn deploy:deploy-file -DgroupId=org.netbeans.api
-DartifactId=org-netbeans-modules-schema2beans -Dversion=RELEASE55
-Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

 

  Path to dependency:

                1)
org.glassfish.main.external:schema2beans-repackaged:jar:3.1.2

                2)
org.netbeans.api:org-netbeans-modules-schema2beans:jar:RELEASE55

 

----------

1 required artifact is missing.

 

for artifact:

  org.glassfish.main.external:schema2beans-repackaged:jar:3.1.2

 

from the specified remote repositories:

  maven-central (http://repo1.maven.org/maven2/),

  eclipselink.repository
(http://download.eclipse.org/rt/eclipselink/maven.repo/)