Hi All,

I'm trying to create feature categories under which carbon features can be
categorised into feature groups. The goal of this effort is to visualise
feature groups clearly in the carbon feature manager, so it'll be easier
for the carbon users to quickly understand what a certain feature group
does and why it is needed.

This should be done when we generate the p2 repo for our features using
carbon-p2-plugin.  Enabling <categories> configuration in the plugin should
do the trick.
However when I try it with the current p2 plugin (1.4-SNAPSHOT) it fails
with the following error:

[ERROR] Failed to execute goal
org.wso2.maven:carbon-p2-plugin:1.4-SNAPSHOT:p2-repo-gen
(2-p2-repo-generation) on project wso2carbon-core: Unable to parse
configuration of mojo
org.wso2.maven:carbon-p2-plugin:1.4-SNAPSHOT:p2-repo-gen for parameter
category: Error loading class 'org.wso2.maven.p2.FeatureArtifactDef' ->
[Help 1]

The jira created for the above error is:
https://wso2.org/jira/browse/CARBON-12648

I tried the same with an earlier version of the p2 plugin (*1.2*) assuming
it worked previously, but it too failed. Can anyone please tell me the
p2-plugin version with which category configuration works? Or is there
anything wrong with my sample plugin configuration below?

<plugin>
                <groupId>org.wso2.maven</groupId>
                <artifactId>carbon-p2-plugin</artifactId>
                <version>*1.2*</version>
                <executions>
                    <execution>
                        <id>2-p2-repo-generation</id>
                        <phase>package</phase>
                        <goals>
                            <goal>p2-repo-gen</goal>
                        </goals>
                    <configuration>
                            <name>WSO2 Carbon Core</name>
                            <archive>true</archive>

<p2AgentLocation>${basedir}/target/p2-agent</p2AgentLocation>
                            <publishArtifacts>true</publishArtifacts>

<publishArtifactRepository>true</publishArtifactRepository>
                        <featureArtifacts>

<featureArtifactDef>org.wso2.carbon:org.wso2.carbon.core.feature:4.0.0-SNAPSHOT</featureArtifactDef>
                        </featureArtifacts>

                        <categories>
                            <category>
                            <id>org.wso2.carbon.core</id>
                            <label>WSO2 Carbon Core Category</label>
                            <description>This is the WSO2 Carbon Core
category</description>
                            <features>
                                <featureArtifactDef>

<featureArtifactDef>org.wso2.carbon:org.wso2.carbon.core.feature:4.0.0-SNAPSHOT</featureArtifactDef>
                                </featureArtifactDef>
                            </features>
                            </category>
                        </categories>
                    </configuration>
                    </execution>
                </executions>
  </plugin>

Thanks,
Dileepa

-- 
Dileepa Jayakody,
Software Engineer, WSO2 Inc.
Lean . Enterprise . Middleware

Mobile : +94777-857616
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to