Skip to content

Commit

Permalink
Do not proxy all Maven requests through Nexus
Browse files Browse the repository at this point in the history
  • Loading branch information
Luca Bassi committed Dec 16, 2024
1 parent df507cb commit 68cc010
Show file tree
Hide file tree
Showing 8 changed files with 6 additions and 149 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,6 @@ jobs:
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Build with Maven
run: mvn -B clean package -s maven/cnaf-mirror-settings.xml
run: mvn -B clean package
- name: Checkstyle with Maven
run: mvn clean compile -s maven/cnaf-mirror-settings.xml -U -Dmaven.test.failure.ignore -DfailIfNoTests=false checkstyle:check -Dcheckstyle.config.location=google_checks.xml
run: mvn clean compile -U -Dmaven.test.failure.ignore -DfailIfNoTests=false checkstyle:check -Dcheckstyle.config.location=google_checks.xml
2 changes: 1 addition & 1 deletion .github/workflows/sonar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: mvn -s maven/cnaf-mirror-settings.xml -B -U install org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=italiangrid_storm-webdav
run: mvn -B -U install org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=italiangrid_storm-webdav
7 changes: 3 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,12 @@ FROM eclipse-temurin:11-jdk-alpine as build
WORKDIR /workspace/app
RUN apk add maven
COPY pom.xml .
COPY maven maven
RUN mvn dependency:resolve -s maven/cnaf-mirror-settings.xml
RUN mvn dependency:resolve-plugins -s maven/cnaf-mirror-settings.xml
RUN mvn dependency:resolve
RUN mvn dependency:resolve-plugins
COPY .git .git
COPY etc etc
COPY src src
RUN mvn package -s maven/cnaf-mirror-settings.xml -Dmaven.test.skip
RUN mvn package -Dmaven.test.skip
RUN mkdir -p target/dependency && (cd target/dependency; jar -xf ../*.jar)

FROM eclipse-temurin:11-centos7
Expand Down
46 changes: 0 additions & 46 deletions cnaf-mirror-settings.xml

This file was deleted.

46 changes: 0 additions & 46 deletions maven/cnaf-mirror-settings.xml

This file was deleted.

1 change: 0 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,6 @@
<exlude>src/main/resources/static/**</exlude>
<exclude>src/main/resources/META-INF/spring.factories</exclude>
<exclude>maven/**</exclude>
<exclude>cnaf-mirror-settings.xml</exclude>
<exclude>sonar-project.properties</exclude>
</excludes>
<useDefaultExcludes>true</useDefaultExcludes>
Expand Down
24 changes: 0 additions & 24 deletions travis/build.sh

This file was deleted.

25 changes: 0 additions & 25 deletions travis/install-deps.sh

This file was deleted.

0 comments on commit 68cc010

Please sign in to comment.