You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Tim Astle <ti...@gmail.com> on 2018/05/24 01:23:11 UTC

Using Maven 3 with non-standard repository layout (Ivy)

I was wondering if anyone had any suggestions for working with a
non-standard repository layout?

Basically, I have a Maven 3 project but I need to fetch a fetch artifacts
from an Ivy repository.
http://ant.apache.org/ivy/history/2.0.0/use/info.html

Can Maven handle this directly?  If not, is there a way that I could put up
an "anti-corruption" repository as a proxy between Maven and the Ivy
repository that could transform one layout into the other (and cache the
results).

Any ideas are welcome.

Tim

Re: Using Maven 3 with non-standard repository layout (Ivy)

Posted by Francois MAROT <fr...@gmail.com>.
I would guess that Ivy can work a lot better with Maven repositories than
Maven can with Ivy repositories. I would investigate a one-shot scripted
migration of your Ivy repo to a new Maven repo and force existing publishers
to the Ivy repo to configure Ivy to publish to the new Maven repo.
But I can imagine that it involves politics to make existing Ivy publishers
change their publish mechanism...



--
Sent from: http://maven.40175.n5.nabble.com/Maven-Users-f40176.html

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


Re: Using Maven 3 with non-standard repository layout (Ivy)

Posted by Tim Astle <ti...@gmail.com>.
Thanks Robert,

Digging around led me to this option as well:
https://github.com/remis-thoughts/ivy-maven-plugin

Doing this isn't ideal, but more of a necessary evil for a proof of concept.

Thanks!

Tim

On Thu, May 24, 2018 at 1:50 PM, Robert Scholte <rf...@apache.org>
wrote:

> Maven 2 and Maven 3 both use the same structure for repositories ( which
> is called a maven2 repo. Yes the name is a bit confusing ).
> If you want Maven to work with a different kind of repository, e.g. ivy to
> maven2, you need to use a repository manager.
> The only one I am aware of that supports Ivy is Artifactory[1]
>
> thanks,
> Robert
>
> [1] https://www.jfrog.com/confluence/display/RTF/Working+with+Ivy
>
> On Thu, 24 May 2018 03:23:11 +0200, Tim Astle <ti...@gmail.com>
> wrote:
>
> I was wondering if anyone had any suggestions for working with a
>> non-standard repository layout?
>>
>> Basically, I have a Maven 3 project but I need to fetch a fetch artifacts
>> from an Ivy repository.
>> http://ant.apache.org/ivy/history/2.0.0/use/info.html
>>
>> Can Maven handle this directly?  If not, is there a way that I could put
>> up
>> an "anti-corruption" repository as a proxy between Maven and the Ivy
>> repository that could transform one layout into the other (and cache the
>> results).
>>
>> Any ideas are welcome.
>>
>> Tim
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

Re: Using Maven 3 with non-standard repository layout (Ivy)

Posted by Robert Scholte <rf...@apache.org>.
Maven 2 and Maven 3 both use the same structure for repositories ( which  
is called a maven2 repo. Yes the name is a bit confusing ).
If you want Maven to work with a different kind of repository, e.g. ivy to  
maven2, you need to use a repository manager.
The only one I am aware of that supports Ivy is Artifactory[1]

thanks,
Robert

[1] https://www.jfrog.com/confluence/display/RTF/Working+with+Ivy

On Thu, 24 May 2018 03:23:11 +0200, Tim Astle <ti...@gmail.com>  
wrote:

> I was wondering if anyone had any suggestions for working with a
> non-standard repository layout?
>
> Basically, I have a Maven 3 project but I need to fetch a fetch artifacts
> from an Ivy repository.
> http://ant.apache.org/ivy/history/2.0.0/use/info.html
>
> Can Maven handle this directly?  If not, is there a way that I could put  
> up
> an "anti-corruption" repository as a proxy between Maven and the Ivy
> repository that could transform one layout into the other (and cache the
> results).
>
> Any ideas are welcome.
>
> Tim

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