[
https://issues.apache.org/jira/browse/KARAF-4930?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16241879#comment-16241879
]
Grzegorz Grzybek edited comment on KARAF-4930 at 11/7/17 11:52 AM:
-------------------------------------------------------------------
I don't see this problem...
{noformat}
…
[INFO] --- maven-source-plugin:3.0.1:jar (default-cli) @ karaf-bug ---
[INFO] No sources in project. Archive not created.
[INFO]
[INFO] --- karaf-maven-plugin:4.0.5:features-generate-descriptor
(default-features-generate-descriptor) @ karaf-bug ---
[INFO] Generating feature descriptor file
/data/sources/github.com/_other/karaf-feature-verify-bug/target/feature/feature.xml
[WARNING] File encoding has not been set, using platform encoding UTF-8, i.e.
build is platform dependent!
[INFO] ...done!
[INFO]
[INFO] --- karaf-maven-plugin:4.0.5:verify (validate-features) @ karaf-bug ---
[INFO] Using repositories: https://repo.maven.apache.org/maven2@id=central
[INFO] Verification of feature some-feature/1.0.0.SNAPSHOT succeeded
[INFO]
[INFO] --- maven-install-plugin:2.5.2:install (default-install) @ karaf-bug ---
[INFO] No primary artifact to install, installing attached artifacts instead.
[INFO] Installing
/data/sources/github.com/_other/karaf-feature-verify-bug/pom.xml to
/home/ggrzybek/.m2/repository/org/example/karaf-bug/1.0.0-SNAPSHOT/karaf-bug-1.0.0-SNAPSHOT.pom
[INFO] Installing
/data/sources/github.com/_other/karaf-feature-verify-bug/target/feature/feature.xml
to
/home/ggrzybek/.m2/repository/org/example/karaf-bug/1.0.0-SNAPSHOT/karaf-bug-1.0.0-SNAPSHOT-features.xml
…
{noformat}
was (Author: gzres):
I don't see this problem...
{noformat}
[INFO] --- maven-source-plugin:3.0.1:jar (default-cli) @ karaf-bug ---
[INFO] No sources in project. Archive not created.
[INFO]
[INFO] --- karaf-maven-plugin:4.0.5:features-generate-descriptor
(default-features-generate-descriptor) @ karaf-bug ---
[INFO] Generating feature descriptor file
/data/sources/github.com/_other/karaf-feature-verify-bug/target/feature/feature.xml
[WARNING] File encoding has not been set, using platform encoding UTF-8, i.e.
build is platform dependent!
[INFO] ...done!
[INFO]
[INFO] --- karaf-maven-plugin:4.0.5:verify (validate-features) @ karaf-bug ---
[INFO] Using repositories: https://repo.maven.apache.org/maven2@id=central
[INFO] Verification of feature some-feature/1.0.0.SNAPSHOT succeeded
[INFO]
[INFO] --- maven-install-plugin:2.5.2:install (default-install) @ karaf-bug ---
[INFO] No primary artifact to install, installing attached artifacts instead.
[INFO] Installing
/data/sources/github.com/_other/karaf-feature-verify-bug/pom.xml to
/home/ggrzybek/.m2/repository/org/example/karaf-bug/1.0.0-SNAPSHOT/karaf-bug-1.0.0-SNAPSHOT.pom
[INFO] Installing
/data/sources/github.com/_other/karaf-feature-verify-bug/target/feature/feature.xml
to
/home/ggrzybek/.m2/repository/org/example/karaf-bug/1.0.0-SNAPSHOT/karaf-bug-1.0.0-SNAPSHOT-features.xml
{noformat}
> karaf-maven-plugin verify mojo fails
> ------------------------------------
>
> Key: KARAF-4930
> URL: https://issues.apache.org/jira/browse/KARAF-4930
> Project: Karaf
> Issue Type: Bug
> Components: karaf-tooling
> Affects Versions: 4.0.6, 4.0.7, 4.0.8
> Reporter: Ciprian Ciubotariu
> Assignee: Grzegorz Grzybek
> Priority: Minor
>
> The feature verify mojo consistently fails with:
> {noformat}
> Message: Unable to resolve root: missing requirement [root] \
> osgi.identity; osgi.identity=karaf-bug; type=karaf.feature;
> version=1.0.0.SNAPSHOT;
> filter:="(&(osgi.identity=karaf-bug)(type=karaf.feature)(version>=1.0.0.SNAPSHOT))"
> \
> [caused by: Unable to resolve karaf-bug/1.0.0.SNAPSHOT: missing requirement
> [karaf-bug/1.0.0.SNAPSHOT] \
> osgi.identity; osgi.identity=shell; type=karaf.feature;
> version="[4.0.8,4.0.8]" [\
> caused by: Unable to resolve shell/4.0.8: missing requirement
> [shell/4.0.8] \
> osgi.identity; osgi.identity=org.apache.karaf.shell.core;
> type=osgi.bundle; version="[4.0.8,4.0.8]"; resolution:=mandatory [\
> caused by: Unable to resolve org.apache.karaf.shell.core/4.0.8: missing
> requirement [org.apache.karaf.shell.core/4.0.8] \
> osgi.wiring.package;
> filter:="(&(osgi.wiring.package=org.osgi.service.cm)(version>=1.5.0)(!(version>=2.0.0)))"\
> ]\
> ]\
> ]
> {noformat}
> This started off with version 4.0.6 and propagated to the latest stable
> 4.0.8, but feature validation still works fine with 4.1.0-SNAPSHOT. I
> bisected the problem to commit 2d96f914, which seems to be related to
> KARAF-884.
> Use this simple project here to reproduce:
> https://github.com/CMoH/karaf-feature-verify-bug
> From my understanding the failing feature.xml files contain a primary
> feature, while those where verification works correctly do not. Would it be
> appropriate to add a flag that allows devs to direct karaf-maven-plugin not
> to add that primary feature? For now the only workaround I found is to
> enumerate all other features by hand for the verify mojo, which is cumbersome
> and error-prone.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)