maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ashley Williams <agwilliams1...@mac.com>
Subject Re: [m2] Problem to specify project using JDK 5.0
Date Wed, 26 Oct 2005 12:37:56 GMT
Although if you want to tinker with the source and target settings  
just do this:

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

link is at http://maven.apache.org/maven2/plugins/maven-compiler- 
plugin/howto.html

- AW

On 26 Oct 2005, at 13:33, Ashley Williams wrote:

> Make sure you kick off mvn using java 5 - just check and change the  
> value
> of JAVA_HOME accordingly at the command line.
>
> I don't believe you need to modify Java 5 settings any further from  
> within
> the pom from what you are saying here.
>
> AW
>
> On 26 Oct 2005, at 12:56, Jean-Michel TOURNIE wrote:
>
>
>> Hi,
>>
>> I am using Maven 2.0 .
>> I can't compile my project using JDK 5.0, I have the following error:
>>
>> ------
>> F:\TestMaven2\2.0\MyProject\src\main\java\testm2\Jdk5.java:[35,16]
>> generics are not supported in -source 1.3
>> (try -source 1.5 to enable generics)
>> ------
>>
>> I don't find how to specify my project using JDK 1.5, I try the
>> following commands:
>>
>> mvn -DcompilerVersion=1.5
>>     -Dsource=1.5
>>     -Dtarget=1.5
>>     -Dmaven.compile.source=1.5
>>     -Dmaven.compile.target=1.5
>>     compiler:compile
>>
>> mvn -Dmaven.compile.source=1.5
>>     -Dmaven.compile.target=1.5
>>     compiler:compile
>>
>> Should I modify my pom.xml ?
>>
>>
>> Thanks for your help
>>     J-Michel
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>


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


Mime
View raw message