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"
>
> 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>
>
> </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>
>