[Carbon-dev] Carbon Archetype MVN plugin for building products and solutions
Afkham Azeez
azeez at wso2.com
Fri Jul 18 04:58:36 PDT 2008
This archetype generates the wrong pom.xml file. Where is the code for
this archetype? (carbon-archetype)
Azeez
saminda abeyruwan wrote:
> Hi,
>
> Just do the following to get the archetype working :)
>
> mvn archetype:create -DarchetypeGroupId=org.wso2.carbon
> -DarchetypeArtifactId=carbon-archetype -DarchetypeVersion=SNAPSHOT
> -DgroupId=org.wso2.xx -DartifactId=org.wso2.xx
> -DremoteRepositories=http://dist.wso2.org/maven2/
>
> Thank you
>
> Saminda
>
> saminda abeyruwan wrote:
>> Hi,
>>
>> At the moment I've not been able to find a document on registering the
>> custom archetype in central repository that you can download. Till
>> then do the following,
>>
>> [1]. svn co https://svn.wso2.org/repos/wso2/trunk/carbon/archetype
>>
>> [2] cd archetype; mvn clean install
>>
>> [3]. Go to any location and type
>>
>> mvn archetype:create -DarchetypeGroupId=org.wso2.carbon
>> -DarchetypeArtifactId=carbon-archetype -DarchetypeVersion=SNAPSHOT
>> -DgroupId=org.wso2.xx -DartifactId=org.wso2.xx
>>
>> Thank you
>>
>> Saminda
>>
>>
>>
>> saminda abeyruwan wrote:
>>> Hi Devs,
>>>
>>> An Maven2 archetype has been created for products and solutions
>>> building on top of Carbon. All you have to do is to use the following
>>> command in your shell,
>>>
>>> mvn archetype:create -DarchetypeGroupId=org.wso2.carbon
>>> -DarchetypeArtifactId=carbon-archetype -DarchetypeVersion=SNAPSHOT
>>> -DgroupId=org.wso2.xx -DartifactId=org.wso2.xx
>>>
>>>
>>> This will create the following project structure,
>>>
>>> -- org.wso2.xx
>>> |-- pom.xml
>>> |-- src
>>> | `-- org
>>> | `-- wso2
>>> | `-- xx
>>> | `-- App.java
>>> `-- test
>>> `-- org
>>> `-- wso2
>>> `-- xx
>>> `-- AppTest.java
>>>
>>> All you have to do is to provide the proper values for -DgroupId and
>>> -DartifactId. The generated pom.xml has dependencies for Carbon
>>> binary distribution and junit environment.
>>>
>>> <project xmlns="http://maven.apache.org/POM/4.0.0"
>>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>>> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
>>> http://maven.apache.org/maven-v4_0_0.xsd">
>>> <modelVersion>4.0.0</modelVersion>
>>> <groupId>org.wso2.xx</groupId>
>>> <artifactId>org.wso2.xx</artifactId>
>>> <packaging>pom</packaging>
>>> <version>1.0-SNAPSHOT</version>
>>> <name>A custom wso2 products or solution</name>
>>> <url>http://www.wso2.com</url>
>>> <dependencies>
>>> <dependency>
>>> <groupId>org.wso2.carbon</groupId>
>>> <artifactId>carbon</artifactId>
>>> <version>SNAPSHOT</version>
>>> <type>zip</type>
>>> </dependency>
>>> <dependency>
>>> <groupId>junit</groupId>
>>> <artifactId>junit</artifactId>
>>> <version>3.8.1</version>
>>> <scope>test</scope>
>>> </dependency>
>>> </dependencies>
>>>
>>> <build>
>>> <sourceDirectory>src</sourceDirectory>
>>> <testSourceDirectory>test</testSourceDirectory>
>>> <!-- Use org.apache.felix:maven-bundle-plugin:1.2.0 to create
>>> OSGi plugins -->
>>> </build>
>>>
>>> </project>
>>>
>>> If you need to build your own archetype, it would be pretty simple
>>> and follow [1].
>>>
>>> Thank you
>>>
>>> Saminda
>>>
>>> Reference:
>>>
>>> [1]. http://maven.apache.org/guides/mini/guide-creating-archetypes.html
>>>
>>> _______________________________________________
>>> Carbon-dev mailing list
>>> Carbon-dev at wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>>
>>
>>
>> _______________________________________________
>> Carbon-dev mailing list
>> Carbon-dev at wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>
>
>
> _______________________________________________
> Carbon-dev mailing list
> Carbon-dev at wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>
More information about the Carbon-dev
mailing list