Skip to content

Commit

Permalink
HDDS-10496. Fetch dependencies using actual build
Browse files Browse the repository at this point in the history
  • Loading branch information
adoroszlai committed Mar 9, 2024
1 parent bf91862 commit bd8bd36
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/populate-cache.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:

- name: Fetch dependencies
if: steps.restore-cache.outputs.cache-hit != 'true'
run: mvn --batch-mode --fail-never --no-transfer-progress --show-version dependency:go-offline
run: mvn --batch-mode --fail-never --no-transfer-progress --show-version -Pgo-offline -Pdist clean verify

- name: Delete Ozone jars from repo
if: steps.restore-cache.outputs.cache-hit != 'true'
Expand Down
1 change: 1 addition & 0 deletions hadoop-ozone/ozonefs-hadoop2/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@
<goal>unpack</goal>
</goals>
<configuration>
<skip>${maven.shade.skip}</skip>
<excludes>META-INF/versions/**/*.*</excludes>
<artifactItems>
<artifactItem>
Expand Down
2 changes: 2 additions & 0 deletions hadoop-ozone/ozonefs-hadoop3-client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
<goal>unpack</goal>
</goals>
<configuration>
<skip>${maven.shade.skip}</skip>
<excludes>META-INF/versions/**/*.*</excludes>
<artifactItems>
<artifactItem>
Expand All @@ -77,6 +78,7 @@
<goal>shade</goal>
</goals>
<configuration>
<skip>${maven.shade.skip}</skip>
<transformers>
<transformer
implementation="org.apache.maven.plugins.shade.resource.DontIncludeResourceTransformer">
Expand Down
1 change: 1 addition & 0 deletions hadoop-ozone/ozonefs-hadoop3/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@
<goal>unpack</goal>
</goals>
<configuration>
<skip>${maven.shade.skip}</skip>
<excludes>META-INF/versions/**/*.*</excludes>
<artifactItems>
<artifactItem>
Expand Down
1 change: 1 addition & 0 deletions hadoop-ozone/ozonefs-shaded/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@
<goal>shade</goal>
</goals>
<configuration>
<skip>${maven.shade.skip}</skip>
<transformers>
<transformer
implementation="org.apache.maven.plugins.shade.resource.DontIncludeResourceTransformer">
Expand Down
7 changes: 7 additions & 0 deletions hadoop-ozone/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -406,6 +406,13 @@
<module>ozonefs-hadoop3-client</module>
</modules>
</profile>
<profile>
<id>go-offline</id>
<modules>
<module>ozonefs-shaded</module>
<module>ozonefs-hadoop2</module>
</modules>
</profile>
<profile>
<id>build-with-recon</id>
<activation>
Expand Down
11 changes: 11 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2245,6 +2245,17 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xs
</plugins>
</build>
</profile>
<profile>
<id>go-offline</id>
<properties>
<test>void</test>
<skip.npx>true</skip.npx>
<skip.installnpx>true</skip.installnpx>
<skipDocs>true</skipDocs>
<maven.javadoc.skip>true</maven.javadoc.skip>
<maven.shade.skip>true</maven.shade.skip>
</properties>
</profile>
<profile>
<id>client</id>
<build>
Expand Down

0 comments on commit bd8bd36

Please sign in to comment.