[ 
https://issues.apache.org/jira/browse/FELIX-4944?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14607678#comment-14607678
 ] 

Christian Schneider commented on FELIX-4944:
--------------------------------------------

Behind the scenes the build.xml runs maven to do the build. I got a similar 
error some time ago. 
You probably have maven 3.3.3 installed. This maven version contains a bug that 
uses the wrong maven parent pom and causes the above error.
Try to install maven 3.2.5 and it should work.

> Wish for compilable trunk
> -------------------------
>
>                 Key: FELIX-4944
>                 URL: https://issues.apache.org/jira/browse/FELIX-4944
>             Project: Felix
>          Issue Type: Wish
>         Environment: dev trunk
>            Reporter: Pranas Baliuka
>            Priority: Blocker
>              Labels: build-failure
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> The trunk is broken. Please accept wish for trunk be buildable.
> {code}
>      [exec] 216/232 KB   220/232 KB   224/232 KB   228/232 KB   232/232 KB    
>             Downloaded: 
> https://repo.maven.apache.org/maven2/junit/junit/4.8.1/junit-4.8.1.jar (232 
> KB at 81.3 KB/sec)[INFO]
>      [exec] [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ 
> org.apache.felix.scr.generator ---
>      [exec] [INFO]
>      [exec] [INFO] --- maven-antrun-plugin:1.8:run 
> (set-bundle-required-execution-environment) @ org.apache.felix.scr.generator 
> ---
>      [exec] [INFO] Executing tasks
>      [exec]
>      [exec] main:
>      [exec] Using felix.java.version=5
>      [exec] [INFO] Executed tasks
>      [exec] [INFO]
>      [exec] [INFO] --- maven-remote-resources-plugin:1.5:process (default) @ 
> org.apache.felix.scr.generator ---
>      [exec] [INFO]
>      [exec] [INFO] --- maven-resources-plugin:2.7:resources 
> (default-resources) @ org.apache.felix.scr.generator ---
>      [exec] [INFO] Using 'UTF-8' encoding to copy filtered resources.
>      [exec] [INFO] skip non existing resourceDirectory 
> /Users/pranas/work/felix-trunk/scrplugin/generator/src/main/resources
>      [exec] [INFO] Copying 1 resource to META-INF
>      [exec] [INFO] Copying 3 resources
>      [exec] [INFO]
>      [exec] [INFO] --- maven-compiler-plugin:3.2:compile (default-compile) @ 
> org.apache.felix.scr.generator ---
>      [exec] [INFO] Changes detected - recompiling the module!
>      [exec] [INFO] Compiling 42 source files to 
> /Users/pranas/work/felix-trunk/scrplugin/generator/target/classes
>      [exec] [INFO]
>      [exec] [INFO] --- maven-resources-plugin:2.7:testResources 
> (default-testResources) @ org.apache.felix.scr.generator ---
>      [exec] [INFO] Using 'UTF-8' encoding to copy filtered resources.
>      [exec] [INFO] skip non existing resourceDirectory 
> /Users/pranas/work/felix-trunk/scrplugin/generator/src/test/resources
>      [exec] [INFO] Copying 3 resources
>      [exec] [INFO]
>      [exec] [INFO] --- maven-compiler-plugin:3.2:testCompile 
> (default-testCompile) @ org.apache.felix.scr.generator ---
>      [exec] [INFO] Changes detected - recompiling the module!
>      [exec] [INFO] Compiling 4 source files to 
> /Users/pranas/work/felix-trunk/scrplugin/generator/target/test-classes
>      [exec] [INFO]
>      [exec] [INFO] --- maven-surefire-plugin:2.18.1:test (default-test) @ 
> org.apache.felix.scr.generator ---
>      [exec] [INFO] Surefire report directory: 
> /Users/pranas/work/felix-trunk/scrplugin/generator/target/surefire-reports
>      [exec]
>      [exec] -------------------------------------------------------
>      [exec]  T E S T S
>      [exec] -------------------------------------------------------
>      [exec] Running org.apache.felix.scrplugin.SCRDescriptorGeneratorTest
>      [exec] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
> 0.101 sec - in org.apache.felix.scrplugin.SCRDescriptorGeneratorTest
>      [exec]
>      [exec] Results :
>      [exec]
>      [exec] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0
>      [exec]
>      [exec] [INFO]
>      [exec] [INFO] --- animal-sniffer-maven-plugin:1.14:check (default) @ 
> org.apache.felix.scr.generator ---
>      [exec] [INFO] Checking unresolved references to 
> org.codehaus.mojo.signature:java15:1.0
>      [exec] [ERROR] 
> /Users/pranas/work/felix-trunk/scrplugin/generator/src/main/java/org/apache/felix/scrplugin/xml/MetaTypeIO.java:195:
>  Undefined reference: void java.util.Properties.store(java.io.Writer, String)
>      [exec] [INFO] 
> ------------------------------------------------------------------------
>      [exec] [INFO] Reactor Summary:
>      [exec] [INFO]
>      [exec] [INFO] OBR Maven Plugin ................................... 
> SUCCESS [ 36.863 s]
>      [exec] [INFO] Maven Bundle Plugin ................................ 
> SUCCESS [ 29.013 s]
>      [exec] [INFO] Descriptor Generator Implementation ................ 
> FAILURE [  6.607 s]
>      [exec] [INFO] Annotations for SCR ................................ 
> SKIPPED
>      [exec] [INFO] Annotations for DS ................................. 
> SKIPPED
>      [exec] [INFO] Maven SCR Plugin ................................... 
> SKIPPED
>      [exec] [INFO] SCR Ant Task ....................................... 
> SKIPPED
>      [exec] [INFO] Bnd SCR Plugin ..................................... 
> SKIPPED
>      [exec] [INFO] Maven SCR Plugin/Task support reactor .............. 
> SKIPPED
>      [exec] [INFO] Maven OSGi Plugin .................................. 
> SKIPPED
>      [exec] [INFO] Apache Felix ....................................... 
> SKIPPED
>      [exec] [INFO] 
> ------------------------------------------------------------------------
>      [exec] [INFO] BUILD FAILURE
>      [exec] [INFO] 
> ------------------------------------------------------------------------
>      [exec] [INFO] Total time: 01:14 min
>      [exec] [INFO] Finished at: 2015-06-30T16:51:35+10:00
>      [exec] [INFO] Final Memory: 57M/527M
>      [exec] [INFO] 
> ------------------------------------------------------------------------
>      [exec] [ERROR] Failed to execute goal 
> org.codehaus.mojo:animal-sniffer-maven-plugin:1.14:check (default) on project 
> org.apache.felix.scr.generator: Signature errors found. Verify them and 
> ignore them with the proper annotation if needed. -> [Help 1]
>      [exec] [ERROR]
>      [exec] [ERROR] To see the full stack trace of the errors, re-run Maven 
> with the -e switch.
>      [exec] [ERROR] Re-run Maven using the -X switch to enable full debug 
> logging.
>      [exec] [ERROR]
>      [exec] [ERROR] For more information about the errors and possible 
> solutions, please read the following articles:
>      [exec] [ERROR] [Help 1] 
> http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
>      [exec] [ERROR]
>      [exec] [ERROR] After correcting the problems, you can resume the build 
> with the command
>      [exec] [ERROR]   mvn <goals> -rf :org.apache.felix.scr.generator
> BUILD FAILED
> /Users/pranas/work/felix-trunk/build.xml:77: exec returned: 1
> Total time: 4 minutes 29 seconds
> {code}
> To reproduce:
> {code}
> Imin:felix-trunk pranas$ svn checkout 
> http://svn.apache.org/repos/asf/felix/trunk felix-trunk
> Imin:felix-trunk pranas$ uname -a
> Darwin Imin.local 14.3.0 Darwin Kernel Version 14.3.0: Mon Mar 23 11:59:05 
> PDT 2015; root:xnu-2782.20.48~5/RELEASE_X86_64 x86_64
> Imin:felix-trunk pranas$ ant -version
> Apache Ant(TM) version 1.9.4 compiled on April 29 2014
> Imin:felix-trunk pranas$ java -version
> java version "1.8.0_40"
> Java(TM) SE Runtime Environment (build 1.8.0_40-b27)
> Java HotSpot(TM) 64-Bit Server VM (build 25.40-b25, mixed mode)
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to