You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Oscar Picasso <os...@yahoo.com> on 2005/02/25 15:57:45 UTC

Ant build.xml and multiple maven.repo.remote

Hi,

I there a mean to create a working build.xml with the ant plugin when our
project uses more than one remote repository?

>From what I see, the ant plugin only takes ibiblio into account.

Thanks

Oscar


		
__________________________________ 
Do you Yahoo!? 
Yahoo! Sports - Sign up for Fantasy Baseball. 
http://baseball.fantasysports.yahoo.com/

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


Re: Ant build.xml and multiple maven.repo.remote

Posted by Brett Porter <br...@gmail.com>.
There's a couple of options:

1) use a plugin dependency.

Instead of plugin:install, run plugin:repository-install. Then on the
test project, temporarily add the plugin as a dependency.

2) use a different plugins directory

maven -Dmaven.plugin.dir=/tmp/maven/plugins
-Dmaven.plugins.unpacked.dir=/tmp/maven/cache plugin:install

Use the same properties for the test project.

http://www.apache.org/~brett/maven-stage-site/reference/properties.html

- Brett

On Sat, 26 Feb 2005 11:43:21 -0800 (PST), Oscar Picasso
<os...@yahoo.com> wrote:
> --- Arnaud HERITIER <aheritier@gmail.com > wrote:
> [...]
> > If you're able to provide a patch it will help us ;-)
> 
> I could give it a try.
> 
> But could you give some advise in that respect. When working on a plugin, say
> ant, if I need to test it against some arbitrary project.
> 
> I do something like:
> $ maven plugin:install
> 
> And it replace my working ant plugin version with
> maven-ant-plugin-<version>-SNAPSHOT.jar.
> 
> When I switch to other projects I am working on, I currently uninstall the
> plugins and resinstall the stable ant plugin.
> 
> It's annoying when you go back and forth from plugin development to other
> projects that need a stable plgin version.
> 
> There must be an easier way.
> 
> Thanks
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org 
> For additional commands, e-mail: users-help@maven.apache.org 
> 
>

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


RE: Ant build.xml and multiple maven.repo.remote

Posted by Arnaud HERITIER <ah...@gmail.com>.
Oscar,

Following your remarks, I updated the snapshot and the site.

Cheers.

Arnaud


> -----Message d'origine-----
> De : Arnaud HERITIER [mailto:aheritier@gmail.com] 
> Envoyé : dimanche 27 février 2005 23:11
> À : 'Maven Users List'
> Objet : RE: Ant build.xml and multiple maven.repo.remote
> Importance : Haute
> 
> Fixed (I hope).
> 
> Changes in this version include:
> 
>   New Features:
> 
> o Ant script looks for dependencies in several remote 
> repositories. Issue: 
>   MPANT-24. 
> o Add License file to jar META-INF. Issue: MPANT-23. Thanks 
> to Phil Steitz. 
> o Allow URL substitutions in generated build.xml files. 
> Issue: MPANT-20. 
>   Thanks to Dennis Lundberg,Craig McClanahan. 
> o Obey jar override and not attempt to download relative jars. Issue: 
>   MPANT-7. 
> o Ant user can set proxy settings. 
> o New property maven.ant.compatibility if you want a script 
> compatible with
>   ant 1.5 (actually for proxy settings). 
> 
>   Changes:
> 
> o "get-deps" target store downloads to the default local 
> maven repository
>   (${user.home}/.maven/repository). Issue: MPANT-21.  
> 
> To automatically install the plugin, type the following on a 
> single line:
> 
> maven plugin:download
>   -Dmaven.repo.remote=http://cvs.apache.org/repository
>   -DgroupId=maven
>   -DartifactId=maven-ant-plugin
>   -Dversion=SNAPSHOT
> 
> You'll find the documentation here :
> http://www.apache.org/~brett/maven-stage-site/reference/plugins/ant/
> 
> Cheers,
> 
> Arnaud
>  
> 
> > -----Message d'origine-----
> > De : Oscar Picasso [mailto:oscgoogle@yahoo.com] Envoyé : samedi 26 
> > février 2005 23:56 À : Maven Users List Objet : RE: Ant 
> build.xml and 
> > multiple maven.repo.remote Importance : Haute
> > 
> > --- Arnaud HERITIER <ah...@gmail.com> wrote:
> > [...]
> > > Finally I'm working on your issue (and some others) ;-) Can
> > you open
> > > it on Jira please ?
> > [...]
> > 
> > Done: MPANT-24.
> > 
> > Oscar
> > 
> > 
> > __________________________________________________
> > Do You Yahoo!?
> > Tired of spam?  Yahoo! Mail has the best spam protection around 
> > http://mail.yahoo.com
> > 
> > 
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> > 
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 




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


RE: Ant build.xml and multiple maven.repo.remote

Posted by Arnaud HERITIER <ah...@gmail.com>.
Fixed (I hope).

Changes in this version include:

  New Features:

o Ant script looks for dependencies in several remote repositories. Issue: 
  MPANT-24. 
o Add License file to jar META-INF. Issue: MPANT-23. Thanks to Phil Steitz. 
o Allow URL substitutions in generated build.xml files. Issue: MPANT-20. 
  Thanks to Dennis Lundberg,Craig McClanahan. 
o Obey jar override and not attempt to download relative jars. Issue: 
  MPANT-7. 
o Ant user can set proxy settings. 
o New property maven.ant.compatibility if you want a script compatible with 
  ant 1.5 (actually for proxy settings). 

  Changes:

o "get-deps" target store downloads to the default local maven repository 
  (${user.home}/.maven/repository). Issue: MPANT-21.  

To automatically install the plugin, type the following on a single line:

maven plugin:download
  -Dmaven.repo.remote=http://cvs.apache.org/repository
  -DgroupId=maven
  -DartifactId=maven-ant-plugin
  -Dversion=SNAPSHOT

You'll find the documentation here :
http://www.apache.org/~brett/maven-stage-site/reference/plugins/ant/

Cheers,

Arnaud
 

> -----Message d'origine-----
> De : Oscar Picasso [mailto:oscgoogle@yahoo.com] 
> Envoyé : samedi 26 février 2005 23:56
> À : Maven Users List
> Objet : RE: Ant build.xml and multiple maven.repo.remote
> Importance : Haute
> 
> --- Arnaud HERITIER <ah...@gmail.com> wrote:
> [...]
> > Finally I'm working on your issue (and some others) ;-) Can 
> you open 
> > it on Jira please ?
> [...]
> 
> Done: MPANT-24.
> 
> Oscar
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection 
> around http://mail.yahoo.com 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 




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


RE: Ant build.xml and multiple maven.repo.remote

Posted by Oscar Picasso <os...@yahoo.com>.
--- Arnaud HERITIER <ah...@gmail.com> wrote:
[...]
> Finally I'm working on your issue (and some others) ;-)
> Can you open it on Jira please ?
[...]

Done: MPANT-24.

Oscar


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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


RE: Ant build.xml and multiple maven.repo.remote

Posted by Arnaud HERITIER <ah...@gmail.com>.
Finally I'm working on your issue (and some others) ;-)
Can you open it on Jira please ?

It's easier to use 
$maven plugin:install-now

But it won't resolve your problem.
We can't downgrade a plugin (except manually)

Arnaud
 

> -----Message d'origine-----
> De : Oscar Picasso [mailto:oscgoogle@yahoo.com] 
> Envoyé : samedi 26 février 2005 20:43
> À : Maven Users List
> Objet : RE: Ant build.xml and multiple maven.repo.remote
> Importance : Haute
> 
> --- Arnaud HERITIER <ah...@gmail.com> wrote:
> [...]
> > If you're able to provide a patch it will help us ;-)
> 
> I could give it a try.
> 
> But could you give some advise in that respect. When working 
> on a plugin, say ant, if I need to test it against some 
> arbitrary project.
> 
> I do something like: 
> $ maven plugin:install
> 
> And it replace my working ant plugin version with 
> maven-ant-plugin-<version>-SNAPSHOT.jar.
> 
> When I switch to other projects I am working on, I currently 
> uninstall the plugins and resinstall the stable ant plugin.
> 
> It's annoying when you go back and forth from plugin 
> development to other projects that need a stable plgin version.
> 
> There must be an easier way.
> 
> Thanks
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection 
> around http://mail.yahoo.com 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 




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


RE: Ant build.xml and multiple maven.repo.remote

Posted by Oscar Picasso <os...@yahoo.com>.
--- Arnaud HERITIER <ah...@gmail.com> wrote:
[...]
> If you're able to provide a patch it will help us ;-)

I could give it a try.

But could you give some advise in that respect. When working on a plugin, say
ant, if I need to test it against some arbitrary project.

I do something like: 
$ maven plugin:install

And it replace my working ant plugin version with 
maven-ant-plugin-<version>-SNAPSHOT.jar.

When I switch to other projects I am working on, I currently uninstall the
plugins and resinstall the stable ant plugin.

It's annoying when you go back and forth from plugin development to other
projects that need a stable plgin version.

There must be an easier way.

Thanks

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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


RE: Ant build.xml and multiple maven.repo.remote

Posted by Arnaud HERITIER <ah...@gmail.com>.
Actually we haven't try to do it.
You can open an issue for this enhancement.

If you're able to provide a patch it will help us ;-)


Arnaud
 

> -----Message d'origine-----
> De : Oscar Picasso [mailto:oscgoogle@yahoo.com] 
> Envoyé : vendredi 25 février 2005 15:58
> À : maven
> Objet : Ant build.xml and multiple maven.repo.remote
> 
> Hi,
> 
> I there a mean to create a working build.xml with the ant 
> plugin when our project uses more than one remote repository?
> 
> From what I see, the ant plugin only takes ibiblio into account.
> 
> Thanks
> 
> Oscar
> 
> 
> 		
> __________________________________
> Do you Yahoo!? 
> Yahoo! Sports - Sign up for Fantasy Baseball. 
> http://baseball.fantasysports.yahoo.com/
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 




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