From earlier note:
Note in the v3/pom.xml java.net repo is commented. Your
org.glassfish.api is sitting in glassfish repo of java.net. I've added
this repo (supposed to be in my settings.xml) in my settings.xml. Then
it worked.
By default, one does not have to have settings.xml with predefined
repos. As it was hardcoded in v3/pom.xml repos list.
This was the case earlier.
Ken Paulsen wrote:
> I am unable to build v3. Here's what I do:
>
> % rm -rf ~/.m2
> % svn up v3
> % cd v3
> % mvn install
>
> I immediately get:
>
> [INFO] Scanning for projects...
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] FATAL ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Error building POM (may not be this project's POM).
>
>
> Project ID: javax.ejb:ejb-alpha:jar:3.1-SNAPSHOT
>
> Reason: Cannot find parent: org.glassfish.api:api for project:
> javax.ejb:ejb-alpha:jar:3.1-SNAPSHOT for project
> javax.ejb:ejb-alpha:jar:3.1-SNAPSHOT
>
>
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Trace
> org.apache.maven.reactor.MavenExecutionException: Cannot find parent:
> org.glassfish.api:api for project:
> javax.ejb:ejb-alpha:jar:3.1-SNAPSHOT for project
> javax.ejb:ejb-alpha:jar:3.1-SNAPSHOT
> at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:378)
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:290)
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:280)
> 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.api:api for project:
> javax.ejb:ejb-alpha:jar:3.1-SNAPSHOT for project
> javax.ejb:ejb-alpha:jar:3.1-SNAPSHOT
> at
> org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMavenProjectBuilder.java:1261)
>
> at
> org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal(DefaultMavenProjectBuilder.java:747)
>
> at
> org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFileInternal(DefaultMavenProjectBuilder.java:479)
>
> at
> org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMavenProjectBuilder.java:200)
>
> at org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:553)
> at
> org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:467)
> at
> org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:527)
> at
> org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:527)
> at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:364)
> ... 11 more
> Caused by: org.apache.maven.project.ProjectBuildingException: POM
> 'org.glassfish.api:api' not found in repository: Unable to download
> the artifact from any repository
>
> org.glassfish.api:api:pom:2.0-SNAPSHOT
>
> from the specified remote repositories:
> central (http://repo1.maven.org/maven2)
> for project org.glassfish.api:api
> at
> org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:573)
>
> at
> org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMavenProjectBuilder.java:1257)
>
> ... 19 more
> Caused by:
> org.apache.maven.artifact.resolver.ArtifactNotFoundException: Unable
> to download the artifact from any repository
>
> org.glassfish.api:api:pom:2.0-SNAPSHOT
>
> from the specified remote repositories:
> central (http://repo1.maven.org/maven2)
>
> at
> org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:197)
>
> at
> org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:73)
>
> at
> org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:526)
>
> ... 20 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:324)
>
> at
> org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:185)
>
> ... 22 more
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 1 second
> [INFO] Finished at: Wed Aug 13 17:33:12 GMT 2008
> [INFO] Final Memory: 4M/8M
> [INFO]
> ------------------------------------------------------------------------
>
> Going to the ejb/ejb-api directory and doing "mvn install" gives the
> same error. The pom.xml in that location has:
>
> <parent>
> <groupId>org.glassfish.api</groupId>
> <artifactId>api</artifactId>
> <version>2.0-SNAPSHOT</version>
> </parent>
>
> This doesn't look correct...
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>