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

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.

Swan Jerry ha scritto:

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?

That version, if updated, will look for org.geoserver:geoserver:pom:1.5.0-rc3. The one that looks for 1.6 is the
one coming from trunk, so I guess you mistake one version for another.

The tutorial has been written at the 1.4 times, so if you want to follow
it without any adaptation you better not use trunk (which is reserved for developers for heavy hacking, it's not by any means something a user
should touch).

I warmly suggest you do try to follow the tutorial with a 1.5.x checkout:
svn co https://svn.codehaus.org/geoserver/branches/1.5.x/geoserver geoserver1.5.x

(I left out the configuration directory so that the checkout will be quick).
As far as I can see the tutorial has been updated to match Geoserver 1.5.x.

Cheers
Andrea

////////////////////////////////////////////////////////////////////////
///////

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

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