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

maven profiles support #290

Open
dimitryvoronov opened this issue Nov 18, 2021 · 0 comments
Open

maven profiles support #290

dimitryvoronov opened this issue Nov 18, 2021 · 0 comments

Comments

@dimitryvoronov
Copy link

Hello @derkoe,
we started using your plugin with maven which run with settings.xml but we have a multi-mirror configuration which we provide to maven via PROFILES, like:

mvn $MAVEN_CLI_OPTS verify -P $MVN_SONAR_MAVEN_PROFILES
environment variables are:
MAVEN_CLI_OPTS: "-s .m2_access/settings.xml --batch-mode"
MVN_SONAR_MAVEN_PROFILES: "nexus-stage,nexus-configuration,client,sonar,sonar-props,coverage-and-check"

And during mvn verify job licensecheck looks only on pom.xml and not through profiles defined.

If I understand correct, sonarcube-licensecheck only reads pom.xml and settings.xml
but there is a setProfiles method which might be used
https://maven.apache.org/shared/maven-invoker/apidocs/org/apache/maven/shared/invoker/DefaultInvocationRequest.html#setProfiles(java.util.List)

Could you tell if it's possible to add to the plugin?
I've tried to make a local build of licensecheck but faced with multiple dependencies issues.

Thanks in advance!

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

No branches or pull requests

1 participant