Commit 1923c5c 1 parent c3820f7 commit 1923c5c Copy full SHA for 1923c5c
File tree 4 files changed +61
-9
lines changed
4 files changed +61
-9
lines changed Original file line number Diff line number Diff line change 25
25
run : mvn -B package --file jwildcard/pom.xml
26
26
27
27
- name : Publish to GitHub Packages Apache Maven
28
- run : mvn deploy -s $GITHUB_WORKSPACE/settings.xml --file jwildcard/pom.xml
28
+ run : mvn deploy -s $GITHUB_WORKSPACE/settings.xml --file jwildcard/pom.xml -P github
29
29
env :
30
30
GITHUB_TOKEN : ${{ github.token }}
31
+
32
+ - name : Publish to Artifactory
33
+ run : mvn deploy -s jwildcard/.mvn/local-settings.xml --file jwildcard/pom.xml
34
+ env :
35
+ ARTIFACTORY_USER : ${{ secrets.ARTIFACTORY_USER }}
36
+ ARTIFACTORY_PASSWORD : ${{ secrets.ARTIFACTORY_PASSWORD }}
Original file line number Diff line number Diff line change @@ -26,6 +26,14 @@ dependencies {
26
26
27
27
Maven <code >pom.xml</code >
28
28
``` xml
29
+ <distributionManagement >
30
+ <repository >
31
+ <id >central</id >
32
+ <name >a0yytejrantuj-artifactory-primary-0-releases</name >
33
+ <url >https://alenon.jfrog.io/artifactory/maven-releases</url >
34
+ </repository >
35
+ </distributionManagement >
36
+
29
37
<dependency >
30
38
<groupId >com.yevdo</groupId >
31
39
<artifactId >jwildcard</artifactId >
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2
+ <settings xsi : schemaLocation =" http://maven.apache.org/SETTINGS/1.1.0 http://maven.apache.org/xsd/settings-1.1.0.xsd"
3
+ xmlns =" http://maven.apache.org/SETTINGS/1.1.0"
4
+ xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance" >
5
+ <servers >
6
+ <server >
7
+ <username >${env.ARTIFACTORY_USER}</username >
8
+ <password >${env.ARTIFACTORY_PASSWORD}</password >
9
+ <id >central</id >
10
+ </server >
11
+ <server >
12
+ <username >${env.ARTIFACTORY_USER}</username >
13
+ <password >${env.ARTIFACTORY_PASSWORD}</password >
14
+ <id >snapshots</id >
15
+ </server >
16
+ </servers >
17
+ </settings >
Original file line number Diff line number Diff line change 11
11
<project .build.sourceEncoding>UTF-8</project .build.sourceEncoding>
12
12
<project .reporting.outputEncoding>UTF-8</project .reporting.outputEncoding>
13
13
</properties >
14
-
15
- <distributionManagement >
16
- <repository >
17
- <id >github</id >
18
- <name >GitHub Packages</name >
19
- <url >https://maven.pkg.github.com/alenon/JWildcard</url >
20
- </repository >
21
- </distributionManagement >
14
+
15
+ <profiles >
16
+ <profile >
17
+ <id >artifactory</id >
18
+ <activation >
19
+ <activeByDefault >true</activeByDefault >
20
+ </activation >
21
+ <distributionManagement >
22
+ <repository >
23
+ <id >central</id >
24
+ <url >https://alenon.jfrog.io/artifactory/maven-releases</url >
25
+ </repository >
26
+ <snapshotRepository >
27
+ <id >snapshots</id >
28
+ <url >https://alenon.jfrog.io/artifactory/maven-snapshots</url >
29
+ </snapshotRepository >
30
+ </distributionManagement >
31
+ </profile >
32
+ <profile >
33
+ <id >github</id >
34
+ <distributionManagement >
35
+ <repository >
36
+ <id >github</id >
37
+ <name >GitHub Packages</name >
38
+ <url >https://maven.pkg.github.com/alenon/JWildcard</url >
39
+ </repository >
40
+ </distributionManagement >
41
+ </profile >
42
+ </profiles >
22
43
23
44
<dependencyManagement >
24
45
<dependencies >
You can’t perform that action at this time.
0 commit comments