maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James Wiltshire <jwiltsh...@atg.com>
Subject Re: RE : [solved] product codes at java 1.4, test sources at java 1.5
Date Fri, 02 Feb 2007 16:39:18 GMT

I had a similar problem today and managed to solve it without having to use
the bootclasspath idea. Just thought I'd post here in case others are
running into the issue.
Here's how I got it to work...

<plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-compiler-plugin</artifactId>
        <executions>
          <execution>
            <id>java-1.3-compile</id>
            <phase>compile</phase>
            <goals>
              <goal>compile</goal>
            </goals>
            <configuration>
              <source>1.3</source>
              <target>1.3</target>
            </configuration>
          </execution>
          <execution>
            <id>java-1.5-compile</id>
            <phase>process-test-sources</phase>
            <goals>
              <goal>testCompile</goal>
            </goals>
            <configuration>
              <source>1.5</source>
              <target>1.5</target>
            </configuration>
          </execution>
        </executions>
      </plugin>
    </plugins>

Regards
James Wiltshire
-- 
View this message in context: http://www.nabble.com/-solved--product-codes-at-java-1.4%2C-test-sources-at-java-1.5-tf2233884s177.html#a8770351
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Mime
View raw message