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

2013-09-09 Thread Jackson Isted
Well what would you know, after a full day of restricted school internet, I
come back home to a magically working Maven which builds on 1.6 :D . Thanks
for your help guys :)

Sent from my iPod

On 9 Sep 2013, at 6:54 am, Jackson Isted 
wrote:

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


[m2e-users] Please test fix for m2eclipse-tycho

2013-09-09 Thread Fred Bricon
Hi,

If your maven/tycho based eclipse plugin references embedded jars in its
classpath, you probably saw these classpath references disappear on Maven >
Project Update (they come back after a 2nd project update).

If you're interested in testing a patch I've made, you can test a fixed
version from a p2 repo at
http://dl.bintray.com/fbricon/maven/eclipse/m2eclipse-tycho/ or download a
zipped p2 repo from
http://dl.bintray.com/fbricon/maven/eclipse/m2eclipse-tycho/org.sonatype.tycho.update-0.7.0.201309070907.zip

If it works (or not) for you, please add your feedback to
https://github.com/tesla/m2eclipse-tycho/pull/12

Thanks.

Fred

-- 
"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] properties-maven-plugin with m2e

2013-09-09 Thread Dirk Fauth
Hi,

I need to implement some build mechanism to extract some resources out of
my test plugin into an external folder. I achieve this using the
maven-resources-plugin.

Now I wan't to make the folder to copy the resources to configurable via
properties. But for reusability I want to store the configuration in a
properties file rather than in the pom directly.

I found the properties-maven-plugin to exactly match my needs. And running
the Maven build from console works fine. But in Eclipse I get an error
saying the value for the configured outputDirectory is not valid. I guess
that is because m2e can not resolve the property, as it will be loaded on
build time and is not available when loading the pom in the editor in
Eclipse.

Now the question is, how can I enable the properties-maven-plugin to work
with m2e?
Another way would be to simply disable the error for that case, but I
didn't find the configuration for that. Would that be possible?

I also tried to specify the property in the pom and then let the plugin
override the value. But that is not supported using Maven 3.

Any help would be appreciated.

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


Re: [m2e-users] properties-maven-plugin with m2e

2013-09-09 Thread Igor Fedorenko

Wiki page [1] explains how to make a plugin compatible with m2e.

[1] http://wiki.eclipse.org/M2E_compatible_maven_plugins

--
Regards,
Igor

On 2013-09-09 7:35 AM, Dirk Fauth wrote:

Hi,

I need to implement some build mechanism to extract some resources out
of my test plugin into an external folder. I achieve this using the
maven-resources-plugin.

Now I wan't to make the folder to copy the resources to configurable via
properties. But for reusability I want to store the configuration in a
properties file rather than in the pom directly.

I found the properties-maven-plugin to exactly match my needs. And
running the Maven build from console works fine. But in Eclipse I get an
error saying the value for the configured outputDirectory is not valid.
I guess that is because m2e can not resolve the property, as it will be
loaded on build time and is not available when loading the pom in the
editor in Eclipse.

Now the question is, how can I enable the properties-maven-plugin to
work with m2e?
Another way would be to simply disable the error for that case, but I
didn't find the configuration for that. Would that be possible?

I also tried to specify the property in the pom and then let the plugin
override the value. But that is not supported using Maven 3.

Any help would be appreciated.

Greez,
Dirk


___
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] properties-maven-plugin with m2e

2013-09-09 Thread Dirk Fauth
Sorry, although I'm signed into the mailing list I didn't receive your
answer. Just saw it in the archive and hope this reply is added correctly
to the discussion.

If I understand your answer correctly, the link you posted suggests to
modify the maven plugin itself? This is the only option to make the
properties-maven-plugin work with m2e?

I'm not the developer of the plugin. Just a user. Is there no other option?
I just want to make the property that is set via that plugin available to
other plugins in m2e so the errors disappear. I didn't wanted to contribute
to a maven plugin, as I'm not familiar with that.

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


Re: [m2e-users] properties-maven-plugin with m2e

2013-09-09 Thread Igor Fedorenko

The other possibility is to develop an m2e extension that "wraps"
properties-maven-plugin execution during Eclipse workspace build.
Judging by the plugin description [1], it should be next to trivial to
make necessary changes at plugin level; m2e extension will be more work.

[1] http://mojo.codehaus.org/properties-maven-plugin/

--
Regards,
Igor

On 2013-09-09 2:38 PM, Dirk Fauth wrote:

Sorry, although I'm signed into the mailing list I didn't receive your
answer. Just saw it in the archive and hope this reply is added
correctly to the discussion.

If I understand your answer correctly, the link you posted suggests to
modify the maven plugin itself? This is the only option to make the
properties-maven-plugin work with m2e?

I'm not the developer of the plugin. Just a user. Is there no other
option? I just want to make the property that is set via that plugin
available to other plugins in m2e so the errors disappear. I didn't
wanted to contribute to a maven plugin, as I'm not familiar with that.

Greez,
Dirk


___
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