Jason van Zyl wrote:

On Mon, 2004-05-10 at 09:49, Erik Husby wrote:


Idea supports the idea of path variables like Eclipse does. Setup one called MAVEN_REPO and point it at the repository root.



Do you have a little example of how this might work in the IDEA files?


If this could be done cleanly then it would be a step toward IDEA files
that could be made to work for everyone if they were checked out with a
project. It's also just easier for maintenance. If you happen to move
your local repo for whatever reason you're not hosed.



There is no magic here, just some incomplete documentation in IDEA.

Under IDE Settings, select "Path Variables", "Add..." and Name -- MAVEN_REPO, Value location of your local repository, in my case "Z:\.maven\repository"

Under Project settings, "Paths".
On the Paths tab, ensure that "For files outside project file directory: Use relative path" is set.


Now the annoying thing is that Idea will list the list the full filespec when you look at the libraries through the GUI. But if you look into the .IML file you will see references to $MAVEN_REPO$.

Now all the entries in the .IPR and .IML files will be relative so you can check them into source control and share them others.

And if you generate the .IPR and .IML files from Maven, and are using IDEA V4, put this line in your ~/build.properties file

maven.idea.project.version=4


-- Erik Husby Team Lead for Software Quality Automation Broad Institute Rm. 2192 320 Charles St Cambridge, MA 02141-2023 mobile: 781.354.6669, office: 617.258.9227, [EMAIL PROTECTED]


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



Reply via email to