In the Maven User Guide
http://maven.apache.org/reference/user-guide.html#Overriding_Stated_Dependen
cies
it is stated that you can do
maven.jar.artifactId = [version]
eg.
maven.jar.classworlds = 1.0-beta-1

So that's the reason I tried to use SNAPSHOT as a version. 
Besides when I specify any version number other than SNAPSHOT, 
the JAR override works perfectly. 
Please explain to me why you consider using different version
numbers a very bad idea.




-----Original Message-----
From: Carlos Sanchez [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 23, 2004 11:38 AM
To: 'Maven Users List'
Subject: RE: problem using snapshots in JAR override


Hi,

You must specify the full name of the file

maven.jar.mylibrary=path_to_file/mylibrary-SNAPSHOT.jar

This is designed to use different file names, what you're doing using
different versions is a *very bad* idea.


Regards

Carlos Sanchez
A Coruņa, Spain

Oness Project
http://oness.sourceforge.net
 

> -----Original Message-----
> From: Marcel Vehof [mailto:[EMAIL PROTECTED]
> Sent: Friday, July 23, 2004 10:45 AM
> To: '[EMAIL PROTECTED]'
> Subject: problem using snapshots in JAR override
> 
> 
> Hello,
> 
> In our organization we want to use snapshot versions of some
> of our libraries, during developing.
> Normally, this would be done by stating the version number 
> for the library as SNAPSHOT in project.xml But this practice 
> is not allowed by our build managers, they only want 
> references to officially released versions in project.xml
> 
> So, I tried the JAR override feature and added the following
> to build.properties (since this file is not in version 
> control, the content is no problem for the build managers) :
> 
> maven.jar.override=on
> maven.jar.mylibrary=SNAPSHOT
> 
> This does not work as I expected, what happens is that the
> snapshot dependency is downloaded, but to the home directory 
> of the project, with filename "Snapshot".
> Also when building an EAR, the library ends up with filename 
> "Snapshot". Besides that this is not the correct name, it 
> will definitely not work if there are more than one snapshot 
> dependency in the project.
> 
> Does any one know how to solve this ?
> 
> 
> Marcel Vehof
> 
> ---
> This message is confidential and may be privileged. Any
> review, retransmission, dissemination or other use of, or 
> taking any action with reference to this information by 
> persons other than the intended recipient is prohibited. If 
> you received this message in error, please notify the sender 
> by reply e-mail and delete this message from all computers. 
> Please note that e-mails are susceptible to change. The 
> sender will not accept liability for the improper or 
> incomplete transmission of the information contained in this message.
> 
> 
> 



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

--- 
This message is confidential and may be privileged. Any review,
retransmission, dissemination or other use of, or taking any action with
reference to this information by persons other than the intended recipient
is prohibited. If you received this message in error, please notify the
sender by reply e-mail and delete this message from all computers. Please
note that e-mails are susceptible to change. The sender will not accept
liability for the improper or incomplete transmission of the information
contained in this message.


Reply via email to