Binding artifacts built with maven-bundle-plugin [message #1691519] |
Tue, 07 April 2015 18:53 |
Oliver Normann 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
|
|
|
Powered by
FUDForum. Page generated in 0.03355 seconds