GithubHelp home page GithubHelp logo

Comments (9)

ste7en avatar ste7en commented on June 3, 2024

Hi @keni7385 thank you for the opened issue! An higher source version number has been set in the pom.xml and Jacopo 0.8.3 has been specified in a specific maven goal as suggested in a previous email.

Please, can you confirm us the issue has been solved?

--Stefano

from ing-sw-2019-chiappalupi-formicola-iannucci.

keni7385 avatar keni7385 commented on June 3, 2024

Have u tried to build and test locally with maven?

from ing-sw-2019-chiappalupi-formicola-iannucci.

ste7en avatar ste7en commented on June 3, 2024

Yes, everything works locally with maven.

from ing-sw-2019-chiappalupi-formicola-iannucci.

keni7385 avatar keni7385 commented on June 3, 2024
[INFO] --- maven-compiler-plugin:3.8.0:compile (default-compile) @ AM019 ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 42 source files to /var/jenkins_home/workspace/AM19/target/classes
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  1.930 s
[INFO] Finished at: 2019-05-08T21:52:05Z
[INFO] ------------------------------------------------------------------------
Waiting for Jenkins to finish collecting data
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.0:compile (default-compile) on project AM019: Fatal error compiling: error: invalid target release: 1.11 -> [Help 1]
[ERROR] 

1.11 does not exist normally. Should be 11. Try with 11 for now.
BTW switch to 12

from ing-sw-2019-chiappalupi-formicola-iannucci.

ste7en avatar ste7en commented on June 3, 2024

Yes, I changed to 1.9 when I found the error on 1.11. Now I changed to 11 and it works, while it gives me errors when changing to version 12.
Anyway I pushed the version 11 which works locally.

from ing-sw-2019-chiappalupi-formicola-iannucci.

keni7385 avatar keni7385 commented on June 3, 2024

[..] while it gives me errors when changing to version 12.

May be that you don't have JDK 12 installed?

Anyway I pushed the version 11 which works locally.

Okay build succeeds now, but tests haven't been discovered yet:

[INFO] 
[INFO] Results:
[INFO] 
[INFO] Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
[INFO] 

That is due to:

d Jacopo 0.8.3 has been specified in a specific maven goal as suggeste...

Setting the goal is only useful when you run maven from your command line locally. Please also fix it in the pom. Once you are able to see your code coverage from your SonarQube (not Lint), the issue is probably solved from our server side as well.

from ing-sw-2019-chiappalupi-formicola-iannucci.

ingconti avatar ingconti commented on June 3, 2024

As we said in more places, we do need targeting for JDK 12.
we also sent details about POM. Pls fix asap.

PS only to understand:

this is your MAIN ?

package it.polimi.ingsw;

/*
Hello world!

*/
public class App
{
public static void main( String[] args )
{
System.out.println( "Hello World!" );
}
}

from ing-sw-2019-chiappalupi-formicola-iannucci.

ste7en avatar ste7en commented on June 3, 2024

@keni7385 @ingconti finally, I just committed and pushed a working configuration of the pom.xml
It now works with Sonar and it shows code coverage details. Please, @keni7385 can you check if this solved the Jenkins problem of the issue?

@ingconti nope, that main class you mentioned is the default file made by IntelliJ, we didn't remove it and we use it for simple debugging on our local develop branches.

Thank you and have a good day

--Stefano

from ing-sw-2019-chiappalupi-formicola-iannucci.

keni7385 avatar keni7385 commented on June 3, 2024

[INFO]
[INFO] Results:
[INFO]
[INFO] Tests run: 120, Failures: 0, Errors: 0, Skipped: 0
[INFO]
[JENKINS] Recording test results
...
[INFO]
[INFO] --- maven-jar-plugin:3.0.2:jar (default-jar) @ AM019 ---
[INFO] Building jar: /var/jenkins_home/workspace/AM19/target/AM019-1.0-SNAPSHOT.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 17.911 s
[INFO] Finished at: 2019-05-09T10:13:14Z
[INFO] ------------------------------------------------------------------------

You too!

from ing-sw-2019-chiappalupi-formicola-iannucci.

Related Issues (5)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.