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

IllegalArgumentException when using goal released-version with maven 3.6.2 #81

Closed
veikokaap opened this issue Oct 16, 2019 · 2 comments · Fixed by #88
Closed

IllegalArgumentException when using goal released-version with maven 3.6.2 #81

veikokaap opened this issue Oct 16, 2019 · 2 comments · Fixed by #88
Assignees
Milestone

Comments

@veikokaap
Copy link

When building a simple pom with goal released-version on maven 3.6.2, then the plugin crashes with an exception

Plugin declaration:

<plugin>
  <groupId>org.codehaus.mojo</groupId>
  <artifactId>build-helper-maven-plugin</artifactId>
  <version>3.0.0</version>
  <executions>
    <execution>
      <id>released-version</id>
      <goals>
        <goal>released-version</goal>
      </goals>
    </execution>
  </executions>
</plugin>

Exception:

Caused by: java.lang.IllegalArgumentException: version can neither be null, empty nor blank
    at org.apache.commons.lang3.Validate.notBlank (Validate.java:454)
    at org.apache.maven.artifact.ArtifactUtils.notBlank (ArtifactUtils.java:107)
    at org.apache.maven.artifact.ArtifactUtils.toSnapshotVersion (ArtifactUtils.java:57)
    at org.apache.maven.artifact.DefaultArtifact.setBaseVersionInternal (DefaultArtifact.java:389)
    at org.apache.maven.artifact.DefaultArtifact.selectVersion (DefaultArtifact.java:506)
    at org.apache.maven.artifact.DefaultArtifact.selectVersionFromNewRangeIfAvailable (DefaultArtifact.java:494)
    at org.apache.maven.artifact.DefaultArtifact.<init> (DefaultArtifact.java:106)
    at org.apache.maven.artifact.factory.DefaultArtifactFactory.createArtifact (DefaultArtifactFactory.java:162)
    at org.apache.maven.artifact.factory.DefaultArtifactFactory.createArtifact (DefaultArtifactFactory.java:122)
    at org.apache.maven.artifact.factory.DefaultArtifactFactory.createArtifact (DefaultArtifactFactory.java:116)
    at org.apache.maven.artifact.factory.DefaultArtifactFactory.createArtifact (DefaultArtifactFactory.java:44)
    at org.codehaus.mojo.buildhelper.ReleasedVersionMojo.execute (ReleasedVersionMojo.java:95)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
   ...
veikokaap pushed a commit to veikokaap/build-helper-maven-plugin that referenced this issue Oct 16, 2019
veikokaap pushed a commit to veikokaap/build-helper-maven-plugin that referenced this issue Oct 16, 2019
stefanseifert added a commit to wcm-io-devops/conga-aem-plugin that referenced this issue Jan 9, 2020
@andham
Copy link
Member

andham commented Jan 19, 2020

The same issue with Maven 3.6.3.

@ZachManno
Copy link

Is there an expected date this fix will be released?

stefanseifert pushed a commit that referenced this issue Feb 14, 2020
(#81)

(cherry picked from commit 0e55de7)
@stefanseifert stefanseifert self-assigned this Feb 14, 2020
@stefanseifert stefanseifert added this to the 3.1.0 milestone Feb 14, 2020
stefanseifert added a commit that referenced this issue Feb 18, 2020
#81 IllegalArgumentException when using goal released-version with maven 3.6.2/3.6.3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants