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>*
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to