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
Maven go-offline
goal fails in multi-module builds
#27615
Comments
/cc @quarkusio/devtools |
/cc @aloubyansky |
Additional context, which may help in finding a solution: The plugin supports go-offline in multi-module projects only since 3.1.2. This has been fixed with issue https://issues.apache.org/jira/browse/MDEP-204 . |
@aloubyansky @famod this looks like an upstream issue, no? @vonatzigenc Thanks for posting the link. |
@vonatzigenc this |
My comment was a little too short. I have seen that it is quarkus plugin. Thought the issue might help, since there the problem with multi module projects was also solved. I didn't look closely enough at the implementation of go-off in the quarkus plugin to judge how much can be gained from the solution in the maven-dependency-plugin. |
Sure, thanks for the info @vonatzigenc To be more accurate, the title of this issue is not precise enough. |
Yes, that is the case in the reproducer here and also in our real use case. The Quarkus application is one of the submodules only. |
Describe the bug
In order to improve build performance in our CI builds we want to use the Quarkus Maven plugin's
go-offline
goal in order to populate a local Maven repo which can then be shared by the builds. We tend to have multi-module projects and in this setup the Maven goal often fails, even though when the goal is executed for the Maven module, where it reported the failure, then the build is successful. See Actual behavior for more details.Expected behavior
No response
Actual behavior
If I in the Quarkus repo itself issue the command
./mvnw io.quarkus:quarkus-maven-plugin::go-offline -f integration-tests/
then I get the following exception:If I however run
./mvnw io.quarkus:quarkus-maven-plugin::go-offline -f integration-tests/avro-reload/
then the build is successful.Here is the output of the first command including the
-X
option:How to Reproduce?
Run
./mvnw io.quarkus:quarkus-maven-plugin::go-offline -f integration-tests/ -X
in Quarkus Git repo.Output of
uname -a
orver
No response
Output of
java -version
No response
GraalVM version (if different from Java)
No response
Quarkus version or git rev
No response
Build tool (ie. output of
mvnw --version
orgradlew --version
)Maven 3.8.6
Additional information
No response
The text was updated successfully, but these errors were encountered: