Java versions of JDK plugins

Hello,

Is there a way to determine the exact version of the Java 6 and Java 7 plugins that are available in a Maven build runner? We have strict requirements for minimum versions of each. It would be easiest for us to start using the plugins because we will be creating both java6 and java7 versions of some of our build artifacts. The easiest way for us to do this would to create 2 maven build steps within each build config, one using the jdk 6 plugin and the other using the jdk 7 plugin. We are currently using TeamCity 8.1.5

Thanks,
Dave

5 comments
Comment actions Permalink

Hi Dave,

You can specify JDK Home Path in Maven Runner. This parameter determines which java version is used to compile the build.
If it is not your question, then please clarify what do you mean by "jdk 6 plugin" and "jdk 7 plugin"?

0
Comment actions Permalink

If I choose JDK 1.7 x64 or JDK 1.6 x64 from the following list when setting up a Maven build runner what versions of each am I using?:

Screen Shot 2015-02-19 at 9.04.57 AM.png

Thanks,
Dave

0
Comment actions Permalink

JDK 1.6 = Java 6, JDK 1.7 = Java 7. Use this field to specify the path to the JDK which should be used to run the build

0
Comment actions Permalink

I'm confused as there is no place to add a path when you select JDK 1.7 x64.

On my build agents, I have installed java 1.6.0_31. For maven runners, TeamCity provides Maven 2.2.1, Maven 3.0.5 and Maven 3.1.1 as plugins. So, I don't have to install maven to run it. Does TeamCity provide java6 and java7 plugins as well or do I need to install java6 and java7 to use them?

In the JDK dropdown in the Maven runner:

- If I select <Default>  it will use the JAVA_HOME version of java that I deployed on my build agent.
i.e.:
[dave@utl-tca01] ~ $ java -version

java version "1.6.0_31"

Java(TM) SE Runtime Environment (build 1.6.0_31-b04)

Java HotSpot(TM) 64-Bit Server VM (build 20.6-b01, mixed mode)

- If I select <Custom> I must then enter the JDK home path of the installed java

- In addition, there are the following choices:

JDK 1.7

JDK 1.7 x64

JDK 1.6

JDK 1.6 x64

I am wondering if those 4 are plugins like maven ones or are they some type of variable that requires that I install the appropriate java versions?

My goal is as follows: I need to compile the same set of code first with a java6 compiler and then with a java7 compiler.

Do I need to install JDK 1.6 & JDK 1.7 to each build agent to accomplish this or does TeamCity provide JDK 1.6 & JDK 1.7?

0
Comment actions Permalink

When a build agent starts, first the installed JDK and JRE are detected. In this dropdown you can see the list of all available JDKs on all agents.
There is no bundled java plugin in TeamCity. You need to install JDK 1.6 and JDK 1.7 to each build agent, where you want to run this build.

0

Please sign in to leave a comment.