You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Michael Osipov (JIRA)" <ji...@apache.org> on 2016/01/12 21:12:46 UTC
[jira] [Closed] (MASSEMBLY-453) Maven assembly plugin throws build
error when a pom dependency has a version that contains the brackets for
tight tolerance
[ https://issues.apache.org/jira/browse/MASSEMBLY-453?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael Osipov closed MASSEMBLY-453.
------------------------------------
Resolution: Auto Closed
This issue has been auto closed because it has been inactive for a long period of time. If you think this issue still persists, retest your problem with the most recent version of Maven and the affected component, reopen and post your results.
> Maven assembly plugin throws build error when a pom dependency has a version that contains the brackets for tight tolerance
> ---------------------------------------------------------------------------------------------------------------------------
>
> Key: MASSEMBLY-453
> URL: https://issues.apache.org/jira/browse/MASSEMBLY-453
> Project: Maven Assembly Plugin
> Issue Type: Bug
> Affects Versions: 2.2-beta-1
> Environment: Any
> Reporter: BJ Allmon
> Priority: Minor
>
> Current behavior:
> A module that executes an assembly will fail with a build error indicating that the dependency artifact version is null for any dependency that includes brackets.
> The brackets are used indirectly through a property. For example:
> <version>${myApplication.currentVersion}</version> = <version>[1.0-SNAPSHOT]</version>
> The work around(s):
> 1. Manage static dependency versions in the POM files that include the assembly
> 2. Maintain two different properties. One for build dependencies with brackets and one for assemblies without brackets.
> FIX:
> The assembly plugin should simply ignore possible dependency ranges and other things that are used. Larger projects use properties for version when there are several modules to manage.
> Plugin details: http://maven.apache.org/plugins/maven-assembly-plugin/
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)