ltx-test
Used in:
components
- OverviewOverview
- VersionsVersions
- DependentsDependents
- DependenciesDependencies
<dependency>
<groupId>io.github.520luotianxu</groupId>
<artifactId>ltx-test</artifactId>
<version>1.0.0-beta</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不能自定义,需要与sonatype网站建好的namespace名称对应,有多个namespace无所谓,选择一个即可
,否则上传失败一直报not allow groupId -->
<groupId>io.github.520luotianxu</groupId>
<artifactId>ltx-test</artifactId>
<!-- 此处版本号每次上传发布的时候需要修改,否则上传报错Deployment Deployment failed while publishing-->
<version>1.0.0-beta</version>
<packaging>jar</packaging>
<properties>
<maven.compiler.source>8</maven.compiler.source>
<maven.compiler.target>8</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<name>LTX Test</name>
<description>A concise description of what the project does.</description>
<url>https://github.com/520luotianxu/ltx-test</url>
<licenses>
<license>
<name>Apache License 2.0</name>
<url>https://www.apache.org/licenses/LICENSE-2.0.txt</url>
</license>
</licenses>
<developers>
<developer>
<name>罗添煦</name>
<email>1429189960@qq.com</email>
</developer>
</developers>
<!-- 填写自己的git地址 -->
<scm>
<connection>scm:git:git://github.com:520luotianxu</connection>
<developerConnection>scm:git:git@github.com:520luotianxu</developerConnection>
<url>https://github.com/520luotianxu</url>
<tag>HEAD</tag>
</scm>
<!-- 以下插件必须有 -->
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<source>${maven.compiler.source}</source>
<target>${maven.compiler.target}</target>
<encoding>${project.build.sourceEncoding}</encoding>
</configuration>
</plugin>
<!-- Source -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>3.3.0</version>
<configuration>
<!-- 这里写你真实存在的包前缀 -->
<sourceFileIncludes>
<include>io/github/ltx</include>
</sourceFileIncludes>
<!-- 或者直接给包名 -->
<subpackages>io.github.ltx</subpackages>
</configuration>
<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>3.6.0</version>
<configuration>
<!-- 这里写你真实存在的包前缀 -->
<sourceFileIncludes>
<include>io/github/ltx</include>
</sourceFileIncludes>
<!-- 或者直接给包名 -->
<subpackages>io.github.ltx</subpackages>
</configuration>
<executions>
<execution>
<id>attach-javadocs</id>
<goals><goal>jar</goal></goals>
</execution>
</executions>
</plugin>
<!-- GPG -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>1.6</version>
<configuration>
<!-- 改成你自己的路径 -->
<executable>D:\softWare\GnuPG\bin\gpg.exe</executable>
</configuration>
<executions>
<execution>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.sonatype.central</groupId>
<artifactId>central-publishing-maven-plugin</artifactId>
<version>0.9.0</version>
<extensions>true</extensions>
<configuration>
<publishingServerId>ltx</publishingServerId>
<autoPublish>true</autoPublish>
</configuration>
</plugin>
</plugins>
</build>
</project>