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

Fixes #160, ensure the java classloader is a child first one and supports to excludes some gathered classpath element to solve manually conflicts #161

Conversation

rmannibucau
Copy link
Contributor

No description provided.

…and supports to excludes some gathered classpath element to solve manually conflicts
<mainClass>org.codehaus.mojo.exec.Slf4jMain</mainClass>
<!-- simulate plugin deps bringing one binding and project deps bringing another one -->
<additionalClasspathElements>
<additionalClasspathElements>../../../../target/test-classes</additionalClasspathElements> <!-- test setup requires it -->
Copy link
Member

Choose a reason for hiding this comment

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

<nit_picking> I would prefer something such @project.basedir@ or whatever use some interpolation </nit_picking>

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hmm, me too but it is not ran with it plugin so it is not interpolated this way. Should I impl it in the "test mock" handling?

Copy link
Member

Choose a reason for hiding this comment

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

this should do the trick in main pom

          <scriptVariables>
            <mainproject.testOutputDirectory>${project.build.testOutputDirectory}</mainproject.testOutputDirectory>
          </scriptVariables>

in src/test/projects/project16/pom.xml

<additionalClasspathElements>@mainproject.testOutputDirectory@</additionalClasspathElements>

please rebase as I have added some ghactions in master to verify the build
thanks!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@olamy scriptVariables is in invoker plugin right? The test uses the pseudo mock ran with surefire so not sure how it would match? 🤔

Copy link
Member

Choose a reason for hiding this comment

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

arf sorry for the confusion

Copy link
Member

@olamy olamy left a comment

Choose a reason for hiding this comment

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

LGTM just a nit picking comment :)

@olamy olamy merged commit 94570cc into mojohaus:master Jul 23, 2020
@olamy olamy added the bug label May 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants