Hi,

Following maven command can be used to generate test project form the
archetype

(syntax)

mvn -B archetype:generate -DarchetypeRepository=
http://maven.wso2.org/nexus/content/repositories/wso2maven2/
-DarchetypeGroupId=org.wso2.carbon.automation
-DarchetypeArtifactId=wso2-test-project-archetype -DarchetypeVersion=1.0.0
-DgroupId=xxxxxxxx -DartifactId=xxxxxx -Dpackage=xxxxxxxxx
-DprojectName=xxxxxx -DproductVersion=xxxxx

Above code snippet has two types of parameters and all the parameters are
required.

    Archetype specific parameters

   -     archetypeRepository - Repository where the archetype deployed.


   -     archetypeGroupId - GroupId of the archetype


   -     archetypeArtifactId - ArtifactId of the archetype


   -     archetypeVersion - Version of the archetype ( Users can give the
   appropriate version of the archetype)


    Project specific parameters

   -     groupId - GroupId of the project to be created


   -     artifactId - ArtifactId of the project to be created


   -     package - package name of the project


   -     productName - name of the WSO2 product


   -     productVersion - version if the WSO2 product


Example: Generating test project for WSO2 ESB-4.8.0 product

mvn -B archetype:generate -DarchetypeRepository=
http://maven.wso2.org/nexus/content/repositories/wso2maven2/
-DarchetypeGroupId=org.wso2.carbon.automation
-DarchetypeArtifactId=wso2-test-project-archetype -DarchetypeVersion=1.0.0
-DgroupId=org.wso2.esb -DartifactId=automated-test-project
-Dpackage=org.wso2.esb.test -DproductName= esb -DproductVersion=4.8.0

Regards,
Malintha


On Wed, Apr 2, 2014 at 12:56 PM, Malintha Adikari <[email protected]> wrote:

> Hi,
>
> I am working on maven archetype for generating generic test project for
> WSO2 products[1]. Archetype has been deployed in WSO2 maven nexus [2] and
> users can  generate basic test project which is compatible with Test
> Automation Framework using the archetype.
>
> [1]https://wso2.org/jira/browse/TA-816
> [2]
> http://maven.wso2.org/nexus/content/repositories/wso2maven2/org/wso2/carbon/automation/wso2-test-project-archetype/1.0.0/
>
> Regards,
> --
> *Malintha Adikari*
>  Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> Mobile: +94 71 2312958
> Blog:    http://malinthas.blogspot.com
> Page:   http://about.me/malintha
>



-- 
*Malintha Adikari*
 Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

Mobile: +94 71 2312958
Blog:    http://malinthas.blogspot.com
Page:   http://about.me/malintha
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to