[
https://issues.apache.org/jira/browse/FELIX-5647?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16068392#comment-16068392
]
Pierre De Rop commented on FELIX-5647:
--------------------------------------
Hello Mario,
I did not have time to fully investigate, but for the new upcoming R11 release,
I am now using a feature from bndtools which allows to generate a pom
automatically in the generated bundles, and the generated poms don't contain
anymore the "packaging=bundle".
For example, if you take a look at the release candidate R11, especially in the
org.apache.felix.dependencymanager-4.4.1.jar, you will find this pom:
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.apache.felix</groupId>
<artifactId>org.apache.felix.dependencymanager</artifactId>
<version>4.4.1</version>
<description>Provides dynamic service and component dependency
management</description>
<name>Apache Felix Dependency Manager</name>
<url>http://felix.apache.org/documentation/subprojects/apache-felix-dependency-manager.html</url>
<organization>
<name>The Apache Software Foundation</name>
</organization>
<licenses>
<license>
<name>http://www.apache.org/licenses/LICENSE-2.0.txt</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
<distribution>repo</distribution>
</license>
</licenses>
</project>
so, can you please get all the dm artifacts from
https://dist.apache.org/repos/dist/dev/felix/org.apache.felix.dependencymanager-r11/org.apache.felix.dependencymanager-r11-bin.zip,
then put them in your own nexus (or artifactory) repository, and then make a
test ?
if it does not work, then can you please attach to this issue your full pom.xml
with your assembly plugin, then I will take a look.
thank you.
> Errors in pom makes maven project builder bail out
> --------------------------------------------------
>
> Key: FELIX-5647
> URL: https://issues.apache.org/jira/browse/FELIX-5647
> Project: Felix
> Issue Type: Improvement
> Components: Dependency Manager
> Affects Versions: dependencymanager-4.3.0
> Environment: Windows 10
> Reporter: Mario Toffia
> Assignee: Pierre De Rop
> Priority: Minor
>
> (Could not find: "dependencymanager-4.4.0" of which is the version that I'm
> really using - as the affects versions)
> Description:
> The pom file has packaging `bundle` but it does not include a `plugin`
> section with _maven-bundle-plugin_. This makes the maven project builder to
> bail out since it cannot find anything keyed to `bundle`.
> All other felix projects works ok since they do declare 'maven-bundle-plugin
> section in the build->plugin section. This makes plexus to resolve such.
> I'm using this in a custom assembly plugin for my framework to resolve
> artifacts etc using the maven project builder to perorm those tasks.
> The only thing needed, i think, is to insert the following in the pom file:
> ```
> <build>
> <plugins>
> <plugin>
> <groupId>org.apache.felix</groupId>
> <artifactId>maven-bundle-plugin</artifactId>
> <version>2.3.7</version>
> <extensions>true</extensions>
> </plugin>
> </plugins>
> </build>
> ```
> Cheers,
> Mario
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)