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

Request for patch release of versions-maven-plugin #736

Closed
nithinasokan opened this issue Oct 4, 2022 · 2 comments
Closed

Request for patch release of versions-maven-plugin #736

nithinasokan opened this issue Oct 4, 2022 · 2 comments

Comments

@nithinasokan
Copy link

nithinasokan commented Oct 4, 2022

Hello - is there a possibility of a release that includes maven-common-artifact-filters@3.3.2 ? This version of maven-common-artifact-filters includes a fix that can gracefully handle cases when there are no pattern matches.

Sample command

mvn versions:use-dep-version -DdepVersion=1.0.1 '-Dincludes=com.example:module::*-SNAPSHOT'

pom.xml

<dependency>
    <groupId>com.example</groupId>
    <artifactId>module</artifactId>
    <version>1.0.0</version>
</dependency>

Expected:
Version remains unchanged
Actual:
Fails with NullPointerException

@slawekjaranowski
Copy link
Member

You can try override dependencies for plugin as workaround, like:

<plugin>
  <artifactId>versions-maven-plugin</artifactId>
  ....
    <dependencies>
       <dependency>
              <groupId>org.apache.maven.shared</groupId>
              <artifactId>maven-common-artifact-filters</artifactId>
              <version>3.3.2</version>
        </dependency>
   </dependencies>
<plugin>

@slawekjaranowski
Copy link
Member

@nasokan Please follow #742

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

2 participants