On Tue, Dec 13, 2011 at 11:55 AM, Amit Bhargava <[email protected]> wrote:
> Thanks Ron. It worked.
>
> Another question, if I may :
>
> In my pom, I had already specified the local repository using the
> <repositories> tag as follows
>
>         <repositories>
>                <repository>
>                  <id>local1</id>
>                  <name>My First Repository</name>
>                  <url>file://d:/apache-maven-3.0.3/repository</url>
>                  <layout>default</layout>
>                </repository>
>        </repositories>
>
> However, in distribution management, I had to give the details for the same
> repository as follows
>
>         <distributionManagement>
>                <repository>
>                        <id>local1</id>
>                        <name>My First Repository</name>
>                        <url>file://d:/apache-maven-3.0.3/repository</url>
>                </repository>
>        </distributionManagement>
>
> Seems to be a bit of a redundancy. Is there any way to avoid this?

Dont specify stuff in repositories>repository.
If this is stuff to be consumed by others then they also need access
to your repository.

Instead in your ~/.m2/settings.xml you will configure a mirror for
everything and point it to your locally accessible repository manager.
Then you get the admin of the repository manager to configure it to
know about any repositories you need. (e.g. Central, your local repo
for snapshots and releases, third party non-free binaries, etc)

I can highly recommend you read one of the freely available books (see
http://maven.apache.org/articles.html)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to