Hi all,
I have just checked out the source code from the servicemix-3.1 tag and
tried to built it using the following commands:
mvn -Dmaven.test.skip=true -Dprofile=step1 install
mvn -Dmaven.test.skip=true -Dprofile=step2 install
The build was successful, but some errors were encountered when I
tried to generate the site using the following commands:
mvn -N install
cd tooling
mvn install
cd ..
mvn site:site
The error log is as follows:
=========================================================
[INFO] Instrumentation was successful.
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:testCompile]
[INFO] No sources to compile
[INFO] [surefire:test]
[INFO] No tests to run.
[INFO] Preparing findbugs:findbugs
[INFO] [plugin:descriptor]
[INFO] Using 2 extractors.
[INFO] Applying extractor for language: java
[INFO] Extractor for language: java found 1 mojo descriptors.
[INFO] Applying extractor for language: bsh
[INFO] Extractor for language: bsh found 0 mojo descriptors.
[INFO] [antrun:run {execution: legal-files}]
[INFO] Executing tasks
[INFO] Executed tasks
[INFO] Registering compile source root E:\myworkspace\servicemix3.1\build\target
\legal
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [site:site]
[WARNING] Unable to load parent project from repository: Could not find the mode
l file 'E:\myworkspace\servicemix3.1\..\pom.xml'.
[INFO] Generate "Checkstyle" report.
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error during page generation
Embedded error: Error rendering Maven report: Unable to find configuration file
location.
Unable to find location 'build/checkstyle.xml' as URL, File or Resource.
==============================================================
I haven't found any step by step instructions on the Apache website of
this project describing how to compile the source code,
how to run the unit test and how to generate the test report etc.
(BTW, there is a question in the FAQ list about how to compile
the source code, but the answer is incorrect)
Ant a portion of the report is generated, but it seems that there is a
separate report for each module. Are there any instructions to
generate a report which summarize the test report of each module?
The maven I am using is 2.0.4.
Any hints?
Best Regards!
--
//Steven