cling error with maven install

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

cling error with maven install

maher.megadmini
Hi, I get this error when trying to build cling 'mvn clean install' : [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.9:test (default-test) on project cling-core: There are test failures. [ERROR] [ERROR] Please refer to /media/mydata/cling-master/core/target/surefire-reports for the individual test results. Here the console log
 mvn clean install
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO] 
[INFO] Cling
[INFO] Cling Core
[INFO] Cling Demo
[INFO] Cling Demo Android
[INFO] Cling Demo Android Browser
[INFO] Cling Demo Android Light
[INFO] Cling Demo OSGi
[INFO] Cling Demo OSGi Basic Device
[INFO] Cling Demo OSGi Lights
[INFO] Cling Support
[INFO] Cling Workbench
[INFO] Cling MediaRenderer
[INFO] Cling OSGi
[INFO] Cling OSGi Base Driver
[INFO] Cling Website
[INFO] Cling Distribution
[INFO] Cling OSGi Tests
[INFO] Cling OSGi Test Common Library
[INFO] Cling OSGi Test Simple Device
[INFO] Cling OSGi Test Integration
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building Cling 2.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ cling ---
[INFO] 
[INFO] --- maven-install-plugin:2.3.1:install (default-install) @ cling ---
[INFO] Installing /media/mydata/cling-master/pom.xml to /home/maher/.m2/repository/org/fourthline/cling/cling/2.0-SNAPSHOT/cling-2.0-SNAPSHOT.pom
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building Cling Core 2.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
Downloading: http://4thline.org/m2/org/fourthline/lemma/lemma-maven-plugin/1.1-SNAPSHOT/maven-metadata.xml
Downloaded: http://4thline.org/m2/org/fourthline/lemma/lemma-maven-plugin/1.1-SNAPSHOT/maven-metadata.xml (782 B at 0.9 KB/sec)
Downloading: http://4thline.org/m2/org/fourthline/lemma/parent/1.1-SNAPSHOT/maven-metadata.xml
Downloaded: http://4thline.org/m2/org/fourthline/lemma/parent/1.1-SNAPSHOT/maven-metadata.xml (599 B at 2.2 KB/sec)
Downloading: http://4thline.org/m2/org/seamless/seamless-util/1.0-SNAPSHOT/maven-metadata.xml
Downloaded: http://4thline.org/m2/org/seamless/seamless-util/1.0-SNAPSHOT/maven-metadata.xml (985 B at 3.8 KB/sec)
Downloading: http://4thline.org/m2/org/seamless/parent/1.0-SNAPSHOT/maven-metadata.xml
Downloaded: http://4thline.org/m2/org/seamless/parent/1.0-SNAPSHOT/maven-metadata.xml (593 B at 2.3 KB/sec)
Downloading: http://4thline.org/m2/org/seamless/seamless-http/1.0-SNAPSHOT/maven-metadata.xml
Downloaded: http://4thline.org/m2/org/seamless/seamless-http/1.0-SNAPSHOT/maven-metadata.xml (985 B at 3.7 KB/sec)
Downloading: http://4thline.org/m2/org/seamless/seamless-xml/1.0-SNAPSHOT/maven-metadata.xml
Downloaded: http://4thline.org/m2/org/seamless/seamless-xml/1.0-SNAPSHOT/maven-metadata.xml (984 B at 3.7 KB/sec)
[INFO] 
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ cling-core ---
[INFO] Deleting /media/mydata/cling-master/core/target
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ cling-core ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] 
[INFO] --- maven-compiler-plugin:3.0:compile (default-compile) @ cling-core ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 346 source files to /media/mydata/cling-master/core/target/classes
[WARNING] /media/mydata/cling-master/core/src/main/java/org/fourthline/cling/transport/impl/FixedSunURLStreamHandler.java:[63,69] sun.net.www.protocol.http.HttpURLConnection is internal proprietary API and may be removed in a future release
[WARNING] /media/mydata/cling-master/core/src/main/java/org/fourthline/cling/transport/impl/FixedSunURLStreamHandler.java:[48,49] sun.net.www.protocol.http.Handler is internal proprietary API and may be removed in a future release
[WARNING] /media/mydata/cling-master/core/src/main/java/org/fourthline/cling/transport/impl/FixedSunURLStreamHandler.java:[70,69] sun.net.www.protocol.http.Handler is internal proprietary API and may be removed in a future release
[WARNING] /media/mydata/cling-master/core/src/main/java/org/fourthline/cling/transport/impl/apache/HttpServerConnectionUpnpStream.java: /media/mydata/cling-master/core/src/main/java/org/fourthline/cling/transport/impl/apache/HttpServerConnectionUpnpStream.java uses or overrides a deprecated API.
[WARNING] /media/mydata/cling-master/core/src/main/java/org/fourthline/cling/transport/impl/apache/HttpServerConnectionUpnpStream.java: Recompile with -Xlint:deprecation for details.
[WARNING] /media/mydata/cling-master/core/src/main/java/org/fourthline/cling/model/message/header/UpnpHeader.java: Some input files use unchecked or unsafe operations.
[WARNING] /media/mydata/cling-master/core/src/main/java/org/fourthline/cling/model/message/header/UpnpHeader.java: Recompile with -Xlint:unchecked for details.
[INFO] 
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ cling-core ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 49 resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.0:testCompile (default-testCompile) @ cling-core ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 93 source files to /media/mydata/cling-master/core/target/test-classes
[WARNING] /media/mydata/cling-master/core/src/test/java/org/fourthline/cling/test/control/ActionXMLProcessingTest.java: Some input files use unchecked or unsafe operations.
[WARNING] /media/mydata/cling-master/core/src/test/java/org/fourthline/cling/test/control/ActionXMLProcessingTest.java: Recompile with -Xlint:unchecked for details.
[INFO] 
[INFO] --- maven-surefire-plugin:2.9:test (default-test) @ cling-core ---
[INFO] Surefire report directory: /media/mydata/cling-master/core/target/surefire-reports

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running TestSuite
Tests run: 339, Failures: 2, Errors: 0, Skipped: 0, Time elapsed: 56.84 sec <<< FAILURE!

Results :

Failed tests:   readRecovering(org.fourthline.cling.test.resources.InvalidUDA10DeviceDescriptorParsingTest): Could not parse device descriptor: org.xml.sax.SAXParseException; lineNumber: 19; columnNumber: 21; Le préfixe "dlna" de l'élément "dlna:X_DLNADOC" n'est pas lié.
  readRecovering(org.fourthline.cling.test.resources.InvalidUDA10DeviceDescriptorParsingTest): Could not parse device descriptor: org.xml.sax.SAXParseException; lineNumber: 19; columnNumber: 21; Le préfixe "dlna" de l'élément "dlna:X_DLNADOC" n'est pas lié.

Tests run: 339, Failures: 2, Errors: 0, Skipped: 0

[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] Cling ............................................. SUCCESS [0.241s]
[INFO] Cling Core ........................................ FAILURE [1:06.333s]
[INFO] Cling Demo ........................................ SKIPPED
[INFO] Cling Demo Android ................................ SKIPPED
[INFO] Cling Demo Android Browser ........................ SKIPPED
[INFO] Cling Demo Android Light .......................... SKIPPED
[INFO] Cling Demo OSGi ................................... SKIPPED
[INFO] Cling Demo OSGi Basic Device ...................... SKIPPED
[INFO] Cling Demo OSGi Lights ............................ SKIPPED
[INFO] Cling Support ..................................... SKIPPED
[INFO] Cling Workbench ................................... SKIPPED
[INFO] Cling MediaRenderer ............................... SKIPPED
[INFO] Cling OSGi ........................................ SKIPPED
[INFO] Cling OSGi Base Driver ............................ SKIPPED
[INFO] Cling Website ..................................... SKIPPED
[INFO] Cling Distribution ................................ SKIPPED
[INFO] Cling OSGi Tests .................................. SKIPPED
[INFO] Cling OSGi Test Common Library .................... SKIPPED
[INFO] Cling OSGi Test Simple Device ..................... SKIPPED
[INFO] Cling OSGi Test Integration ....................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1:08.560s
[INFO] Finished at: Tue May 21 16:59:05 CET 2013
[INFO] Final Memory: 22M/201M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.9:test (default-test) on project cling-core: There are test failures.
[ERROR] 
[ERROR] Please refer to /media/mydata/cling-master/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 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 :cling-core
Reply | Threaded
Open this post in threaded view
|

Re: cling error with maven install

Christian Bauer
Administrator
Test passes just fine here, no idea whats wrong.