unable to compile to a 1.8 target jdk on https://jenkins.ci.cloudbees.com

357 views
Skip to first unread message

gmon...@redhat.com

unread,
May 9, 2016, 4:33:40 PM5/9/16
to Jenkins Developers
Since the last successful build I attempted in early March 2016, I am now getting compile failures
for jobs on https://jenkins.ci.cloudbee.com saying that 1.8 is an invalid target:

invalid target release: 1.8

and

javac: invalid target release: 1.8

The compile snippet from my pom.xml was originally:

      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-compiler-plugin</artifactId>
        <configuration>
          <source>1.8</source>
          <target>1.8</target>
        </configuration>
      </plugin>


I'm currently sitting at:

      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-compiler-plugin</artifactId>
        <version>3.5.1</version>
        <configuration>
          <source>1.8</source>
          <target>1.8</target>
          <compilerArgs>
            <arg>-verbose</arg>
          </compilerArgs>
        </configuration>
      </plugin>


Was there a recently imposed restriction I missed, or perhaps an update to maven on the system
that has broken something?

thanks for any help,
Gabe

Michael Neale

unread,
May 10, 2016, 3:00:35 AM5/10/16
to Jenkins Developers
what is the plugin name that it is building (or trying to build)? 

Arnaud Héritier

unread,
May 10, 2016, 3:39:17 AM5/10/16
to jenkin...@googlegroups.com
Hi,

  I imagine you are talking about this one :


  It is normal that it fails because the job is configured to use a JDK 7
  We can configure it to use J8 but if you are targeting J8 you have to remember that current versions of Jenkins core are always compatible with J7 and thus you'll lost all users running on this version (Jenkins core was compatible with J6 few months ago).

 The worst is that we don't have any system in the update center to inform about the java requirement thus users running on J7 will be able to install it and the plugin will die in fire when it will try to start with the classical "Unsupported major.minor version 52.0"

Cheers


  

--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/7802010e-04db-4a9f-a5cf-04cb8d8256aa%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
-----
Arnaud Héritier
Mail/GTalk: aheritier AT gmail DOT com
Twitter/Skype : aheritier

gmon...@redhat.com

unread,
May 10, 2016, 9:35:25 AM5/10/16
to Jenkins Developers
Yes that is the plugin I'm talking about.

While we understand / appreciate the J7 compliance angle, and it is something we are tracking (just not prioritizing, at least yeast), for now we
want the job configured for JDK 8.  Is posting the request here sufficient to make that happen, or is there an additional process I need to initiate?

thanks,
gabe

Arnaud Héritier

unread,
May 10, 2016, 10:46:34 AM5/10/16
to jenkin...@googlegroups.com
No problem. I reconfigured it.



For more options, visit https://groups.google.com/d/optout.

gmon...@redhat.com

unread,
May 10, 2016, 11:16:02 AM5/10/16
to Jenkins Developers
Thanks Arnaud !
Reply all
Reply to author
Forward
0 new messages