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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to