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 9, 2024
1 parent 5a357ab commit a12c19c
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 99 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ 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 maven/cnaf-mirror-settings.xml

This file was deleted.

10 changes: 9 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,15 @@
<packaging>jar</packaging>
<name>storm-webdav-server</name>

<repositories>
<repository>
<id>cnaf-repo</id>
<name>CNAF repo</name>
<url>https://repo.cloud.cnaf.infn.it/repository/maven-public</url>
</repository>
</repositories>


<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
Expand Down Expand Up @@ -125,7 +134,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 a12c19c

Please sign in to comment.