There is this ticket that appears to be fixed  
https://issues.apache.org/jira/browse/KARAF-4842 
<https://issues.apache.org/jira/browse/KARAF-4842>, yet it is still happening 
with version 4.2.8


Best regards,
Alex soto




> On Jun 4, 2020, at 10:34 AM, Alex Soto <alex.s...@envieta.com> wrote:
> 
> Hello,
> 
> I am trying to create a KAR, but at run time I am getting an error:
> 
> org.xml.sax.SAXParseException; cvc-complex-type.3.2.2: Attribute 'resolver' 
> is not allowed to appear in element 'feature’.  I do not have attribute 
> ‘resolver’ in my features.xml file. 
> 
> My POM has:
>               <packaging>kar</packaging>
>               
>       <build>
>               <plugins>
>                       <plugin>
>                               <groupId>org.apache.karaf.tooling</groupId>
>                               <artifactId>karaf-maven-plugin</artifactId>
>                               <version>4.2.8</version>
>                               <extensions>true</extensions>                   
>                               <configuration>
>                                       <startLevel>80</startLevel>
>                                       
> <aggregateFeatures>true</aggregateFeatures>
>                                       
> <includeTransitiveDependency>true</includeTransitiveDependency>
>                                       <!-- <resolver>(obr)</resolver> -->
>                                       
> <checkDependencyChange>true</checkDependencyChange>
>                                       
> <failOnDependencyChange>false</failOnDependencyChange>
>                                       
> <logDependencyChanges>true</logDependencyChanges>
>                                       
> <overwriteChangedDependencies>true</overwriteChangedDependencies>
>                               </configuration>
>                       </plugin>
>               </plugins>
>       </build>
> 
> 
> Also, I thought all dependencies would be added the the KAR archive under the 
> ‘repository’ folder, but this is not the case.
> 
> 
> Best regards,
> Alex soto
> 
> 
> 
> 

Reply via email to