[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [tycho-user] local p2 repository and update policy
|
Hi,
If delete .m2\repository\.meta before every build is only one solution
could you said if it is safe to remove it before one build when few
others are during running?
BR//Kamil
2012/4/2 Kamil Demecki <skajotde@xxxxxxxxx>:
> Hi,
>
> Do you know possible solution for this problem?
>
> BR//Kamil
>
> 2012/3/29 Kamil Demecki <skajotde@xxxxxxxxx>:
>> Hi,
>>
>> My build has two steps:
>>
>> First step is to download bundles from maven (maven-dependency-plugin)
>> and generate p2 in temporary dir (publish-features-and-bundles)
>>
>> Second step is normal maven build with declared p2 repositories. I'm
>> using two repositories, one for eclipse36 and second for local
>> repository from step one.
>>
>> It works very well but I found problem when bundle in step one has the
>> same version in Manifest even for new versions of maven artifact - I
>> know that it is not recommended but I cannot fix it.
>>
>> Thus my build cannot see latest bundle even my local repo contains
>> newest but tycho compare version in Manifest and use bundle from own
>> cache.
>>
>> I tried configure updatePolicy in local p2 repository:
>>
>> <repository>
>> <id>local-deps-from-nexus</id>
>> <layout>p2</layout>
>> <url>${p2.local.deps.url}</url>
>> <releases>
>> <enabled>true</enabled>
>> <updatePolicy>always</updatePolicy>
>> </releases>
>> <snapshots>
>> <enabled>true</enabled>
>> <updatePolicy>always</updatePolicy>
>> </snapshots>
>> </repository>
>> <repository>
>> <id>eclipse</id>
>> <layout>p2</layout>
>> <url>${p2.eclipse.url}</url>
>> </repository>
>>
>> It doesn't work for me. I found
>> https://bugs.eclipse.org/bugs/show_bug.cgi?id=337022 but I think
>> always policy should work now.
>>
>> One workaround is to delete .m2\repository\.meta before every build
>> but it is last solution I would say. Is any other solution?
>>
>> BR//Kamil