Re: How to specify local jars as dependencies?

2008-01-29 Thread Wendy Smoak
On Jan 29, 2008 6:53 AM, Martin Gainty <[EMAIL PROTECTED]> wrote:

> I've been looking for a way to specify a location that is guaranteed to
> contain
> PUBLICLY ACCESSIBLE LOCATION for ALL MAVEN2 PLUGINS
>
> Failing that.. is there a way to gain access to the plugins individually so
> we can d/l them to local drives ?

Might want to start a new thread, this seems unrelated to the OP's
need to refer to dependencies w/o installing them in the local repo.

The publicly accessible location is the central repo:
http://repo1.maven.org/maven2, but I'm sure you knew that already.
You can't guarantee "ALL" -- people are free to set up their own
repos.  OpenSymphony comes to mind, I don't think all of their stuff
is in central.

What is the problem you're trying to solve?

-- 
Wendy

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



Re: How to specify local jars as dependencies?

2008-01-29 Thread Martin Gainty
this answers how to specify groupId, artifactId and version which can be
passed to mvn via command line as
mvn -DgroupId=org.package -DartifactId=comercial-jar -Dversion=9.0

   org.package
   comercial-jar
   9.0

I've been looking for a way to specify a location that is guaranteed to
contain
PUBLICLY ACCESSIBLE LOCATION for ALL MAVEN2 PLUGINS

Failing that.. is there a way to gain access to the plugins individually so
we can d/l them to local drives ?

Thanks
Martin-

- Original Message -
From: "Angel Sotirov" <[EMAIL PROTECTED]>
To: "Maven Users List" 
Sent: Tuesday, January 29, 2008 7:19 AM
Subject: Re: How to specify local jars as dependencies?


> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> Andy Grove wrote:
> | Hi,
> |
> | I'm currently updating a code generator product to generate maven build
> | scripts as an alternative to Ant build scripts. Most of the
> dependencies in
> | the generated java code are open source jars and I can use the maven
> |  tags for those. However, the generated code also has
> | dependencies on commercial jars (such as Oracle JDBC drivers) that can
not
> | go into a public maven repository and that I cannot distribute with my
> | product. The user will already have these jars locally.
> |
> | How can I tell maven to put these local jars on the classpath when
> compiling
> | java code without using the dependency mechanism? I don't want to force
> | users to set up their own local repositories or to have to run maven
> | commands to install the jars in a local repository.
> |
> | Thanks,
> |
> | Andy.
> Greetings,
>
>
> ~We are doing almost the same thing using the dependency mechanism
> system that way the artifact is not looked up in the repository, instead
> it needs to be included in the runtime class path:
>
> 
> ~org.package
> ~comercial-jar
> ~9.0
> ~system
> 
>
> here is a complete reference for the dependency mechanism:
>
http://maven.apache.org/guides/introduction/introduction-to-dependency-mecha
nism.html
>
>
> Hope this helps,
>
> Angel.
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v2.0.8 (GNU/Linux)
>
> iEYEARECAAYFAkefGdgACgkQhgSIDFxSFd3TfwCgrCO5xCXitAhQ9IynbUMjp419
> B4AAn0HIYWFmdbPHCSKmiocFAf6bH4TT
> =rcJe
> -END PGP SIGNATURE-
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


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



RE: How to specify local jars as dependencies?

2008-01-29 Thread Andy Grove
Thanks for the prompt response. That's exactly what I needed.

Andy.

-Original Message-
From: Simon Kitching [mailto:[EMAIL PROTECTED] 
Sent: 29 January 2008 12:13
To: Maven Users List
Cc: Andy Grove
Subject: Re: How to specify local jars as dependencies?

 Andy Grove <[EMAIL PROTECTED]> schrieb:
> 
> Hi,
> 
> I'm currently updating a code generator product to generate maven build
> scripts as an alternative to Ant build scripts. Most of the dependencies in
> the generated java code are open source jars and I can use the maven
>  tags for those. However, the generated code also has
> dependencies on commercial jars (such as Oracle JDBC drivers) that can not
> go into a public maven repository and that I cannot distribute with my
> product. The user will already have these jars locally.
> 
> How can I tell maven to put these local jars on the classpath when compiling
> java code without using the dependency mechanism? I don't want to force
> users to set up their own local repositories or to have to run maven
> commands to install the jars in a local repository.

Sounds like a job for
  system

Regards, Simon


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



Re: How to specify local jars as dependencies?

2008-01-29 Thread Angel Sotirov

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Andy Grove wrote:
| Hi,
|
| I'm currently updating a code generator product to generate maven build
| scripts as an alternative to Ant build scripts. Most of the 
dependencies in

| the generated java code are open source jars and I can use the maven
|  tags for those. However, the generated code also has
| dependencies on commercial jars (such as Oracle JDBC drivers) that can not
| go into a public maven repository and that I cannot distribute with my
| product. The user will already have these jars locally.
|
| How can I tell maven to put these local jars on the classpath when 
compiling

| java code without using the dependency mechanism? I don't want to force
| users to set up their own local repositories or to have to run maven
| commands to install the jars in a local repository.
|
| Thanks,
|
| Andy.
Greetings,


~We are doing almost the same thing using the dependency mechanism 
system that way the artifact is not looked up in the repository, instead 
it needs to be included in the runtime class path:



~org.package
~comercial-jar
~9.0   
~system



here is a complete reference for the dependency mechanism:
http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html


Hope this helps,

Angel.
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.8 (GNU/Linux)

iEYEARECAAYFAkefGdgACgkQhgSIDFxSFd3TfwCgrCO5xCXitAhQ9IynbUMjp419
B4AAn0HIYWFmdbPHCSKmiocFAf6bH4TT
=rcJe
-END PGP SIGNATURE-


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



Re: How to specify local jars as dependencies?

2008-01-29 Thread Jeff MAURY
Try something like:


  com.sun
  tools
  ${java.version}
  system
  ${java.home}/../lib/tools.jar


Jeff

On Jan 29, 2008 1:13 PM, Simon Kitching <[EMAIL PROTECTED]> wrote:

>  Andy Grove <[EMAIL PROTECTED]> schrieb:
> >
> > Hi,
> >
> > I'm currently updating a code generator product to generate maven build
> > scripts as an alternative to Ant build scripts. Most of the dependencies
> in
> > the generated java code are open source jars and I can use the maven
> >  tags for those. However, the generated code also has
> > dependencies on commercial jars (such as Oracle JDBC drivers) that can
> not
> > go into a public maven repository and that I cannot distribute with my
> > product. The user will already have these jars locally.
> >
> > How can I tell maven to put these local jars on the classpath when
> compiling
> > java code without using the dependency mechanism? I don't want to force
> > users to set up their own local repositories or to have to run maven
> > commands to install the jars in a local repository.
>
> Sounds like a job for
>  system
>
> Regards, Simon
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
La mélancolie c'est communiste
Tout le monde y a droit de temps en temps
La mélancolie n'est pas capitaliste
C'est même gratuit pour les perdants
La mélancolie c'est pacifiste
On ne lui rentre jamais dedans
La mélancolie oh tu sais ça existe
Elle se prend même avec des gants
La mélancolie c'est pour les syndicalistes
Il faut juste sa carte de permanent

Miossec (2006)

http://www.jeffmaury.com
http://riadiscuss.jeffmaury.com


Re: How to specify local jars as dependencies?

2008-01-29 Thread Simon Kitching
 Andy Grove <[EMAIL PROTECTED]> schrieb:
> 
> Hi,
> 
> I'm currently updating a code generator product to generate maven build
> scripts as an alternative to Ant build scripts. Most of the dependencies in
> the generated java code are open source jars and I can use the maven
>  tags for those. However, the generated code also has
> dependencies on commercial jars (such as Oracle JDBC drivers) that can not
> go into a public maven repository and that I cannot distribute with my
> product. The user will already have these jars locally.
> 
> How can I tell maven to put these local jars on the classpath when compiling
> java code without using the dependency mechanism? I don't want to force
> users to set up their own local repositories or to have to run maven
> commands to install the jars in a local repository.

Sounds like a job for
  system

Regards, Simon

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