mirror of
https://gitee.com/pnoker/iot-dc3.git
synced 2026-09-01 04:48:26 +08:00
248 lines
9.1 KiB
XML
248 lines
9.1 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<!--
|
|
~ Copyright 2016-present the IoT DC3 original author or authors.
|
|
~
|
|
~ This program is free software: you can redistribute it and/or modify
|
|
~ it under the terms of the GNU Affero General Public License as
|
|
~ published by the Free Software Foundation, either version 3 of the
|
|
~ License, or (at your option) any later version.
|
|
~
|
|
~ This program is distributed in the hope that it will be useful,
|
|
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
~ GNU Affero General Public License for more details.
|
|
~
|
|
~ You should have received a copy of the GNU Affero General Public License
|
|
~ along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
-->
|
|
|
|
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
xmlns="http://maven.apache.org/POM/4.0.0"
|
|
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>io.github.pnoker</groupId>
|
|
<artifactId>dc3-parent</artifactId>
|
|
<version>2026.5.18</version>
|
|
<relativePath/>
|
|
</parent>
|
|
|
|
<name>${project.artifactId}</name>
|
|
<artifactId>dc3-api</artifactId>
|
|
<version>2026.5.18</version>
|
|
<packaging>pom</packaging>
|
|
|
|
<inceptionYear>2016</inceptionYear>
|
|
<url>https://github.com/pnoker/iot-dc3</url>
|
|
<description>
|
|
The collection of Service gRPC APIs on the IoT DC3 platform.
|
|
</description>
|
|
|
|
<developers>
|
|
<developer>
|
|
<id>pnoker</id>
|
|
<name>pnoker</name>
|
|
<email>pnokers@icloud.com</email>
|
|
<roles>
|
|
<role>PMC</role>
|
|
</roles>
|
|
<organization>pnoker.github.io</organization>
|
|
<url>https://github.com/pnoker/iot-dc3</url>
|
|
</developer>
|
|
</developers>
|
|
|
|
<licenses>
|
|
<license>
|
|
<name>GNU Affero General Public License v3.0</name>
|
|
<url>https://www.gnu.org/licenses/agpl-3.0.txt</url>
|
|
<distribution>repo</distribution>
|
|
</license>
|
|
</licenses>
|
|
|
|
<scm>
|
|
<url>https://github.com/pnoker/iot-dc3</url>
|
|
<connection>scm:git:https://github.com/pnoker/iot-dc3.git</connection>
|
|
<developerConnection>scm:git:https://github.com/pnoker/iot-dc3.git</developerConnection>
|
|
</scm>
|
|
|
|
<properties>
|
|
<!-- DC3 Version -->
|
|
<dc3.version>2026.5.18</dc3.version>
|
|
|
|
<!-- Test execution toggles (consumed by surefire/failsafe) -->
|
|
<skip.unit.tests>false</skip.unit.tests>
|
|
<skip.integration.tests>false</skip.integration.tests>
|
|
<mockito.version>5.20.0</mockito.version>
|
|
<mockito.javaagent.argLine>-javaagent:${settings.localRepository}/org/mockito/mockito-core/${mockito.version}/mockito-core-${mockito.version}.jar</mockito.javaagent.argLine>
|
|
</properties>
|
|
|
|
<modules>
|
|
<module>dc3-api-auth</module>
|
|
<module>dc3-api-data</module>
|
|
<module>dc3-api-driver</module>
|
|
<module>dc3-api-manager</module>
|
|
</modules>
|
|
|
|
<dependencyManagement>
|
|
<dependencies>
|
|
|
|
<!-- DC3 Common Api -->
|
|
<dependency>
|
|
<groupId>io.github.pnoker</groupId>
|
|
<artifactId>dc3-common-api</artifactId>
|
|
<version>${dc3.version}</version>
|
|
</dependency>
|
|
|
|
</dependencies>
|
|
</dependencyManagement>
|
|
|
|
<dependencies>
|
|
|
|
<!-- DC3 Common Api -->
|
|
<dependency>
|
|
<groupId>io.github.pnoker</groupId>
|
|
<artifactId>dc3-common-api</artifactId>
|
|
</dependency>
|
|
|
|
</dependencies>
|
|
|
|
<build>
|
|
<extensions>
|
|
<!-- OS Plugin -->
|
|
<extension>
|
|
<groupId>kr.motd.maven</groupId>
|
|
<artifactId>os-maven-plugin</artifactId>
|
|
<version>${os.maven.plugin.version}</version>
|
|
</extension>
|
|
</extensions>
|
|
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.xolstice.maven.plugins</groupId>
|
|
<artifactId>protobuf-maven-plugin</artifactId>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
<version>${surefire.version}</version>
|
|
<configuration>
|
|
<skip>${skip.unit.tests}</skip>
|
|
<argLine>@{argLine} ${mockito.javaagent.argLine} -Xshare:off -Duser.language=en -Duser.country=US</argLine>
|
|
<includes>
|
|
<include>**/*Test.java</include>
|
|
<include>**/*Tests.java</include>
|
|
</includes>
|
|
<excludes>
|
|
<exclude>**/*IT.java</exclude>
|
|
<exclude>**/Abstract*.java</exclude>
|
|
</excludes>
|
|
</configuration>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-failsafe-plugin</artifactId>
|
|
<version>${surefire.version}</version>
|
|
<configuration>
|
|
<skip>${skip.integration.tests}</skip>
|
|
<argLine>@{failsafe.argLine} ${mockito.javaagent.argLine} -Xshare:off -Duser.language=en -Duser.country=US</argLine>
|
|
<includes>
|
|
<include>**/*IT.java</include>
|
|
</includes>
|
|
</configuration>
|
|
<executions>
|
|
<execution>
|
|
<id>integration-tests</id>
|
|
<goals>
|
|
<goal>integration-test</goal>
|
|
<goal>verify</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.jacoco</groupId>
|
|
<artifactId>jacoco-maven-plugin</artifactId>
|
|
<version>${jacoco.version}</version>
|
|
<executions>
|
|
<execution>
|
|
<id>prepare-unit-agent</id>
|
|
<goals>
|
|
<goal>prepare-agent</goal>
|
|
</goals>
|
|
<configuration>
|
|
<propertyName>argLine</propertyName>
|
|
</configuration>
|
|
</execution>
|
|
<execution>
|
|
<id>prepare-integration-agent</id>
|
|
<goals>
|
|
<goal>prepare-agent-integration</goal>
|
|
</goals>
|
|
<configuration>
|
|
<propertyName>failsafe.argLine</propertyName>
|
|
<destFile>${project.build.directory}/jacoco-it.exec</destFile>
|
|
</configuration>
|
|
</execution>
|
|
<execution>
|
|
<id>report-unit</id>
|
|
<phase>test</phase>
|
|
<goals>
|
|
<goal>report</goal>
|
|
</goals>
|
|
</execution>
|
|
<execution>
|
|
<id>report-integration</id>
|
|
<phase>verify</phase>
|
|
<goals>
|
|
<goal>report-integration</goal>
|
|
</goals>
|
|
<configuration>
|
|
<dataFile>${project.build.directory}/jacoco-it.exec</dataFile>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
|
|
<profiles>
|
|
<profile>
|
|
<id>deploy</id>
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-source-plugin</artifactId>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-javadoc-plugin</artifactId>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-gpg-plugin</artifactId>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.sonatype.plugins</groupId>
|
|
<artifactId>nexus-staging-maven-plugin</artifactId>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
|
|
<distributionManagement>
|
|
<repository>
|
|
<id>pnoker</id>
|
|
<url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url>
|
|
</repository>
|
|
<snapshotRepository>
|
|
<id>pnoker</id>
|
|
<url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
|
|
</snapshotRepository>
|
|
</distributionManagement>
|
|
</profile>
|
|
</profiles>
|
|
|
|
</project>
|