Hi All,

WSO2 Developer Studio team has recently implemented the WSO2 CAR Deploy
Maven plugin to support the deployment of CAR (Carbon Application aRchive)
file to Local and Remote standalone Carbon Servers as well as WSO2 Stratos
Cloud platform from a Maven based build process of C-Apps.

This plugin allows you to deploy/undeploy a CAR file from a C-App project
to multiple Local/Remote Carbon Servers including StratosLive cloud
platform.

Deployment to Carbon Servers happens during the Deploy phase of the Maven
build.

How to use:

* Maven Command: mvn clean deploy

C-App project pom configuration:

* You need to add the following plugin entry to the plugins section of the
pom.xml of C-App project.
* You can add a <CarbonServer> entry to the <carbonServers> element
in configuration section of the plugin and declare the required parameters
for your Carbon Server.
* You can add any number of  <CarbonServer> entried under  <carbonServers>
element and deploy/undeploy the same CAR file to/from multiple Servers.
* Supports 2 modes of operation Deploy and Undeploy

       <plugin>
        <groupId>org.wso2.maven</groupId>
        <artifactId>maven-car-deploy-plugin</artifactId>
        <version>1.0.0</version>
        <extensions>true</extensions>
        <configuration>
          <carbonServers>
            <CarbonServer>

<trustStorePath>${basedir}/src/main/resources/security/wso2carbon.jks</trustStorePath>
              <trustStorePassword>wso2carbon</trustStorePassword>
              <trustStoreType>JKS</trustStoreType>
              <serverUrl>https://localhost:9443</serverUrl>
              <userName>admin</userName>
              <password>admin</password>
              <operation>deploy|undeploy</operation>
            </CarbonServer>
            <CarbonServer>

<trustStorePath>${basedir}/src/main/resources/security/wso2carbon.jks</trustStorePath>
              <trustStorePassword>wso2carbon</trustStorePassword>
              <trustStoreType>JKS</trustStoreType>
              <serverUrl>https://localhost:9445</serverUrl>
              <userName>admin</userName>
              <password>admin</password>
              <operation>deploy|undeploy</operation>
            </CarbonServer>
                .
                .
                .
          </carbonServers>
        </configuration>
      </plugin>

This plugins supports 2 modes of operations, Deploy and Undeploy.

You can choose the mode of operation using <operation> element.

Eg:

Deploy:

<operation>deploy</operation>

Undeploy:

<operation>undeploy</operation>

Please note that this plugin currently is in *experimental* state. Hence
may contain bugs.

Please report the bugs in https://wso2.org/jira/browse/TOOLS/component/10670
.

Thanks and Regards,
Harshana
-- 
Harshana Martin
Senior Software Engineer
Member, Management Committee - Development Technologies
WSO2 Inc. : http://wso2.com ; http://wso2.org
Mobile: +94 775 998 115
Profile: https://www.google.com/profiles/harshana05
Blog: http://harshana05.blogspot.com
Twitter: http://twitter.com/harshana05
_______________________________________________
User mailing list
User@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/user

Reply via email to