Hi D.

at least for the first time you need to build without the java.test.skip flag. 
That is because there are other modules that depend on the tests jar from the 
main module. That is, you need a sucessfull full build.

Gabriel

On Tuesday 27 January 2009 09:26:52 D.Nunes wrote:
> Hi,
>
> I noticed that my mvn -Dmaven.test.skip install return an error:
>
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Failed to resolve artifact.
>
> Missing:
> ----------
> 1) org.geoserver:main:jar:tests:2.0-SNAPSHOT
>
>   Try downloading the file manually from the project website.
>
>   Then, install it using the command:
>       mvn install:install-file -DgroupId=org.geoserver -DartifactId=main
> -Dversi
> on=2.0-SNAPSHOT -Dclassifier=tests -Dpackaging=jar -Dfile=/path/to/file
>
>   Alternatively, if you host your own repository you can deploy the file
> there:
>
>       mvn deploy:deploy-file -DgroupId=org.geoserver -DartifactId=main
> -Dversion
> =2.0-SNAPSHOT -Dclassifier=tests -Dpackaging=jar -Dfile=/path/to/file
> -Durl=[url
> ] -DrepositoryId=[id]
>
>   Path to dependency:
>         1) org.geoserver:wcs1_1:jar:2.0-SNAPSHOT
>         2) org.geoserver:main:jar:tests:2.0-SNAPSHOT
>
> ----------
> 1 required artifact is missing.
>
> for artifact:
>   org.geoserver:wcs1_1:jar:2.0-SNAPSHOT
>
> from the specified remote repositories:
>   geotools (http://maven.geotools.fr/repository/),
>   refractions (http://lists.refractions.net/m2/),
>   mortbay (http://www.mortbay.org/maven2/release),
>   maven-restlet (http://maven.restlet.org),
>   central (http://repo1.maven.org/maven2)
>
>
> [INFO]
> ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 18 seconds
> [INFO] Finished at: Tue Jan 27 11:18:51 GMT 2009
> [INFO] Final Memory: 33M/59M
> [INFO]
> ------------------------------------------------------------------------
>
> May this be the cause of my eclipse errors? And how can i resolve this jar
> problem?
>
> Many Thanks
>
> D.Nunes
>
> Gabriel Roldan wrote:
> > if you've ran mvn install and mvn eclipse:eclipse and both succeeded,
> > what you
> > may be needing is just an eclipse workspace refresh.
> > just select all the projects in the package explorer eclipse view and hit
> > F5.
> > If after it finishes (gonna take a while) there are still missing
> > dependencies
> > shown, you'll need a full build, go to eclipse's Project menu, select
> > clean
> > and clean all projects, so that the eclipse compiler cleans and compiles
> > all
> > the projects.
> >
> > That's what usually fixes it for me.
> >
> > Cheers,
> > Gabriel
> >
> > On Monday 26 January 2009 15:19:01 D.Nunes wrote:
> >> Hi all,
> >>
> >> i'm trying to build a geoserver 1.7.2 project.
> >>
> >> i mounted successfully the geoserver 1.7.2 sources on eclipse, following
> >> the manual this manual:
> >>
> >> ---------------------------
> >>
> >> 1) Install JAVA SDK
> >> Download and install the Java SDK.
> >>
> >> Create an environment variable called JAVA_HOME and point it to your
> >> Java SDK directory.
> >> Then modify the PATH variable and add: ;%JAVA_HOME%/bin
> >> Apply the changes.
> >>
> >>
> >> 2) Download Subversion
> >> Windows:
> >> http://subversion.tigris.org/files/documents/15/29065/svn-1.3.0-setup.ex
> >>e Linux: http://subversion.tigris.org/project_packages.html
> >>
> >> Install subversion.
> >>
> >>
> >> 3) Checkout the Source Code
> >> Using SVN Checkout, get the source code:
> >> svn checkout https://svn.codehaus.org/geoserver/trunk
> >>
> >>
> >> 4) Download and install Maven
> >> Windows:
> >> http://www.apache.org/dyn/closer.cgi/maven/binaries/maven-2.0.4.exe
> >> Linux:
> >> http://www.apache.org/dyn/closer.cgi/maven/binaries/maven-2.0.4.zip
> >>
> >>
> >> If you are using Linux, execute the following commands:
> >> export M2_HOME=/usr/java/maven-2.0.4
> >> export PATH=$PATH:$M2_HOME/bin
> >>
> >>
> >> 5) Build Source Code
> >> Go to the command line and navigate to the root of the source tree that
> >> you
> >> just downloaded.
> >> Execute the command:
> >> mvn install
> >>
> >> If it fails, just try again. It trys to download jars and some might not
> >> be
> >> available at that time. So just keep trying.
> >>
> >> If it succeeds, run the next command:
> >> mvn eclipse:eclipse
> >>
> >>
> >> 6) Set up Eclipse
> >> Windows:
> >> http://www.eclipse.org/downloads/download.php?file=/eclipse/downloads/dr
> >>ops /R-3.1.2-200601181600/eclipse-SDK-3.1.2-win32.zip Linux GTK:
> >> http://www.eclipse.org/downloads/download.php?file=/eclipse/downloads/dr
> >>ops /R-3.1.2-200601181600/eclipse-SDK-3.1.2-linux-gtk.tar.gz Linux Motif:
> >> http://www.eclipse.org/downloads/download.php?file=/eclipse/downloads/dr
> >>ops /R-3.1.2-200601181600/eclipse-SDK-3.1.2-linux-motif.tar.gz
> >>
> >> Install Eclipse.
> >>
> >> Start up Eclipse.
> >> Got to: Windows -> Preferences
> >> In the wondow that pops up click on Java -> Build Path -> Classpath
> >> Variables
> >> On the Classpath Variables panel, select New
> >> Define a new variables called M2_REPO and set it to your local maven
> >> repository. (for windows it would be C:/Documents and
> >> Settings/username/.m2/repository)
> >>
> >> 7) Get the Code into Eclipse
> >> Import existing projects into the workspace, use the root of your
> >> geoserver
> >> source tree.
> >> Select all of the modules. Hit Finish.
> >>
> >> ----------------------------------
> >>
> >>
> >> Now, when i do the eclipse build, i have some errors.
> >>
> >> These are the erros in the wms and wfs sources:
> >>
> >> http://www.nabble.com/file/p21669498/error.png
> >>
> >> Am i missing something?
> >>
> >> Many Thanks,
> >>
> >> Cumps.
> >>
> >> D.Nunes
> >
> > --
> > Gabriel Roldan
> > OpenGeo - http://www.opengeo.org
> >
> >
> > -------------------------------------------------------------------------
> >----- This SF.net email is sponsored by:
> > SourcForge Community
> > SourceForge wants to tell your story.
> > http://p.sf.net/sfu/sf-spreadtheword
> > _______________________________________________
> > Geoserver-devel mailing list
> > Geoserver-devel@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/geoserver-devel

-- 
Gabriel Roldan
OpenGeo - http://www.opengeo.org

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Reply via email to