You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Aleksei Ezhov (JIRA)" <ji...@apache.org> on 2016/08/24 14:37:21 UTC

[jira] [Created] (FELIX-5334) Problem with modifying manifest fields with Bundle plugin

Aleksei Ezhov created FELIX-5334:
------------------------------------

             Summary: Problem with modifying manifest fields with Bundle plugin
                 Key: FELIX-5334
                 URL: https://issues.apache.org/jira/browse/FELIX-5334
             Project: Felix
          Issue Type: Bug
          Components: Maven Bundle Plugin
            Reporter: Aleksei Ezhov


We are using Maven plugin called "git-commit-id-plugin" to get access to git info.

Bundle plugin uses maven-archiver as a dependency and we can define additional fields to add into a MANIFEST.MF this way:

{code:xml}
              <configuration>
                <archive>
                     <manifestEntries>
                         <SCM-Revision>${git.commit.id.full}</SCM-Revision>
                         <SCM-Info-Tags>${project}</SCM-Info-Tags>
                         <.....>
                     </manifestEntries>
                 </archive>
             </configuration>
{code}

But after doing "mvn clean package" fields in MANIFEST.MF are not filled with their values. That is what we see in the manifest:

{noformat}
SCM-Revision: ${git.commit.id.full}
SCM-Info-Tags: ${project}
.....
{noformat}

In maven log we can see that variables are filled with values:

{noformat}
[INFO] --- maven-bundle-plugin:3.2.0:bundle (default-bundle) @ mhs-bundle ---
[DEBUG] Configuring mojo org.apache.felix:maven-bundle-plugin:3.2.0:bundle from plugin realm ClassRealm[plugin>org.apache.felix:maven-bundle-plugin:3.2.0, parent: sun.misc.Launcher$AppClassLoader@5c647e05]
[DEBUG] Configuring mojo 'org.apache.felix:maven-bundle-plugin:3.2.0:bundle' with basic configurator -->
[DEBUG]   (s) manifestEntries = {SCM-Info-Branch=master, SCM-Info-ClosestTagCommitCount=null, SCM-Info-ClosestTagName=null, SCM-Info-CommitMessage=refactoring by Aliaksei Yazhou, SCM-Info-CommitShortMessage=refactoring by Aliaksei Yazhou, SCM-Info-CommitTime=08.08.2016 @ 16:26:55 MSK, SCM-Info-CommitUserEmail=ayazhou@exadel.com, SCM-Info-CommitUserName=hubba, SCM-Info-Dirty=true, SCM-Info-Origin=https://eu0heza@bitbucket.mckesson.com:8443/scm/isrm/isrm_iam_mhs_hub_iam.git, SCM-Info-Tags=, SCM-Revision=null, SCM-Revision-Abbrev=77dc0db, SCM-Revision-Description=HUB_3_0-63-g77dc0db-dirty, SCM-Revision-ShortDescription=HUB_3_0-63-dirty}

{noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)