You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Ri...@ubs.com on 2004/12/23 14:34:47 UTC

Snapshot Dependency - Jar Overrides

Hi all,

I've been experimenting with my local Maven (v1.0.2) build environment the use of snapshot artifacts. I was wondering if people can confirm the following behaviour, or point out what I am doing wrong.

1. I find that if I try to override a dependency Jar that is defined in my POM as a SNAPSHOT version, the build fails saying that it cannot find the override path specified - even though the Jar file is there. If however, I change the dependency version in my POM to a fixed version number it works fine. Alternatively, if I build offline using 'maven -o', it also works fine.

Should I be able to override a SNAPSHOT dependency using a maven.jar.artifactId = [path] property?

2. If I use maven.repo.remote.enabled=false I always get build failures due to unsatisfied dependencies for my SNAPSHOT dependency Jars, even though they are present in my local repository. The Maven website infers that this shouldn't happen - that the build should use the Snapshot Jars that are in my local repository. If I use maven -o again, it works fine - with the usual warning of the possibility of out-of-date dependencies.

Are there additional properties I need to use to get these two features working?

Thanks in advance.

Regards,

Richard.

Visit our website at http://www.ubs.com

This message contains confidential information and is intended only 
for the individual named.  If you are not the named addressee you 
should not disseminate, distribute or copy this e-mail.  Please 
notify the sender immediately by e-mail if you have received this 
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free 
as information could be intercepted, corrupted, lost, destroyed, 
arrive late or incomplete, or contain viruses.  The sender therefore 
does not accept liability for any errors or omissions in the contents 
of this message which arise as a result of e-mail transmission.  If 
verification is required please request a hard-copy version.  This 
message is provided for informational purposes and should not be 
construed as a solicitation or offer to buy or sell any securities or 
related financial instruments.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Snapshot Dependency - Jar Overrides

Posted by Brett Porter <br...@gmail.com>.
> 1. I find that if I try to override a dependency Jar that is defined in my POM as a SNAPSHOT version, the build fails saying that it cannot find the override path specified - even though the Jar file is there. If however, I change the dependency version in my POM to a fixed version number it works fine. Alternatively, if I build offline using 'maven -o', it also works fine.

you're right. Can you file a JIRA issue?

> 2. If I use maven.repo.remote.enabled=false I always get build failures due to unsatisfied dependencies for my SNAPSHOT dependency Jars, even though they are present in my local repository. The Maven website infers that this shouldn't happen - that the build should use the Snapshot Jars that are in my local repository. If I use maven -o again, it works fine - with the usual warning of the possibility of out-of-date dependencies.

I think this may already be in JIRA.

You can use maven.mode.online=false, which is analogours to -o.

Cheers,
Brett

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org