pluginmanagement version resolution

2007-11-08 Thread nehta

I have a maven project where a plugin being executed requies a dependency to
another project. I have put the dependency in the pluginmanagement section
of the parent pom as below. My problem is when preparing a release, the
snapshot versions are not resolved in the pluginmanagement section. Is there
a way to do this? I have been searching for a couple of days now and have
not found any documentation that is of help.

Thanks

pluginManagement
plugins
  plugin
groupIdanother.group/groupId
artifactIdother-artifact/artifactId
version2.0.6-SNAPSHOT/version
dependencies
  dependency
groupIdmy.group/groupId
artifactIdmy-artifact/artifactId
scopecompile/scope
version1.5-SNAPSHOT/version
  /dependency
/dependencies
  /plugin
/plugins  
  /pluginManagement
-- 
View this message in context: 
http://www.nabble.com/pluginmanagement-version-resolution-tf4776075s177.html#a13662083
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



maven release:prepare

2007-08-23 Thread nehta

Hi All,
  I am new to Maven and have figured out how to use most plugins that I
require. However, I am now trying to use the maven release:prepare plugin.
For the most part I have figured out how to do what I require, but I am
having trouble getting the update dependencies to work in batch mode. I have
a pom file that contains a dependency to a snapshot version of another
pproject. When I execute release:prepare in interactive mode, it checks for
dependency snapshots and prompts me if I want to resolve them now. The
default is no. This is my problem, in batch mode, the defaults are selected,
thus the dependecies are not resolved and the build fails. Is there any way
I can set this default value to yes so that when run in batch mode it will
resolve the dependencies for me? Any help would be greatly appreciated.

Thanks:confused: 
-- 
View this message in context: 
http://www.nabble.com/maven-release%3Aprepare-tf4320725s177.html#a12304158
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]