GMaven
  1. GMaven
  2. GMAVEN-21

gmaven-plugin does not support <source> and <target> configuration options

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.3
    • Component/s: compile
    • Labels:
      None
    • Environment:
      ubuntu 8.04, Java 1.6
    • Number of attachments :
      0

      Description

      The gmaven-plugin does not support using source and target options which the maven-compiler-plugin supports:
      <configuration>
      <source>1.5</source>
      <target>1.5</target>
      </configuration>

      This makes it hard to compile java code with 1.5+ features, such as annotations. The only workaround I found was to pass in the variables on the command line:
      mvn clean test -Dmaven.compiler.source=1.5 -Dmaven.compiler.target=1.5

        Activity

        Hide
        Jason Dillon added a comment -

        Have you seen the targetBytecode parameter? This doesn't cut it?

        http://groovy.codehaus.org/gmaven-generated/gmaven-plugin/compile-mojo.html#targetBytecode

        Show
        Jason Dillon added a comment - Have you seen the targetBytecode parameter? This doesn't cut it? http://groovy.codehaus.org/gmaven-generated/gmaven-plugin/compile-mojo.html#targetBytecode
        Hide
        Daniel added a comment -

        I tried using the following with no luck:
        <configuration>
        <targetBytecode>1.5</targetBytecode>
        </configuration>

        Show
        Daniel added a comment - I tried using the following with no luck: <configuration> <targetBytecode>1.5</targetBytecode> </configuration>
        Hide
        Jason Dillon added a comment -

        Is this for stub compilation? Otherwise I am confused how setting -Dmaven.compiler.* properties propagates to the Groovy runtime. Please clarify.

        Show
        Jason Dillon added a comment - Is this for stub compilation? Otherwise I am confused how setting -Dmaven.compiler.* properties propagates to the Groovy runtime. Please clarify.
        Hide
        Ronny Løvtangen added a comment -

        Related to GMAVEN-65?

        Show
        Ronny Løvtangen added a comment - Related to GMAVEN-65 ?

          People

          • Assignee:
            Jason Dillon
            Reporter:
            Daniel
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: