This discussion is archived
1 Reply Latest reply: Nov 19, 2012 12:09 AM by r035198x RSS

Maven & Axis2 plugin - different stub code generation

973959 Newbie
Currently Being Moderated
Hi,
I'm using Maven 3.0.4 and Axis2 1.5.1 plugin. I've a problem with the generation of a stub class using AXIS2 plugin on Maven.

Depending on the JDK currently configured on the build environment, AXIS2 plugin generates a different stub class source code. I've tried the generation using JDK 1.6 and then JDK 1.7.

There is a way to "force" the JDK (i.e. 1.6) used by the AXIS2 plugin inside Maven (without changing environment)? (I would like to have a code generation independent from the environment)

Please, someone can help me?
  • 1. Re: Maven & Axis2 plugin - different stub code generation
    r035198x Pro
    Currently Being Moderated
    Don't know if this will help but you can tell maven which compiler version for source and target classes in the compiler plugin with
    <configuration>
         <source>1.6</source>
         <target>1.6</target>
    </configuration>
    If that doesn't help then check axis plugin specific properties to see if you can pass parameters to the compiler or runtime.

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points