Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Cannot write artifacts to a composite repository.
Cannot write artifacts to a composite repository. [message #1396888] Tue, 08 July 2014 23:32 Go to next message
Ralf Heydenreich is currently offline Ralf HeydenreichFriend
Messages: 235
Registered: July 2009
Senior Member
Hi all,
if I try to export my RCP application as a product I get the following
error message (replaced my workspace location with WORKSPACE_LOC):

WORKSPACE_LOC\.metadata\.plugins\org.eclipse.pde.core\temp\org.eclipse.pde.container.feature\assemble.org.eclipse.pde.container.feature.win32.win32.x86.xml:91:
The following error occurred while executing this line:
WORKSPACE_LOC\.metadata\.plugins\org.eclipse.pde.core\temp\org.eclipse.pde.container.feature\assemble.org.eclipse.pde.container.feature.win32.win32.x86.xml:202:
The following error occurred while executing this line:
WORKSPACE_LOC\.metadata\.plugins\org.eclipse.pde.core\temp\org.eclipse.pde.container.feature\assemble.org.eclipse.pde.container.feature.win32.win32.x86.xml:188:
java.lang.UnsupportedOperationException: Cannot write artifacts to a
composite repository.
The following error occurred while executing this line:
WORKSPACE_LOC\.metadata\.plugins\org.eclipse.pde.core\temp\org.eclipse.pde.container.feature\assemble.org.eclipse.pde.container.feature.win32.win32.x86.xml:202:
The following error occurred while executing this line:
WORKSPACE_LOC\.metadata\.plugins\org.eclipse.pde.core\temp\org.eclipse.pde.container.feature\assemble.org.eclipse.pde.container.feature.win32.win32.x86.xml:188:
java.lang.UnsupportedOperationException: Cannot write artifacts to a
composite repository.

I have no idea where I could look after the failure, since my repo
definitions are IMHO valid. The application can be started and runs
successfully.

For completeness, here is my compositeArtifacts.xml:

<?xml version='1.0' encoding='UTF-8'?>
<?compositeArtifactRepository version='1.0.0'?>
<repository name='&quot;Eclipse Project Test Site&quot;'

type='org.eclipse.equinox.internal.p2.artifact.repository.CompositeArtifactRepository'
version='1.0.0'>
<properties size='1'>
<property name='p2.timestamp' value='1243822502440'/>
</properties>
<children size='1'>
<child location='http://www.example.org/release'/>
<child location='update'/>
</children>
</repository>


....and the compositeContent.xml:

<?xml version='1.0' encoding='UTF-8'?>
<?compositeMetadataRepository version='1.0.0'?>
<repository name='&quot;Eclipse Project Test Site&quot;'

type='org.eclipse.equinox.internal.p2.metadata.repository.CompositeMetadataRepository'
version='1.0.0'>
<properties size='1'>
<property name='p2.timestamp' value='1243822502499'/>
</properties>
<children size='1'>
<child location='http://www.example.org/release'/>
<child location='update'/>
</children>
</repository>

The p2.inf:

instructions.configure=\
addRepository(name:Example Update Site
(Releases),type:0,location:http${#58}//www.example.org/release/update);\
addRepository(name:Example Update Site
(Releases),type:1,location:http${#58}//www.example.org/release/update);


Would be glad if anyone could help me.

TIA,
Ralf.
Re: Cannot write artifacts to a composite repository. [message #1397296 is a reply to message #1396888] Wed, 09 July 2014 14:15 Go to previous messageGo to next message
Eclipse UserFriend
A composite repository is made up of references to other repositories, and so PDE/Build cannot know which repository to write to. Try exporting to a fresh directory.

Brian.
Re: Cannot write artifacts to a composite repository. [message #1398580 is a reply to message #1397296] Fri, 11 July 2014 09:11 Go to previous message
Ralf Heydenreich is currently offline Ralf HeydenreichFriend
Messages: 235
Registered: July 2009
Senior Member
Am 09.07.2014 16:15, schrieb Brian de Alwis:
> A composite repository is made up of references to other repositories,
> and so PDE/Build cannot know which repository to write to. Try
> exporting to a fresh directory.
>
> Brian.

Thanks, Brian. That solved the problem.

Ralf.
Previous Topic:Prevent bundle from loading
Next Topic:Eclipse navigator extensions
Goto Forum:
  


Current Time: Thu Apr 25 09:28:03 GMT 2024

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

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

Back to the top