System scope is meant for system objects that would be present on the
target os, something like MFC.dll etc. Using it to work around having
the jar in a repository is a definite anti-pattern.  Instead have it
uploaded to your Corporate Nexus repository.

On Wed, Aug 12, 2009 at 1:10 PM, REMIJAN, MICHAEL J
[AG/1000]<michael.j.remi...@monsanto.com> wrote:
> The jar is not in any repository so I read it off of the file system by 
> setting the dependency to <scope>system</scope> This is the only scope which 
> can read jars off the file system.  If the scope is changed to compile, Maven 
> will want to pull it from a repository.  The m2 plugin for eclipse gives an 
> error if <systemPath> is set and the scope is not system.
>
> -----Original Message-----
> From: Wayne Fay [mailto:wayne...@gmail.com]
> Sent: Wednesday, August 12, 2009 9:46 AM
> To: Maven Users List
> Subject: Re: How to add SYSTEM scope dependency to manifest?
>
>> if a dependency is defined as <scope>system</scope> then <addClasspath>
>> does not include it in the manifest.  I need to include it in the
>> manifest.  Any ideas?
>
> Is there a reason the obvious answer -- change it to a different scope
> eg compile -- is not acceptable?
>
> Wayne
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>
>
> ---------------------------------------------------------------------------------------------------------
> This e-mail message may contain privileged and/or confidential information, 
> and is intended to be received only by persons entitled to receive such 
> information. If you have received this e-mail in error, please notify the 
> sender immediately. Please delete it and all attachments from any servers, 
> hard drives or any other media. Other use of this e-mail by you is strictly 
> prohibited.
>
>
> All e-mails and attachments sent and received are subject to monitoring, 
> reading and archival by Monsanto, including its subsidiaries. The recipient 
> of this e-mail is solely responsible for checking for the presence of 
> "Viruses" or other "Malware". Monsanto, along with its subsidiaries, accepts 
> no liability for any damage caused by any such code transmitted by or 
> accompanying this e-mail or any attachment.
> ---------------------------------------------------------------------------------------------------------
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>

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

Reply via email to