Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

StackOverflow Point

StackOverflow Point Navigation

  • Web Stories
  • Badges
  • Tags
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Web Stories
  • Badges
  • Tags
Home/ Questions/Q 2032
Alex Hales
  • 0
Alex HalesTeacher
Asked: May 31, 20222022-05-31T11:56:30+00:00 2022-05-31T11:56:30+00:00

eclipse – How to load target platform from a local p2 repository?

  • 0

[ad_1]

I am currently using an update site for a particular version of BIRT which is hosted on SourceForge. As I have been experiencing problems with the company firewall and because the project is no longer active, it seemed to make sense to make a one-time copy of the site and store the resources in my project.

I created an ANT task to do this based on the original target definition:

<target name="birt">
    <p2.mirror
        source="https://sourceforge.net/projects/birt/files/release/4.16.0/"
        destination="${destinationFolder}birt">
        <slicingOptions followStrict="true" />
        <iu id="org.eclipse.birt.osgi.runtime.feature.group" />
    </p2.mirror>
</target>

I then modified the target definition:

<location path="d:\p2copy\birt" type="Directory"/>

This loaded around 220 items but when I started the app I got many unresolved dependencies.

I modifed the target definition as follows:

<location includeAllPlatforms="false" includeConfigurePhase="true" includeMode="planner" includeSource="true" type="InstallableUnit">
    <repository location="file:///D:/p2copy/birt/"/>
    <unit id="org.eclipse.birt.osgi.runtime.feature.group" version="4.16.0.v202006301151"/>
</location>

This loaded 350 items and the app was able to start.

Why does the second definition load more items than the first? Do I need to add further attributes to the first definition in order to get all the items I need?

Update

The obvious difference is that the Directory version does not specify an iu. I just had a peek in the feature JAR and could see that some plugins are referenced which are not contained in the BIRT repository. I think this explains the differing plug-in count. It highlights perhaps a fundamental difference between a Directory type and an InstallableUnit type which wasn’t clear to me before.

[ad_2]

  • 0 0 Answers
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report
Leave an answer

Leave an answer
Cancel reply

Browse

Sidebar

Ask A Question

Related Questions

  • xcode - Can you build dynamic libraries for iOS and ...

    • 0 Answers
  • bash - How to check if a process id (PID) ...

    • 4776 Answers
  • database - Oracle: Changing VARCHAR2 column to CLOB

    • 1063 Answers
  • What's the difference between HEAD, working tree and index, in ...

    • 1009 Answers
  • Amazon EC2 Free tier - how many instances can I ...

    • 0 Answers

Stats

  • Questions : 43k

Subscribe

Login

Forgot Password?

Footer

Follow

© 2022 Stackoverflow Point. All Rights Reserved.

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.