You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Marcel Vehof <mv...@corp.home.nl> on 2004/07/23 10:44:47 UTC

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.



RE: problem using snapshots in JAR override

Posted by Carlos Sanchez <ap...@carlos.cousas.net>.
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:mvehof@corp.home.nl] 
> Sent: Friday, July 23, 2004 10:45 AM
> To: 'users@maven.apache.org'
> 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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org