Return-Path: Delivered-To: apmail-maven-dev-archive@www.apache.org Received: (qmail 59334 invoked from network); 18 Apr 2011 12:54:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 18 Apr 2011 12:54:29 -0000 Received: (qmail 17431 invoked by uid 500); 18 Apr 2011 12:54:29 -0000 Delivered-To: apmail-maven-dev-archive@maven.apache.org Received: (qmail 17367 invoked by uid 500); 18 Apr 2011 12:54:28 -0000 Mailing-List: contact dev-help@maven.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Maven Developers List" Reply-To: "Maven Developers List" Delivered-To: mailing list dev@maven.apache.org Received: (qmail 17359 invoked by uid 99); 18 Apr 2011 12:54:28 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Apr 2011 12:54:28 +0000 X-ASF-Spam-Status: No, hits=-0.1 required=5.0 tests=HTML_IMAGE_ONLY_32,HTML_MESSAGE,RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [148.87.113.121] (HELO rcsinet10.oracle.com) (148.87.113.121) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Apr 2011 12:54:21 +0000 Received: from acsinet15.oracle.com (acsinet15.oracle.com [141.146.126.227]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.2) with ESMTP id p3ICrwZk020112 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 18 Apr 2011 12:54:00 GMT Received: from acsmt358.oracle.com (acsmt358.oracle.com [141.146.40.158]) by acsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id p3ICrvVN010837 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 18 Apr 2011 12:53:57 GMT Received: from abhmt003.oracle.com (abhmt003.oracle.com [141.146.116.12]) by acsmt358.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id p3ICrulg004690 for ; Mon, 18 Apr 2011 07:53:56 -0500 Received: from [10.161.176.146] (/10.161.176.146) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 18 Apr 2011 05:53:56 -0700 Message-ID: <4DAC3462.1010008@oracle.com> Date: Mon, 18 Apr 2011 14:53:54 +0200 From: Lucas Persson Organization: Oracle Svenska AB User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.14) Gecko/20110223 Thunderbird/3.1.8 MIME-Version: 1.0 To: dev@maven.apache.org Subject: How to create a custom repository layout X-Enigmail-Version: 1.1.2 Content-Type: multipart/alternative; boundary="------------040409050805080502010706" X-Source-IP: acsmt358.oracle.com [141.146.40.158] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090203.4DAC3465.00AF:SCFSTAT5015188,ss=1,fgs=0 --------------040409050805080502010706 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Hi In Maven 2 I could define my own repository layout for remote repositories by implementing the org.apache.maven.artifact.repository.layout.ArtifactRepositoryLayout interface and drop the implementation in maven/lib. I understand that this is not supported in Maven3, but I still have a need to use other layouts then the "default". And using a repository manager is not an option (since our build must be completely standalone). Anyway I have seen a plugin that support other repository layouts; the Tycho plugin for Eclipse. But since that is actually a set of plugins that solve many different problems it is kind of hard for me to see what is needed to implement a custom repository layout. Is there some documentation for how a custom repository layout is supported in Maven3? Or at least is there some example plugin that I can take a look at? I got a tip that I can implement org.sonatype.aether.spi.connector.RepositoryConnectorFactory but I do not really understand how to package that into a maven plugin, or it is simply to use the element in the pom.xml? Any response is welcome. Thanks Lucas -- Oracle Lucas Persson | Principal Member of Technical Staff Phone: +4684773644 | | | Mobile: +46730946656 Oracle Communications Platform ORACLE Sweden | Folkungagatan 122 | 116 30 Stockholm Oracle Svenska AB, Kronborgsgr�nd 17, S-164 28 KISTA, reg.no. 556254-6746 Green Oracle Oracle is committed to developing practices and products that help protect the environment --------------040409050805080502010706 Content-Type: multipart/related; boundary="------------060801060406010208060907" --------------060801060406010208060907 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hi

In Maven 2 I could define my own repository layout for remote repositories by implementing the org.apache.maven.artifact.repository.layout.ArtifactRepositoryLayout interface and drop the implementation in maven/lib.

I understand that this is not supported in Maven3, but I still have a need to use other layouts then the "default".
And using a repository manager is not an option (since our build must be completely standalone).

Anyway I have seen a plugin that support other repository layouts; the Tycho plugin for Eclipse. But since that is actually a set of plugins that solve many different problems it is kind of hard for me to see what is needed to implement a custom repository layout.

Is there some documentation for how a custom repository layout is supported in Maven3?

Or at least is there some example plugin that I can take a look at?

I got a tip that I can implement
org.sonatype.aether.spi.connector.RepositoryConnectorFactory but I do not really understand how to package that into a maven plugin, or it is simply to use the <build><extensions><extension> element in the pom.xml?

Any response is welcome.
Thanks
Lucas




--
Oracle
Lucas Persson | Principal Member of Technical Staff
Phone: +4684773644 | | | Mobile: +46730946656
Oracle Communications Platform
ORACLE Sweden | Folkungagatan 122 | 116 30 Stockholm


Oracle Svenska AB, Kronborgsgränd 17, S-164 28 KISTA, reg.no. 556254-6746
Green
          Oracle Oracle is committed to developing practices and products that help protect the environment
--------------060801060406010208060907 Content-Type: image/gif; name="oracle_sig_logo.gif" Content-Transfer-Encoding: base64 Content-ID: Content-Disposition: inline; filename="oracle_sig_logo.gif" R0lGODlhcgAaAMQAAP8QEP/w8P/Q0P/g4P8wMP9gYP8gIP+goP9QUP+QkP+wsP9wcP+AgP9A QP/AwP8AAP///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA ACH5BAAAAAAALAAAAAByABoAAAX/ICSOZGmeaKqubOu+cCzPdC0GCqPvvBKUDp5wp1gFdIPV IDfcOQa6A8yRaO4gweQoUHh4v2Bw4SdihM9egyBF8ALIpkEXDR44vA2XwkD/IgYGAAZbbX1n BGRmhl8AWiUJYicCAIsPDFh4LXOGjQ4NAAhrEIUPBQcOqKmoB5sEZV4JqqoHhQVxlGAOJQG4 AAunsqg/dw95KwdfBgzBqKIEBMaQDwCiKpOwEIq6KANuJg14igZwEHPULMTGKbxetjF8D1It xK7aKl8lCl8DAfALW1+2rUi3QtqgGN2mwYCXzYvAON624LoEQZ9DEfRcEFSBIE2DjyBDfnyI qRgMcA8a/z5AZQWXOxEdHxwUgfIgsX/zMqlAWclVCQFefLpAqdJBAFJn3owgtpJEQkslEWjU mYLnomokcDlS4s0eFzQNqvXDEyzmAwFPyaXYmGJBuxlzELWIacueiE0AFGyF4HbaNTquUEpF RxUFUC9YXQzARYAkEJSNipKQ9kDu0i9SKKNZ9iXswMIoYgI4oJYFskpgzkkmcdrviELqmPVt 1HpRAaaLqCE1lBgjvEpqRtgl8Tevygd7TcCuiKvPm8OVEkAIYLYPThSsRIpEQJr1x94QBIT0 9FH6QJC6AiRAoB1kEb7tRb4MvyB+AwSlbejfz7+///8ABijggAQWaOCBCCao4A+CDDbo4IMQ RijhhBQKGAIAOw== --------------060801060406010208060907 Content-Type: image/gif; name="green-for-email-sig_0.gif" Content-Transfer-Encoding: base64 Content-ID: Content-Disposition: inline; filename="green-for-email-sig_0.gif" R0lGODlhLAAcAMQAAP///0x9RHmec9Pf0aa+oleFULHGrmKNW+nv6I+uivT39N7n3W6VZ7zP uZu2lsjXxYSmfwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA ACH5BAAAAAAALAAAAAAsABwAQAXhICCOZGmeaDoaReC+sKAMR7GopIA6boIvLgPAVSAgALxj SYdrOp/Q6NPgYqIEPkTBV2taTwgGbEw+PAZo3FfKbqMQQfeJ8DoY0Hg0wxhAKBgHCl5XLgMq DwFCAAIFPIYDgidrOUQGkSh0cQMJAQyXOXKhoqOkpaanI2aoIwMErq+uCY0BMlANKpxkYwQG BH82TpMicD0pAgQACToDAchqhAG3KQ4HIlQNnErG0IYqB9EAiEQvwEsozC43hy0CAeXMwsLD LS8MAvf497ruCZ+gOA0gfNt3AIK0J/JWKVzIsEQIADs= --------------060801060406010208060907-- --------------040409050805080502010706--