Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

maven-car-deploy-plugin did not deploy #50

Open
zarulizham opened this issue Dec 4, 2019 · 1 comment
Open

maven-car-deploy-plugin did not deploy #50

zarulizham opened this issue Dec 4, 2019 · 1 comment

Comments

@zarulizham
Copy link

zarulizham commented Dec 4, 2019

Description:
I am working on ESB Project. I am using VS Code and Maven for deploy. My aim to automate the deployment of .CAR file into Carbon Server. I've added these code in pom.xml. But when I run mvn clean deploy, it seems the the .CAR file is not pushed into the Carbon Server.

I am expecting the CAR file should be in %CARBON_HOME%\repository\deployment\server\carbonapps. Am I right?

Below is my pom.xml file

`
4.0.0
com.example.tutorial
tutorial
1.0-SNAPSHOT
WSO2 EI - ESB Project

<properties>
    <maven.car.deploy.skip>false</maven.car.deploy.skip>
    <maven.deploy.skip>false</maven.deploy.skip>
</properties>


<pluginRepositories>
    <pluginRepository>
        <id>wso2.releases</id>
        <name>WSO2 internal Repository</name>
        <url>http://maven.wso2.org/nexus/content/repositories/releases/</url>
        <releases>
            <enabled>true</enabled>
            <updatePolicy>daily</updatePolicy>
            <checksumPolicy>ignore</checksumPolicy>
        </releases>
    </pluginRepository>
    <pluginRepository>
        <id>wso2.snapshots</id>
        <name>Apache Snapshot Repository</name>
        <url>http://maven.wso2.org/nexus/content/repositories/snapshots/</url>
        <snapshots>
            <enabled>true</enabled>
            <updatePolicy>daily</updatePolicy>
        </snapshots>
        <releases>
            <enabled>false</enabled>
        </releases>
    </pluginRepository>
    <pluginRepository>
        <id>wso2-nexus</id>
        <name>WSO2 internal Repository</name>
        <url>http://maven.wso2.org/nexus/content/groups/wso2-public/</url>
        <releases>
            <enabled>true</enabled>
            <updatePolicy>daily</updatePolicy>
            <checksumPolicy>ignore</checksumPolicy>
        </releases>
    </pluginRepository>

</pluginRepositories>

<build>
    <directory>target/capp</directory>
    <plugins>
        <plugin>
            <groupId>org.wso2.maven</groupId>
            <artifactId>vscode-car-plugin</artifactId>
            <version>5.2.6</version>
            <executions>
                <execution>
                    <phase>package</phase>
                    <goals>
                        <goal>car</goal>
                    </goals>
                </execution>
            </executions>
            <configuration />
        </plugin>
        <plugin>
            <groupId>org.wso2.maven</groupId>
            <artifactId>maven-car-deploy-plugin</artifactId>
            <version>5.2.10</version>
            <extensions>true</extensions>
            <configuration>
                <carbonServers>
                    <CarbonServer>
                        <trustStorePath>C:\Program Files\WSO2\Enterprise Integrator\6.5.0\repository\resources\security\wso2carbon.jks</trustStorePath>
                        <trustStorePassword>wso2carbon</trustStorePassword>
                        <trustStoreType>JKS</trustStoreType>
                        <serverUrl>https://localhost:9443</serverUrl>
                        <userName>admin</userName>
                        <password>admin</password>
                        <operation>deploy</operation>
                    </CarbonServer>
                </carbonServers>
            </configuration>
        </plugin>
    </plugins>
</build>
<reporting>
    <outputDirectory>${project.basedir}/target/capp/site</outputDirectory>
</reporting>

<distributionManagement>
    <repository>
      <id>internal.repo</id>
      <name>Internal repo</name>
      <url>file:///C:/Program Files/WSO2/Enterprise Integrator/6.5.0/repository/deployment/server/carbonapps</url>
    </repository>
</distributionManagement>

`

Suggested Labels:
help

My PC Environment:

  • Windows 10
  • Java 1.8.0_231
  • Enterprise Integrator 6.5
@nesokreso
Copy link

You should add a goal before the configuration part:

... <plugin> <groupId>org.wso2.maven</groupId> <artifactId>maven-car-deploy-plugin</artifactId> <version>${maven.car.deploy.plugin.version}</version> </plugin> **<goal>deploy-car</goal>** <configuration> <carbonServers> <CarbonServer> <trustStorePath>${esb.server.trustStorePath}</trustStorePath> <trustStorePassword>${esb.server.trustStorePassword}</trustStorePassword> <trustStoreType>${esb.server.trustStoreType}</trustStoreType> <serverUrl>${esb.server.MgmtUrl}</serverUrl> <userName>${esb.server.MgmtUserName}</userName> <password>${esb.server.MgmtPassword}</password> <operation>${operation}</operation> </CarbonServer> </carbonServers> ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants