Priority
Normal
Type
Bug 
State
Fixed 
Assignee
Anton Makeev 
Subsystem
Maven Integration 
Affected versions
Fixed in
Fixed in build
Next build 
Build
7744
Fixed in build
8210
Severity
0
  • Submitted by   Christian Nelson
    23 months ago (05 Mar 2008 10:16)
  • Updated by   root
    3 weeks ago (17 Jan 2010 19:58)
  • Jira: IDEA-43125
    (history, comments)

IDEA-43125

Maven generated iml files differ slightly across machines, resulting in unwanted modified versioned files

0
Added by <no user>
15 Sep 2009
maven-iml-differences.jpg   (249 KB)
Added by <no user>
15 Sep 2009
dev-b-libs.jpg   (59 KB)
Added by <no user>
15 Sep 2009
dev-a-libs.jpg   (59 KB)

As recommended in the solution to IDEA-16836, we are versioning our ipr and iml files in subversion to be shared across team members. However, maven synchronization will result in slightly modified versions on different machines even when the pom.xml has not been changed. As a result, our module iml files often end up in the changes view when no real changes have been made.

The differences are related to whether or not a SNAPSHOT dependency has been built on the local machine or not. For example, if a dependency _has_ been built locally and exists in the local repository the following entry will be found in the iml:

{code:xml}
<containerElement type="library" name="com.carbonfive:migration:0.9-SNAPSHOT" level="module">
<attribute name="method" value="1" />
<attribute name="URI" value="/WEB-INF/lib/migration-0.9-SNAPSHOT.jar" />
</containerElement>

When the dependency was _not_ built locally and thus was resolved from a remote repository, the following entry is in the iml:

{code:xml} 
<containerElement type="library" name="com.carbonfive:migration:0.9-20080225.174438-4" level="module">
  <attribute name="method" value="1" />
  <attribute name="URI" value="/WEB-INF/lib/migration-0.9-SNAPSHOT.jar" />
</containerElement>


I've included a screen shot of the diff viewer comparing the two versions (maven-iml-differences.jpg).

Some of the developers do build some dependencies locally while others do not, so these files changes come up frequently and what's checked into subversion ping-pong's back and forth. Not only that, developers will see different library names in their IDEs (see dev-a-libs.jpg and dev-b-libs.jpg).

This appears to only be a cosmetic difference, as either version works in either environment. The name is used only for display, no?

Environment: Windows Xp

Issue was resolved
Comments (0)
 
History (1)
 
Links
 
Issue has no comments