Closed carlocalzamiglia closed 6 years ago
nowe we got:
[INFO] No tests to run. [JENKINS] Recording test results[WARNING] Attempt to (de-)serialize anonymous class hudson.maven.reporters.BuildInfoRecorder$1; see: https://jenkins.io/redirect/serialization-of-anonymous-classes/
We can't understand why Jenkins says we have no tests.
We made some improvements. Can you please check for us if Jenkins is working rn?
Other updates done. Can you please check?
Solved.
Sorry for the delay, I'm closing the issue!
You have a new compilation error: /var/jenkins_home/workspace/LM06/src/main/java/it.polimi.ingsw/Server/ServerRmiClientHandler.java:[4,50] package com.sun.xml.internal.ws.policy.privateutil does not exist Please fix it asap and make sure you don't use any internal sun package in your project, as they are not supported by our Jenkins build system.
Probably solved. Can you please check if it is working?
I checked, but it's still not working: [ERROR] /var/jenkins_home/workspace/LM06/src/main/java/it.polimi.ingsw/Server/ServerRmiClientHandlerInt.java:[8,50] package com.sun.xml.internal.ws.policy.privateutil does not exist
Sorry, we forgot to delete the package also in the interface.
Still not woriking:
Established TCP socket on 37737
<===[JENKINS REMOTING CAPACITY]===>channel started
Executing Maven: -B -f /var/jenkins_home/workspace/LM06/pom.xml clean org.jacoco:jacoco-maven-plugin:prepare-agent package
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for it.polimi.ingsw:LM6:jar:1.0-SNAPSHOT
[WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: com.google.code.gson:gson:jar -> version 2.3 vs 1.7 @ line 87, column 17
[WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: com.google.code.gson:gson:jar -> duplicate declaration of version 2.3 @ line 92, column 17
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[INFO]
[INFO] ------------------------< it.polimi.ingsw:LM6 >-------------------------
[INFO] Building LM6 1.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ LM6 ---
[INFO] Deleting /var/jenkins_home/workspace/LM06/target
[INFO]
[INFO] --- jacoco-maven-plugin:0.8.1:prepare-agent (default-cli) @ LM6 ---
[INFO] argLine set to -javaagent:/var/jenkins_home/.m2/repository/org/jacoco/org.jacoco.agent/0.8.1/org.jacoco.agent-0.8.1-runtime.jar=destfile=/var/jenkins_home/workspace/LM06/target/jacoco.exec
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ LM6 ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 7 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.7.0:compile (default-compile) @ LM6 ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 37 source files to /var/jenkins_home/workspace/LM06/target/classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /var/jenkins_home/workspace/LM06/src/main/java/it.polimi.ingsw/ServertoClientHandler/ClientInterface.java:[3,50] package com.sun.xml.internal.ws.policy.privateutil does not exist
[INFO] 1 error
[INFO] -------------------------------------------------------------
[WARNING] Attempt to (de-)serialize anonymous class hudson.maven.reporters.MavenArtifactArchiver$2; see: https://jenkins.io/redirect/serialization-of-anonymous-classes/
[WARNING] Attempt to (de-)serialize anonymous class hudson.maven.reporters.MavenFingerprinter$1; see: https://jenkins.io/redirect/serialization-of-anonymous-classes/
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.261 s
[INFO] Finished at: 2018-06-18T20:31:58Z
[INFO] ------------------------------------------------------------------------
Waiting for Jenkins to finish collecting data[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.7.0:compile (default-compile) on project LM6: Compilation failure
[ERROR] /var/jenkins_home/workspace/LM06/src/main/java/it.polimi.ingsw/ServertoClientHandler/ClientInterface.java:[3,50] package com.sun.xml.internal.ws.policy.privateutil does not exist
[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
Sorry, we forgot to delete the package in that interface. Now the package com.sun.xml.internal.ws.policy.privateutil is deleted
Fixed.
Same issue again:
[ERROR] /var/jenkins_home/workspace/LM06/src/main/java/itpolimiingsw/Client/ClientRmi.java:[6,50] package com.sun.xml.internal.ws.policy.privateutil does not exist
Deleted again. Sorry...
Buonasera, durante l'incontro del 15/05 è apparso uno strano errore nella compilazione Jenkins. Questo infatti compila correttamente il nostro programma, senza però riconoscere nessun test. Sulla nostra macchina al contrario vengono lanciati correttamente tutti. Abbiamo parlato con un Tutor, ma non siamo riusciti a risolvere. Ci è stato quindi consigliato di aprire un Issue, in modo da cercare di risolvere.