[GeoNetwork-users-fr] mvn clean install ==> missing POMs ?

Bonjour,

Pour résoudre mon problème sur
http://osgeo-org.1803224.n2.nabble.com/xml-search-avec-dateFrom-et-dateTo-td5685454.html#a5685454
xml-search-avec-dateFrom-et-dateTo , j'essaie de compiler GeoNetwork, pour
pouvoir le modifier par la suite.

En suivant
http://geonetwork-opensource.org/stable/developers/development/index.html,
je fais

svn co https://geonetwork.svn.sourceforge.net/svnroot/geonetwork/trunk trunk
cd trunk
mvn clean install

A la fin du résultat, je lis :
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile
(default-compile) on project jeeves: Compilation failure:
Compilation failure:
[ERROR]
\java\Workspaces\geonetwork\trunk\jeeves\src\main\java\jeeves\server\dispatchers\ServiceManager.java:[420,24]
cannot find symbol
[ERROR] symbol : class HttpServiceRequest
[ERROR] location: class jeeves.server.dispatchers.ServiceManager
[ERROR]
\java\Workspaces\geonetwork\trunk\jeeves\src\main\java\jeeves\server\dispatchers\ServiceManager.java:[420,51]
cannot find symbol
[ERROR] symbol : class HttpServiceRequest
[ERROR] location: class jeeves.server.dispatchers.ServiceManager
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please
read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the
command
[ERROR] mvn <goals> -rf :jeeves
que je ne sais pas comment résoudre

J'essaie aussi de compiler seulement la partie web :

cd web
mvn clean install

A la fin je lis :
[WARNING] The POM for org.geonetwork-opensource:jeeves:jar:2.7.0-SNAPSHOT is
missing, no dependency information available
[WARNING] The POM for org.geonetwork-opensource:oaipmh:jar:2.7.0-SNAPSHOT is
missing, no dependency information available
[WARNING] The POM for org.geonetwork-opensource:dummy-api:jar:2.7.0-SNAPSHOT
is missing, no dependency information available
[WARNING] The POM for jzkit:jzkit-core:jar:3.r260.geonetwork.patch.1 is
missing, no dependency information available
[WARNING] The POM for jzkit:jzkit-service:jar:3.r260.geonetwork.patch.1 is
missing, no dependency information available
[WARNING] The POM for jzkit:jzkit-z3950-server:jar:3.r260.geonetwork.patch.1
is missing, no dependency information available
[WARNING] The POM for jzkit:jzkit-z3950-plugin:jar:3.r260.geonetwork.patch.1
is missing, no dependency information available
[WARNING] The POM for opendap:opendap:jar:2.1 is missing, no dependency
information available
[INFO]
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 1.875s
[INFO] Finished at: Fri Nov 05 09:20:59 CET 2010
[INFO] Final Memory: 3M/6M
[INFO]
------------------------------------------------------------------------
[ERROR] Failed to execute goal on project geonetwork-main: Could not resolve
dependencies for project org.geonetwork-opensource:geonetwork-main:war:2.
7.0-SNAPSHOT: The following artifacts could not be resolved:
org.geonetwork-opensource:jeeves:jar:2.7.0-SNAPSHOT,
org.geonetwork-opensource:oaipmh:jar
:2.7.0-SNAPSHOT, org.geonetwork-opensource:dummy-api:jar:2.7.0-SNAPSHOT,
jzkit:jzkit-core:jar:3.r260.geonetwork.patch.1,
jzkit:jzkit-service:jar:3.r26
0.geonetwork.patch.1,
jzkit:jzkit-z3950-server:jar:3.r260.geonetwork.patch.1,
jzkit:jzkit-z3950-plugin:jar:3.r260.geonetwork.patch.1, opendap:opendap:
jar:2.1: Failure to find org.geonetwork-opensource:jeeves:jar:2.7.0-SNAPSHOT
in file://maven_repo was cached in the local repository, resolution will
not be reattempted until the update interval of localGeoNetwork has elapsed
or updates are forced -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please
read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException

J'essaie en supprimant les répertoires org/geonetwork-opensource, jzkit et
opendap dans mon .m2/repository, même résultat (avec les lignes Downloading
en plus).

Dans .m2\repository\org\geonetwork-opensource\jeeves\2.7.0-SNAPSHOT, par
exemple, j'ai les 3 fichiers
jeeves-2.7.0-SNAPSHOT.jar.lastUpdated,
jeeves-2.7.0-SNAPSHOT.pom.lastUpdated et
resolver-status.properties qui contient :

#NOTE: This is an internal implementation file, its format can be changed
without prior notice.
#Fri Nov 05 09:23:27 CET 2010
maven-metadata-localGeoNetwork.xml.error=
maven-metadata-thus.ch.xml.lastUpdated=1288945407740
maven-metadata-localGeoNetwork.xml.lastUpdated=1288945407599
maven-metadata-org.mapfish.xml.lastUpdated=1288945407771
maven-metadata-org.mapfish.xml.error=
maven-metadata-thus.ch.xml.error=

Dans les répertoires jzkit et opendap, je n'ai pas de fichiers
resolver-status.properties mais les pom.lastUpdated et jar.lastUpdated sont
bien là.

Comment compiler GeoNetwork ?

Alain
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/mvn-clean-install-missing-POMs-tp5708119p5708119.html
Sent from the GeoNetwork users francophone mailing list archive at Nabble.com.

Bonjour Alain,

Merci d'avoir indiqué le problème.

Corrigé.

svn up
mvn clean install

2010/11/5 acangi <aca@anonymised.com>:

Bonjour,

Pour résoudre mon problème sur
http://osgeo-org.1803224.n2.nabble.com/xml-search-avec-dateFrom-et-dateTo-td5685454.html#a5685454
xml-search-avec-dateFrom-et-dateTo , j'essaie de compiler GeoNetwork, pour
pouvoir le modifier par la suite.

En suivant
http://geonetwork-opensource.org/stable/developers/development/index.html,
je fais

svn co https://geonetwork.svn.sourceforge.net/svnroot/geonetwork/trunk trunk
cd trunk
mvn clean install

A la fin du résultat, je lis :
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile
(default-compile) on project jeeves: Compilation failure:
Compilation failure:
[ERROR]
\java\Workspaces\geonetwork\trunk\jeeves\src\main\java\jeeves\server\dispatchers\ServiceManager.java:[420,24]
cannot find symbol
[ERROR] symbol : class HttpServiceRequest
[ERROR] location: class jeeves.server.dispatchers.ServiceManager
[ERROR]
\java\Workspaces\geonetwork\trunk\jeeves\src\main\java\jeeves\server\dispatchers\ServiceManager.java:[420,51]
cannot find symbol
[ERROR] symbol : class HttpServiceRequest
[ERROR] location: class jeeves.server.dispatchers.ServiceManager
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please
read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the
command
[ERROR] mvn <goals> -rf :jeeves
que je ne sais pas comment résoudre

J'essaie aussi de compiler seulement la partie web :

cd web
mvn clean install

Le module web dépend d'autres, donc si les dépendances ne sont pas
compilées, ca ne marchera pas.

Francois

A la fin je lis :
[WARNING] The POM for org.geonetwork-opensource:jeeves:jar:2.7.0-SNAPSHOT is
missing, no dependency information available
[WARNING] The POM for org.geonetwork-opensource:oaipmh:jar:2.7.0-SNAPSHOT is
missing, no dependency information available
[WARNING] The POM for org.geonetwork-opensource:dummy-api:jar:2.7.0-SNAPSHOT
is missing, no dependency information available
[WARNING] The POM for jzkit:jzkit-core:jar:3.r260.geonetwork.patch.1 is
missing, no dependency information available
[WARNING] The POM for jzkit:jzkit-service:jar:3.r260.geonetwork.patch.1 is
missing, no dependency information available
[WARNING] The POM for jzkit:jzkit-z3950-server:jar:3.r260.geonetwork.patch.1
is missing, no dependency information available
[WARNING] The POM for jzkit:jzkit-z3950-plugin:jar:3.r260.geonetwork.patch.1
is missing, no dependency information available
[WARNING] The POM for opendap:opendap:jar:2.1 is missing, no dependency
information available
[INFO]
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 1.875s
[INFO] Finished at: Fri Nov 05 09:20:59 CET 2010
[INFO] Final Memory: 3M/6M
[INFO]
------------------------------------------------------------------------
[ERROR] Failed to execute goal on project geonetwork-main: Could not resolve
dependencies for project org.geonetwork-opensource:geonetwork-main:war:2.
7.0-SNAPSHOT: The following artifacts could not be resolved:
org.geonetwork-opensource:jeeves:jar:2.7.0-SNAPSHOT,
org.geonetwork-opensource:oaipmh:jar
:2.7.0-SNAPSHOT, org.geonetwork-opensource:dummy-api:jar:2.7.0-SNAPSHOT,
jzkit:jzkit-core:jar:3.r260.geonetwork.patch.1,
jzkit:jzkit-service:jar:3.r26
0.geonetwork.patch.1,
jzkit:jzkit-z3950-server:jar:3.r260.geonetwork.patch.1,
jzkit:jzkit-z3950-plugin:jar:3.r260.geonetwork.patch.1, opendap:opendap:
jar:2.1: Failure to find org.geonetwork-opensource:jeeves:jar:2.7.0-SNAPSHOT
in file://maven_repo was cached in the local repository, resolution will
not be reattempted until the update interval of localGeoNetwork has elapsed
or updates are forced -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please
read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException

J'essaie en supprimant les répertoires org/geonetwork-opensource, jzkit et
opendap dans mon .m2/repository, même résultat (avec les lignes Downloading
en plus).

Dans .m2\repository\org\geonetwork-opensource\jeeves\2.7.0-SNAPSHOT, par
exemple, j'ai les 3 fichiers
jeeves-2.7.0-SNAPSHOT.jar.lastUpdated,
jeeves-2.7.0-SNAPSHOT.pom.lastUpdated et
resolver-status.properties qui contient :

#NOTE: This is an internal implementation file, its format can be changed
without prior notice.
#Fri Nov 05 09:23:27 CET 2010
maven-metadata-localGeoNetwork.xml.error=
maven-metadata-thus.ch.xml.lastUpdated=1288945407740
maven-metadata-localGeoNetwork.xml.lastUpdated=1288945407599
maven-metadata-org.mapfish.xml.lastUpdated=1288945407771
maven-metadata-org.mapfish.xml.error=
maven-metadata-thus.ch.xml.error=

Dans les répertoires jzkit et opendap, je n'ai pas de fichiers
resolver-status.properties mais les pom.lastUpdated et jar.lastUpdated sont
bien là.

Comment compiler GeoNetwork ?

Alain
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/mvn-clean-install-missing-POMs-tp5708119p5708119.html
Sent from the GeoNetwork users francophone mailing list archive at Nabble.com.

------------------------------------------------------------------------------
The Next 800 Companies to Lead America's Growth: New Video Whitepaper
David G. Thomson, author of the best-selling book "Blueprint to a
Billion" shares his insights and actions to help propel your
business during the next growth cycle. Listen Now!
http://p.sf.net/sfu/SAP-dev2dev
_______________________________________________
GeoNetwork-users-fr mailing list
GeoNetwork-users-fr@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-users-fr