GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Add IT using custom plugin repository by Marcono1234 · Pull Request #497 · mojohaus/exec-maven-plugin

Conversation

@Marcono1234

@Marcono1234 Marcono1234 commented Oct 4, 2025

Copy link
Copy Markdown
Contributor

Depends on #496

Adds an integration test which uses a custom plugin repository.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Marcono1234
Marcono1234 commented Oct 4, 2025
View reviewed changes
Comment thread src/it/projects/custom-plugin-repository/pom.xml Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread src/it/projects/custom-plugin-repository/verify.groovy Outdated
def buildLogText = buildLog.getText()
// Should have downloaded artifact from custom repository, not from Central
// (requires running `mvn clean ...`)
assert buildLogText.contains('Downloaded from google: https://maven.google.com/com/android/tools/r8/2.0.98/r8-2.0.98.jar')

@Marcono1234 Marcono1234 Oct 4, 2025

Copy link
Copy Markdown
Contributor Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Is testing for the "Downloaded from ..." message here ok, or is that too brittle (e.g. when users don't run mvn clean ... or when this Maven message changes)?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@slawekjaranowski slawekjaranowski Oct 5, 2025

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

It can occurs not every time ... when artifact will be cached in local repository we will not have such message

Next issue when we have a version in assertions, we will need update test when artifact will update

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@Marcono1234 Marcono1234 Oct 5, 2025

Copy link
Copy Markdown
Contributor Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

But for the integration tests it uses a separate local Maven repository (under target), right? And that is cleaned when running mvn clean ....

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@Marcono1234 Marcono1234 Oct 14, 2025

Copy link
Copy Markdown
Contributor Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Have removed the check now. You are right, caching seems to be an issue with the current CI setup here.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@Marcono1234 Marcono1234 mentioned this pull request Oct 4, 2025
Revert change from #480 - plugin dependencies must be resolved from plugin repositories #496
Merged
@slawekjaranowski

slawekjaranowski commented Oct 5, 2025

Copy link
Copy Markdown
Member

I will try steps as:

  • new module in IT with simple class with Main method and with deploy to local directory - file protocol
  • in invoker.properties we can have many invocation so we can do like:
invoker.goals.1 = deploy
invoker.project.1 = test-module
  • next use remotePlugin point to local directory used in first step
  • do test
invoker.goals.2 = .... 

as idea to check

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@slawekjaranowski

slawekjaranowski commented Oct 5, 2025

Copy link
Copy Markdown
Member

I will go with release a fix version, we can work on test later

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@Marcono1234

Marcono1234 commented Oct 7, 2025

Copy link
Copy Markdown
Contributor Author

Have changed this IT now to use a custom local repository as you suggested. I hope that is what you had in mind. If not, please let me know, or feel free to close this PR.

To demonstrate that the bug fix on master makes a difference, I have kept it as separate merge commit here (though when merging this PR, feel free to squash of course).

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Marcono1234
Marcono1234 commented Oct 7, 2025
View reviewed changes
Comment thread src/it/projects/custom-plugin-repository/pom.xml
Comment on lines +20 to +23
<id>custom-repo</id>
<!-- Note: On Windows using `project.basedir` includes backslashes in this URI, which is not ideal
but seems to work -->
<url>file:///${project.basedir}/custom-repo</url>

@Marcono1234 Marcono1234 Oct 7, 2025 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

For example, this leads to something like (note the \ in the path):

[INFO] Downloading from custom-repo: file:///C:\Users\...

I think technically this is not a valid file: URI, but it seems Maven / Java seems to accept it nonetheless.
Not sure how this can be easily solved. Using file:///./custom-repo did not seem to work, maybe because the working directory is actually in one of its parent dirs (or something was wrong with my test setup)?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@Marcono1234

Marcono1234 commented Oct 25, 2025

Copy link
Copy Markdown
Contributor Author

@slawekjaranowski, what do you think about these changes?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Marcono1234 added 4 commits January 18, 2026 14:38
@Marcono1234 @slawekjaranowski
Add IT using custom plugin repository
25e7072
@Marcono1234 @slawekjaranowski
Use custom local plugin repo instead
02ec3dd
@Marcono1234 @slawekjaranowski
Fix typo in comment
f33f7bb
@Marcono1234 @slawekjaranowski
Remove check for download message
0b3a244
slawekjaranowski
slawekjaranowski approved these changes Jan 18, 2026
View reviewed changes
@slawekjaranowski slawekjaranowski added the maintenance Cleanup, refactoring or other internal change label Jan 18, 2026
@slawekjaranowski
slawekjaranowski merged commit 7d38ac7 into mojohaus:master Jan 18, 2026
17 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@slawekjaranowski slawekjaranowski added this to the 3.6.4 milestone Jan 18, 2026
@Marcono1234
Marcono1234 deleted the custom-plugin-repo-test branch January 22, 2026 20:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@slawekjaranowski slawekjaranowski slawekjaranowski approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

maintenance Cleanup, refactoring or other internal change

Projects

None yet

Milestone

3.6.4

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@Marcono1234 @slawekjaranowski
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.