Skip to content

Commit ae76de7

Browse files
committed
commit pom
1 parent eb07fd6 commit ae76de7

File tree

2 files changed

+42
-0
lines changed

2 files changed

+42
-0
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
3+
4+
name: build-with-maven
5+
6+
on:
7+
push:
8+
branches: [ "main" ]
9+
pull_request:
10+
branches: [ "main" ]
11+
12+
jobs:
13+
build:
14+
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- uses: actions/checkout@v3
19+
- name: Set up JDK 21
20+
uses: actions/setup-java@v3
21+
with:
22+
java-version: '21'
23+
distribution: 'temurin'
24+
cache: maven
25+
- name: Build with Maven
26+
run: ./mvnw clean package -DskipTests -Dcheckstyle.skip=true -Dmaven.javadoc.skip=true -B -V -U --file pom.xml

pom.xml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,16 @@
3535
<url>https://github.com/hoangtien2k3/fw-commons</url>
3636
<tag>HEAD</tag>
3737
</scm>
38+
<distributionManagement>
39+
<repository>
40+
<id>sonatype-nexus-staging</id>
41+
<url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url>
42+
</repository>
43+
<snapshotRepository>
44+
<id>sonatype-nexus-snapshots</id>
45+
<url>https://s01.oss.sonatype.org/content/repositories/snapshots/</url>
46+
</snapshotRepository>
47+
</distributionManagement>
3848

3949
<properties>
4050
<java.version>21</java.version>
@@ -69,6 +79,12 @@
6979
</dependencyManagement>
7080

7181
<dependencies>
82+
<!-- <dependency>-->
83+
<!-- <groupId>com.github.hoangtien2k3</groupId>-->
84+
<!-- <artifactId>fw-commons</artifactId>-->
85+
<!-- <version>v1.1.0</version>-->
86+
<!-- </dependency>-->
87+
7288
<dependency>
7389
<groupId>org.springframework</groupId>
7490
<artifactId>spring-jcl</artifactId>

0 commit comments

Comments
 (0)