You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Nicolas De Loof <ni...@capgemini.com> on 2006/03/29 17:31:11 UTC

[solved] Re: [m2] compiler has no effect ?

Reading plexus-compiler-javac source I discoverd 
<compilerVersion>1.3</compilerVersion>  was the problem :

This property seems to force the javac version, and 1.3 doesn't support 
-source option

Nicolas De Loof a écrit :
>
> I've set debug on and it seems source is correclty set for 
> compiler-plugin. Maybe a plexus-compiler-javac bug ?
>
> It may be interesting to get the full compiler process command line in 
> debug.
>
> [DEBUG]   (f) compilerId = javac
> [DEBUG]   (f) compilerVersion = 1.3
> [DEBUG]   (f) debug = true
> [DEBUG]   (f) encoding = ISO-8859-1
> [DEBUG]   (f) fork = false
> [DEBUG]   (f) optimize = false
> [DEBUG]   (f) outputDirectory = 
> D:\commons\platina\platina-remoting\target\classes
> [DEBUG]   (f) outputFileName = platina-remoting-0.1-SNAPSHOT
> [DEBUG]   (f) projectArtifact = 
> com.capgemini.platina:platina-remoting:jar:0.1-SNAPSHOT
> **[DEBUG]   (f) source = 1.3
> [DEBUG]   (f) staleMillis = 0
> **[DEBUG]   (f) target = 1.3
> [DEBUG]   (f) verbose = false
> [DEBUG] -- end configuration --
>
>
> Nicolas De Loof a écrit :
>>
>> Hello,
>>
>> I've setup maven-compiler-plugin to be 1.3 compliant :
>> <plugin>
>>        <groupId>org.apache.maven.plugins</groupId>
>>        <artifactId>maven-compiler-plugin</artifactId>
>>        <configuration>
>>              <compilerVersion>1.3</compilerVersion>
>>              <source>1.3</source>
>>              <target>1.3</target>
>>        </configuration>
>> </plugin>
>>
>> Running maven using JDK 1.5 I get :
>> "Failure executing javac, but could not parse the error:
>> javac: target release 1.3 conflicts with default source release 1.5"
>>
>> This sounds like javac gets the "-target" option but not the "-source".
>>
>> Is this a know bug ?
>>
>> Nico.
>>
>>
>>
>> This message contains information that may be privileged or 
>> confidential and is the property of the Capgemini Group. It is 
>> intended only for the person to whom it is addressed. If you are not 
>> the intended recipient,  you are not authorized to read, print, 
>> retain, copy, disseminate,  distribute, or use this message or any 
>> part thereof. If you receive this  message in error, please notify 
>> the sender immediately and delete all  copies of this message.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>
> This message contains information that may be privileged or 
> confidential and is the property of the Capgemini Group. It is 
> intended only for the person to whom it is addressed. If you are not 
> the intended recipient,  you are not authorized to read, print, 
> retain, copy, disseminate,  distribute, or use this message or any 
> part thereof. If you receive this  message in error, please notify the 
> sender immediately and delete all  copies of this message.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>

This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient,  you are not authorized to read, print, retain, copy, disseminate,  distribute, or use this message or any part thereof. If you receive this  message in error, please notify the sender immediately and delete all  copies of this message.


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