Skip to content

Commit d74b374

Browse files
committed
(ci) task for publishing artifact to maven
1 parent e9141bd commit d74b374

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

Jenkinsfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ pipeline {
77
maven "apache-maven-3.9.9"
88
}
99
steps {
10-
sh 'mvn package'
10+
sh 'mvn deploy -Ddeploy-local'
1111
}
1212
}
1313
}

pom.xml

+10
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
1616
<minecraft.version>1.21.1</minecraft.version>
1717
<github.package.url>${env.GITHUB_MAVEN_URL}</github.package.url>
18+
<maven.local.dir>${env.MAVEN_DIR}</maven.local.dir>
1819
</properties>
1920

2021
<repositories>
@@ -169,5 +170,14 @@
169170
</repository>
170171
</distributionManagement>
171172
</profile>
173+
<profile>
174+
<id>deploy-local</id>
175+
<distributionManagement>
176+
<repository>
177+
<id>laven-local</id>
178+
<url>file://${maven.local.dir}</url>
179+
</repository>
180+
</distributionManagement>
181+
</profile>
172182
</profiles>
173183
</project>

0 commit comments

Comments
 (0)