You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by Mike <mh...@mhus.de> on 2019/12/16 22:13:53 UTC
Problem with features and signatures
Hello,
if I create a signature on a feature. The sign plugin will create a signature with the wrong name - a xml is missing.
I created a fix - in the maven signer plugin - and reported it as ticket and pull request. But the people from the plugin told me it's a bug in the karaf maven plugin creating features.
I'm confused.
--- quote:
It could be that you found a bug in Maven, because it is not allowed that main artifacts have classifiers. There might need to be a fix in Maven, but also a fix in ther karaf-maven-plugin. Once that is fixed, this plugin works as expected.
---
Here is the ticket
https://issues.apache.org/jira/browse/MGPG-75?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel <https://issues.apache.org/jira/browse/MGPG-75?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel>
and more details in the pull request
https://github.com/apache/maven-gpg-plugin/pull/2#event-2847163553 <https://github.com/apache/maven-gpg-plugin/pull/2#event-2847163553>
--- description:
With the current (1.6) version it's not possible to deploy karaf features to the central repository. The following error occurs:
[ERROR] * Missing Signature: '/de/mhus/osgi/mhu-karaf-feature/1.6.2/mhu-karaf-feature-1.6.2-features.xml.asc' does not exist for 'mhu-karaf-feature-1.6.2-features.xml'.
The reason is a wrong naming of the signature:
/de/mhus/osgi/mhu-karaf-feature/1.6.2/mhu-karaf-feature-1.6.2.xml.asc
The name of the classifier is missing in the name. The fix solve the problem.
---
Any idea what to do now?
Thx,
Mike
Re: Problem with features and signatures
Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi Mike,
you can see how we did in Karaf itself:
https://github.com/apache/karaf/blob/master/assemblies/features/enterprise/pom.xml
same in Decanter for instance:
https://github.com/apache/karaf-decanter/blob/master/assembly/pom.xml
Basically, I'm using the pom packaging and I use the
build-helper-maven-plugin to attach the features XML as project
artifact:
https://github.com/apache/karaf-decanter/blob/master/assembly/pom.xml#L93
Regards
JB
On 08/01/2020 16:23, Mike Hummel wrote:
> Hello JB,
>
> if I change the packaging to pom it will not copy the feature.xml into
> the local repository...
>
> Example
>
> https://github.com/mhus/cherry-reactive/blob/master/reactive-feature/pom.xml
>
> Will install
>
> mikehummel@Helena reactive-feature % mvn install
> [INFO] Scanning for projects...
> [INFO]
> [INFO] --------------<
> de.mhus.cherry.reactive:reactive-feature>--------------
> [INFO] Building reactive-feature 1.6.3-SNAPSHOT
> [INFO] --------------------------------[ pom
> ]---------------------------------
> [INFO]
> [INFO] --- maven-enforcer-plugin:1.4.1:enforce(enforce-maven)@
> reactive-feature---
> [INFO]
> [INFO] ---
> karaf-services-maven-plugin:4.2.6:service-metadata-generate(service-metadata-generate)@
> reactive-feature---
> [INFO]
> [INFO] --- maven-javadoc-plugin:3.1.0:jar(attach-javadocs)@
> reactive-feature---
> [INFO]
> [INFO] --- maven-install-plugin:3.0.0-M1:install(default-install)@
> reactive-feature---
> [INFO] Installing
> /Users/mikehummel/MHU/workspaces/mhus/cherry-reactive/reactive-feature/pom.xml
> to
> /Users/mikehummel/.m2/repository/de/mhus/cherry/reactive/reactive-feature/1.6.3-SNAPSHOT/reactive-feature-1.6.3-SNAPSHOT.pom
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD SUCCESS
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 1.860 s
> [INFO] Finished at: 2020-01-08T16:20:26+01:00
> [INFO]
> ------------------------------------------------------------------------
>
> but not the feature file (with packging 'feature')
>
> [INFO] Installing
> /Users/mikehummel/MHU/workspaces/mhus/cherry-reactive/reactive-feature/target/feature/feature.xml
> to
> /Users/mikehummel/.m2/repository/de/mhus/cherry/reactive/reactive-feature/1.6.3-SNAPSHOT/reactive-feature-1.6.3-SNAPSHOT-features.xml
>
> Maven version:
>
> mikehummel@Helena reactive-feature % mvn --version
> Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f)
> Maven home: /usr/local/Cellar/maven/3.6.3/libexec
> Java version: 11.0.5, vendor: AdoptOpenJDK, runtime:
> /Library/Java/JavaVirtualMachines/adoptopenjdk-11.jdk/Contents/Home
> Default locale: en_DE, platform encoding: UTF-8
> OS name: "mac os x", version: "10.15.2", arch: "x86_64", family: "mac"
>
> Any idea?
>
> Thx, Mike
>
>> On 22. Dec 2019, at 11:34, Mike Hummel <mh@mhus.de
>> <ma...@mhus.de>> wrote:
>>
>> Hello JB,
>>
>> thx for the hint. Yes I'm using features packaging. I will fix it and
>> try again.
>>
>> Regards
>> Mike
>>
>>> On 17. Dec 2019, at 06:35, jb@nanthrax.net <ma...@nanthrax.net>
>>> wrote:
>>>
>>> Ah I guess you are using features as packaging right ?
>>> We don't do that, we use pom packaging and karaf-maven-plugin is part
>>> of the execution.
>>> I'm thinking about removing features packaging and change generation
>>> to avoid confusion.
>>>
>>> Regards
>>> JB
>>>
>>> Le 17 déc. 2019 06:32, jb@nanthrax.net <ma...@nanthrax.net> a écrit :
>>>
>>> Hi
>>>
>>> As part of release process we do features xml signing so the
>>> issue you describe surprises me.
>>> If you take a look on Central you will see the asc for karaf
>>> features and other projects like decanter, camel or cxf (using
>>> classifier).
>>> Do you have a simple pom.xml ? It's maybe a mistake in the
>>> configuration.
>>>
>>> Regards
>>> JB
>>>
>>> Le 16 déc. 2019 23:13, Mike <mh@mhus.de <ma...@mhus.de>> a
>>> écrit :
>>>
>>> Hello,
>>>
>>> if I create a signature on a feature. The sign plugin will
>>> create a signature with the wrong name - a xml is missing.
>>>
>>> I created a fix - in the maven signer plugin - and reported
>>> it as ticket and pull request. But the people from the plugin
>>> told me it's a bug in the karaf maven plugin creating features.
>>>
>>> I'm confused.
>>>
>>> --- quote:
>>>
>>> It could be that you found a bug in Maven, because it is not
>>> allowed that main artifacts have classifiers. There might
>>> need to be a fix in Maven, but also a fix in ther
>>> karaf-maven-plugin. Once that is fixed, this plugin works as
>>> expected.
>>>
>>> ---
>>>
>>> Here is the ticket
>>>
>>> https://issues.apache.org/jira/browse/MGPG-75?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
>>>
>>> and more details in the pull request
>>>
>>> https://github.com/apache/maven-gpg-plugin/pull/2#event-2847163553
>>>
>>> --- description:
>>>
>>> With the current (1.6) version it's not possible to deploy
>>> karaf features to the central repository. The following error
>>> occurs:
>>>
>>> [ERROR] * Missing Signature:
>>> '/de/mhus/osgi/mhu-karaf-feature/1.6.2/mhu-karaf-feature-1.6.2-features.xml.asc'
>>> does not exist for 'mhu-karaf-feature-1.6.2-features.xml'.
>>>
>>> The reason is a wrong naming of the signature:
>>>
>>> /de/mhus/osgi/mhu-karaf-feature/1.6.2/mhu-karaf-feature-1.6.2.xml.asc
>>>
>>> The name of the classifier is missing in the name. The fix
>>> solve the problem.
>>>
>>> ---
>>>
>>> Any idea what to do now?
>>>
>>> Thx,
>>>
>>> Mike
>>>
>>>
>>>
>>>
>>>
>>
>
--
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com
Re: Problem with features and signatures
Posted by Mike Hummel <mh...@mhus.de>.
Hello JB,
if I change the packaging to pom it will not copy the feature.xml into the local repository...
Example
https://github.com/mhus/cherry-reactive/blob/master/reactive-feature/pom.xml <https://github.com/mhus/cherry-reactive/blob/master/reactive-feature/pom.xml>
Will install
mikehummel@Helena reactive-feature % mvn install
[INFO] Scanning for projects...
[INFO]
[INFO] --------------< de.mhus.cherry.reactive:reactive-feature >--------------
[INFO] Building reactive-feature 1.6.3-SNAPSHOT
[INFO] --------------------------------[ pom ]---------------------------------
[INFO]
[INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-maven) @ reactive-feature ---
[INFO]
[INFO] --- karaf-services-maven-plugin:4.2.6:service-metadata-generate (service-metadata-generate) @ reactive-feature ---
[INFO]
[INFO] --- maven-javadoc-plugin:3.1.0:jar (attach-javadocs) @ reactive-feature ---
[INFO]
[INFO] --- maven-install-plugin:3.0.0-M1:install (default-install) @ reactive-feature ---
[INFO] Installing /Users/mikehummel/MHU/workspaces/mhus/cherry-reactive/reactive-feature/pom.xml to /Users/mikehummel/.m2/repository/de/mhus/cherry/reactive/reactive-feature/1.6.3-SNAPSHOT/reactive-feature-1.6.3-SNAPSHOT.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.860 s
[INFO] Finished at: 2020-01-08T16:20:26+01:00
[INFO] ------------------------------------------------------------------------
but not the feature file (with packging 'feature')
[INFO] Installing /Users/mikehummel/MHU/workspaces/mhus/cherry-reactive/reactive-feature/target/feature/feature.xml to /Users/mikehummel/.m2/repository/de/mhus/cherry/reactive/reactive-feature/1.6.3-SNAPSHOT/reactive-feature-1.6.3-SNAPSHOT-features.xml
Maven version:
mikehummel@Helena reactive-feature % mvn --version
Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f)
Maven home: /usr/local/Cellar/maven/3.6.3/libexec
Java version: 11.0.5, vendor: AdoptOpenJDK, runtime: /Library/Java/JavaVirtualMachines/adoptopenjdk-11.jdk/Contents/Home
Default locale: en_DE, platform encoding: UTF-8
OS name: "mac os x", version: "10.15.2", arch: "x86_64", family: "mac"
Any idea?
Thx, Mike
> On 22. Dec 2019, at 11:34, Mike Hummel <mh...@mhus.de> wrote:
>
> Hello JB,
>
> thx for the hint. Yes I'm using features packaging. I will fix it and try again.
>
> Regards
> Mike
>
>> On 17. Dec 2019, at 06:35, jb@nanthrax.net <ma...@nanthrax.net> wrote:
>>
>> Ah I guess you are using features as packaging right ?
>> We don't do that, we use pom packaging and karaf-maven-plugin is part of the execution.
>> I'm thinking about removing features packaging and change generation to avoid confusion.
>>
>> Regards
>> JB
>>
>> Le 17 déc. 2019 06:32, jb@nanthrax.net <ma...@nanthrax.net> a écrit :
>> Hi
>>
>> As part of release process we do features xml signing so the issue you describe surprises me.
>> If you take a look on Central you will see the asc for karaf features and other projects like decanter, camel or cxf (using classifier).
>> Do you have a simple pom.xml ? It's maybe a mistake in the configuration.
>>
>> Regards
>> JB
>>
>> Le 16 déc. 2019 23:13, Mike <mh@mhus.de <ma...@mhus.de>> a écrit :
>> Hello,
>>
>> if I create a signature on a feature. The sign plugin will create a signature with the wrong name - a xml is missing.
>>
>> I created a fix - in the maven signer plugin - and reported it as ticket and pull request. But the people from the plugin told me it's a bug in the karaf maven plugin creating features.
>>
>> I'm confused.
>>
>> --- quote:
>>
>> It could be that you found a bug in Maven, because it is not allowed that main artifacts have classifiers. There might need to be a fix in Maven, but also a fix in ther karaf-maven-plugin. Once that is fixed, this plugin works as expected.
>>
>> ---
>>
>> Here is the ticket
>>
>> https://issues.apache.org/jira/browse/MGPG-75?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel <https://issues.apache.org/jira/browse/MGPG-75?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel>
>>
>> and more details in the pull request
>>
>> https://github.com/apache/maven-gpg-plugin/pull/2#event-2847163553 <https://github.com/apache/maven-gpg-plugin/pull/2#event-2847163553>
>>
>> --- description:
>>
>> With the current (1.6) version it's not possible to deploy karaf features to the central repository. The following error occurs:
>>
>> [ERROR] * Missing Signature: '/de/mhus/osgi/mhu-karaf-feature/1.6.2/mhu-karaf-feature-1.6.2-features.xml.asc' does not exist for 'mhu-karaf-feature-1.6.2-features.xml'.
>>
>> The reason is a wrong naming of the signature:
>>
>> /de/mhus/osgi/mhu-karaf-feature/1.6.2/mhu-karaf-feature-1.6.2.xml.asc
>>
>> The name of the classifier is missing in the name. The fix solve the problem.
>>
>> ---
>>
>> Any idea what to do now?
>>
>> Thx,
>>
>> Mike
>>
>>
>>
>>
>>
>
Re: Problem with features and signatures
Posted by Mike Hummel <mh...@mhus.de>.
Hello JB,
thx for the hint. Yes I'm using features packaging. I will fix it and try again.
Regards
Mike
> On 17. Dec 2019, at 06:35, jb@nanthrax.net wrote:
>
> Ah I guess you are using features as packaging right ?
> We don't do that, we use pom packaging and karaf-maven-plugin is part of the execution.
> I'm thinking about removing features packaging and change generation to avoid confusion.
>
> Regards
> JB
>
> Le 17 déc. 2019 06:32, jb@nanthrax.net a écrit :
> Hi
>
> As part of release process we do features xml signing so the issue you describe surprises me.
> If you take a look on Central you will see the asc for karaf features and other projects like decanter, camel or cxf (using classifier).
> Do you have a simple pom.xml ? It's maybe a mistake in the configuration.
>
> Regards
> JB
>
> Le 16 déc. 2019 23:13, Mike <mh...@mhus.de> a écrit :
> Hello,
>
> if I create a signature on a feature. The sign plugin will create a signature with the wrong name - a xml is missing.
>
> I created a fix - in the maven signer plugin - and reported it as ticket and pull request. But the people from the plugin told me it's a bug in the karaf maven plugin creating features.
>
> I'm confused.
>
> --- quote:
>
> It could be that you found a bug in Maven, because it is not allowed that main artifacts have classifiers. There might need to be a fix in Maven, but also a fix in ther karaf-maven-plugin. Once that is fixed, this plugin works as expected.
>
> ---
>
> Here is the ticket
>
> https://issues.apache.org/jira/browse/MGPG-75?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel <https://issues.apache.org/jira/browse/MGPG-75?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel>
>
> and more details in the pull request
>
> https://github.com/apache/maven-gpg-plugin/pull/2#event-2847163553 <https://github.com/apache/maven-gpg-plugin/pull/2#event-2847163553>
>
> --- description:
>
> With the current (1.6) version it's not possible to deploy karaf features to the central repository. The following error occurs:
>
> [ERROR] * Missing Signature: '/de/mhus/osgi/mhu-karaf-feature/1.6.2/mhu-karaf-feature-1.6.2-features.xml.asc' does not exist for 'mhu-karaf-feature-1.6.2-features.xml'.
>
> The reason is a wrong naming of the signature:
>
> /de/mhus/osgi/mhu-karaf-feature/1.6.2/mhu-karaf-feature-1.6.2.xml.asc
>
> The name of the classifier is missing in the name. The fix solve the problem.
>
> ---
>
> Any idea what to do now?
>
> Thx,
>
> Mike
>
>
>
>
>
Re: Problem with features and signatures
Posted by jb...@nanthrax.net.
Ah I guess you are using features as packaging right ?
We don't do that, we use pom packaging and karaf-maven-plugin is part of the
execution.
I'm thinking about removing features packaging and change generation to avoid
confusion.
Regards
JB
Le 17 déc. 2019 06:32, jb@nanthrax.net a écrit :
> Hi
>
>
>
>
> As part of release process we do features xml signing so the issue you
describe surprises me.
>
> If you take a look on Central you will see the asc for karaf features and
other projects like decanter, camel or cxf (using classifier).
>
> Do you have a simple pom.xml ? It's maybe a mistake in the configuration.
>
>
>
>
> Regards
>
> JB
>
>
>
>
> Le 16 déc. 2019 23:13, Mike <mh...@mhus.de> a écrit :
>
>
>> Hello,
>>
>>
>
>>
>> if I create a signature on a feature. The sign plugin will create a
signature with the wrong name - a xml is missing.
>>
>>
>
>>
>> I created a fix - in the maven signer plugin - and reported it as ticket
and pull request. But the people from the plugin told me it's a bug in the
karaf maven plugin creating features.
>>
>>
>
>>
>> I'm confused.
>>
>>
>
>>
>> \--- quote:
>>
>>
>
>>
>> It could be that you found a bug in Maven, because it is not allowed that
main artifacts have classifiers. There might need to be a fix in Maven, but
also a fix in ther karaf-maven-plugin. Once that is fixed, this plugin works
as expected.
>>
>>
>
>>
>> \---
>>
>>
>
>>
>> Here is the ticket
>>
>>
>
>>
>>
[https://issues.apache.org/jira/browse/MGPG-75?page=com.atlassian.jira.plugin.system.issuetabpanels:all-
tabpanel](https://issues.apache.org/jira/browse/MGPG-75?page=com.atlassian.jira.plugin.system.issuetabpanels:all-
tabpanel)
>
>>
>>
>
>>
>> and more details in the pull request
>>
>>
>
>>
>> <https://github.com/apache/maven-gpg-plugin/pull/2#event-2847163553>
>>
>>
>
>>
>> \--- description:
>>
>>
>
>>
>> With the current (1.6) version it's not possible to deploy karaf features
to the central repository. The following error occurs:
>
> [ERROR] * Missing Signature: '/de/mhus/osgi/mhu-karaf-feature/1.6.2/mhu-
karaf-feature-1.6.2-features.xml.asc' does not exist for 'mhu-karaf-
feature-1.6.2-features.xml'.
>
> The reason is a wrong naming of the signature:
>
> /de/mhus/osgi/mhu-karaf-feature/1.6.2/mhu-karaf-feature-1.6.2.xml.asc
>
> The name of the classifier is missing in the name. The fix solve the
problem.
>>
>>
>
>>
>> \---
>>
>>
>
>>
>> Any idea what to do now?
>>
>>
>
>>
>> Thx,
>>
>>
>
>>
>> Mike
>>
>>
>
>>
>>
>
>>
>>
>
>
>
>
Re: Problem with features and signatures
Posted by jb...@nanthrax.net.
Hi
As part of release process we do features xml signing so the issue you
describe surprises me.
If you take a look on Central you will see the asc for karaf features and
other projects like decanter, camel or cxf (using classifier).
Do you have a simple pom.xml ? It's maybe a mistake in the configuration.
Regards
JB
Le 16 déc. 2019 23:13, Mike <mh...@mhus.de> a écrit :
> Hello,
>
>
>
>
> if I create a signature on a feature. The sign plugin will create a
signature with the wrong name - a xml is missing.
>
>
>
>
> I created a fix - in the maven signer plugin - and reported it as ticket and
pull request. But the people from the plugin told me it's a bug in the karaf
maven plugin creating features.
>
>
>
>
> I'm confused.
>
>
>
>
> \--- quote:
>
>
>
>
> It could be that you found a bug in Maven, because it is not allowed that
main artifacts have classifiers. There might need to be a fix in Maven, but
also a fix in ther karaf-maven-plugin. Once that is fixed, this plugin works
as expected.
>
>
>
>
> \---
>
>
>
>
> Here is the ticket
>
>
>
>
>
<https://issues.apache.org/jira/browse/MGPG-75?page=com.atlassian.jira.plugin.system.issuetabpanels:all-
tabpanel>
>
>
>
>
>
> and more details in the pull request
>
>
>
>
> <https://github.com/apache/maven-gpg-plugin/pull/2#event-2847163553>
>
>
>
>
> \--- description:
>
>
>
>
> With the current (1.6) version it's not possible to deploy karaf features to
the central repository. The following error occurs:
>
> [ERROR] * Missing Signature: '/de/mhus/osgi/mhu-karaf-feature/1.6.2/mhu-
karaf-feature-1.6.2-features.xml.asc' does not exist for 'mhu-karaf-
feature-1.6.2-features.xml'.
>
> The reason is a wrong naming of the signature:
>
> /de/mhus/osgi/mhu-karaf-feature/1.6.2/mhu-karaf-feature-1.6.2.xml.asc
>
> The name of the classifier is missing in the name. The fix solve the
problem.
>
>
>
>
> \---
>
>
>
>
> Any idea what to do now?
>
>
>
>
> Thx,
>
>
>
>
> Mike
>
>
>
>
>
>
>
>
>