You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Pierre De Rop (JIRA)" <ji...@apache.org> on 2017/07/01 18:33:00 UTC

[jira] [Commented] (FELIX-5647) Errors in pom makes maven project builder bail out

    [ https://issues.apache.org/jira/browse/FELIX-5647?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16071361#comment-16071361 ] 

Pierre De Rop commented on FELIX-5647:
--------------------------------------

Hi Mario,

I just published the dependencymanager r11 artifacts to maven central.
So, as said, i'm using bndtools which generates poms inside dm artifacts, and I'm using them to publish to maven, and bndtools does not generate the poms with package=bundle.

Since I'm not sure I fully understand the problem, I have attached to this issue a simple test maven project with an assembly. The test project contains a simple Activator and  an assembly which simply contains the test target bundle, as well as dependencymanager artifacts.

So, can you please take a look at it, and modify it with your issue in order to let me reproduce the issue myself ?

thanks.



> 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)