Skip to content

Commit 4675a75

Browse files
committed
Update Maven deploy config and distribution management
Modified the GitHub Actions workflow to deploy only the spring-web-captor and spring-web-captor-xml modules. Updated the parent pom.xml to use the correct GitHub Packages repository URL. Removed redundant distributionManagement sections from module pom.xml files to centralize deployment configuration.
1 parent 08ba59a commit 4675a75

File tree

4 files changed

+3
-17
lines changed

4 files changed

+3
-17
lines changed

.github/workflows/maven-github-publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
server-id: github
2828
settings-path: ${{ github.workspace }}
2929

30-
- name: Build and deploy to GitHub Packages
31-
run: mvn -B deploy -DskipTests=true -s $GITHUB_WORKSPACE/settings.xml
30+
- name: Deploy only modules
31+
run: mvn -B deploy -pl spring-web-captor,spring-web-captor-xml -am -DskipTests=true -s $GITHUB_WORKSPACE/settings.xml
3232
env:
3333
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
<repository>
2828
<id>github</id>
2929
<name>GitHub Packages</name>
30-
<url>https://maven.pkg.github.com/david-randoll/spring-web-captor-parent</url>
30+
<url>https://maven.pkg.github.com/david-randoll/spring-web-captor</url>
3131
</repository>
3232
</distributionManagement>
3333
</project>

spring-web-captor-xml/pom.xml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,4 @@
6363
<scope>test</scope>
6464
</dependency>
6565
</dependencies>
66-
<distributionManagement>
67-
<repository>
68-
<id>github</id>
69-
<name>GitHub Packages</name>
70-
<url>https://maven.pkg.github.com/david-randoll/spring-web-captor-xml</url>
71-
</repository>
72-
</distributionManagement>
7366
</project>

spring-web-captor/pom.xml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,4 @@
4949
<scope>test</scope>
5050
</dependency>
5151
</dependencies>
52-
<distributionManagement>
53-
<repository>
54-
<id>github</id>
55-
<name>GitHub Packages</name>
56-
<url>https://maven.pkg.github.com/david-randoll/spring-web-captor</url>
57-
</repository>
58-
</distributionManagement>
5952
</project>

0 commit comments

Comments
 (0)