[m2e-users] (n00b Alert) why does my project build and execution environment change when converting to maven project?

2013-09-08 Thread Jackson Isted
Hi,

Sad to say that I am n00b to m2e (and to be fair, maven overall). I
really like the system, but one thing I don't get is when ever I
convert an existing project to a maven one or start a new maven
project the execution is always J2SE-1.5. Does anyone know why this is
occurring.

Ps. The execution used to be JSE 6

Sent from my iPod
___
m2e-users mailing list
m2e-users@eclipse.org
https://dev.eclipse.org/mailman/listinfo/m2e-users


Re: [m2e-users] (n00b Alert) why does my project build and execution environment change when converting to maven project?

2013-09-08 Thread Greg Thomas
This is really a Maven question, not a Maven on Eclipse (M2E) question, and
probably better asked on us...@maven.apache.org

However, the reason is simply that Maven defaults to JDK 1.5. To change it,
you'll want something like the following in your pom.xml ...




org.apache.maven.plugins
maven-compiler-plugin
3.1

1.6
1.6





which configures the compiler plugin to use JDK 1.6

Greg


On 8 September 2013 10:38, Jackson Isted wrote:

> Hi,
>
> Sad to say that I am n00b to m2e (and to be fair, maven overall). I
> really like the system, but one thing I don't get is when ever I
> convert an existing project to a maven one or start a new maven
> project the execution is always J2SE-1.5. Does anyone know why this is
> occurring.
>
> Ps. The execution used to be JSE 6
>
> Sent from my iPod
> ___
> m2e-users mailing list
> m2e-users@eclipse.org
> https://dev.eclipse.org/mailman/listinfo/m2e-users
>
___
m2e-users mailing list
m2e-users@eclipse.org
https://dev.eclipse.org/mailman/listinfo/m2e-users


Re: [m2e-users] (n00b Alert) why does my project build and execution environment change when converting to maven project?

2013-09-08 Thread Fred Bricon
What version of m2e are you using? Since m2e 1.1, if you start with no
pom.xml and right-click on your eclipse project and Configure...>Convert to
Maven..., the generated pom.xml is supposed to contain the
maven-compiler-plugin configuration matching your Eclipse JDT settings.
If you already have a pom.xml, then, no settings conversion is done, m2e
uses the already existing pom and you must do as Greg said.


On Sun, Sep 8, 2013 at 12:45 PM, Greg Thomas wrote:

> This is really a Maven question, not a Maven on Eclipse (M2E) question,
> and probably better asked on us...@maven.apache.org
>
> However, the reason is simply that Maven defaults to JDK 1.5. To change
> it, you'll want something like the following in your pom.xml ...
>
> 
> 
> 
> org.apache.maven.plugins
> maven-compiler-plugin
> 3.1
> 
> 1.6
> 1.6
> 
> 
> 
> 
>
> which configures the compiler plugin to use JDK 1.6
>
> Greg
>
>
> On 8 September 2013 10:38, Jackson Isted wrote:
>
>> Hi,
>>
>> Sad to say that I am n00b to m2e (and to be fair, maven overall). I
>> really like the system, but one thing I don't get is when ever I
>> convert an existing project to a maven one or start a new maven
>> project the execution is always J2SE-1.5. Does anyone know why this is
>> occurring.
>>
>> Ps. The execution used to be JSE 6
>>
>> Sent from my iPod
>> ___
>> m2e-users mailing list
>> m2e-users@eclipse.org
>> https://dev.eclipse.org/mailman/listinfo/m2e-users
>>
>
>
> ___
> m2e-users mailing list
> m2e-users@eclipse.org
> https://dev.eclipse.org/mailman/listinfo/m2e-users
>
>


-- 
"Have you tried turning it off and on again" - The IT Crowd
___
m2e-users mailing list
m2e-users@eclipse.org
https://dev.eclipse.org/mailman/listinfo/m2e-users


Re: [m2e-users] (n00b Alert) why does my project build and execution environment change when converting to maven project?

2013-09-08 Thread Jackson Isted
I'm using that latest version, but I will test that later when I get home.

Sent from my iPod

On 9 Sep 2013, at 12:33 am, Fred Bricon  wrote:

What version of m2e are you using? Since m2e 1.1, if you start with no
pom.xml and right-click on your eclipse project and Configure...>Convert to
Maven..., the generated pom.xml is supposed to contain the
maven-compiler-plugin configuration matching your Eclipse JDT settings.
If you already have a pom.xml, then, no settings conversion is done, m2e
uses the already existing pom and you must do as Greg said.


On Sun, Sep 8, 2013 at 12:45 PM, Greg Thomas wrote:

> This is really a Maven question, not a Maven on Eclipse (M2E) question,
> and probably better asked on us...@maven.apache.org
>
> However, the reason is simply that Maven defaults to JDK 1.5. To change
> it, you'll want something like the following in your pom.xml ...
>
> 
> 
> 
> org.apache.maven.plugins
> maven-compiler-plugin
> 3.1
> 
> 1.6
> 1.6
> 
> 
> 
> 
>
> which configures the compiler plugin to use JDK 1.6
>
> Greg
>
>
> On 8 September 2013 10:38, Jackson Isted wrote:
>
>> Hi,
>>
>> Sad to say that I am n00b to m2e (and to be fair, maven overall). I
>> really like the system, but one thing I don't get is when ever I
>> convert an existing project to a maven one or start a new maven
>> project the execution is always J2SE-1.5. Does anyone know why this is
>> occurring.
>>
>> Ps. The execution used to be JSE 6
>>
>> Sent from my iPod
>> ___
>> m2e-users mailing list
>> m2e-users@eclipse.org
>> https://dev.eclipse.org/mailman/listinfo/m2e-users
>>
>
>
> ___
> m2e-users mailing list
> m2e-users@eclipse.org
> https://dev.eclipse.org/mailman/listinfo/m2e-users
>
>


-- 
"Have you tried turning it off and on again" - The IT Crowd

___
m2e-users mailing list
m2e-users@eclipse.org
https://dev.eclipse.org/mailman/listinfo/m2e-users
___
m2e-users mailing list
m2e-users@eclipse.org
https://dev.eclipse.org/mailman/listinfo/m2e-users


Re: [m2e-users] (n00b Alert) why does my project build and execution environment change when converting to maven project?

2013-09-08 Thread Jackson Isted
Tried it and even added the java 1.6 library but as soon as I hit update
project it fell back to 1.5

Sent from my iPod

On 9 Sep 2013, at 12:33 am, Fred Bricon  wrote:

What version of m2e are you using? Since m2e 1.1, if you start with no
pom.xml and right-click on your eclipse project and Configure...>Convert to
Maven..., the generated pom.xml is supposed to contain the
maven-compiler-plugin configuration matching your Eclipse JDT settings.
If you already have a pom.xml, then, no settings conversion is done, m2e
uses the already existing pom and you must do as Greg said.


On Sun, Sep 8, 2013 at 12:45 PM, Greg Thomas wrote:

> This is really a Maven question, not a Maven on Eclipse (M2E) question,
> and probably better asked on us...@maven.apache.org
>
> However, the reason is simply that Maven defaults to JDK 1.5. To change
> it, you'll want something like the following in your pom.xml ...
>
> 
> 
> 
> org.apache.maven.plugins
> maven-compiler-plugin
> 3.1
> 
> 1.6
> 1.6
> 
> 
> 
> 
>
> which configures the compiler plugin to use JDK 1.6
>
> Greg
>
>
> On 8 September 2013 10:38, Jackson Isted wrote:
>
>> Hi,
>>
>> Sad to say that I am n00b to m2e (and to be fair, maven overall). I
>> really like the system, but one thing I don't get is when ever I
>> convert an existing project to a maven one or start a new maven
>> project the execution is always J2SE-1.5. Does anyone know why this is
>> occurring.
>>
>> Ps. The execution used to be JSE 6
>>
>> Sent from my iPod
>> ___
>> m2e-users mailing list
>> m2e-users@eclipse.org
>> https://dev.eclipse.org/mailman/listinfo/m2e-users
>>
>
>
> ___
> m2e-users mailing list
> m2e-users@eclipse.org
> https://dev.eclipse.org/mailman/listinfo/m2e-users
>
>


-- 
"Have you tried turning it off and on again" - The IT Crowd

___
m2e-users mailing list
m2e-users@eclipse.org
https://dev.eclipse.org/mailman/listinfo/m2e-users
___
m2e-users mailing list
m2e-users@eclipse.org
https://dev.eclipse.org/mailman/listinfo/m2e-users