Hi,
I just tried to compile Geonetwork but i have a problem with "Core" module.
During tests, when blah.rdf ans foo.rdf are used, there are 2 errors.
There are two stages in this test:
- The file "blah.rdf" is searched but this file is not found : it's normal
because it doesn't exist anywhere.
- Then, "blah.rdf" is generated.
Is it normal? Is it the right order?
it seems to be more natural to generate the file and search it after.
I have the same problem with "foo.rdf"...
Thank you in advance!
Paul
Here are the last of the log messages....
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Results :
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
[INFO]
[INFO] >>> findbugs-maven-plugin:2.5.2:check (default) @ domain >>>
[INFO]
[INFO] --- findbugs-maven-plugin:2.5.2:findbugs (findbugs) @ domain ---
[INFO]
[INFO] <<< findbugs-maven-plugin:2.5.2:check (default) @ domain <<<
[INFO]
[INFO] --- findbugs-maven-plugin:2.5.2:check (default) @ domain ---
[INFO]
[INFO] --- maven-checkstyle-plugin:2.10:check (check) @ domain ---
[INFO]
[INFO]
[INFO] --- maven-jar-plugin:2.3.2:jar (default-jar) @ domain ---
[WARNING] JAR will be empty - no content was marked for inclusion!
[INFO] Building jar:
C:\Geonetwork_Workspace\Geo1\domain\target\domain-2.11.0-SNAPSHOT.jar
[INFO]
[INFO] --- maven-install-plugin:2.3.1:install (default-install) @ domain ---
[INFO] Installing
C:\Geonetwork_Workspace\Geo1\domain\target\domain-2.11.0-SNAPSHOT.jar to
C:\Docume
nts and
Settings\alexandre\.m2\repository\org\geonetwork-opensource\domain\2.11.0-SNAPSHOT\domain-2.
11.0-SNAPSHOT.jar
[INFO] Installing C:\Geonetwork_Workspace\Geo1\domain\pom.xml to
C:\Documents and Settings\alexandre
\.m2\repository\org\geonetwork-opensource\domain\2.11.0-SNAPSHOT\domain-2.11.0-SNAPSHOT.pom
[INFO]
[INFO]
------------------------------------------------------------------------
[INFO] Building core 2.11.0-SNAPSHOT
[INFO]
------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ core ---
[INFO] Deleting C:\Geonetwork_Workspace\Geo1\core\target
[INFO]
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ core
---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory
C:\Geonetwork_Workspace\Geo1\core\src\main\resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ core ---
[INFO] Compiling 255 source files to
C:\Geonetwork_Workspace\Geo1\core\target\classes
[INFO]
[INFO] --- maven-resources-plugin:2.5:testResources (default-testResources)
@ core ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 7 resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @
core ---
[INFO] Compiling 10 source files to
C:\Geonetwork_Workspace\Geo1\core\target\test-classes
[INFO]
[INFO] --- maven-surefire-plugin:2.10:test (default-test) @ core ---
[INFO] Surefire report directory:
C:\Geonetwork_Workspace\Geo1\core\target\surefire-reports
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running org.fao.geonet.kernel.rdf.KeywordQueryBuilderTest
Generating a test RDF
file:C:\Geonetwork_Workspace\Geo1\core\target\test-classes\org\fao\geonet\kern
el\testThesaurus.rdf. This might take several minutes.
0..........................26........34................49...........60...........71........80.......
.88.......94.....100
Tests run: 3, Failures: 2, Errors: 0, Skipped: 0, Time elapsed: 47 sec <<<
FAILURE!
Running org.fao.geonet.kernel.rdf.QueryBuilderTest
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.625 sec
Running org.fao.geonet.kernel.search.KeywordsSearcherTest
[main] ERROR geonetwork.thesaurus-man - Error getting thesaurus info for
C:\Geonetwork_Workspace\Ge
o1\core\target\test-classes\org\fao\geonet\kernel\search\blah.rdf. Error is:
C:\Geonetwork_Workspace
\Geo1\core\target\test-classes\org\fao\geonet\kernel\search\blah.rdf (Le
fichier spÚcifiÚ est introu
vable)
Generating a test RDF
file:C:\Geonetwork_Workspace\Geo1\core\target\test-classes\org\fao\geonet\kern
el\search\blah.rdf. This might take several minutes.
0..100
[main] ERROR geonetwork.thesaurus-man - Error getting thesaurus info for
C:\Geonetwork_Workspace\Ge
o1\core\target\test-classes\org\fao\geonet\kernel\search\foo.rdf. Error is:
C:\Geonetwork_Workspace\
Geo1\core\target\test-classes\org\fao\geonet\kernel\search\foo.rdf (Le
fichier spÚcifiÚ est introuva
ble)
Generating a test RDF
file:C:\Geonetwork_Workspace\Geo1\core\target\test-classes\org\fao\geonet\kern
el\search\foo.rdf. This might take several minutes.
0..100
Tests run: 19, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 11.766 sec
Running org.fao.geonet.kernel.search.LuceneQueryTest
Tests run: 93, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.312 sec
Running org.fao.geonet.kernel.security.GeonetworkAuthenticationProviderTest
Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.703 sec
Running org.fao.geonet.kernel.ThesaurusTest
Tests run: 11, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 8.281 sec
Running org.fao.geonet.kernel.XmlSerializerTest
Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
Running org.fao.geonet.test.GeonetworkTestCase
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
Running org.fao.geonet.util.xml.NamespaceUtilsTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
Results :
Failed tests: keywords(org.fao.geonet.kernel.rdf.KeywordQueryBuilderTest):
expected:<> but was:<
[0]>
keywordsCaseInsensitive(org.fao.geonet.kernel.rdf.KeywordQueryBuilderTest):
expected:<> but was:
<[0]>
Tests run: 152, Failures: 2, Errors: 0, Skipped: 0
[INFO]
------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] GeoNetwork opensource ............................. SUCCESS [1.937s]
[INFO] Caching xslt module ............................... SUCCESS [22.235s]
[INFO] Jeeves modules .................................... SUCCESS [40.953s]
[INFO] ArcSDE module (dummy-api) ......................... SUCCESS [2.390s]
[INFO] GeoNetwork web client module ...................... SUCCESS
[1:51.688s]
[INFO] Oaipmh modules .................................... SUCCESS [11.578s]
[INFO] domain ............................................ SUCCESS [5.984s]
[INFO] core .............................................. FAILURE
[1:58.875s]
[INFO] csw-server ........................................ SKIPPED
[INFO] health-monitor .................................... SKIPPED
[INFO] harvesters ........................................ SKIPPED
[INFO] services .......................................... SKIPPED
[INFO] GeoNetwork Web module ............................. SKIPPED
[INFO] GeoServer module .................................. SKIPPED
[INFO]
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 5:16.500s
[INFO] Finished at: Fri Jul 19 15:21:08 CEST 2013
[INFO] Final Memory: 73M/210M
[INFO]
------------------------------------------------------------------------
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-surefire-plugin:2.10:test (default-tes
t) on project core: There are test failures.
[ERROR]
[ERROR] Please refer to
C:\Geonetwork_Workspace\Geo1\core\target\surefire-reports for the individual
test results.
[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 arti
cles:
[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 :core
C:\Geonetwork_Workspace\Geo1>
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Problem-with-Core-module-during-compilation-tp5067597.html
Sent from the GeoNetwork developer mailing list archive at Nabble.com.