I'm using IntelliJ 8.1.3, and learning to work with Maven2.
I've created a project, and have defined several dependencies, and everything works fine.
The problem is that the location of my maven repository is set to d:\maven_repository, so the libraries IPR points to this location:
<library name="Maven: javax.jws:jsr181-api:1.0-MR1">
<root url="jar://d:/maven_repository/javax/jws/jsr181-api/1.0-MR1/jsr181-api-1.0-MR1.jar!/" />
<root url="jar://d:/maven_repository/javax/jws/jsr181-api/1.0-MR1/jsr181-api-1.0-MR1-javadoc.jar!/" />
<root url="jar://d:/maven_repository/javax/jws/jsr181-api/1.0-MR1/jsr181-api-1.0-MR1-sources.jar!/" />
When another user tries to work with the IPR (that we share using source control), IntelliJ cannot find this library, since it points to d:\maven_repository. Running a maven build works, but when editing a java file in IntelliJ it doesn't recognize any of the classes in this library, and I can't use them.
How can this be solved? Can't the IPR point to the root of the repository using a variable instead of a hard-coded path?