Skip to content

Commit

Permalink
chore(run): extract core module for distros
Browse files Browse the repository at this point in the history
related to CAM-11292
  • Loading branch information
tmetzke authored and mboskamp committed Feb 25, 2020
1 parent ef3e3fe commit 04bc1ed
Show file tree
Hide file tree
Showing 30 changed files with 137 additions and 101 deletions.
10 changes: 10 additions & 0 deletions distro/run/assembly/assembly.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,16 @@

<includeBaseDirectory>false</includeBaseDirectory>

<dependencySets>
<dependencySet>
<outputDirectory>internal/</outputDirectory>
<includes>
<include>org.camunda.bpm.run:camunda-bpm-run-core</include>
</includes>
<outputFileNameMapping>${artifact.artifactId}.${artifact.extension}</outputFileNameMapping>
</dependencySet>
</dependencySets>

<files>
<file>
<source>resources/application.yml</source>
Expand Down
7 changes: 7 additions & 0 deletions distro/run/assembly/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,13 @@
<version>${project.version}</version>
<type>pom</type>
</dependency>

<dependency>
<groupId>org.camunda.bpm.run</groupId>
<artifactId>camunda-bpm-run-core</artifactId>
<version>${project.version}</version>
</dependency>

</dependencies>

<build>
Expand Down
2 changes: 1 addition & 1 deletion distro/run/assembly/resources/start.bat
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,4 @@ ECHO classpath: %classPath%


REM start the application
call %JAVA% -Dloader.path="%classPath%" -jar "%BASEDIR%internal\camunda-bpm-run.jar" --spring.config.location=file:"%BASEDIR%configuration\application.yml"
call %JAVA% -Dloader.path="%classPath%" -jar "%BASEDIR%internal\camunda-bpm-run-core.jar" --spring.config.location=file:"%BASEDIR%configuration\application.yml"
2 changes: 1 addition & 1 deletion distro/run/assembly/resources/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,4 @@ fi
echo classpath: $classPath

# start the application
"$JAVA" -Dloader.path="$classPath" -jar "$BASEDIR/internal/camunda-bpm-run.jar" --spring.config.location=file:"$BASEDIR"/configuration/application.yml
"$JAVA" -Dloader.path="$classPath" -jar "$BASEDIR/internal/camunda-bpm-run-core.jar" --spring.config.location=file:"$BASEDIR"/configuration/application.yml
115 changes: 115 additions & 0 deletions distro/run/core/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
<?xml version="1.0" encoding="UTF-8"?>
<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>
<groupId>org.camunda.bpm.run</groupId>
<artifactId>camunda-bpm-run-root</artifactId>
<version>7.13.0-SNAPSHOT</version>
<relativePath>..</relativePath>
</parent>

<artifactId>camunda-bpm-run-core</artifactId>
<name>Camunda BPM - Run - Core</name>
<packaging>jar</packaging>

<dependencies>

<dependency>
<groupId>org.camunda.bpm.springboot</groupId>
<artifactId>camunda-bpm-spring-boot-starter</artifactId>
</dependency>

<dependency>
<groupId>org.camunda.bpm</groupId>
<artifactId>camunda-engine-plugin-spin</artifactId>
</dependency>

<dependency>
<groupId>org.camunda.spin</groupId>
<artifactId>camunda-spin-dataformat-all</artifactId>
</dependency>

<dependency>
<groupId>org.camunda.bpm.identity</groupId>
<artifactId>camunda-identity-ldap</artifactId>
</dependency>

<dependency>
<groupId>org.camunda.bpm.springboot</groupId>
<artifactId>camunda-bpm-spring-boot-starter-rest</artifactId>
<scope>provided</scope>
</dependency>

<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-jdbc</artifactId>
</dependency>

<dependency>
<groupId>com.h2database</groupId>
<artifactId>h2</artifactId>
</dependency>

<dependency>
<groupId>org.apache.tomcat.embed</groupId>
<artifactId>tomcat-embed-core</artifactId>
</dependency>

<!-- Testing -->

<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<scope>test</scope>
</dependency>

<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>

</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<layout>ZIP</layout>
<excludes>
<exclude>
<groupId>org.camunda.bpm.springboot</groupId>
<artifactId>camunda-bpm-spring-boot-starter-rest</artifactId>
</exclude>
<exclude>
<groupId>com.h2database</groupId>
<artifactId>h2</artifactId>
</exclude>
</excludes>
</configuration>
<executions>
<execution>
<goals>
<goal>repackage</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<systemPropertyVariables>
<sun.net.http.allowRestrictedHeaders>true</sun.net.http.allowRestrictedHeaders>
</systemPropertyVariables>
</configuration>
</plugin>
</plugins>
</build>

</project>
11 changes: 1 addition & 10 deletions distro/run/distro/assembly.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,23 +23,14 @@
</dependencySet>

<dependencySet>
<outputDirectory>configuration/database</outputDirectory>
<outputDirectory>configuration/database/</outputDirectory>
<includes>
<include>com.h2database:h2</include>
</includes>
</dependencySet>

</dependencySets>

<files>
<file>
<source>target/camunda-bpm-run-${project.version}.jar
</source>
<outputDirectory>internal/</outputDirectory>
<destName>camunda-bpm-run.jar</destName>
</file>
</files>

<fileSets>
<fileSet>
<directory>../modules/webapps/target/dependency/</directory>
Expand Down
90 changes: 1 addition & 89 deletions distro/run/distro/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,100 +13,21 @@

<artifactId>camunda-bpm-run</artifactId>
<name>Camunda BPM - Run - Distribution</name>
<packaging>jar</packaging>
<packaging>pom</packaging>

<dependencies>

<dependency>
<groupId>org.camunda.bpm.springboot</groupId>
<artifactId>camunda-bpm-spring-boot-starter</artifactId>
</dependency>

<dependency>
<groupId>org.camunda.bpm</groupId>
<artifactId>camunda-engine-plugin-spin</artifactId>
</dependency>

<dependency>
<groupId>org.camunda.spin</groupId>
<artifactId>camunda-spin-dataformat-all</artifactId>
</dependency>

<dependency>
<groupId>org.camunda.bpm.identity</groupId>
<artifactId>camunda-identity-ldap</artifactId>
</dependency>

<dependency>
<groupId>org.camunda.bpm.springboot</groupId>
<artifactId>camunda-bpm-spring-boot-starter-rest</artifactId>
<scope>provided</scope>
</dependency>

<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-jdbc</artifactId>
</dependency>

<dependency>
<groupId>com.h2database</groupId>
<artifactId>h2</artifactId>
</dependency>

<dependency>
<groupId>org.apache.tomcat.embed</groupId>
<artifactId>tomcat-embed-core</artifactId>
</dependency>

<dependency>
<groupId>org.camunda.bpm.run</groupId>
<artifactId>camunda-bpm-run-assembly</artifactId>
<version>${project.version}</version>
<type>tar.gz</type>
</dependency>

<!-- Testing -->

<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<scope>test</scope>
</dependency>

<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>

</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<layout>ZIP</layout>
<excludes>
<exclude>
<groupId>org.camunda.bpm.springboot</groupId>
<artifactId>camunda-bpm-spring-boot-starter-rest</artifactId>
</exclude>
<exclude>
<groupId>com.h2database</groupId>
<artifactId>h2</artifactId>
</exclude>
</excludes>
</configuration>
<executions>
<execution>
<goals>
<goal>repackage</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
Expand All @@ -131,15 +52,6 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<systemPropertyVariables>
<sun.net.http.allowRestrictedHeaders>true</sun.net.http.allowRestrictedHeaders>
</systemPropertyVariables>
</configuration>
</plugin>
</plugins>
</build>

Expand Down
1 change: 1 addition & 0 deletions distro/run/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@
<modules>
<module>modules</module>
<module>modules/rest</module>
<module>core</module>
<module>assembly</module>
</modules>
</profile>
Expand Down

0 comments on commit 04bc1ed

Please sign in to comment.