[jbosstools-dev] No way to get rid of annoying lifecycle warning ?

Max Rydahl Andersen max.andersen at redhat.com
Fri Nov 16 19:59:31 EST 2012


> I think the problem here is with the pom.xml files.  Prior to the m2e fix, there was no way to store this information outside of the pom files.  Obviously, they could have created a dummy jar to make this work without the warning.

well, even with the fix inside the pom.xml I was rather convinced this would just be done in a specific m2e profile so you would not see warnings in your CLI builds.

Unfortunately my google foo tonight is not finding that....Fred, do you recall ?

....but yes, I'm probably for removing this from the pom.xml if that is *not* the case.

> I'd actually start nuking this from the poms, which will force dev's to upgrade to the latest m2e to get around this problem.  Unfortunately, it looks like part of the feature is "experimental."

My current problem with it is that it seems to be workspace preference. Would rather be able to put a "lifecycle.xml' or something in the parent pom to be applied to all...but seems not possible either.

/max

> 
> Best,
> Rob
> 
> ----- Original Message -----
>> 
>> I'm not sure when it was introduced but it started to drive me
>> crazy..
>> 
>> We got this in our parent pom (and a few other plugins):
>>  <!--This plugin's configuration is used to store Eclipse m2e
>>  settings only.
>>                    It has no influence on the Maven build itself.-->
>>                <!-- Workaround for
>>                https://bugs.eclipse.org/bugs/show_bug.cgi?id=350414
>>                -->
>>                                <plugin>
>>                                        <groupId>org.eclipse.m2e</groupId>
>>                                        <artifactId>lifecycle-mapping</artifactId>
>>                                        <version>1.0.0</version>
>> 
>> Which seem to cause our build to spit out a warning for *every* damn
>> component:
>> 
>> [INFO]
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Building gwt.all 1.1.0-SNAPSHOT
>> [INFO]
>> ------------------------------------------------------------------------
>> [WARNING] The POM for org.eclipse.m2e:lifecycle-mapping:jar:1.0.0 is
>> missing, no dependency information available
>> [WARNING] Failed to retrieve plugin descriptor for
>> org.eclipse.m2e:lifecycle-mapping:1.0.0: Plugin
>> org.eclipse.m2e:lifecycle-mapping:1.0.0 or one of its dependencies
>> could not be resolved: Failed to read artifact descriptor for
>> org.eclipse.m2e:lifecycle-mapping:jar:1.0.0
>> 
>> X ~420.
>> 
>> Can we not avoid this ? didn't m2e actually get fixed to not require
>> these kind of changes....or at least have a way to dump this
>> [warning] on every build ? (i.e. shouldn't this not only be present
>> in a specific m2e profile ?!
>> 
>> Fred/Mickael, ?
>> 
>> /max
>> 
>> 
>> 
>> _______________________________________________
>> jbosstools-dev mailing list
>> jbosstools-dev at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/jbosstools-dev
>> 




More information about the jbosstools-dev mailing list