Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » IMP » Create a p2 repositories for IMP packages(Need to create p2 repositories for the IMP as I am using maven tyco for building my eclipse plugins)
Create a p2 repositories for IMP packages [message #799836] Thu, 16 February 2012 11:18 Go to next message
Dyutimoy Sarkar is currently offline Dyutimoy SarkarFriend
Messages: 1
Registered: February 2012
Junior Member
Hi,

I am using maven3 and tyco plugins to build eclipse plugins.
Our plugins have dependency with bundles available in IMP update site.

Because maven tyco resolves from p2 repository and IMP project does not have p2 metadata, maven is not able to resolve the dependencies.

I tried the following steps

./eclipse.exe -debug -consolelog -nosplash -verbose -application org.eclipse.equinox.p2.publisher.FeaturesAndBundlesPublisher -metadataRepository S:\p2repo" -artifactRepository S:\repo -source D:\build_material\new -compress -append -publishArtifacts

I got the following exception.

Any help will be greatly appreciated. If some one can point me to p2 repository for IMP Bundles will solve my problem Smile

!ENTRY org.eclipse.equinox.app 4 0 2012-02-16 02:56:59.123
!MESSAGE Repository not modifiable: S:%5Crepo
!STACK 0
java.lang.UnsupportedOperationException: Repository not modifiable: S:%5CViews%5Crepo
at org.eclipse.equinox.internal.provisional.spi.p2.repository.AbstractRepository.assertModifiable(AbstractRepository.java:54)
at org.eclipse.equinox.internal.p2.artifact.repository.simple.SimpleArtifactRepository.save(SimpleArtifactRepository.java:881)
at org.eclipse.equinox.internal.p2.artifact.repository.simple.SimpleArtifactRepository.save(SimpleArtifactRepository.java:877)
at org.eclipse.equinox.internal.p2.artifact.repository.simple.SimpleArtifactRepository.<init>(SimpleArtifactRepository.java:298)
at org.eclipse.equinox.internal.provisional.spi.p2.artifact.repository.SimpleArtifactRepositoryFactory.create(SimpleArtifactRepositoryFactory.java:123)
at org.eclipse.equinox.internal.p2.artifact.repository.ArtifactRepositoryManager.factoryCreate(ArtifactRepositoryManager.java:55)
at org.eclipse.equinox.internal.p2.repository.helpers.AbstractRepositoryManager.doCreateRepository(AbstractRepositoryManager.java:272)
at org.eclipse.equinox.internal.p2.artifact.repository.ArtifactRepositoryManager.createRepository(ArtifactRepositoryManager.java:48)
at org.eclipse.equinox.p2.publisher.Publisher.createArtifactRepository(Publisher.java:119)
at org.eclipse.equinox.p2.publisher.AbstractPublisherApplication.initializeRepositories(AbstractPublisherApplication.java:98)
at org.eclipse.equinox.p2.publisher.AbstractPublisherApplication.initialize(AbstractPublisherApplication.java:89)
at org.eclipse.equinox.p2.publisher.AbstractPublisherApplication.run(AbstractPublisherApplication.java:284)
at org.eclipse.equinox.p2.publisher.AbstractPublisherApplication.run(AbstractPublisherApplication.java:261)
at org.eclipse.equinox.p2.publisher.AbstractPublisherApplication.start(AbstractPublisherApplication.java:322)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:194)
at org.eclipse.equinox.internal.app.AnyThreadAppLauncher.run(AnyThreadAppLauncher.java:26)
at java.lang.Thread.run(Unknown Source)

Re: Create a p2 repositories for IMP packages [message #899524 is a reply to message #799836] Wed, 01 August 2012 09:43 Go to previous message
Wolfgang Geck is currently offline Wolfgang GeckFriend
Messages: 4
Registered: August 2012
Junior Member
P2 is so fragile! Try this modification but leave the -source argument to avoid another problem:)

./eclipse.exe -debug -consolelog -nosplash -verbose -application org.eclipse.equinox.p2.publisher.FeaturesAndBundlesPublisher -metadataRepository file:\\S:\p2repo" -artifactRepository file:\\S:\repo -source D:\build_material\new -compress -append -publishArtifacts
Previous Topic:As is Project?
Next Topic:Forum closure.
Goto Forum:
  


Current Time: Thu Nov 27 03:07:57 GMT 2014

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

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