Re: How to add SYSTEM scope dependency to manifest?

2009-08-14 Thread Brett Randall
If you can't or won't follow the advice to install the artifact into a
repository manager, then simply use install-file to install it to your
local repo, the change the scope to compile.

Best
Brett


On 8/13/09, REMIJAN, MICHAEL J [AG/1000] michael.j.remi...@monsanto.com wrote:
 There are many reasons why a project would use a JAR file which isn't in a
 repository. So I'm assuming Maven cannot be configured to handle this?   It
 seems to me if I can configure the dependencySet to include
 scopesystem/scope dependencies then I should also be able to make a
 similar configuration with the manifestaddClasspath.  Or is there
 another way of accomplishing the same thing?

 -Original Message-
 From: Brian Fox [mailto:bri...@infinity.nu]
 Sent: Wednesday, August 12, 2009 1:58 PM
 To: Maven Users List
 Subject: Re: How to add SYSTEM scope dependency to manifest?

 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 scopesystem/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 scopesystem/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



 -
 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



-- 
Sent from my mobile device

Re: How to add SYSTEM scope dependency to manifest?

2009-08-12 Thread Wayne Fay
 if a dependency is defined as scopesystem/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



RE: How to add SYSTEM scope dependency to manifest?

2009-08-12 Thread REMIJAN, MICHAEL J [AG/1000]
The jar is not in any repository so I read it off of the file system by setting 
the dependency to scopesystem/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 scopesystem/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



Re: How to add SYSTEM scope dependency to manifest?

2009-08-12 Thread Brian Fox
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 scopesystem/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 scopesystem/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



Re: How to add SYSTEM scope dependency to manifest?

2009-08-12 Thread Wayne Fay
 The jar is not in any repository so I read it off of the file
 system by setting the dependency to scopesystem
 /scope This is the only scope which can read jars
 off the file system.

You really must install this jar into a corporate repo (nexus etc) and
then depend on it with proper scopes. System scope is a bad idea in
general except for very specific uses -- and this is not one of them.

Wayne

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



RE: How to add SYSTEM scope dependency to manifest?

2009-08-12 Thread REMIJAN, MICHAEL J [AG/1000]
There are many reasons why a project would use a JAR file which isn't in a 
repository. So I'm assuming Maven cannot be configured to handle this?   It 
seems to me if I can configure the dependencySet to include 
scopesystem/scope dependencies then I should also be able to make a similar 
configuration with the manifestaddClasspath.  Or is there another way of 
accomplishing the same thing? 

-Original Message-
From: Brian Fox [mailto:bri...@infinity.nu] 
Sent: Wednesday, August 12, 2009 1:58 PM
To: Maven Users List
Subject: Re: How to add SYSTEM scope dependency to manifest?

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 scopesystem/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 scopesystem/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



-
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