Re: Why does mvn compiile using java 1.3?

2012-11-28 Thread Jasper Floor
I use mvn on the command line. I actually solved the problem by setting the
java version explicitly. I have jdk 1.6.0_33. I found some things on
various sites which suggested mvn always compiles in 1.3 mode. You might
not notice this in an IDE (if it is true) since your IDE is likely to fix
this for you. After all, you also have an explicit java version in your IDE.

mvg,
Jasper

On Fri, Nov 16, 2012 at 4:42 PM, Ron Wheeler  wrote:

> What IDE are you using.
> If your colleagues are using the same pom, you need to look at your IDE
> setup.
>
> For example, Eclipse will let you select any of the available compilers.
>
> Ron
>
>
> On 16/11/2012 8:21 AM, John Patrick wrote:
>
>> Jasper,
>>
>> I also experience similar issues, it comes down to what version of
>> java you have installed, what version of the plugin you use and what
>> their respective defaults are. To avoid this I would explicitly state
>> version's of plugins and also a few other useful properties. I always
>> but at the least the following in every new project pom;
>>
>> > [...]
>> 
>> [...]
>>
>> [...]
>>   
>> [...]
>>  
>> org.apache.maven.plugins
>> maven-compiler-plugin
>> 2.5.1
>>  
>> [...]
>>   
>> [...]
>>
>> [...]
>> 
>> [...]
>> 
>> [...]
>>UTF-8
>>1.6
>>
>>  
>> ${project.custom.java.version}
>>
>>  
>> ${project.custom.java.version}
>>
>>  
>> ${project.custom.encoding}
>>
>>  
>> ${project.custom.encoding}
>>
>>  
>> ${project.custom.encoding}
>> [...]
>> 
>> 
>>
>> John
>>
>> On 16 November 2012 09:50, Olivier Lamy  wrote:
>>
>>> Hi,
>>> Which maven-compiler-plugin version are you using ?
>>> Does your colleague set JAVA_HOME env var on windows ?
>>>
>>> 2012/11/16 Jasper Floor :
>>>
>>>> Hi,
>>>>
>>>> For some reason mvn is compiling using java 1.3. I do not understand
>>>> this
>>>> behavior. I have never seen this before and it doesn't do this on my
>>>> colleagues machine with the same project. The big difference is he is a
>>>> windows use and I am a linux user.
>>>>
>>>> Apache Maven 3.0.4
>>>> Maven home: /usr/share/maven
>>>> Java version: 1.6.0_33, vendor: Sun Microsystems Inc.
>>>> Java home: /opt/jdk/jdk1.6.0_33/jre
>>>> Default locale: en_US, platform encoding: UTF-8
>>>> OS name: "linux", version: "3.2.0-29-generic", arch: "amd64", family:
>>>> "unix"
>>>>
>>>> Its a Mint distro, but with my own java installed as I required the 1.6
>>>>   jdk.
>>>>
>>>>
>>>> mvg,
>>>> Jasper
>>>>
>>>
>>>
>>> --
>>> Olivier Lamy
>>> Talend: http://coders.talend.com
>>> http://twitter.com/olamy | http://linkedin.com/in/olamy
>>>
>>> -
>>> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
>>> For additional commands, e-mail: users-h...@maven.apache.org
>>>
>>>  -
>> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
>> For additional commands, e-mail: users-h...@maven.apache.org
>>
>>
>>
>
> --
> Ron Wheeler
> President
> Artifact Software Inc
> email: rwhee...@artifact-software.com
> skype: ronaldmwheeler
> phone: 866-970-2435, ext 102
>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>


Why does mvn compiile using java 1.3?

2012-11-16 Thread Jasper Floor
Hi,

For some reason mvn is compiling using java 1.3. I do not understand this
behavior. I have never seen this before and it doesn't do this on my
colleagues machine with the same project. The big difference is he is a
windows use and I am a linux user.

Apache Maven 3.0.4
Maven home: /usr/share/maven
Java version: 1.6.0_33, vendor: Sun Microsystems Inc.
Java home: /opt/jdk/jdk1.6.0_33/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "3.2.0-29-generic", arch: "amd64", family: "unix"

Its a Mint distro, but with my own java installed as I required the 1.6
 jdk.


mvg,
Jasper