luna-common
Used in:
components
- OverviewOverview
- VersionsVersions
- DependentsDependents
- DependenciesDependencies
<dependency> <groupId>io.github.lunasaw</groupId> <artifactId>luna-common</artifactId> <version>2.5.9</version> </dependency>
<?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> <groupId>io.github.lunasaw</groupId> <artifactId>luna-common</artifactId> <name>luna-common</name> <version>2.5.9</version> <description>common is project which contains common utils</description> <url>https://github.com/lunasaw/luna-common</url> <properties> <java.version>1.8</java.version> <maven.compiler.source>1.8</maven.compiler.source> <maven.compiler.target>1.8</maven.compiler.target> <!-- github server corresponds to entry in ~/.m2/settings.xml --> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> <!--dependencies--> <commons-collections4.version>4.4</commons-collections4.version> <commons-lang3.version>3.14.0</commons-lang3.version> <commons-codec.version>1.16.1</commons-codec.version> <commons-io.version>2.16.1</commons-io.version> <httpclient-5.version>5.3.1</httpclient-5.version> <guava.version>32.1.3-jre</guava.version> <fast-json2.version>2.0.48</fast-json2.version> <oshi.version>6.4.9</oshi.version> <junit.version>4.13.2</junit.version> <lombok.version>1.18.32</lombok.version> <validation-api.version>3.0.2</validation-api.version> <slf4j-simple.version>2.0.9</slf4j-simple.version> </properties> <developers> <developer> <name>luna</name> <id>luna</id> <email>iszychen@gmail.com</email> </developer> </developers> <licenses> <license> <name>Apache 2.0</name> <url>https://www.apache.org/licenses/LICENSE-2.0</url> </license> </licenses> <scm> <url>https://github.com/lunasaw/luna-common</url> <connection>https://github.com/lunasaw/luna-common</connection> <developerConnection>https://github.com/lunasaw/luna-common.git</developerConnection> </scm> <dependencies> <!-- https://mvnrepository.com/artifact/org.apache.commons/commons-collections4 --> <dependency> <groupId>org.apache.commons</groupId> <artifactId>commons-collections4</artifactId> <version>${commons-collections4.version}</version> </dependency> <!-- https://mvnrepository.com/artifact/org.apache.commons/commons-lang3 --> <dependency> <groupId>org.apache.commons</groupId> <artifactId>commons-lang3</artifactId> <version>${commons-lang3.version}</version> </dependency> <!-- https://mvnrepository.com/artifact/commons-codec/commons-codec --> <dependency> <groupId>commons-codec</groupId> <artifactId>commons-codec</artifactId> <version>${commons-codec.version}</version> </dependency> <!-- https://mvnrepository.com/artifact/org.apache.httpcomponents.client5/httpclient5 --> <dependency> <groupId>org.apache.httpcomponents.client5</groupId> <artifactId>httpclient5</artifactId> <version>${httpclient-5.version}</version> </dependency> <!-- https://mvnrepository.com/artifact/commons-io/commons-io --> <dependency> <groupId>commons-io</groupId> <artifactId>commons-io</artifactId> <version>${commons-io.version}</version> </dependency> <!-- https://mvnrepository.com/artifact/com.google.guava/guava --> <dependency> <groupId>com.google.guava</groupId> <artifactId>guava</artifactId> <version>${guava.version}</version> </dependency> <!-- https://mvnrepository.com/artifact/junit/junit --> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>${junit.version}</version> <scope>test</scope> </dependency> <!-- https://mvnrepository.com/artifact/com.github.oshi/oshi-core --> <dependency> <groupId>com.github.oshi</groupId> <artifactId>oshi-core</artifactId> <version>${oshi.version}</version> <!-- 这个版本不要随便升级,和JNA的环境有关 --> </dependency> <dependency> <groupId>com.alibaba.fastjson2</groupId> <artifactId>fastjson2</artifactId> <version>${fast-json2.version}</version> </dependency> <dependency> <groupId>jakarta.validation</groupId> <artifactId>jakarta.validation-api</artifactId> <version>${validation-api.version}</version> </dependency> <dependency> <groupId>org.projectlombok</groupId> <artifactId>lombok</artifactId> <version>${lombok.version}</version> </dependency> <dependency> <groupId>org.glassfish.jaxb</groupId> <artifactId>jaxb-runtime</artifactId> <version>4.0.5</version> <!-- 最新版本 --> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-context</artifactId> <version>6.1.5</version> </dependency> <dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-simple</artifactId> <version>${slf4j-simple.version}</version> <scope>test</scope> </dependency> </dependencies> <profiles> <profile> <id>github_auth</id> <distributionManagement> <repository> <id>github_auth</id> <name>GitHub OWNER Apache Maven Packages</name> <url>https://maven.pkg.github.com/lunasaw/luna-common</url> </repository> <snapshotRepository> <id>github_auth</id> <name>GitHub OWNER Apache Maven Packages</name> <url>https://maven.pkg.github.com/lunasaw/luna-common</url> </snapshotRepository> </distributionManagement> <repositories> <repository> <!-- id需要与上面的server对应的id匹配 --> <id>github_auth</id> <name>GitHub OWNER Apache Maven Packages</name> <url>https://maven.pkg.github.com/lunasaw/luna-common</url> <snapshots> <enabled>true</enabled> </snapshots> </repository> </repositories> <activation> <activeByDefault>true</activeByDefault> </activation> </profile> <profile> <id>ossrh</id> <distributionManagement> <repository> <id>ossrh</id> <url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url> </repository> <snapshotRepository> <id>ossrh</id> <url>https://s01.oss.sonatype.org/content/repositories/snapshots</url> </snapshotRepository> </distributionManagement> <activation> <activeByDefault>true</activeByDefault> </activation> <build> <plugins> <!--这是自动发布的插件--> <plugin> <groupId>org.sonatype.plugins</groupId> <artifactId>nexus-staging-maven-plugin</artifactId> <version>1.6.13</version> <extensions>true</extensions> <configuration> <serverId>ossrh</serverId> <nexusUrl>https://s01.oss.sonatype.org/</nexusUrl> <!--自动释放,deploy就不需要在仓库中在操作部署了--> <autoReleaseAfterClose>true</autoReleaseAfterClose> <goal>deploy</goal> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-release-plugin</artifactId> <version>2.3.2</version> <configuration> <autoVersionSubmodules>true</autoVersionSubmodules> <useReleaseProfile>false</useReleaseProfile> <!--正式包release 快照包snapshots--> <releaseProfiles>snapshots</releaseProfiles> <goals>deploy</goals> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.0</version> <configuration> <source>1.8</source> <target>1.8</target> <encoding>utf-8</encoding> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-gpg-plugin</artifactId> <version>3.1.0</version> <executions> <execution> <id>sign-artifacts</id> <phase>verify</phase> <goals> <goal>sign</goal> </goals> </execution> </executions> <configuration> <gpgArguments> <arg>--pinentry-mode</arg> <arg>loopback</arg> </gpgArguments> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-source-plugin</artifactId> <version>3.3.0</version> <executions> <execution> <id>attach-sources</id> <goals> <goal>jar-no-fork</goal> </goals> </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-javadoc-plugin</artifactId> <version>2.9.1</version> <configuration> <!--<javadocExecutable>${java.home}/bin/javadoc</javadocExecutable>--> <additionalparam>-Xdoclint:none</additionalparam> <aggregate>true</aggregate> <charset>UTF-8</charset><!-- utf-8读取文件 --> <encoding>UTF-8</encoding><!-- utf-8进行编码代码 --> <docencoding>UTF-8</docencoding><!-- utf-8进行编码文档 --> <tags> <tag> <name>date</name> <name>description</name> </tag> </tags> </configuration> <executions> <execution> <phase>package</phase> <goals> <goal>jar</goal> </goals> </execution> </executions> </plugin> </plugins> </build> </profile> </profiles> </project>