You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Achim Finke (JIRA)" <ji...@apache.org> on 2016/11/23 16:47:58 UTC
[jira] [Updated] (KARAF-4842) Karaf Maven Plugin builds features
with invalid configuration
[ https://issues.apache.org/jira/browse/KARAF-4842?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Achim Finke updated KARAF-4842:
-------------------------------
Description:
I generated a Karaf Feature using the karaf-feature-archetype. This will add the following configuration to the POM file.
{code:xml}
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.karaf.tooling</groupId>
<artifactId>karaf-maven-plugin</artifactId>
<version>4.0.7</version>
<extensions>true</extensions>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.karaf.tooling</groupId>
<artifactId>karaf-maven-plugin</artifactId>
<configuration>
<startLevel>50</startLevel>
<aggregateFeatures>true</aggregateFeatures>
<resolver>(obr)</resolver>
<checkDependencyChange>true</checkDependencyChange>
<failOnDependencyChange>false</failOnDependencyChange>
<logDependencyChanges>true</logDependencyChanges>
<overwriteChangedDependencies>true</overwriteChangedDependencies>
</configuration>
</plugin>
</plugins>
</build>
{code}
The feature can be built but on installation the feature validation fails.
{code}
Caused by: org.xml.sax.SAXParseException: cvc-complex-type.3.2.2: Attribute 'resolver' is not allowed to appear in element 'feature'.
{code}
Basically here are two issues:
- Karaf Maven Plugin builds a feature with invalid configuration
- The karaf-feature-archetype contains invalid configuration
So to solve this Karaf Maven plugin should be enhanced and the resolver tag should be deleted within the archetype.
was:
I generated a Karaf Feature using the karaf-feature-archetype. This will add the following configuration to the POM file.
{code:xml}
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.karaf.tooling</groupId>
<artifactId>karaf-maven-plugin</artifactId>
<version>4.0.7</version>
<extensions>true</extensions>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.karaf.tooling</groupId>
<artifactId>karaf-maven-plugin</artifactId>
<configuration>
<startLevel>50</startLevel>
<aggregateFeatures>true</aggregateFeatures>
<resolver>(obr)</resolver>
<checkDependencyChange>true</checkDependencyChange>
<failOnDependencyChange>false</failOnDependencyChange>
<logDependencyChanges>true</logDependencyChanges>
<overwriteChangedDependencies>true</overwriteChangedDependencies>
</configuration>
</plugin>
</plugins>
</build>
{code}
The feature can be built but on installation the feature validation fails.
{code}
Caused by: org.xml.sax.SAXParseException: cvc-complex-type.3.2.2: Attribute 'resolver' is not allowed to appear in element 'feature'.
{code}
Basically here are two issues:
- Karaf Maven Plugin builds a feature with invalid configuration
- The karaf-feature-archetype contains invalid configuration
> Karaf Maven Plugin builds features with invalid configuration
> -------------------------------------------------------------
>
> Key: KARAF-4842
> URL: https://issues.apache.org/jira/browse/KARAF-4842
> Project: Karaf
> Issue Type: Bug
> Components: karaf-tooling
> Affects Versions: 4.0.7
> Reporter: Achim Finke
>
> I generated a Karaf Feature using the karaf-feature-archetype. This will add the following configuration to the POM file.
> {code:xml}
> <build>
> <pluginManagement>
> <plugins>
> <plugin>
> <groupId>org.apache.karaf.tooling</groupId>
> <artifactId>karaf-maven-plugin</artifactId>
> <version>4.0.7</version>
> <extensions>true</extensions>
> </plugin>
> </plugins>
> </pluginManagement>
> <plugins>
> <plugin>
> <groupId>org.apache.karaf.tooling</groupId>
> <artifactId>karaf-maven-plugin</artifactId>
> <configuration>
> <startLevel>50</startLevel>
> <aggregateFeatures>true</aggregateFeatures>
> <resolver>(obr)</resolver>
> <checkDependencyChange>true</checkDependencyChange>
> <failOnDependencyChange>false</failOnDependencyChange>
> <logDependencyChanges>true</logDependencyChanges>
> <overwriteChangedDependencies>true</overwriteChangedDependencies>
> </configuration>
> </plugin>
> </plugins>
> </build>
> {code}
> The feature can be built but on installation the feature validation fails.
> {code}
> Caused by: org.xml.sax.SAXParseException: cvc-complex-type.3.2.2: Attribute 'resolver' is not allowed to appear in element 'feature'.
> {code}
> Basically here are two issues:
> - Karaf Maven Plugin builds a feature with invalid configuration
> - The karaf-feature-archetype contains invalid configuration
> So to solve this Karaf Maven plugin should be enhanced and the resolver tag should be deleted within the archetype.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)