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