Joe Germuska wrote:
I just to try build Struts with Maven, what am I doing wrong?
...
Attempting to download commons-validator-1.1.2-dev.jar.
WARNING: Failed to download commons-validator-1.1.2-dev.jar.
The build cannot continue because of the following unsatisfied
dependency:
The problem is that the project.xml file declares a dependency on a
version of commons-validator which isn't in your local Maven repository
and which is not in the shared repository.
Maven looked here:
http://ibiblio.org/maven/commons-validator/jars/
for
commons-validator-1.1.2-dev.jar
and as you can see if you follow that URL, it isn't there.
You can control the versions that Maven uses for dependencies by
specifying certain properties. (Full details at
http://maven.apache.org/reference/user-guide.html#Properties_Processing)
Probably the easiest way to set the properties would be to create or
edit build.properties in the root of your local Struts sandbox (same
directory where build.xml and project.xml are). Add the following lines:
maven.jar.override=on
maven.jar.commons-validator=1.1.1
That's a version of commons-validator that's on the shared Maven
repository, although I don't have time just at the minute to see if
Struts will still build against it!
Yes the above did the trick. I have update the Struts Wiki page.
Ta also.
You could also check out commons-validator and run "maven
jar:install-snapshot" and use
maven.jar.commons-validator=SNAPSHOT
instead.
Hope that helps. If we stick to our guns about avoiding dependencies on
unreleased software, this won't come up again... it's not Maven's fault!
==////==
--
Peter Pilgrim
__ _____ _____ _____
/ //__ // ___// ___/ + Serverside Java
/ /___/ // /__ / /__ + Struts
/ // ___// ___// ___/ + Expresso Committer
__/ // /__ / /__ / /__ + Independent Contractor
/___//____//____//____/ + Intrinsic Motivation
On Line Resume
||
\\===> `` http://www.xenonsoft.demon.co.uk/no-it-striker.html ''
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]