dev@glassfish.java.net

Re: building Glassfish 3.1.2 from source using maven

From: Jane Young <jane.young_at_oracle.com>
Date: Tue, 13 Mar 2012 13:52:06 -0700

Hi Peter,

You could use Maven 3.x for building GlassFish trunk workspace.
For GlassFish 3.x workspace, you need to use Maven 2.2.1.

I just updated the wiki page.

Thanks for pointing this out.

Jane


On 3/13/12 12:32 PM, peter belbin wrote:
>
> That's not what is said here:
> https://wikis.oracle.com/display/GlassFish/FullBuildInstructions
>
> It clearly says:
>
> *Maven version*
>
> You can use Maven 3.0.3.
>
> Please explain.
>
> Regards,
>
> Peter
>
> *From:*Romain Grecourt [mailto:romain.grecourt_at_oracle.com]
> *Sent:* Tuesday, March 13, 2012 4:57 AM
> *To:* dev_at_glassfish.java.net
> *Cc:* peter belbin
> *Subject:* Re: building Glassfish 3.1.2 from source using maven
>
> Peter,
>
> You can't use maven-3 to build GlassFish 3.x.
>
> "org.glassfish.main.ejb:ejb-timer-databases:distribution-fragment:3.1.2"
> does not exist, however
> "org.glassfish.main.ejb:ejb-timer-databases:*zip*:3.1.2" exist.
> This issue happen to you because you are using maven-3.
>
> Thanks,
> Romain
>
> On 03/13/2012 04:25 AM, peter belbin wrote:
>
> Ok, well, I've made 'some' progress with this.
>
> Using JDK 6u30 and maven 3.0.2.
>
> However, I am currently running into this issue:
>
> [INFO]
> ------------------------------------------------------------------------
>
> [ERROR] Failed to execute goal on project ejb-all: Could not resolve
> dependencies for project org.glassfish.main.ejb:ejb-all:pom:3.1.2:
> Could not find artifact
> org.glassfish.main.ejb:ejb-timer-databases:distribution-fragment:3.1.2
> in maven-central (http://repo1.maven.org/maven2/) -> [Help 1]
>
> [ERROR]
>
> It would be really nice if the location of the various dependencies
> were actually published somewhere!
>
> I have tried a few searches, but, am really having a difficult time
> locating this one.
>
> So, please help!
>
> Regards,
>
> Peter Belbin
>
> By the way, here is what I have in my maven settings.xml file:
>
> <settings xmlns="http://maven.apache.org/SETTINGS/1.1.0"
> <http://maven.apache.org/SETTINGS/1.1.0>
>
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> <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>
>
> </releases>
>
> <snapshots>
>
> <enabled>true</enabled>
>
> <updatePolicy>always</updatePolicy>
>
> </snapshots>
>
> </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>
>
> </settings>
>