[Geoserver-devel] make an eclipse projet from source with maven

Hello,

I have download the geoserver-1.7.6’s source and I try to make an eclipse project with maven but I don’t know maven and I have some errors:

I try :

mvn -e eclipse:ecipse

And I have :

[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Required goal not found: eclipse:ecipse in org.apache.maven.plugins:maven-eclipse-plugin:2.7
[INFO] ------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.BuildFailureException: Required goal not found: eclipse:ecipse in org.apache.maven.plugins:maven-eclipse-plugin:2.7

I try :

maven install

response:

[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Cannot execute mojo: resources. It requires a project with an existing pom.xml, but the build is not using one.

Thanks for your help.

Jim

It looks like you are not in the "src" directory. If the root of your checkout looks like:

data/
doc/
src/

cd into "src" and try the commands again. The directory you execute the maven command from should have a pom.xml file.

Hope that helps.

-Justin

Jimmy Aumard wrote:

Hello,

I have download the geoserver-1.7.6's source and I try to make an eclipse project with maven but I don't know maven and I have some errors:

I try :

mvn -e eclipse:ecipse

And I have :

[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Required goal not found: eclipse:ecipse in org.apache.maven.plugins:maven-eclipse-plugin:2.7
[INFO] ------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.BuildFailureException: Required goal not found: eclipse:ecipse in org.apache.maven.plugins:maven-eclipse-plugin:2.7

I try :

maven install

response:

[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Cannot execute mojo: resources. It requires a project with an existing pom.xml, but the build is not using one.

Thanks for your help.

Jim

------------------------------------------------------------------------

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july

------------------------------------------------------------------------

_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

--
Justin Deoliveira
OpenGeo - http://opengeo.org
Enterprise support for open source geospatial.

You may also find some of the developer docs useful if you have not found them yet:

http://docs.geoserver.org/1.7.x/en/developer/quickstart/index.html
http://docs.geoserver.org/1.7.x/en/developer/maven-guide/index.html
http://docs.geoserver.org/1.7.x/en/developer/eclipse-guide/index.html

-Justin

Jimmy Aumard wrote:

Hello,

I have download the geoserver-1.7.6's source and I try to make an eclipse project with maven but I don't know maven and I have some errors:

I try :

mvn -e eclipse:ecipse

And I have :

[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Required goal not found: eclipse:ecipse in org.apache.maven.plugins:maven-eclipse-plugin:2.7
[INFO] ------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.BuildFailureException: Required goal not found: eclipse:ecipse in org.apache.maven.plugins:maven-eclipse-plugin:2.7

I try :

maven install

response:

[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Cannot execute mojo: resources. It requires a project with an existing pom.xml, but the build is not using one.

Thanks for your help.

Jim

------------------------------------------------------------------------

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july

------------------------------------------------------------------------

_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

--
Justin Deoliveira
OpenGeo - http://opengeo.org
Enterprise support for open source geospatial.

Thanks,

The mvn install start but after a long moment I have this :s

Downloading: http://lists.refractions.net/m2//junit/junit/3.8.1/junit-3.8.1.jar
118K downloaded
[INFO] Surefire report directory: /home/jim/Desktop/src_Geoserver/1.7.x/src/platform/target/surefire-reports
org.apache.maven.surefire.booter.SurefireExecutionException: Unable to create test class ‘org.geoserver.platform.GeoServerExtensionsTest’; nested exception is java.lang.ClassNotFoundException: org.geoserver.platform.GeoServerExtensionsTest not found in gnu.gcj.runtime.SystemClassLoader{urls=[file:/tmp/surefirebooter219rxz.jar], parent=gnu.gcj.runtime.ExtensionClassLoader{urls=, parent=null}}; nested exception is org.apache.maven.surefire.testset.TestSetFailedException: Unable to create test class ‘org.geoserver.platform.GeoServerExtensionsTest’; nested exception is java.lang.ClassNotFoundException: org.geoserver.platform.GeoServerExtensionsTest not found in gnu.gcj.runtime.SystemClassLoader{urls=[file:/tmp/surefirebooter219rxz.jar], parent=gnu.gcj.runtime.ExtensionClassLoader{urls=, parent=null}}
org.apache.maven.surefire.testset.TestSetFailedException: Unable to create test class ‘org.geoserver.platform.GeoServerExtensionsTest’; nested exception is java.lang.ClassNotFoundException: org.geoserver.platform.GeoServerExtensionsTest not found in gnu.gcj.runtime.SystemClassLoader{urls=[file:/tmp/surefirebooter219rxz.jar], parent=gnu.gcj.runtime.ExtensionClassLoader{urls=, parent=null}}
java.lang.ClassNotFoundException: org.geoserver.platform.GeoServerExtensionsTest not found in gnu.gcj.runtime.SystemClassLoader{urls=[file:/tmp/surefirebooter219rxz.jar], parent=gnu.gcj.runtime.ExtensionClassLoader{urls=, parent=null}}
at java.net.URLClassLoader.findClass(libgcj.so.90)
at gnu.gcj.runtime.SystemClassLoader.findClass(libgcj.so.90)
at java.lang.ClassLoader.loadClass(libgcj.so.90)
at java.lang.ClassLoader.loadClass(libgcj.so.90)
at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.locateTestSets(AbstractDirectoryTestSuite.java:87)
at org.apache.maven.surefire.Surefire.createSuiteFromDefinition(Surefire.java:209)
at org.apache.maven.surefire.Surefire.run(Surefire.java:156)
at java.lang.reflect.Method.invoke(libgcj.so.90)
at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:338)
at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:997)
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] There are test failures.

Jim

2009/8/12 Justin Deoliveira <jdeolive@anonymised.com.1501…>

You may also find some of the developer docs useful if you have not found them yet:

http://docs.geoserver.org/1.7.x/en/developer/quickstart/index.html
http://docs.geoserver.org/1.7.x/en/developer/maven-guide/index.html
http://docs.geoserver.org/1.7.x/en/developer/eclipse-guide/index.html

-Justin

Jimmy Aumard wrote:

Hello,

I have download the geoserver-1.7.6’s source and I try to make an eclipse project with maven but I don’t know maven and I have some errors:

I try :

mvn -e eclipse:ecipse

And I have :

[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Required goal not found: eclipse:ecipse in org.apache.maven.plugins:maven-eclipse-plugin:2.7
[INFO] ------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.BuildFailureException: Required goal not found: eclipse:ecipse in org.apache.maven.plugins:maven-eclipse-plugin:2.7

I try :

maven install

response:

[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Cannot execute mojo: resources. It requires a project with an existing pom.xml, but the build is not using one.

Thanks for your help.

Jim



Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what’s new with Crystal Reports now. http://p.sf.net/sfu/bobj-july



Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel


Justin Deoliveira
OpenGeo - http://opengeo.org
Enterprise support for open source geospatial.

Jimmy,

It looks like you have two problems. First make sure you are in the /src directory. Second to make the eclipse project which is what your first error is, its

mvn eclipse:eclipse

Your missing the second L.

Chris McMillan
-----Original Message-----
From: Jimmy Aumard <jimmy.aumard@anonymised.com>

Date: Wed, 12 Aug 2009 14:47:41
To: Geoserver-devel<geoserver-devel@lists.sourceforge.net>
Subject: [Geoserver-devel] make an eclipse projet from source with maven

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july

Thanks that’s work!

I have eclipse’s projects now but they have errors and I don’t find where :s

I have put M2_REPO in the classpath and it’s good but all the projects have errors (not on files but on repositories)

I don’t understand sorry

Cheers

Jim

2009/8/12 Chris McMillan <chris@anonymised.com>

Jimmy,

It looks like you have two problems. First make sure you are in the /src directory. Second to make the eclipse project which is what your first error is, its

mvn eclipse:eclipse

Your missing the second L.

Chris McMillan

-----Original Message-----
From: Jimmy Aumard <jimmy.aumard@anonymised.com>

Date: Wed, 12 Aug 2009 14:47:41
To: Geoserver-devel<geoserver-devel@lists.sourceforge.net>
Subject: [Geoserver-devel] make an eclipse projet from source with maven


Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what’s new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july

Jimmy Aumard ha scritto:

Thanks,

...

org.geoserver.platform.GeoServerExtensionsTest not found in gnu.gcj.runtime.SystemClassLoader{urls=[file:/tmp/surefirebooter219rxz.jar], parent=gnu.gcj.runtime.ExtensionClassLoader{urls=, parent=null}}
   at java.net.URLClassLoader.findClass(libgcj.so.90)
   at gnu.gcj.runtime.SystemClassLoader.findClass(libgcj.so.90)

Aah, you're using gcj, which is not really a valid Java runtime.
GeoServer developers mostly use Sun Java, some use IBM Java,
but afaik no one is using OpenJDK or GCJ.

Please install Sun JDK and make sure it's the default java runtime
for your system (most distribution have a "alternatives" command
allowing to setup the preferred java runtime).

Cheers
Andrea

--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.

On Sat, 2009-08-15 at 19:23 +0200, Andrea Aime wrote:

Jimmy Aumard ha scritto:
> Thanks,
...
> org.geoserver.platform.GeoServerExtensionsTest not found in
> gnu.gcj.runtime.SystemClassLoader{urls=[file:/tmp/surefirebooter219rxz.jar],
> parent=gnu.gcj.runtime.ExtensionClassLoader{urls=, parent=null}}
> at java.net.URLClassLoader.findClass(libgcj.so.90)
> at gnu.gcj.runtime.SystemClassLoader.findClass(libgcj.so.90)

Aah, you're using gcj, which is not really a valid Java runtime.
GeoServer developers mostly use Sun Java, some use IBM Java,
but afaik no one is using OpenJDK or GCJ.

Please install Sun JDK and make sure it's the default java runtime
for your system (most distribution have a "alternatives" command
allowing to setup the preferred java runtime).

Cheers
Andrea

Actually, as of about a month ago, geotools and geoserver have built
fine for me on OpenJDK (actually I forgot to switch to Sun Java after a
system reinstall and didn't notice I was using it for a week or two.)
Both mvn install and mvn eclipse:eclipse work fine for me (all tests
pass, etc.) I haven't done much testing beyond what's set up with JUnit
though.

I'd still recommend the Sun JVM for getting started as it is the most
used and tested.

-d

David Winslow ha scritto:

Actually, as of about a month ago, geotools and geoserver have built
fine for me on OpenJDK (actually I forgot to switch to Sun Java after a
system reinstall and didn't notice I was using it for a week or two.)
Both mvn install and mvn eclipse:eclipse work fine for me (all tests
pass, etc.) I haven't done much testing beyond what's set up with JUnit
though.

Yup, OpenJDK builds are my "next in line" item for daily builds
after win32 ones.
I actually re-tested a little GeoServer with OpenJDK lately and found
it working and also did some benchmarks and ... the results will
be left for a blog entry :wink:

I'd still recommend the Sun JVM for getting started as it is the most
used and tested.

Yup, very much agreed.

Cheers
Andrea

--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.