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

By following the advice in Andrea's last reply, I'm happy to say that
I've successfully built the hello example using the 1.5.x checkout she
described.

Presumably the next step is for me to get the hello example working
using Eclipse...?

In the light of this, would it be better for me in the longer term to be
working with geoserver-1.5.0-rc2 (as per the discussion below), or
should I stick with what I've got working?

Jerry.

-----Original Message-----
From: Justin Deoliveira [mailto:jdeolive@anonymised.com]
Sent: 27 March 2007 18:09
To: Swan Jerry
Cc: Andrea Aime; geoserver-devel@lists.sourceforge.net
Subject: Re: [Geoserver-devel] "A Simple Plugin" example possible
without Geoserver build?

Hi Jerry,

I have made sure all the necessary dependencies are in the repository
now. I also made a small modification to the pom in the tutorial to add
the refractions repository.

-Justin

Swan Jerry wrote:

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

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=DEV
DEV _______________________________________________
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

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:

By following the advice in Andrea's last reply, I'm happy to say that
I've successfully built the hello example using the 1.5.x checkout she
described.

He described :-p (ha ha, you're not the first one, and you won't be the last one either, but yeah, in Italy Andrea is used only for men).

Presumably the next step is for me to get the hello example working
using Eclipse...?

In the light of this, would it be better for me in the longer term to be
working with geoserver-1.5.0-rc2 (as per the discussion below), or
should I stick with what I've got working?

I suggest you stick with the 1.5.x branch, since that's basically in
mantainance mode already, that is, only bug fixes and minor new features will land there.

Cheers
Andrea