[Geoserver-devel] "A Simple Plugin" example possible without Geoserver build?

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
present :wink:

Let 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-M0

Reason: Unable to download the artifact from any repository

  org.geoserver:community:pom:1.4.0-M0

from the specified remote repositories:
  central (http://repo1.maven.org/maven2),
  codehaus (http://repository.codehaus.org/)

[INFO]
------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.reactor.MavenExecutionException: Cannot find parent:
org.geoser
ver:community for project: org.geoserver:hello:jar:1.0
        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:community for project: org.geoserver:hello:jar:1.0
        at
org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(D
efaultMavenProjectBuilder.java:1161)
        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.getProjects(DefaultMaven.java:351)
        ... 11 more
Caused by: org.apache.maven.project.ProjectBuildingException: POM
'org.geoserver
:community' not found in repository: Unable to download the artifact
from any re
pository

  org.geoserver:community:pom:1.4.0-M0

from the specified remote repositories:
  central (http://repo1.maven.org/maven2),
  codehaus (http://repository.codehaus.org/)

        at
org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepo
sitory(DefaultMavenProjectBuilder.java:513)
        at
org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(D
efaultMavenProjectBuilder.java:1157)
        ... 17 more
Caused by: org.apache.maven.artifact.resolver.ArtifactNotFoundException:
Unable
to download the artifact from any repository

  org.geoserver:community:pom:1.4.0-M0

from the specified remote repositories:
  central (http://repo1.maven.org/maven2),
  codehaus (http://repository.codehaus.org/)

        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)
        ... 18 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)
        ... 20 more
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 3 seconds
[INFO] Finished at: Tue Mar 27 10:05:01 BST 2007
[INFO] Final Memory: 1M/2M
[INFO]
------------------------------------------------------------------------

Jerry.

-----Original Message-----
From: Justin Deoliveira [mailto:jdeolive@anonymised.com]
Sent: 26 March 2007 17:13
To: Swan Jerry
Cc: Geoserver-devel
Subject: Re: [Geoserver-devel] "A Simple Plugin" example possible
without Geoserver build?

Hi Jerry,

Thats too bad about not being able to build GeoServer from sources. From
your previous messages it seems that you are building the trunk sources.

The tutorial listed below works against the 1.5.x version of geoserver
and below and seems to be written against 1.4.x.

You should not need to build geoserver sources to run the tutorial. The
version ( 1.4.0-M0 ) of which the tutorial is written against is posted
is available in the maven repository ( specified in the pom in the
tutorial ). So all the geoserver binaries will be downloaded when you
compile your plugin.

Let me know if you have any problems.

-Justin

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.

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
present :wink:

Let 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-M0

Reason: 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

Hi Jerry,

It looks like the when I uploaded the poms to the maven repository i did not include the community ones. I am fixing that now.

[INFO] Failed to resolve artifact.

GroupId: org.geoserver
ArtifactId: community
Version: 1.4.0-M0

Reason: Unable to download the artifact from any repository

  org.geoserver:community:pom:1.4.0-M0

from the specified remote repositories:
  central (http://repo1.maven.org/maven2),
  codehaus (http://repository.codehaus.org/)

[INFO]
------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.reactor.MavenExecutionException: Cannot find parent:
org.geoser
ver:community for project: org.geoserver:hello:jar:1.0
        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:community for project: org.geoserver:hello:jar:1.0
        at
org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(D
efaultMavenProjectBuilder.java:1161)
        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.getProjects(DefaultMaven.java:351)
        ... 11 more
Caused by: org.apache.maven.project.ProjectBuildingException: POM
'org.geoserver
:community' not found in repository: Unable to download the artifact
from any re
pository

  org.geoserver:community:pom:1.4.0-M0

from the specified remote repositories:
  central (http://repo1.maven.org/maven2),
  codehaus (http://repository.codehaus.org/)

        at
org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepo
sitory(DefaultMavenProjectBuilder.java:513)
        at
org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(D
efaultMavenProjectBuilder.java:1157)
        ... 17 more
Caused by: org.apache.maven.artifact.resolver.ArtifactNotFoundException:
Unable
to download the artifact from any repository

  org.geoserver:community:pom:1.4.0-M0

from the specified remote repositories:
  central (http://repo1.maven.org/maven2),
  codehaus (http://repository.codehaus.org/)

        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)
        ... 18 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)
        ... 20 more
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 3 seconds
[INFO] Finished at: Tue Mar 27 10:05:01 BST 2007
[INFO] Final Memory: 1M/2M
[INFO]
------------------------------------------------------------------------

Jerry.

-----Original Message-----
From: Justin Deoliveira [mailto:jdeolive@anonymised.com] Sent: 26 March 2007 17:13
To: Swan Jerry
Cc: Geoserver-devel
Subject: Re: [Geoserver-devel] "A Simple Plugin" example possible
without Geoserver build?

Hi Jerry,

Thats too bad about not being able to build GeoServer from sources. From
your previous messages it seems that you are building the trunk sources.

The tutorial listed below works against the 1.5.x version of geoserver
and below and seems to be written against 1.4.x.

You should not need to build geoserver sources to run the tutorial. The
version ( 1.4.0-M0 ) of which the tutorial is written against is posted
is available in the maven repository ( specified in the pom in the
tutorial ). So all the geoserver binaries will be downloaded when you
compile your plugin.

Let me know if you have any problems.

-Justin

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.

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

--
Justin Deoliveira
The Open Planning Project
http://topp.openplans.org