Can you explain how does this help us on development. Is it useful for
creating a new carbon compoment easily? Or is this a new standard way of
generating carbon 5 components.

Thanks.


*Maninda Edirisooriya*
Senior Software Engineer

*WSO2, Inc.*lean.enterprise.middleware.

*Blog* : http://maninda.blogspot.com/
*E-mail* : [email protected]
*Skype* : @manindae
*Twitter* : @maninda

On Sat, Nov 14, 2015 at 10:24 PM, Manuri Amaya Perera <[email protected]>
wrote:

>
>
> On Sat, Nov 14, 2015 at 10:18 PM, Manuri Amaya Perera <[email protected]>
> wrote:
>
>> Hi,
>>
>> I have created an archetype for a simple carbon component.
>>
>> At the moment it has been added under carbon-kernel/archetypes as per the
>> discussion during C5 progress review of the Carbon team.
>>
>> This is the structure for the archetype.
>>
>> archetypes​
>> ├── carbon-bundle-archetype
>> │   ├── pom.xml
>> │   └── src
>> │       └── main
>> │           └── resources
>> │               ├── archetype-resources
>> │               │   ├── pom.xml
>> │               │   └── src
>> │               │       ├── main
>> │               │       │   └── java
>> │               │       │       ├── Hello.java
>> │               │       │       └── internal
>> │               │       │           └── SampleBundleActivator.java
>> │               │       └── test
>> │               │           └── java
>> │               │               └── HelloTest.java
>> │               └── META-INF
>> │                   └── maven
>> │                       └── archetype-metadata.xml
>> └── pom.xml
>>
>> In order to create a project from this archetype, you can enter the
>> command as follows.
>>
>> mvn archetype:generate -DarchetypeGroupId=org.wso2.carbon
>> -DarchetypeArtifactId=org.wso2.carbon.archetypes.bundle
>> -DarchetypeVersion=5.0.0-SNAPSHOT  -DgroupId=org.example
>> -DartifactId=org.example.project -Dpackage=org.example.project
>> -Dversion=1.0.0-SNAPSHOT
>> ​
>> Structure of the project created would be as follows.
>>
>> org.example.project
>> ├── pom.xml
>> └── src
>>     ├── main
>>     │   └── java
>>     │       └── org
>>     │           └── example
>>     │               └── project
>>     │                   ├── Hello.java
>>     │                   └── internal
>>     │                       └── SampleBundleActivator.java
>>     └── test
>>         └── java
>>             └── org
>>                 └── example
>>                     └── project
>>                         └── HelloTest.java
>>
>>
>> Any comments/improvements ?
>>
>>
>> Thank you.
>>
>>
>>
>> --
>>
>> *Manuri Amaya Perera*
>>
>> *Software Engineer*
>>
>> *WSO2 Inc.*
>>
>> *Blog: http://manuriamayaperera.blogspot.com
>> <http://manuriamayaperera.blogspot.com>*
>>
>
>
>
> --
>
> *Manuri Amaya Perera*
>
> *Software Engineer*
>
> *WSO2 Inc.*
>
> *Blog: http://manuriamayaperera.blogspot.com
> <http://manuriamayaperera.blogspot.com>*
>
> _______________________________________________
> Architecture mailing list
> [email protected]
> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>
>
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to