[
https://issues.apache.org/jira/browse/KARAF-5937?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16635267#comment-16635267
]
ASF GitHub Bot commented on KARAF-5937:
---------------------------------------
jbonofre closed pull request #615: [KARAF-5937] karaf-maven-plugin verify logs
cause of failure
URL: https://github.com/apache/karaf/pull/615
This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:
As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):
diff --git
a/tooling/karaf-maven-plugin/src/main/java/org/apache/karaf/tooling/VerifyMojo.java
b/tooling/karaf-maven-plugin/src/main/java/org/apache/karaf/tooling/VerifyMojo.java
index be79302e8f..7ff80927ce 100644
---
a/tooling/karaf-maven-plugin/src/main/java/org/apache/karaf/tooling/VerifyMojo.java
+++
b/tooling/karaf-maven-plugin/src/main/java/org/apache/karaf/tooling/VerifyMojo.java
@@ -341,7 +341,8 @@ protected void doExecute() throws MojoExecutionException {
getLog().info("Verification of feature " + id + " succeeded");
} catch (Exception e) {
if (e.getCause() instanceof ResolutionException ||
!getLog().isDebugEnabled()) {
- getLog().warn(e.getMessage());
+ getLog().warn(e.getMessage() + ": " + id);
+ getLog().warn(e.getCause().getMessage());
} else {
getLog().warn(e);
}
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
> karaf-maven-plugin verify doesn't explain why verification failed
> -----------------------------------------------------------------
>
> Key: KARAF-5937
> URL: https://issues.apache.org/jira/browse/KARAF-5937
> Project: Karaf
> Issue Type: Improvement
> Components: karaf
> Affects Versions: 4.2.1
> Reporter: Paul Campbell
> Assignee: Jean-Baptiste Onofré
> Priority: Major
> Fix For: 4.2.2
>
>
> When invoking the verify goal of the karaf-maven-plugin, only the message of
> the outer exception is logged. e.g.
> {code:java}
> [INFO] — karaf-maven-plugin:4.2.1:verify
> (verify-brooklyn-ui-modularity-feature) @ brooklyn-ui-modularity-features —
> [INFO] Using repositories:
> https://repository.apache.org/content/repositories/snapshots@id=apache-snapshots@noreleases@snapshots,https://repository.apache.org/content/repositories/snapshots@id=jclouds-snapshots@snapshots,https://repo.maven.apache.org/maven2@id=central
> [WARNING] Unable to resolve framework features
> [WARNING] Unable to resolve framework features
> [WARNING] Unable to resolve framework features
> [INFO] Features verified: 3, failures: 3, ignored: 0
> [INFO] Failures: brooklyn-ui-modularity/1.0.0.SNAPSHOT,
> brooklyn-ui-proxy/1.0.0.SNAPSHOT,
> brooklyn-ui-modularity-prereqs/1.0.0.SNAPSHOT
> {code}
> The useful information to identify the cause of the failure is in the message
> of the exception's cause. e.g.
> {code:java}
> [INFO] --- karaf-maven-plugin:4.2.2-SNAPSHOT:verify
> (verify-brooklyn-ui-modularity-feature) @ brooklyn-ui-modularity-features ---
> [INFO] Using repositories:
> https://repository.apache.org/content/repositories/snapshots@id=apache-snapshots@noreleases@snapshots,https://repository.apache.org/content/repositories/snapshots@id=jclouds-snapshots@snapshots,https://repo.maven.apache.org/maven2@id=central
> [WARNING] Unable to resolve framework features:
> brooklyn-ui-modularity/1.0.0.SNAPSHOT
> [WARNING] Unable to resolve root: missing requirement [root] osgi.identity;
> osgi.identity=brooklyn-rest-resources; type=karaf.feature;
> filter:="(&(osgi.identity=brooklyn-rest-resources)(type=karaf.feature))"
> [caused by: Unable to resolve brooklyn-rest-resources/1.0.0.SNAPSHOT: missing
> requirement [brooklyn-rest-resources/1.0.0.SNAPSHOT] osgi.identity;
> osgi.identity=org.apache.brooklyn.rest-resources; type=osgi.bundle;
> version="[1.0.0.SNAPSHOT,1.0.0.SNAPSHOT]"; resolution:=mandatory [caused by:
> Unable to resolve org.apache.brooklyn.rest-resources/1.0.0.SNAPSHOT: missing
> requirement [org.apache.brooklyn.rest-resources/1.0.0.SNAPSHOT]
> osgi.wiring.package;
> filter:="(&(osgi.wiring.package=io.swagger.annotations)(version>=1.5.0)(!(version>=2.0.0)))"
> [caused by: Unable to resolve io.swagger.annotations/1.5.6: missing
> requirement [io.swagger.annotations/1.5.6] osgi.identity;
> osgi.identity="root#swagger-1.5.6"; type=karaf.subsystem;
> version="[0,0.0.0]"; resolution:=mandatory [caused by: Unable to resolve
> root#swagger-1.5.6: missing requirement [root#swagger-1.5.6] osgi.identity;
> osgi.identity=swagger; type=karaf.feature; version="[1.5.6,1.5.6]" [caused
> by: Unable to resolve swagger/1.5.6: missing requirement [swagger/1.5.6]
> osgi.identity; osgi.identity=io.swagger.core; type=osgi.bundle;
> version="[1.5.6,1.5.6]"; resolution:=mandatory [caused by: Unable to resolve
> io.swagger.core/1.5.6: missing requirement [io.swagger.core/1.5.6]
> osgi.wiring.package;
> filter:="(&(osgi.wiring.package=com.fasterxml.jackson.dataformat.yaml)(version>=2.4.0)(!(version>=3.0.0)))"
> [caused by: Unable to resolve
> com.fasterxml.jackson.dataformat.jackson-dataformat-yaml/2.9.7: missing
> requirement [com.fasterxml.jackson.dataformat.jackson-dataformat-yaml/2.9.7]
> osgi.wiring.package;
> filter:="(&(osgi.wiring.package=org.yaml.snakeyaml)(version>=1.23.0)(!(version>=2.0.0)))"]]]]]]]
> [WARNING] Unable to resolve framework features:
> brooklyn-ui-proxy/1.0.0.SNAPSHOT
> [WARNING] Unable to resolve root: missing requirement [root] osgi.identity;
> osgi.identity=brooklyn-osgi-launcher; type=karaf.feature;
> filter:="(&(osgi.identity=brooklyn-osgi-launcher)(type=karaf.feature))"
> [caused by: Unable to resolve brooklyn-osgi-launcher/1.0.0.SNAPSHOT: missing
> requirement [brooklyn-osgi-launcher/1.0.0.SNAPSHOT] osgi.identity;
> osgi.identity=brooklyn-container-service; type=karaf.feature [caused by:
> Unable to resolve brooklyn-container-service/1.0.0.SNAPSHOT: missing
> requirement [brooklyn-container-service/1.0.0.SNAPSHOT] osgi.identity;
> osgi.identity=io.fabric8.openshift-client; type=osgi.bundle;
> version="[1.4.27,1.4.27]"; resolution:=mandatory [caused by: Unable to
> resolve io.fabric8.openshift-client/1.4.27: missing requirement
> [io.fabric8.openshift-client/1.4.27] osgi.wiring.package;
> filter:="(osgi.wiring.package=io.fabric8.kubernetes.client)" [caused by:
> Unable to resolve io.fabric8.kubernetes-client/1.4.27: missing requirement
> [io.fabric8.kubernetes-client/1.4.27] osgi.wiring.package;
> filter:="(&(osgi.wiring.package=com.fasterxml.jackson.dataformat.yaml)(version>=2.7.0)(!(version>=3.0.0)))"
> [caused by: Unable to resolve
> com.fasterxml.jackson.dataformat.jackson-dataformat-yaml/2.9.7: missing
> requirement [com.fasterxml.jackson.dataformat.jackson-dataformat-yaml/2.9.7]
> osgi.wiring.package;
> filter:="(&(osgi.wiring.package=org.yaml.snakeyaml)(version>=1.23.0)(!(version>=2.0.0)))"]]]]]
> [WARNING] Unable to resolve framework features:
> brooklyn-ui-modularity-prereqs/1.0.0.SNAPSHOT
> [WARNING] Unable to resolve root: missing requirement [root] osgi.identity;
> osgi.identity=brooklyn-osgi-launcher; type=karaf.feature;
> filter:="(&(osgi.identity=brooklyn-osgi-launcher)(type=karaf.feature))"
> [caused by: Unable to resolve brooklyn-osgi-launcher/1.0.0.SNAPSHOT: missing
> requirement [brooklyn-osgi-launcher/1.0.0.SNAPSHOT] osgi.identity;
> osgi.identity=brooklyn-container-service; type=karaf.feature [caused by:
> Unable to resolve brooklyn-container-service/1.0.0.SNAPSHOT: missing
> requirement [brooklyn-container-service/1.0.0.SNAPSHOT] osgi.identity;
> osgi.identity=io.fabric8.openshift-client; type=osgi.bundle;
> version="[1.4.27,1.4.27]"; resolution:=mandatory [caused by: Unable to
> resolve io.fabric8.openshift-client/1.4.27: missing requirement
> [io.fabric8.openshift-client/1.4.27] osgi.wiring.package;
> filter:="(osgi.wiring.package=io.fabric8.kubernetes.client)" [caused by:
> Unable to resolve io.fabric8.kubernetes-client/1.4.27: missing requirement
> [io.fabric8.kubernetes-client/1.4.27] osgi.wiring.package;
> filter:="(&(osgi.wiring.package=com.fasterxml.jackson.dataformat.yaml)(version>=2.7.0)(!(version>=3.0.0)))"
> [caused by: Unable to resolve
> com.fasterxml.jackson.dataformat.jackson-dataformat-yaml/2.9.7: missing
> requirement [com.fasterxml.jackson.dataformat.jackson-dataformat-yaml/2.9.7]
> osgi.wiring.package;
> filter:="(&(osgi.wiring.package=org.yaml.snakeyaml)(version>=1.23.0)(!(version>=2.0.0)))"]]]]]
> [INFO] Features verified: 3, failures: 3, ignored: 0
> [INFO] Failures: brooklyn-ui-modularity/1.0.0.SNAPSHOT,
> brooklyn-ui-proxy/1.0.0.SNAPSHOT,
> brooklyn-ui-modularity-prereqs/1.0.0.SNAPSHOT
> {code}
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)