You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Anuerin Diaz <ra...@gmail.com> on 2005/11/01 14:49:22 UTC

[m2] using a local mirror

hi,

   i am new to maven and will be using it for a migration project that
i will be working with. i come from a solid Ant background so i am
still coming to gripes with some of the paradigm shift. excellent work
but since the documentation is rather sparse at the moment i will be
scouring the archives and this list for more information. :D

   i am currently researching about possible scenarios that we will
encounter on the migration and one such scenario is creating a
self-contained environment that will facilitate the setup of the
development environment. in this scenario, and even if it is
considered a bad idea, the maven plugins needed by the project will be
included and maintained in the version control system. with this i
need to specify that the "included repository" is checked when maven
is invoked.

   the problem i have is that either i am not doing this properly or
the <url/> element in the <mirror/> and <repository/> elements do not
support local file URLs (but there is no indication on the
documentation that this is true). i have tried adding this on the
"settings.xml" file:

   	<mirrors>
		<mirror>
			<id>localmirror</id>
			<name>Local mirror for development </name>
			<!--url>C:/Temp/workdir/repository</url-->
			<url>file:///C:/Temp/workdir/repository</url>
			<mirrorOf>central</mirrorOf>
		</mirror>
	</mirrors>

    as well as this in the "pom.xml" file:

      <repositories>
	<repository>
		<id>ENV-repo</id>
		<name>Local ENV repository</name>
		<url>file:///C:/Temp/workdir/repository</url>
		<layout>default</layout>
	</repository>
     </repositories>

   buth both to no avail. the necessary plug-ins are not being
retrieved from the "included repository" when the plugins fail to be
resolved on the local repository.

   the simplest solution would be to just set the <localRepository/>
element to the "included repository" but how is the <url/> element
really used by maven?

   thanks.

 ciao!

--

"Programming, an artform that fights back"

Anuerin G. Diaz
Registered Linux User #246176
Friendly Linux Board @ http://mandrivausers.org/index.php
http://capsule.ramfree17.org , when you absolutely have nothing else
better to do

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