Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HDDS-10496. Fetch dependencies using actual build #6359

Merged
merged 1 commit into from
Mar 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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>
sadanand48 marked this conversation as resolved.
Show resolved Hide resolved
</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