DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports Events Over 2 million developers have joined DZone. Join Today! Thanks for visiting DZone today,
Edit Profile Manage Email Subscriptions Moderation Admin Console How to Post to DZone Article Submission Guidelines
View Profile
Sign Out
Refcards
Trend Reports
Events
Zones
Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones AWS Cloud
by AWS Developer Relations
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones
AWS Cloud
by AWS Developer Relations

Trending

  • From On-Prem to SaaS
  • Auditing Tools for Kubernetes
  • Top 10 Engineering KPIs Technical Leaders Should Know
  • SRE vs. DevOps

Trending

  • From On-Prem to SaaS
  • Auditing Tools for Kubernetes
  • Top 10 Engineering KPIs Technical Leaders Should Know
  • SRE vs. DevOps
  1. DZone
  2. Coding
  3. Java
  4. Deploying the WSO2 CAR File with Maven

Deploying the WSO2 CAR File with Maven

$$anonymous$$ user avatar by
$$anonymous$$
·
Apr. 10, 13 · Interview
Like (0)
Save
Tweet
Share
5.88K Views

Join the DZone community and get the full member experience.

Join For Free

to deploy my wso2 carbon application archive (car) file to my wso2 esb instance i use this maven plugin. i couldn’t find a lot of documentation about it so i'm posting here how i use it. i added the following plugin to my pom.xml file:

<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/wso2-localhost.jks</truststorepath>
        <truststorepassword>wso2</truststorepassword>
        <truststoretype>jks</truststoretype>-->
        <serverurl>https://localhost:9443</serverurl>
        <username>admin</username>
        <password>admin</password>
        <operation>deploy</operation>
      </carbonserver>
    </carbonservers>
  </configuration>
</plugin>

i think this plugin is pretty straightforward. as said before i couldn’t find any documentation about it.
the last thing to do to make this work is to create the truststore file. there are two ways (at least) to get it. the easy way is to get it from the installation directory of the wso2 esb. the file is named ‘client-truststore.jks’ and you can find it in the directory ‘$carbon_home/repository/resources/security’. the password is ‘wso2carbon’.
the other way to get it is a little bit harder but i show it anyway. here we go:

  • obtain the certificate
  • open up the management console in google chrome (my favorite browser). on the left side of the address bar you see a lock with a cross in it. after you click it you can browse to the certificate information:
    screen shot 2013-03-23 at 07.48.42
    when you clicked the link to the certificate information you see the certificate. you can now drag the certificate icon to your desktop so it is saved as file there:
    screen shot 2013-03-23 at 07.50.23

  • create a truststore
  • to create the truststore we need to make a jks keystore with the certificate in it. there are several ways to do it but i show my favorite tool again, in this case the keystore explorer . when you open the tool you can click the option to create a new keystore:
    screen shot 2013-03-23 at 07.57.57
    next step is to import the certificate into the keystore by choosing this menu option:
    screen shot 2013-03-23 at 08.00.21
    now browse to the certificate we just saved on the desktop and select it to import it:
    screen shot 2013-03-23 at 08.00.49
    after importing the keystore has one entry:
    screen shot 2013-03-23 at 08.01.18
    now save the store. it will verify you want to trust the certificate and you will have the ability to set the password for the keystore:
    screen shot 2013-03-23 at 08.01.50

that is it. we now have a jks keystore with the certificate in it to which we can point in our maven plugin configuration.

Apache Maven

Published at DZone with permission of $$anonymous$$. See the original article here.

Opinions expressed by DZone contributors are their own.

Trending

  • From On-Prem to SaaS
  • Auditing Tools for Kubernetes
  • Top 10 Engineering KPIs Technical Leaders Should Know
  • SRE vs. DevOps

Comments

Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com

Let's be friends: