On 04-08-2014 12:56, Fred Bricon wrote:
That may be a bug in m2e's profile management UI, or deeper in profile
activation somewhere in m2e core.
Is the whenIsIntegrationTestsProject profile really inactive within
Eclipse or is it just some wrong display in the dialog?
when the profile is in the parent pom it is not get activated at the
eclipse workspace. it is not just some wrong display in the dialog.
Either way, I suggest you attach a sample project reproducing the
problem to bugzilla [1]
I will... thanks
[1] https://bugs.eclipse.org/bugs/enter_bug.cgi?product=m2e
Fred Bricon
On Mon, Aug 4, 2014 at 5:40 PM, Cristiano Gavião <[email protected]
<mailto:[email protected]>> wrote:
Hello,
I'm using profiles as the ones below in my poms:
<profile>
<id>not-in-eclipse-mbp</id>
<activation>
<property>
<name>!m2e.version</name>
</property>
</activation>
</profile>
<profile>
<id>in-eclipse-mbp</id>
<activation>
<property>
<name>m2e.version</name>
</property>
</activation>
</profile>
<profile>
<id>whenIsIntegrationTestsProjectInEclipse</id>
<activation>
<property>
<name>m2e.version</name>
</property>
<file>
<exists>.lunifera.releng.itests</exists>
</file>
</activation>
</profile>
<profile>
<id>whenIsIntegrationTestsProject</id>
<activation>
<file>
<exists>.lunifera.releng.itests</exists>
</file>
</activation>
</profile>
The profile "whenIsIntegrationTestsProjectInEclipse" was added
only after maven 3.2.2 was released that included a fix that
allows us to use a "AND" between activation items instead "OR".
(I've installed m2e 1.6x for use it)
I'm getting a problem with dependencies that is not being computed
in the maven java project at workspace (they should come from a
profile activated using file condition).
I tried the Maven Profile selection feature from m2e 1.6 to check
the active profiles for the project. But I'm getting different
values then when using mvn help:active-profiles.
In my case, m2e's dialog shows me only the "in-eclipse-mbp"
profile as auto activated (in italic) and some others from
external sources, but not the "whenIsIntegrationTestsProject" that
is using file activation that help:active-profiles shows me.
Below is the result of help:active-profiles in a project
containing the file .lunifera.releng.itests:
The following profiles are active:
- not-in-eclipse-mbp (source:
org.lunifera.releng.maven:lunifera-releng-maven-parent-mbp:0.10.1-SNAPSHOT)
- whenIsIntegrationTestsProject (source:
org.lunifera.releng.maven:lunifera-releng-maven-parent-mbp:0.10.1-SNAPSHOT)
is this a bug in m2e or am I missing something?
thanks in advance,
Cristiano
_______________________________________________
m2e-users mailing list
[email protected] <mailto:[email protected]>
To change your delivery options, retrieve your password, or
unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/m2e-users
--
"Have you tried turning it off and on again" - The IT Crowd
_______________________________________________
m2e-users mailing list
[email protected]
To change your delivery options, retrieve your password, or unsubscribe from
this list, visit
https://dev.eclipse.org/mailman/listinfo/m2e-users
_______________________________________________
m2e-users mailing list
[email protected]
To change your delivery options, retrieve your password, or unsubscribe from
this list, visit
https://dev.eclipse.org/mailman/listinfo/m2e-users