houzecl wrote:
this is a question about forcing m2eclipse to use ONLY local index
In our corporate environment, internet acces is closed. Std policy does not
want to show what's available outside (say we've chosen junit 4.2 and this
is in our internal repository. we dont want to show junit 4.4 and therfore
developer wont have to chose something that is not available).
If I setup eclipse and maven settings so that I dont ahve any proxy access I
still get a central index.
It looks like it is built in m2eclipse and If I remove central index from
m2eclipse I get an error.
Is there anyway to use ONLY local index ?
I just tried to remove central.zip from the plugin. It does show the
NPE in the logs, but other then that it is harmless.
You can also package index for all your "approved jars" and distribute
it to your team.
First of all you'll need to get all jars into your local maven
repository (i.e. copy remote repository locally).
On windows default location is at
C:\Documents and Settings\<user name>\.m2\repository
but you can also change it from Maven's settings.xml
Then start Eclipse with m2eclipse plugin and kick "Reindex Local
Repository". It will build index for a local repository at
<workspace>\.metadata\.plugins\org.maven.ide.eclipse\index\local
Content of that folder will look something like this:
_21.cfs
segments.gen
segments_45
So, you need to zip it as central.zip and make sure that content is
correct (no folders in the archive):
>unzip -t central.zip
Archive: central.zip
testing: segments.gen OK
testing: _1w5.cfs OK
testing: segments_3sd OK
No errors detected in compressed data of central.zip
Then you simply can replace central.zip in the plugin.
We are working on better indexing support, so above manipulations
won't be needed. Stay tuned.
regards,
Eugene
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email