Forwarding to a larger team....
-------- Original Message --------
Subject: how do I build dev test util classes?
Date: Mon, 20 Jun 2011 21:11:04 -0400
From: Bobby Bissett <bobby.bissett_at_oracle.com>
Reply-To: admin_at_glassfish.java.net
To: admin_at_glassfish.java.net
How do I build BaseDevTest? You'd think that pom.xml would mean I use
maven, but that didn't work out. This is after checking out the tests with:
svn co
https://svn.java.net/svn/glassfish~svn/trunk/v2/appserv-tests
---output---
hostname% pwd
/Users/bobby/work/ws/appserv-tests/util/reportbuilder
hostname% svn status
M src/main/java/com/sun/appserv/test/BaseDevTest.java
hostname% mvn install
[INFO] Scanning for projects...
[INFO]
------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Error building POM (may not be this project's POM).
Project ID: org.glassfish.devtests:report-builder:jar:null
Reason: Cannot find parent: org.glassfish:glassfish-parent for project:
org.glassfish.devtests:report-builder:jar:null for project
org.glassfish.devtests:report-builder:jar:null
[INFO]
------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.reactor.MavenExecutionException: Cannot find parent:
org.glassfish:glassfish-parent for project:
org.glassfish.devtests:report-builder:jar:null for project
org.glassfish.devtests:report-builder:jar:null
at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:404)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:272)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
at
org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.project.ProjectBuildingException: Cannot
find parent: org.glassfish:glassfish-parent for project:
org.glassfish.devtests:report-builder:jar:null for project
org.glassfish.devtests:report-builder:jar:null
at
org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMavenProjectBuilder.java:1396)
at
org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal(DefaultMavenProjectBuilder.java:823)
at
org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFileInternal(DefaultMavenProjectBuilder.java:508)
at
org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMavenProjectBuilder.java:200)
at org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:604)
at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:487)
at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:391)
... 12 more
Caused by: org.apache.maven.project.ProjectBuildingException: POM
'org.glassfish:glassfish-parent' not found in repository: Unable to
download the artifact from any repository
org.glassfish:glassfish-parent:pom:3.1-SNAPSHOT
from the specified remote repositories:
central (
http://repo1.maven.org/maven2)
for project org.glassfish:glassfish-parent
at
org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:605)
at
org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMavenProjectBuilder.java:1392)
... 18 more
Caused by: org.apache.maven.artifact.resolver.ArtifactNotFoundException:
Unable to download the artifact from any repository
org.glassfish:glassfish-parent:pom:3.1-SNAPSHOT
from the specified remote repositories:
central (
http://repo1.maven.org/maven2)
at
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:228)
at
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:90)
at
org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:558)
... 19 more
Caused by: org.apache.maven.wagon.ResourceDoesNotExistException: Unable
to download the artifact from any repository
at
org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact(DefaultWagonManager.java:404)
at
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:216)
... 21 more
[INFO]
------------------------------------------------------------------------
[INFO] Total time:< 1 second
[INFO] Finished at: Mon Jun 20 21:09:08 EDT 2011
[INFO] Final Memory: 2M/81M
[INFO]
------------------------------------------------------------------------