Skip to content

Commit 8471216

Browse files
committed
change
1 parent 42bbdeb commit 8471216

File tree

3 files changed

+126
-9
lines changed

3 files changed

+126
-9
lines changed

.github/workflows/maven-publish.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ jobs:
4040
ls
4141
- name: Publish package
4242
run: mvn deploy -s settings.xml
43+
- name: Publish package
44+
run: mvn --batch-mode deploy -f ./pomForGitHub.xml
4345
env:
4446
GITHUB_TOKEN: ${{ secrets.GITHUBTOKEN }}
4547

pom.xml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -165,15 +165,6 @@
165165
</execution>
166166
</executions>
167167
</plugin>
168-
<!-- 发布插件 -->
169-
<plugin>
170-
<groupId>org.apache.maven.plugins</groupId>
171-
<artifactId>maven-deploy-plugin</artifactId>
172-
<version>2.8.2</version>
173-
<configuration>
174-
<altDeploymentRepository>github::default::https://maven.pkg.github.com/Mryan2005/SimplifiedJava</altDeploymentRepository>
175-
</configuration>
176-
</plugin>
177168
</plugins>
178169
</build>
179170

pomForGitHub.xml

Lines changed: 124 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,124 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5+
<modelVersion>4.0.0</modelVersion>
6+
7+
<groupId>top.mryan2005.maven</groupId>
8+
<artifactId>simplifiedjava</artifactId>
9+
<version>1.0.7-beta-1</version>
10+
11+
<developers>
12+
<developer>
13+
<id>mryan2005.top</id>
14+
<name>Mryan2005</name>
15+
<email>[email protected]</email>
16+
<roles>
17+
<role>architect</role>
18+
<role>developer</role>
19+
</roles>
20+
</developer>
21+
</developers>
22+
23+
<licenses>
24+
<license>
25+
<name>The Apache Software License, Version 2.0</name>
26+
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
27+
</license>
28+
</licenses>
29+
<description>This is a Java library that can help you to write Java code more easily. I think it is just like the file bits/stdc++.h in C++, so I named it JavaPlusPlus.</description>
30+
<url>https://github.com/Mryan2005/SimplifiedJava</url>
31+
<scm>
32+
<connection>https://github.com/Mryan2005/SimplifiedJava.git</connection>
33+
<developerConnection>scm:git:ssh://[email protected]/Mryan2005/SimplifiedJava.git
34+
</developerConnection>
35+
<url>https://github.com/Mryan2005/SimplifiedJava</url>
36+
</scm>
37+
<properties>
38+
<java.version>21</java.version>
39+
<maven.compiler.source>21</maven.compiler.source>
40+
<maven.compiler.target>21</maven.compiler.target>
41+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
42+
</properties>
43+
44+
<distributionManagement>
45+
<repository>
46+
<id>github</id>
47+
<name>GitHub OWNER Apache Maven Packages</name>
48+
<url>https://maven.pkg.github.com/Mryan2005/SimplifiedJava</url>
49+
<snapshots>
50+
<enabled>true</enabled>
51+
</snapshots>
52+
</repository>
53+
</distributionManagement>
54+
55+
<dependencies>
56+
<!-- https://mvnrepository.com/artifact/edu.stanford.nlp/stanford-corenlp -->
57+
<dependency>
58+
<groupId>edu.stanford.nlp</groupId>
59+
<artifactId>stanford-corenlp</artifactId>
60+
<version>4.5.8</version>
61+
</dependency>
62+
<dependency>
63+
<groupId>commons-codec</groupId>
64+
<artifactId>commons-codec</artifactId>
65+
<version>1.17.1</version>
66+
</dependency>
67+
<dependency>
68+
<groupId>com.microsoft.sqlserver</groupId>
69+
<artifactId>mssql-jdbc</artifactId>
70+
<version>12.8.1.jre11</version>
71+
</dependency>
72+
<dependency>
73+
<groupId>com.alibaba</groupId>
74+
<artifactId>fastjson</artifactId>
75+
<version>2.0.53</version>
76+
</dependency>
77+
<dependency>
78+
<groupId>junit</groupId>
79+
<artifactId>junit</artifactId>
80+
<version>4.13.2</version>
81+
<scope>test</scope>
82+
</dependency>
83+
<!--Jackson包-->
84+
<dependency>
85+
<groupId>com.fasterxml.jackson.core</groupId>
86+
<artifactId>jackson-core</artifactId>
87+
<version>2.9.0</version>
88+
</dependency>
89+
<dependency>
90+
<groupId>com.fasterxml.jackson.core</groupId>
91+
<artifactId>jackson-databind</artifactId>
92+
<version>2.9.0</version>
93+
</dependency>
94+
<dependency>
95+
<groupId>com.fasterxml.jackson.core</groupId>
96+
<artifactId>jackson-annotations</artifactId>
97+
<version>2.9.0</version>
98+
</dependency>
99+
</dependencies>
100+
101+
<build>
102+
<plugins>
103+
<plugin>
104+
<groupId>org.apache.maven.plugins</groupId>
105+
<artifactId>maven-compiler-plugin</artifactId>
106+
<version>3.13.0</version> <!-- 显式指定一个兼容的版本 -->
107+
<configuration>
108+
<source>${maven.compiler.source}</source>
109+
<target>${maven.compiler.target}</target>
110+
</configuration>
111+
</plugin>
112+
<!-- 发布插件 -->
113+
<plugin>
114+
<groupId>org.apache.maven.plugins</groupId>
115+
<artifactId>maven-deploy-plugin</artifactId>
116+
<version>2.8.2</version>
117+
<configuration>
118+
<altDeploymentRepository>github::default::https://maven.pkg.github.com/Mryan2005/SimplifiedJava</altDeploymentRepository>
119+
</configuration>
120+
</plugin>
121+
</plugins>
122+
</build>
123+
124+
</project>

0 commit comments

Comments
 (0)