Hi,

category configuration works with carbon-p2-plugin 1.2.
There was a small mistake in my config given above.

Thanks,
Dileepa

On Fri, Mar 16, 2012 at 10:05 AM, Dileepa Jayakody <[email protected]> wrote:

> Hi Sameera,
>
> The same plugin (a previous version of it) is used to create Carbon Studio
> feature categories without an issue. I guess the categories configuration
> isn't working in the newer versions of the plugin which we need to fix.
>
> Thanks,
> Dileepa
>
>
> On Fri, Mar 16, 2012 at 12:02 AM, Sameera Jayasoma <[email protected]>wrote:
>
>> Hi Dileepa,
>>
>> carbon-p2-plugin is a plugin wrote by us. I don't think we have support
>> for categories there. You might have to implement that.
>>
>> Thanks,
>> Sameera.
>>
>> On Thu, Mar 15, 2012 at 1:44 PM, Dileepa Jayakody <[email protected]>wrote:
>>
>>> 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
>>>
>>>
>>
>>
>> --
>> Sameera Jayasoma
>> Technical Lead and Product Manager, WSO2 Carbon
>>
>> WSO2, Inc. (http://wso2.com)
>> email: [email protected]
>> blog: http://tech.jayasoma.org
>>
>>
>> Lean . Enterprise . Middleware
>>
>
>
>
> --
> Dileepa Jayakody,
> Software Engineer, WSO2 Inc.
> Lean . Enterprise . Middleware
>
> Mobile : +94777-857616
>
>


-- 
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