Skip to content

Commit

Permalink
chore(pom): add sub modules into parent pom
Browse files Browse the repository at this point in the history
  • Loading branch information
oldratlee committed Sep 23, 2022
1 parent b22bb0f commit 27cbe60
Show file tree
Hide file tree
Showing 10 changed files with 181 additions and 704 deletions.
38 changes: 35 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,19 @@

<modules>
<module>ttl2-compatible</module>

<module>ttl-integrations/vertx4-ttl-integration</module>
<module>ttl-integrations/vertx3-ttl-integration</module>

<module>ttl-integrations/sample-ttl-agent-extension-transformlet</module>
</modules>

<properties>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>${maven.compiler.source}</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<!-- overridden by submodule that need skip deploy -->
<maven.deploy.skip>false</maven.deploy.skip>

<spotbugs.annotations.version>4.7.2</spotbugs.annotations.version>

Expand All @@ -69,9 +76,13 @@
https://www.slf4j.org/api/org/slf4j/simple/SimpleLogger.html
-->
<ttl.test.logger.level>warn</ttl.test.logger.level> <!-- overridden in maven -D options -->
<argLine.slf4j.simple.logger.default.d.options>-Dorg.slf4j.simpleLogger.logFile=System.err -Dorg.slf4j.simpleLogger.defaultLogLevel=${ttl.test.logger.level}</argLine.slf4j.simple.logger.default.d.options>
<argLine.slf4j.simple.logger.default.d.options>-Dorg.slf4j.simpleLogger.logFile=System.err
-Dorg.slf4j.simpleLogger.defaultLogLevel=${ttl.test.logger.level}
</argLine.slf4j.simple.logger.default.d.options>
<argLine.slf4j.simple.logger.extra.d.options/> <!-- overridden in maven -D options -->
<argLine.slf4j.simple.logger.d.options>${argLine.slf4j.simple.logger.default.d.options} ${argLine.slf4j.simple.logger.extra.d.options}</argLine.slf4j.simple.logger.d.options>
<argLine.slf4j.simple.logger.d.options>${argLine.slf4j.simple.logger.default.d.options}
${argLine.slf4j.simple.logger.extra.d.options}
</argLine.slf4j.simple.logger.d.options>

<argLine>${argLine.slf4j.simple.logger.d.options}</argLine> <!-- updated in profile -->
</properties>
Expand Down Expand Up @@ -663,7 +674,9 @@
</validationProperty>
</validationProperties>
<generateGitPropertiesFile>true</generateGitPropertiesFile>
<generateGitPropertiesFilename>${project.build.outputDirectory}/META-INF/scm/${project.groupId}/${project.artifactId}/git.properties</generateGitPropertiesFilename>
<generateGitPropertiesFilename>
${project.build.outputDirectory}/META-INF/scm/${project.groupId}/${project.artifactId}/git.properties
</generateGitPropertiesFilename>
</configuration>
</plugin>
</plugins>
Expand Down Expand Up @@ -746,10 +759,29 @@
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<extensions>true</extensions>
<!--
In multi-module builds using the deploy-at-end feature,
the deployment of all components is performed in the last module based on the reactor order.
If this property is set to true in the last module,
all staging deployment for all modules will be skipped.
so, we'll config nexus deploy after every moudle's deploy phase
see: https://github.com/sonatype/nexus-maven-plugins/tree/master/staging/maven-plugin#configuring-the-plugin
-->
<configuration>
<serverId>ossrh</serverId>
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
<autoReleaseAfterClose>true</autoReleaseAfterClose>
<!--
If you are deploying to Maven Central, it is the Nexus Staging Plugin that is
doing the deployment instead of the Deploy plugin,
so the configuration of the deploy plugin has no effect.
To make the Nexus deploy plugin skip, set skipNexusStagingDeployMojo
in its configuration to true.
see: https://stackoverflow.com/questions/59552549/preventing-maven-modules-from-being-deployed
-->
<skipNexusStagingDeployMojo>${maven.deploy.skip}</skipNexusStagingDeployMojo>
</configuration>
</plugin>
</plugins>
Expand Down
61 changes: 44 additions & 17 deletions ttl-integrations/sample-ttl-agent-extension-transformlet/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,18 @@
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>

<groupId>com.alibaba</groupId>
<groupId>com.alibaba.ttl3</groupId>
<artifactId>sample-ttl-agent-extension-transformlet</artifactId>
<version>1.0.0-SNAPSHOT</version>
<packaging>jar</packaging>
<name>${project.artifactId}</name>

<properties>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<maven.compiler.target>${maven.compiler.source}</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.deploy.skip>true</maven.deploy.skip>
<jacoco.skip>true</jacoco.skip>

<ttl.version>3.x-SNAPSHOT</ttl.version>
</properties>
Expand All @@ -31,21 +33,20 @@
</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.22.2</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<version>2.8.2</version>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
</plugins>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.22.2</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<version>2.8.2</version>
</plugin>
</plugins>
</pluginManagement>
</build>

<profiles>
Expand Down Expand Up @@ -105,5 +106,31 @@
<surefire.verbose.class>-verbose:class</surefire.verbose.class>
</properties>
</profile>
<profile>
<id>gen-code-cov</id>
<build>
<plugins>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.8.8</version>
<executions>
<execution>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
<execution>
<id>report</id>
<phase>test</phase>
<goals>
<goal>report</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>
Loading

0 comments on commit 27cbe60

Please sign in to comment.