Maven包的一些工作

old-package
lensfrex 2 years ago
parent 036c4b47be
commit d6fc6f9878
Signed by: lensfrex
GPG Key ID: 947ADABD8533C476
  1. 12
      README.md
  2. 8
      mywust-core/pom.xml
  3. 2
      mywust-model/pom.xml
  4. 9
      mywust-network-httpclient/pom.xml
  5. 11
      mywust-network-okhttp/pom.xml
  6. 4
      mywust-network/pom.xml
  7. 2
      mywust-test/pom.xml
  8. 2
      mywust-util/pom.xml
  9. 22
      pom.xml

@ -51,7 +51,17 @@ JDK版本:1.8及以上,推荐JDK 11及以上
## 使用说明 ## 使用说明
> 待补充,先留个坑 ### 在项目中引用mywust-core
目前该项目发布在Github Package上,如遇网络问题请自备工具解决
关于如何在自己的项目中引用:
- Maven项目请参阅:[使用 Apache Maven 注册表](https://docs.github.com/zh/packages/working-with-a-github-packages-registry/working-with-the-apache-maven-registry)
- Gradle项目请参阅:[使用 Gradle 注册表](https://docs.github.com/zh/packages/working-with-a-github-packages-registry/working-with-the-gradle-registry)
~~未来有可能会考虑自建Maven仓库~~
## 目录规范 ## 目录规范

@ -5,7 +5,7 @@
<parent> <parent>
<artifactId>mywust</artifactId> <artifactId>mywust</artifactId>
<groupId>cn.linghang</groupId> <groupId>cn.linghang</groupId>
<version>0.0.1-dev</version> <version>0.0.1-SNAPSHOT</version>
</parent> </parent>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
@ -14,13 +14,13 @@
<dependency> <dependency>
<groupId>cn.linghang</groupId> <groupId>cn.linghang</groupId>
<artifactId>mywust-network</artifactId> <artifactId>mywust-network</artifactId>
<version>0.0.1-dev</version> <version>0.0.1-SNAPSHOT</version>
<scope>compile</scope> <scope>compile</scope>
</dependency> </dependency>
<dependency> <dependency>
<groupId>cn.linghang</groupId> <groupId>cn.linghang</groupId>
<artifactId>mywust-util</artifactId> <artifactId>mywust-util</artifactId>
<version>0.0.1-dev</version> <version>0.0.1-SNAPSHOT</version>
</dependency> </dependency>
<dependency> <dependency>
@ -52,7 +52,7 @@
<dependency> <dependency>
<groupId>cn.linghang</groupId> <groupId>cn.linghang</groupId>
<artifactId>mywust-model</artifactId> <artifactId>mywust-model</artifactId>
<version>0.0.1-dev</version> <version>0.0.1-SNAPSHOT</version>
<scope>compile</scope> <scope>compile</scope>
</dependency> </dependency>
<dependency> <dependency>

@ -5,7 +5,7 @@
<parent> <parent>
<artifactId>mywust</artifactId> <artifactId>mywust</artifactId>
<groupId>cn.linghang</groupId> <groupId>cn.linghang</groupId>
<version>0.0.1-dev</version> <version>0.0.1-SNAPSHOT</version>
</parent> </parent>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>

@ -13,5 +13,12 @@
<maven.compiler.target>11</maven.compiler.target> <maven.compiler.target>11</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties> </properties>
<distributionManagement>
<repository>
<id>github</id>
<name>GitHub LingHangStudio Apache Maven Packages</name>
<url>https://maven.pkg.github.com/LingHangStudio/mywust</url>
</repository>
</distributionManagement>
</project> </project>

@ -52,14 +52,21 @@
<dependency> <dependency>
<groupId>cn.linghang</groupId> <groupId>cn.linghang</groupId>
<artifactId>mywust-network</artifactId> <artifactId>mywust-network</artifactId>
<version>0.0.1-dev</version> <version>0.0.1-SNAPSHOT</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>cn.linghang</groupId> <groupId>cn.linghang</groupId>
<artifactId>mywust-util</artifactId> <artifactId>mywust-util</artifactId>
<version>0.0.1-dev</version> <version>0.0.1-SNAPSHOT</version>
<scope>compile</scope> <scope>compile</scope>
</dependency> </dependency>
</dependencies> </dependencies>
<distributionManagement>
<repository>
<id>github</id>
<name>GitHub LingHangStudio Apache Maven Packages</name>
<url>https://maven.pkg.github.com/LingHangStudio/mywust</url>
</repository>
</distributionManagement>
</project> </project>

@ -5,7 +5,7 @@
<parent> <parent>
<artifactId>mywust</artifactId> <artifactId>mywust</artifactId>
<groupId>cn.linghang</groupId> <groupId>cn.linghang</groupId>
<version>0.0.1-dev</version> <version>0.0.1-SNAPSHOT</version>
</parent> </parent>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
@ -26,7 +26,7 @@
<dependency> <dependency>
<groupId>cn.linghang</groupId> <groupId>cn.linghang</groupId>
<artifactId>mywust-util</artifactId> <artifactId>mywust-util</artifactId>
<version>0.0.1-dev</version> <version>0.0.1-SNAPSHOT</version>
<scope>compile</scope> <scope>compile</scope>
</dependency> </dependency>
</dependencies> </dependencies>

@ -11,7 +11,7 @@
<dependency> <dependency>
<groupId>cn.linghang</groupId> <groupId>cn.linghang</groupId>
<artifactId>mywust-core</artifactId> <artifactId>mywust-core</artifactId>
<version>0.0.1-dev</version> <version>0.0.1-SNAPSHOT</version>
<scope>test</scope> <scope>test</scope>
</dependency> </dependency>
<dependency> <dependency>

@ -5,7 +5,7 @@
<parent> <parent>
<artifactId>mywust</artifactId> <artifactId>mywust</artifactId>
<groupId>cn.linghang</groupId> <groupId>cn.linghang</groupId>
<version>0.0.1-dev</version> <version>0.0.1-SNAPSHOT</version>
</parent> </parent>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>

@ -7,27 +7,29 @@
<groupId>cn.linghang</groupId> <groupId>cn.linghang</groupId>
<artifactId>mywust</artifactId> <artifactId>mywust</artifactId>
<packaging>pom</packaging> <packaging>pom</packaging>
<version>0.0.1-dev</version> <version>0.0.1-SNAPSHOT</version>
<modules> <modules>
<module>mywust-core</module> <module>mywust-core</module>
<module>mywust-model</module> <module>mywust-model</module>
<module>mywust-network</module> <module>mywust-network</module>
<module>mywust-util</module> <module>mywust-util</module>
<module>mywust-network-httpclient</module>
<module>mywust-network-okhttp</module>
</modules> </modules>
<dependencies>
<dependency>
<groupId>org.jetbrains.externalAnnotations.junit</groupId>
<artifactId>junit</artifactId>
<version>4.12-an1</version>
<scope>test</scope>
</dependency>
</dependencies>
<properties> <properties>
<maven.compiler.source>11</maven.compiler.source> <maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target> <maven.compiler.target>11</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties> </properties>
<distributionManagement>
<repository>
<id>github</id>
<name>GitHub LingHangStudio Apache Maven Packages</name>
<url>https://maven.pkg.github.com/LingHangStudio/mywust</url>
</repository>
</distributionManagement>
</project> </project>
Loading…
Cancel
Save