Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] [WARNING] The following locally built units have been used to resolve project dependencies

All projects in trunk have SNAPSHOT (pom.xml) and qualifiers
(MANIFEST.mf) as version suffix.  But I also need to be able to check
out the code from tag and build a released project (does not have
SNAPSHOT/qualifier since its release code). Since this codes does not
change it should be safe to ignore the warning in this context right?



On Mon, Oct 10, 2011 at 2:09 PM, Oberlies, Tobias
<tobias.oberlies@xxxxxxx> wrote:
> You may get this warning in case you are building artifacts which you have built with mvn clean install before, and these artifacts have exactly the same version.
>
> I would strongly encourage to avoid these re-builds without version change, because they don't work and may give surprising results. For the p2 metadata, Tycho does as you propose: it just uses what you are currently building and ignores what is available in the local Maven repository. However, for p2 artifacts, this is not implemented, which means that Tycho (or p2 underneath) may use the artifact from your previous mvn clean install.
>
> Your options are:
> - Clear the .meta/p2-artifacts.properties, and only build with mvn clean verify therearfter
> - Use an automatic qualifier, i.e. append ".qualifier" to the Eclipse versions (and -SNAPSHOT to the Maven versions)
>
> Regards
> Tobias
>
>> -----Original Message-----
>> From: tycho-user-bounces@xxxxxxxxxxx [mailto:tycho-user-
>> bounces@xxxxxxxxxxx] On Behalf Of motes motes
>> Sent: Montag, 10. Oktober 2011 11:50
>> To: Tycho user list
>> Subject: [tycho-user] [WARNING] The following locally built units have
>> been used to resolve project dependencies
>>
>> When I build my multi-module project I get this warning:
>>
>> [WARNING] The following locally built units have been used to resolve
>> project dependencies
>> ...
>>
>> and then a list of all my bundles/features are written. Does this mean
>> that it uses the previously build jars from the local maven m2
>> repository?
>>
>> All the dependencies that are listed are actually part of the same
>> project (with a master parent pom) so why does it not use those to
>> resolve the project dependencies?
>> _______________________________________________
>> tycho-user mailing list
>> tycho-user@xxxxxxxxxxx
>> https://dev.eclipse.org/mailman/listinfo/tycho-user
> _______________________________________________
> tycho-user mailing list
> tycho-user@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/tycho-user
>


Back to the top