[
https://issues.apache.org/jira/browse/KARAF-4415?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jean-Baptiste Onofré reassigned KARAF-4415:
-------------------------------------------
Assignee: Jean-Baptiste Onofré
> karaf-maven-plugin - The feature validate goal is missing
> ---------------------------------------------------------
>
> Key: KARAF-4415
> URL: https://issues.apache.org/jira/browse/KARAF-4415
> Project: Karaf
> Issue Type: Documentation
> Components: karaf-tooling
> Affects Versions: 4.0.4
> Reporter: Claus Ibsen
> Assignee: Jean-Baptiste Onofré
> Priority: Minor
> Fix For: 4.1.0, 4.0.5
>
>
> 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.
> {code}
> 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]
> {code}
> When using
> {code}
> <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>
> {code}
> Where is that goal or has it been removed entirely?
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)