Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Buckminster » Binding artifacts built with maven-bundle-plugin
Binding artifacts built with maven-bundle-plugin [message #1691519] Tue, 07 April 2015 18:53
Oliver Normann is currently offline Oliver NormannFriend
Messages: 8
Registered: January 2010
Location: Berlin
Junior Member
Hello,

I'm trying bind some maven artifacts to a plugin. I've created a Buckminster CSPEX and defined the dependencies. When i "Resolve to Wizard" the dependency tree is correct. As soon as i'm going to materialze, Buckminster tries to download the artifacts using a ".bundle" file extension.

The artifacts to download are OSGi bundles created with the maven-bundle-plugin and have the packaging type "bundle" specified. I assume Buckminster "looks" into the POM and uses the packaging type as file extension, but what i need is "jar".

Details:

buckminster.cspex

<!-- Fetching 2.0.4-SNAPSHOT using [2.0.3,2.0.4] -->
<cs:dependencies>
<cs:dependency name="com.pany/component" componentType="maven" versionDesignator="[2.0.3,2.0.4]" versionType="Triplet"/>
</cs:dependencies>
<cs:actions>
<cs:public name="buckminster.prebind" actor="ant">
<cs:actorProperties>
<cs:property key="buildFile" value="build/prebind.xml"/>
</cs:actorProperties>
<cs:prerequisites>
<cs:attribute name="java.binary.archives" component="com.pany/component" alias="component"/>
...

prebind.xml

<target name="buckminster.prebind">
<mkdir dir="${sp:output}" />
<echo message="Copying ${sp:component} to folder ${sp:output}." />
<copy file="${sp:component}" tofile="${sp:output}/component.jar" />
</target>

Buckminster tries to download "component-2.0.4.bundle", but should instead download "component-2.0.4.jar".

Oliver

[Updated on: Tue, 07 April 2015 19:10]

Report message to a moderator

Previous Topic:Tern IDE 0.8.0 - cannot perform operation
Next Topic:Excluding Jars from signing
Goto Forum:
  


Current Time: Thu Apr 25 07:35:22 GMT 2024

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

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

Back to the top