[
https://issues.apache.org/jira/browse/KARAF-3490?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14300140#comment-14300140
]
Matthias Jeschke commented on KARAF-3490:
-----------------------------------------
Hm, good question, as there could be other XML files in the artifact (e.g.
configuration) that are not feature descriptors. One way would be to simply
state that the classifier is required and then ask the guys behind ipojo to add
the classifier to their feature descriptor. I don't know how often this happens
that a feature descriptor does not have the "features" classifier.
I'm not sure if you can do anything with regex, as it would be necessary to
accept feature descriptors without any classifier. I don't know how much
control you have when retrieving the dependency / how Maven works in this case.
You could, if possible, prefer XMLs with the classifier and have a fallback to
XMLs without a classifier ("if there is an artifact with type xml and
classifier features, take it, otherwise take the artifact with type xml and no
classifier").
Or you could, also if possible, retrieve all artifacts with type XML and then
validate the content against the feature descriptor scheme / xsd.
> Unresolved dependency (equinox region) when running an unmodified custom
> distribution
> -------------------------------------------------------------------------------------
>
> Key: KARAF-3490
> URL: https://issues.apache.org/jira/browse/KARAF-3490
> Project: Karaf
> Issue Type: Bug
> Affects Versions: 3.0.2, 3.0.3
> Environment: Windows 7 64Bit, Java 8, Maven 3
> Reporter: Matthias Jeschke
> Assignee: Jean-Baptiste Onofré
> Priority: Minor
> Fix For: 4.0.0, 3.0.4
>
>
> After creating a maven module using the current version of the karaf-assembly
> archetype, the final output is missing the repository information of a
> dependency (Equinox region). This results in an error when the distribution
> is started:
> 2015-01-31 13:37:10,186 | WARN | FelixStartLevel | AetherBasedResolver
> | 3 - org.ops4j.pax.logging.pax-logging-api - 1.8.1 | Error resolving
> artifactorg.eclipse.equinox:region:jar:1.0.0.v20110506:Could not find
> artifact org.eclipse.equinox:region:jar:1.0.0.v20110506 in central
> (http://repo1.maven.org/maven2/)
> shaded.org.eclipse.aether.resolution.ArtifactResolutionException: Could not
> find artifact org.eclipse.equinox:region:jar:1.0.0.v20110506 in central
> (http://repo1.maven.org/maven2/)
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)