[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Missing <repositories> Entry When Downloading from Central Artifactory

Hello Igor,

thanks for your reply. I checked it with a file:// repository now and
the problem is exactly the same. Since I could use file://
repositories for the ones given in my original post, I reproduced the
problem with another parent pom.xml which I use for my internal
projects. That pom.xml originally contained the following
<repositories> section:

<repositories>
    <repository>
      <id>initplan</id>
      <layout>p2</layout>
      <url>http://srvaoide:8042/initplan_sites/mplan_ng_dev/</url>
    </repository>
  </repositories>

When deployed into my central artifactory, everything looks fine
there. Once a Tycho build updates its local snapshots from that
central artifactory, the above <repository> section vanishes from the
retrieved copy and instead there are some blank lines in the file.

I now copied the content of the "srvaoide" webserver hosting the p2
update site to a local directory and replaced the above <repositories>
section by the following:

<repositories>
    <repository>
      <id>initplan</id>
      <layout>p2</layout>
      <url>file:///c:/Temp/initplan_site</url>
    </repository>
  </repositories>

Again, that section is correctly deployed into the central artifactory
but vanishes in the copy automatically retrieved from there by
subsequent Tycho builds.

Everything works fine as long as I install the parent pom.xml into the
local repository of the developer machine by executing "mvn install"
on the parent project before running any depending Tycho build.

Do you have any further hints? What could I try to tackle down the problem?

Thank you for any help.

Best regards
Timo Rohrberg



2012/5/2 Igor Fedorenko <igor@xxxxxxxxxxxxxx>:
> Tycho is not involved in pom.xml file resolution, so I wonder if
> repository manager is to blame here. Can you reproduce the problem with
> a file:// repository?
>
> --
> Regards,
> Igor
>
>
> On 12-05-02 8:16 AM, Timo Rohrberg wrote:
>>
>> Hello everybody,
>>
>> I do have a slight problem with tycho in our build environment. For my
>> various projects, I do have a parent pom project containing default
>> settings for the Tycho plugins. Additionally, that parent pom.xml
>> contains the following<repositories>  section:
>>
>> <repositories>
>>     <repository>
>>       <id>indigo</id>
>>       <layout>p2</layout>
>>       <url>http://download.eclipse.org/releases/indigo/</url>
>>     </repository>
>>     <repository>
>>       <id>nebula</id>
>>       <layout>p2</layout>
>>       <url>http://download.eclipse.org/technology/nebula/snapshot</url>
>>     </repository>
>>     <repository>
>>       <id>rap</id>
>>       <layout>p2</layout>
>>       <url>http://download.eclipse.org/rt/rap/1.4/runtime/</url>
>>     </repository>
>>   </repositories>
>>
>> If I now deploy that parent pom project into our central JFrog Maven
>> Artifactory, everything seems fine first. The pom.xml is correctly
>> deployed and can be retrieved from there via the Web-Interface.
>> Unfortunately, once the subsequent Tycho projects update their
>> snapshots (in the Jenkins local repository), the downloaded pom.xml
>> contains everything but the above<repositories>  section. How is that
>> possible? Why is the downloaded pom.xml file adapted and not just
>> taken as deployed in the central artifactory?
>>
>> Do you have any hint for me?
>>
>> Thank you very much.
>>
>> Best regards
>> Timo
>> _______________________________________________
>> 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