Return-Path: X-Original-To: apmail-felix-dev-archive@www.apache.org Delivered-To: apmail-felix-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 763A29C5E for ; Tue, 11 Oct 2011 16:45:35 +0000 (UTC) Received: (qmail 85388 invoked by uid 500); 11 Oct 2011 16:45:33 -0000 Delivered-To: apmail-felix-dev-archive@felix.apache.org Received: (qmail 85321 invoked by uid 500); 11 Oct 2011 16:45:33 -0000 Mailing-List: contact dev-help@felix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@felix.apache.org Delivered-To: mailing list dev@felix.apache.org Received: (qmail 85281 invoked by uid 99); 11 Oct 2011 16:45:33 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Oct 2011 16:45:33 +0000 X-ASF-Spam-Status: No, hits=-2000.5 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Oct 2011 16:45:32 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id F13FD30364A for ; Tue, 11 Oct 2011 16:45:11 +0000 (UTC) Date: Tue, 11 Oct 2011 16:45:11 +0000 (UTC) From: "Stuart McCulloch (Resolved) (JIRA)" To: dev@felix.apache.org Message-ID: <1408456417.1442.1318351511989.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1111762501.20716.1312012689576.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Resolved] (FELIX-3061) improvements to Embed-Dependency logic to allow better m2e integration MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/FELIX-3061?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Stuart McCulloch resolved FELIX-3061. ------------------------------------- Resolution: Fixed Assignee: Stuart McCulloch Fixed in r1166847 > improvements to Embed-Dependency logic to allow better m2e integration > ---------------------------------------------------------------------- > > Key: FELIX-3061 > URL: https://issues.apache.org/jira/browse/FELIX-3061 > Project: Felix > Issue Type: Improvement > Components: Maven Bundle Plugin > Affects Versions: maven-bundle-plugin-2.3.5 > Environment: m2e > Reporter: Igor Fedorenko > Assignee: Stuart McCulloch > Fix For: maven-bundle-plugin-2.4.0 > > Attachments: embed-dependency.diff > > > Attached patch contains two improvements to Embed-Dependency logic meant to enable better integration with m2e. Although better m2e integration was my primary goal, I do not believe these changes are m2e specific and can useful in other scenarios. Both improvements affect the same DependencyEmbedder.java file, so submitting them as two separate patches was not practical. > When bundle manifest generation is invoked from within m2e workspace, some dependencies can be resolved to workspace projects target/classes folders. Using artifact's file name to generate bundle entry path results in multiple bundles entries with "classes" name. As a solution, generate embedded entry path from org.apache.maven.artifact.Artifact attributes. As a side note, there is probably more room to cleanup entry path calculation, for example, reconcile handling of embedDirectory and embedStripGroup. Also, embedStripVersion also strips artifact classifier, which may or may not be the desired behaviour. > In order to use maven-bundle-plugin projects in PDE launch configurtions (i.e. Run As Eclipse Application and JUnit Plug-in Test), m2e needs to be able to map bundle classpath entries to Maven artifacts that were used to generate the bundle entries. Proposed solution is to introduce new Included-Artifacts bundle manifest attribute. For each embedded bundle entry this attribute will contain information about Maven artifact groupId, artifactId, base version and classifier. > Below is an example of Included-Artifacts that means that bundle entry with path jars/decentxml-1.4-SNAPSHOT.jar was produced from Maven artifact de.pdark:decentxml:1.4-SNAPSHOT. > {noformat} > Included-Artifacts: jars/decentxml-1.4-SNAPSHOT.jar;g="de.pdark";a="decentxml";v="1.4-SNAPSHOT" > {noformat} > I am not sure that Included-Artifacts is the best choice of manifest attribute name and I will be happy to update the patch if there is a better name. > Also note that proposed implementation does not handle inlined artifacts. I do not have a need for this yet and decided to leave it for another patch :-). -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira