Details
Description
According to this guide
http://karaf.apache.org/manual/latest/developers-guide/karaf-maven-plugin-features-validate-descriptor.html
You can run this goal to validate your features file, which we do at Apache Camel. But we have been using the older Karaf 2.x plugin to do that. But when upgrading to 4.x the goal is missing.
davsclaus:~/workspace/camel/platforms/karaf/features (master)/$ mvn -Pvalidate Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=1024m; support was removed in 8.0 [INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building Camel :: Platforms :: Apache Karaf :: Features 2.17-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 1.038 s [INFO] Finished at: 2016-03-13T09:23:21+01:00 [INFO] Final Memory: 12M/155M [INFO] ------------------------------------------------------------------------ [ERROR] Could not find goal 'features-validate-descriptor' in plugin org.apache.karaf.tooling:karaf-maven-plugin:4.0.3 among available goals archive, assembly, commands-generate-help, features-add-to-repository, features-export-meta-data, features-generate-descriptor, kar, verify -> [Help 1]
When using
<plugin>
<groupId>org.apache.karaf.tooling</groupId>
<artifactId>karaf-maven-plugin</artifactId>
<version>4.0.3</version>
<!--<configuration>-->
<!--<file>${project.build.directory}/classes/${features.file}</file>-->
<!--<karafConfig>${project.build.directory}/classes/config.properties</karafConfig>-->
<!--<jreVersion>jre-1.6</jreVersion>-->
<!--</configuration>-->
<executions>
<execution>
<id>validate</id>
<phase>process-resources</phase>
<goals>
<goal>features-validate-descriptor</goal>
</goals>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>org.apache.maven.wagon</groupId>
<artifactId>wagon-http-lightweight</artifactId>
<version>2.6</version>
</dependency>
</dependencies>
</plugin>
Where is that goal or has it been removed entirely?