dev@glassfish.java.net

Re: building Glassfish 3.1.2 from source using maven

From: Jane Young <jane.young_at_oracle.com>
Date: Sun, 18 Mar 2012 17:37:51 -0700

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/</url>|
|||<layout>||default||</layout>|
|||</repository>|

Please see:
https://wikis.oracle.com/display/GlassFish/FullBuildInstructions#FullBuildInstructions-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/)
>