Skip to content

Commit

Permalink
create ei-muilti-module-archetype
Browse files Browse the repository at this point in the history
  • Loading branch information
AVSSAM committed Apr 1, 2022
1 parent cfedbcb commit 09c6383
Show file tree
Hide file tree
Showing 14 changed files with 1,049 additions and 125 deletions.
10 changes: 3 additions & 7 deletions esb-project-archetype/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,9 @@
-->
<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/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<artifactId>carbon-extension-archetype</artifactId>
<groupId>org.wso2.carbon.extension.archetype</groupId>
<version>2.0.17-SNAPSHOT</version>
</parent>
<artifactId>org.wso2.carbon.extension.esb.project-archetype</artifactId>
<version>2.0.17-SNAPSHOT</version>
<artifactId>my-archetype-id</artifactId>
<groupId>my.groupId</groupId>
<version>2.0.16</version>
<packaging>maven-archetype</packaging>
<name>WSO2 Carbon - Archetype for ESB Synapse Project</name>
<build>
Expand Down
12 changes: 5 additions & 7 deletions esb-project-archetype/setup.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,11 @@ STEPS:

2. Run the following command to create the esb synapse project
mvn archetype:generate
-DarchetypeGroupId=org.wso2.carbon.extension.archetype
-DarchetypeArtifactId=org.wso2.carbon.extension.esb.project-archetype
-DarchetypeVersion=2.0.7-SNAPSHOT
-DgroupId=org.wso2.carbon.esb-synapse-project
-DartifactId=org.wso2.carbon.esb.<project_name>
-DarchetypeGroupId=my.groupId
-DarchetypeArtifactId=my-archetype-id
-DarchetypeVersion=2.0.16
-DgroupId=<group_id>
-DartifactId=<project_name>
-Dversion=1.0.0

Please enter the <project_name> in lower camel case in above DartifactId from command line
eg :- org.wso2.carbon.esb.sample

Original file line number Diff line number Diff line change
Expand Up @@ -2,50 +2,131 @@
xmlns="http://maven.apache.org/plugins/maven-archetype-plugin/archetype-descriptor/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/plugins/maven-archetype-plugin/archetype-descriptor/1.0.0 http://maven.apache.org/xsd/archetype-descriptor-1.0.0.xsd"
name="org.wso2.carbon.esb.synapse.project">

name="${artifactId}">
<fileSets>
<fileSet filtered="true" packaged="false">
<directory>src/main/synapse-config/api</directory>
</fileSet>
<fileSet filtered="true" packaged="false">
<directory>src/main/synapse-config/endpoints</directory>
</fileSet>
<fileSet filtered="true" packaged="false">
<directory>src/main/synapse-config/inbound-endpoints</directory>
</fileSet>
<fileSet filtered="true" packaged="false">
<directory>src/main/synapse-config/local-entries</directory>
</fileSet>
<fileSet filtered="true" packaged="false">
<directory>src/main/synapse-config/message-processors</directory>
</fileSet>
<fileSet filtered="true" packaged="false">
<directory>src/main/synapse-config/message-stores</directory>
</fileSet>
<fileSet filtered="true" packaged="false">
<directory>src/main/synapse-config/proxy-services</directory>
</fileSet>
<fileSet filtered="true" packaged="false">
<directory>src/main/synapse-config/sequences</directory>
</fileSet>
<fileSet filtered="true" packaged="false">
<directory>src/main/synapse-config/tasks</directory>
</fileSet>
<fileSet filtered="true" packaged="false">
<directory>src/main/synapse-config/templates</directory>
</fileSet>
<fileSet>
<directory>src/main/synapse-config</directory>
<includes>
<include>artifact.xml</include>
</includes>
</fileSet>
<fileSet>
<directory>src/main/registry-resources</directory>
<includes>
<include>artifact.xml</include>
</includes>
</fileSet>
<fileSet filtered="true" packaged="false">
<directory></directory>
<includes>
<include>.project</include>
</includes>
</fileSet>
<fileSet filtered="true" packaged="false">
<directory>.vscode</directory>
<includes>
<include>settings.json</include>
</includes>
</fileSet>
</fileSets>
<modules>
<module id="${rootArtifactId}CompositeExporter" dir="__rootArtifactId__CompositeExporter" name="${rootArtifactId}CompositeExporter">
<fileSets>
<fileSet filtered="true" packaged="false">
<directory>target/classes</directory>
</fileSet>
<fileSet filtered="true" packaged="false">
<directory>target/test-classes</directory>
</fileSet>
<fileSet filtered="true" packaged="false">
<directory>/</directory>
<includes>
<include>.project</include>
</includes>
</fileSet>
</fileSets>
</module>
<module id="${rootArtifactId}Configs" dir="__rootArtifactId__Configs" name="${rootArtifactId}Configs">
<fileSets>
<fileSet filtered="true" packaged="false">
<directory>src/main/synapse-config/api</directory>
</fileSet>
<fileSet filtered="true" packaged="false">
<directory>src/main/synapse-config/endpoints</directory>
</fileSet>
<fileSet filtered="true" packaged="false">
<directory>src/main/synapse-config/inbound-endpoints</directory>
</fileSet>
<fileSet filtered="true" packaged="false">
<directory>src/main/synapse-config/local-entries</directory>
</fileSet>
<fileSet filtered="true" packaged="false">
<directory>src/main/synapse-config/message-processors</directory>
</fileSet>
<fileSet filtered="true" packaged="false">
<directory>src/main/synapse-config/message-stores</directory>
</fileSet>
<fileSet filtered="true" packaged="false">
<directory>src/main/synapse-config/proxy-services</directory>
</fileSet>
<fileSet filtered="true" packaged="false">
<directory>src/main/synapse-config/sequences</directory>
</fileSet>
<fileSet filtered="true" packaged="false">
<directory>src/main/synapse-config/tasks</directory>
</fileSet>
<fileSet filtered="true" packaged="false">
<directory>src/main/synapse-config/templates</directory>
</fileSet>
<fileSet filtered="true" packaged="false">
<directory>src/main/resources/metadata</directory>
</fileSet>
<fileSet filtered="true" packaged="false">
<directory>test/resources/mock-services</directory>
</fileSet>
<fileSet>
<directory>/</directory>
<includes>
<include>artifact.xml</include>
</includes>
</fileSet>
<fileSet filtered="true" packaged="false">
<directory>/</directory>
<includes>
<include>.project</include>
</includes>
</fileSet>
</fileSets>
</module>
<module id="${rootArtifactId}ConnectorExporter" dir="__rootArtifactId__ConnectorExporter" name="${rootArtifactId}ConnectorExporter">
<fileSets>
<fileSet>
<directory>/</directory>
<includes>
<include>artifact.xml</include>
</includes>
</fileSet>
<fileSet filtered="true" packaged="false">
<directory>/</directory>
<includes>
<include>.project</include>
</includes>
</fileSet>
</fileSets>
</module>
<module id="${rootArtifactId}RegistryResources" dir="__rootArtifactId__RegistryResources" name="${rootArtifactId}RegistryResources">
<fileSets>
<fileSet filtered="true" packaged="false">
<directory>target</directory>
</fileSet>
<fileSet>
<directory>/</directory>
<includes>
<include>artifact.xml</include>
</includes>
</fileSet>
<fileSet filtered="true" packaged="false">
<directory>/</directory>
<includes>
<include>.project</include>
</includes>
</fileSet>
<fileSet filtered="true" packaged="false">
<directory>/</directory>
<includes>
<include>.classpath</include>
</includes>
</fileSet>
</fileSets>
</module>
</modules>

</archetype-descriptor>
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{

"java.server.launchMode":"LightWeight"

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,122 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>${groupId}</groupId>
<artifactId>${rootArtifactId}</artifactId>
<version>${version}</version>
</parent>
<groupId>${groupId}</groupId>
<artifactId>${artifactId}</artifactId>
<version>${version}</version>
<packaging>carbon/application</packaging>
<name>${artifactId}</name>
<description>${artifactId}</description>
<properties>
<artifact.types>jaggery/app=zip,synapse/priority-executor=xml,synapse/inbound-endpoint=xml,service/rule=aar,synapse/message-store=xml,event/stream=json,service/meta=xml,datasource/datasource=xml,synapse/proxy-service=xml,bpel/workflow=zip,synapse/sequence=xml,synapse/endpointTemplate=xml,carbon/application=car,wso2/gadget=dar,synapse/api=xml,synapse/event-source=xml,synapse/message-processors=xml,event/receiver=xml,lib/dataservice/validator=jar,synapse/template=xml,synapse/endpoint=xml,lib/carbon/ui=jar,lib/synapse/mediator=jar,synapse/metadata=yaml,event/publisher=xml,synapse/local-entry=xml,synapse/task=xml,webapp/jaxws=war,registry/resource=zip,synapse/configuration=xml,service/axis2=aar,synapse/lib=zip,synapse/sequenceTemplate=xml,event/execution-plan=siddhiql,service/dataservice=dbs,web/application=war,lib/library/bundle=jar</artifact.types>
</properties>
<dependencies>
</dependencies>
<repositories>
<repository>
<releases>
<enabled>true</enabled>
<updatePolicy>daily</updatePolicy>
<checksumPolicy>ignore</checksumPolicy>
</releases>
<id>wso2-nexus</id>
<url>https://maven.wso2.org/nexus/content/groups/wso2-public/</url>
</repository>
<repository>
<id>wso2-maven2-repository-1</id>
<url>https://maven.wso2.org/nexus/content/groups/wso2-public/</url>
</repository>
<repository>
<id>wso2-nexus-repository-1</id>
<url>https://maven.wso2.org/nexus/content/groups/wso2-public/</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<releases>
<enabled>true</enabled>
<updatePolicy>daily</updatePolicy>
<checksumPolicy>ignore</checksumPolicy>
</releases>
<id>wso2-nexus</id>
<url>https://maven.wso2.org/nexus/content/groups/wso2-public/</url>
</pluginRepository>
<pluginRepository>
<id>wso2-maven2-repository-1</id>
<url>https://maven.wso2.org/nexus/content/groups/wso2-public/</url>
</pluginRepository>
<pluginRepository>
<id>wso2-nexus-repository-1</id>
<url>https://maven.wso2.org/nexus/content/groups/wso2-public/</url>
</pluginRepository>
</pluginRepositories>
<build>
<plugins>
<plugin>
<artifactId>maven-eclipse-plugin</artifactId>
<version>2.9</version>
<configuration>
<buildcommands />
<projectnatures>
<projectnature>org.wso2.developerstudio.eclipse.distribution.project.nature</projectnature>
</projectnatures>
</configuration>
</plugin>
<plugin>
<groupId>org.wso2.maven</groupId>
<artifactId>maven-car-plugin</artifactId>
<version>5.2.34</version>
<extensions>true</extensions>
<executions>
<execution>
<id>car</id>
<phase>package</phase>
<goals>
<goal>car</goal>
</goals>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>com.sun.activation</groupId>
<artifactId>javax.activation</artifactId>
<version>1.2.0</version>
</dependency>
</dependencies>
<configuration />
</plugin>
<plugin>
<groupId>org.wso2.maven</groupId>
<artifactId>maven-car-deploy-plugin</artifactId>
<version>1.1.1</version>
<extensions>true</extensions>
<dependencies>
<dependency>
<groupId>com.sun.activation</groupId>
<artifactId>javax.activation</artifactId>
<version>1.2.0</version>
</dependency>
</dependencies>
<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</operation>
</CarbonServer>
</carbonServers>
</configuration>
</plugin>
</plugins>
</build>
</project>
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<?xml version="1.0" encoding="UTF-8"?><artifacts/>
Loading

0 comments on commit 09c6383

Please sign in to comment.