Meanwhile I'm using the maxen-proxy based solution as suggested by Alexandre. 
Works fine for me.
 
Cheers,
Gerald

________________________________

FROM: Magnus Hagström [mailto:[EMAIL PROTECTED]
Sent: Mi 03/15/2006 12:02
To: [email protected]
Subject: [m2] Internal Repositories



It CAN be done, we wanted to do the same thing as you, here is how we did it.

1. Edit Settings.xml add -

<localRepository>c:/devtools/repository</localRepository> If you dont specify 
this all files would be downloaded to ~/repository. We didnt want that. We 
wanted a single repo for all files.

2. In your pom file add the following - Note the repository named "central" 
this is the "central ibiblio" that we are overwriting. If you want to download 
additional jar remove this repo.

<repositories>

<repository>

<id>central</id>

<url>file://c:\devtools\repository</url>

</repository>

</repositories>

<pluginRepositories>

<pluginRepository>

<releases />

<snapshots>

<enabled>false</enabled>

</snapshots>

<id>central</id>

<url>file://c:\devtools\repository</url>

</pluginRepository>

</pluginRepositories>

3. One drawback I havent figured out yet is that now I manually have to specify 
all the Maven plugins in my pom. Like this.

<build>

<plugins>

<plugin>

<artifactId>maven-install-plugin</artifactId>

<version>2.1</version>

</plugin>

<plugin>

<artifactId>maven-clean-plugin</artifactId>

<version>2.1</version>

</plugin>

...

</build>



Hope this helps

Magnus




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to