Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » P2 » p2.mirror task fails when using iu with specific version
p2.mirror task fails when using iu with specific version [message #1787284] Wed, 23 May 2018 06:38 Go to next message
Matthias Fromme is currently offline Matthias FrommeFriend
Messages: 22
Registered: December 2011
Location: Germany
Junior Member
Hello,

i'm trying to create an minimized offline mirror of the orbit repository using the p2.mirror ant task.
This works well if i use an "iu" without the version attribute.
But when i try to mirror a specific version, the build fails with the following message:

build.xml:11: Unable to find: Installable Unit [ id=org.objectweb.asm version=5.2.0 ]


My ant file is the shown below:
<project name="Create mirror of orbit" default="mirror">
    <!-- Properties for orbit of Oxygen.3  -->
    <property name="version">R20180330011457</property>
    <property name="repository">http://download.eclipse.org/tools/orbit/downloads/drops/${version}/repository</property>
    
    <target name="mirror">
        <echo>Creating Mirror of Orbit ${version}</echo>
        <echo>Source:      ${repository}</echo>
        <echo>Destination: ${basedir}\${version}</echo>
        
        <p2.mirror>
            <repository location="${basedir}\${version}" name="Mirror of Orbit ${version}" />
            <source>
                <repository location="${repository}" />
            </source>
            <iu id="com.google.guava" />
            <iu id="com.google.inject" />
            <iu id="org.objectweb.asm" version="5.2.0"/>
            <slicingoptions platformfilter="win32,win32,x86_64" />
        </p2.mirror>
    </target>
</project>


I have double checked that the iu is available in this version in the repository. When i remove the version, it mirrors "org.objectweb.asm" in version "6.0.0".
Is there anything i can do about that?

Regards,
Matthias
Re: p2.mirror task fails when using iu with specific version [message #1787304 is a reply to message #1787284] Wed, 23 May 2018 13:23 Go to previous messageGo to next message
Eclipse UserFriend
Searching that repository for all bundles org.objectweb.asm shows:

org.objectweb.asm=3.3.1.v201105211655
org.objectweb.asm=4.0.0.v201302062210
org.objectweb.asm=5.0.1.v201404251740
org.objectweb.asm=5.2.0.v20180228-1718
org.objectweb.asm=6.0.0.v20180116-1719


None have version "5.2.0". You need to specify the full version.

(I used the p2.director's `-list` option.)
Re: p2.mirror task fails when using iu with specific version [message #1787386 is a reply to message #1787304] Thu, 24 May 2018 13:03 Go to previous message
Matthias Fromme is currently offline Matthias FrommeFriend
Messages: 22
Registered: December 2011
Location: Germany
Junior Member
That works better.
Thank you.
Previous Topic:Update (not install) Eclipse SDK with p2 director
Next Topic:p2 issue with Citrix and roaming configuration area
Goto Forum:
  


Current Time: Tue Apr 16 04:21:56 GMT 2024

Powered by FUDForum. Page generated in 1.06262 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top