Skip to content

Make it possible to run ./mvnw package instead of ./mvnw install. - #8659

Merged
copybara-service[bot] merged 1 commit into
masterfrom
test_975713805
Sep 4, 2026
Merged

Make it possible to run ./mvnw package instead of ./mvnw install.#8659
copybara-service[bot] merged 1 commit into
masterfrom
test_975713805

Conversation

@copybara-service

Copy link
Copy Markdown
Contributor

Make it possible to run ./mvnw package instead of ./mvnw install.

This just came up again. It is a better solution to #2193 than #8127 was.

(I think it makes sense for gradle_integration_tests.sh to continue using install so that the Maven-produced artifacts become visible to Gradle. But I haven't tested.)

Sadly, it's still not enough for mvn compile to work:

[ERROR] Failed to execute goal on project guava-gwt: Could not resolve dependencies for project com.google.guava:guava-gwt:jar:999.0.0-HEAD-jre-SNAPSHOT
[ERROR] dependency: com.google.guava:guava-testlib:jar:tests:999.0.0-HEAD-jre-SNAPSHOT (test)
[ERROR]         Could not find artifact com.google.guava:guava-testlib:jar:tests:999.0.0-HEAD-jre-SNAPSHOT
[ERROR] dependency: com.google.guava:guava-tests:jar:tests:999.0.0-HEAD-jre-SNAPSHOT (test)
[ERROR]         Could not find artifact com.google.guava:guava-tests:jar:tests:999.0.0-HEAD-jre-SNAPSHOT

(For all testing of such changes, it's necessary to delete/move ~/.m2/repository/com/google/guava so that Maven doesn't just read from previous builds that are installed there—thanks to our habit of using mvn install instead of mvn package!)

RELNOTES=n/a

This [just came up again](#8650 (comment)). It is a better solution to #2193 than #8127 was.

(I think it makes sense for `gradle_integration_tests.sh` to continue using `install` so that the Maven-produced artifacts become visible to Gradle. But I haven't tested.)

Sadly, it's still not enough for `mvn compile` to work:

```
[ERROR] Failed to execute goal on project guava-gwt: Could not resolve dependencies for project com.google.guava:guava-gwt:jar:999.0.0-HEAD-jre-SNAPSHOT
[ERROR] dependency: com.google.guava:guava-testlib:jar:tests:999.0.0-HEAD-jre-SNAPSHOT (test)
[ERROR]         Could not find artifact com.google.guava:guava-testlib:jar:tests:999.0.0-HEAD-jre-SNAPSHOT
[ERROR] dependency: com.google.guava:guava-tests:jar:tests:999.0.0-HEAD-jre-SNAPSHOT (test)
[ERROR]         Could not find artifact com.google.guava:guava-tests:jar:tests:999.0.0-HEAD-jre-SNAPSHOT
```

(For all testing of such changes, it's necessary to delete/move `~/.m2/repository/com/google/guava` so that Maven doesn't just read from previous builds that are installed there—thanks to our habit of using `mvn install` instead of `mvn package`!)

RELNOTES=n/a
PiperOrigin-RevId: 976459357
@copybara-service
copybara-service Bot merged commit 5fb424c into master Sep 4, 2026
15 checks passed
@copybara-service
copybara-service Bot deleted the test_975713805 branch September 4, 2026 20:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant