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

Show example of executing a single Maven Invoker test #19643

Merged
merged 1 commit into from
Aug 25, 2021

Conversation

geoand
Copy link
Contributor

@geoand geoand commented Aug 25, 2021

No description provided.

@geoand geoand requested a review from gsmet August 25, 2021 07:58
@geoand geoand force-pushed the maven-invoker-single branch from 5b4718d to 7e5b33b Compare August 25, 2021 07:59
@gsmet gsmet merged commit 2b31505 into quarkusio:main Aug 25, 2021
@quarkus-bot quarkus-bot bot added this to the 2.3 - main milestone Aug 25, 2021
@geoand geoand deleted the maven-invoker-single branch August 25, 2021 10:01
For example, in order to only run the MySQL test project of the container-image tests, the Maven command would be:

```
./mvnw verify -f integration-tests/container-image/maven-invoker-way verify -Dinvoker.test=container-build-jib-with-mysql
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@geoand The doube-verify is probably a mistake as it yields:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-jar-plugin:3.1.2:jar (default-jar) on project quarkus-integration-test-container-image-invoker: You have to use a classifier to attach supplemental artifacts to the project instead of replacing them.

Also, this very specific module also requires -Dstart-containers.

That's what you get for being helpful by documenting things for others. 😉

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ouch on the double verify...

For the other flags, I was on the fence on whether to add them or not, because they don't bring any value to the specific section.

Feel free to update the doc how you best see fit :)

Copy link
Member

@famod famod Aug 25, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you are fixing that double-verify, you could add one one-liner note on that this is just an example and that further parameters might be needed. 🤷

Copy link
Contributor Author

@geoand geoand Aug 25, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here it is: #19651 :)

geoand added a commit to geoand/quarkus that referenced this pull request Aug 25, 2021
geoand added a commit to geoand/quarkus that referenced this pull request Aug 25, 2021
famod added a commit that referenced this pull request Aug 25, 2021
Fix and enhance Maven Invoker example
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.

3 participants