Simple parent pom with modules.

Shell scripts for building core, kafka binder, rabbit binder
and bom (dependencies) modules individually.
This commit is contained in:
Soby Chacko
2022-03-07 17:20:39 -05:00
parent 9fb42b65d9
commit 6c8423365a
6 changed files with 45 additions and 35 deletions

3
buildBom.sh Executable file
View File

@@ -0,0 +1,3 @@
#!/bin/bash
./mvnw clean install -f bom/pom.xml

11
buildCore.sh Executable file
View File

@@ -0,0 +1,11 @@
#!/bin/bash
if [ "$#" -eq 1 ]; then
ARGVALUE=$1
if [[ $ARGVALUE == *"skipTest"* ]]; then
echo "Skippping Tests"
./mvnw clean install -f core/pom.xml -DskipTests
fi
else
./mvnw clean install -f core/pom.xml
fi

3
buildDependencies.sh Executable file
View File

@@ -0,0 +1,3 @@
#!/bin/bash
./mvnw clean install -f bom/pom.xml

11
buildKafkaBinder.sh Executable file
View File

@@ -0,0 +1,11 @@
#!/bin/bash
if [ "$#" -eq 1 ]; then
ARGVALUE=$1
if [[ $ARGVALUE == *"skipTest"* ]]; then
echo "Skippping Tests"
./mvnw clean install -f binders/kafka-binder/pom.xml -DskipTests
fi
else
./mvnw clean install -f binders/kafka-binder/pom.xml
fi

11
buildRabbitBinder.sh Executable file
View File

@@ -0,0 +1,11 @@
#!/bin/bash
if [ "$#" -eq 1 ]; then
ARGVALUE=$1
if [[ $ARGVALUE == *"skipTest"* ]]; then
echo "Skippping Tests"
./mvnw clean install -f binders/rabbit-binder/pom.xml -DskipTests
fi
else
./mvnw clean install -f binders/rabbit-binder/pom.xml
fi

41
pom.xml
View File

@@ -31,6 +31,12 @@
<maven-checkstyle-plugin.includeTestSourceDirectory>true</maven-checkstyle-plugin.includeTestSourceDirectory>
</properties>
<modules>
<module>core</module>
<module>binders</module>
<module>bom</module>
</modules>
<dependencyManagement>
<dependencies>
<dependency>
@@ -167,41 +173,6 @@
</reporting>
<profiles>
<profile>
<id>full</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<modules>
<module>core</module>
<module>binders</module>
<module>bom</module>
</modules>
</profile>
<profile>
<id>kafka</id>
<modules>
<module>binders/kafka-binder</module>
</modules>
</profile>
<profile>
<id>rabbit</id>
<modules>
<module>binders/rabbit-binder</module>
</modules>
</profile>
<profile>
<id>bom</id>
<modules>
<module>bom</module>
</modules>
</profile>
<profile>
<id>core</id>
<modules>
<module>core</module>
</modules>
</profile>
<profile>
<id>spring</id>
</profile>