[
http://jira.codehaus.org/browse/MWEBSTART-116?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=134190#action_134190
]
Kevin Stembridge commented on MWEBSTART-116:
--------------------------------------------
Hi Deckrider,
I can't say that I'm a big fan of dependencyManagement for specifying version
numbers. Almost every developer on my team has tripped over it at one point or
another.
It usually goes something like ...
"The error says that I haven't provided a version number for my new dependency,
but neither does the dependency that I copied from."
Any time-saving that dependencyManagement is supposed to give me is all used up
the first time a developer hits the above problem (not to mention the 2nd, 3rd,
4th...). I now specify the version numbers of all my dependencies as properties
in the parent pom.
E.G.
{code:xml}
<properties>
<log4j.version>1.2.14</log4j.version>
<spring.version>2.5.1</spring.version>
</properties>
{code}
As per dependencyManagement, it allows me to specify the version number in a
single location, with virtually the same amount of up-front effort. But it also
has the added advantage of being a layer of indirection that is easier for
developers to follow and saves the team a lot of time in the long run.
> jnlp-download-servlet should use dependencyManagement
> -----------------------------------------------------
>
> Key: MWEBSTART-116
> URL: http://jira.codehaus.org/browse/MWEBSTART-116
> Project: Maven 2.x Webstart Plugin
> Issue Type: Improvement
> Components: jnlp-download-servlet
> Affects Versions: 1.0-alpha-2
> Environment: all
> Reporter: deckrider
>
> Within jarResources, version should not be required. If it is not provided,
> it should be inherited from dependencyManagement.
> However, when I try follow that approach, I get this:
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Configuration error: groupId, artifactId or version missing for
> jarResource[JarResource[ groupId='jboss', artifactId='jbossall-client',
> version='null', classifier='null', mainClass='null' ]].
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email