Hum, did you do a mvn install in the community folder?
Ok, I'm using the version of "hello" that checks out as
geoserver-1.5.0-rc2/geoserver/community/hello
mvn install in the community folder gives the output below. Should I be
looking to change the version number in the community pom?
////////////////////////////////////////////////////////////////////////
///////
[INFO] Scanning for projects...
[INFO]
------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Failed to resolve artifact.
GroupId: org.geoserver
ArtifactId: geoserver
Version: 1.6-SNAPSHOT
Reason: Unable to download the artifact from any repository
org.geoserver:geoserver:pom:1.6-SNAPSHOT
from the specified remote repositories:
central (http://repo1.maven.org/maven2)
[INFO]
------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.reactor.MavenExecutionException: Cannot find parent:
org.geoser
ver:geoserver for project: org.geoserver:community:pom:1.6-SNAPSHOT
at
org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:365)
at
org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:278)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
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.geoserver:geoserver for project:
org.geoserver:community:pom:1.6-SNAPSHOT
at
org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(D
efaultMavenProjectBuilder.java:1161)
at
org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(D
efaultMavenProjectBuilder.java:1176)
at
org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal(Def
aultMavenProjectBuilder.java:674)
at
org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFi
leInternal(DefaultMavenProjectBuilder.java:416)
at
org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMave
nProjectBuilder.java:192)
at
org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:515)
at
org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:447)
at
org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:491)
at
org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:351)
... 11 more
Caused by: org.apache.maven.project.ProjectBuildingException: POM
'org.geoserver
:geoserver' not found in repository: Unable to download the artifact
from any re
pository
org.geoserver:geoserver:pom:1.6-SNAPSHOT
from the specified remote repositories:
central (http://repo1.maven.org/maven2)
at
org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepo
sitory(DefaultMavenProjectBuilder.java:513)
at
org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(D
efaultMavenProjectBuilder.java:1157)
... 19 more
Caused by: org.apache.maven.artifact.resolver.ArtifactNotFoundException:
Unable
to download the artifact from any repository
org.geoserver:geoserver:pom:1.6-SNAPSHOT
from the specified remote repositories:
central (http://repo1.maven.org/maven2)
at
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(De
faultArtifactResolver.java:136)
at
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(De
faultArtifactResolver.java:63)
at
org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepo
sitory(DefaultMavenProjectBuilder.java:467)
... 20 more
Caused by: org.apache.maven.wagon.ResourceDoesNotExistException: Unable
to downl
oad the artifact from any repository
at
org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact(Def
aultWagonManager.java:260)
at
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(De
faultArtifactResolver.java:124)
... 22 more
[INFO]
------------------------------------------------------------------------
[INFO] Total time: < 1 second
[INFO] Finished at: Tue Mar 27 12:11:20 BST 2007
[INFO] Final Memory: 1M/3M
[INFO]
------------------------------------------------------------------------
Jerry.
-----Original Message-----
From: Andrea Aime [mailto:aaime@anonymised.com]
Sent: 27 March 2007 10:34
To: Swan Jerry
Cc: Justin Deoliveira; Geoserver-devel
Subject: Re: [Geoserver-devel] "A Simple Plugin" example possible
without Geoserver build?
Swan Jerry ha scritto:
Thats too bad about not being able to build GeoServer from sources.
The possibility that it's because I'm doing something stupid is ever
presentLet me know if you have any problems.
Following the tutorial verbatim (but removing the text "ur file
system"
from line 11 of pom.xml), mvn install gives me the following:
///////////////////////////////////////////////////////////////
[INFO] Scanning for projects...
Downloading:
http://repository.codehaus.org//org/geoserver/community/1.4.0-M0/co
mmunity-1.4.0-M0.pom
[WARNING] Unable to get resource from repository codehaus
(http://repository.cod
ehaus.org/)
Downloading:
http://repo1.maven.org/maven2/org/geoserver/community/1.4.0-M0/comm
unity-1.4.0-M0.pom
[WARNING] Unable to get resource from repository central
(http://repo1.maven.org
/maven2)
[INFO]
----------------------------------------------------------------------
--
[ERROR] FATAL ERROR
[INFO]
----------------------------------------------------------------------
--
[INFO] Failed to resolve artifact.GroupId: org.geoserver
ArtifactId: community
Version: 1.4.0-M0Reason: Unable to download the artifact from any repository
org.geoserver:community:pom:1.4.0-M0
Hum, did you do a mvn install in the community folder?
If not, you need to, if yes, the pom.xml in that folder has probably a
wrong version number?
Cheers
Andrea
This message has been checked for viruses but the contents of an attachment
may still contain software viruses, which could damage your computer system:
you are advised to perform your own checks. Email communications with the
University of Nottingham may be monitored as permitted by UK legislation.