History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEADEV-25221
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Normal Normal
Assignee: Anton Makeev
Reporter: Christian Nelson
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
IDEA: Development

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

Created: 05 Mar 08 10:16   Updated: 05 Mar 08 17:51
Component/s: Maven Integration
Fix Version/s: Selena 7.0.4

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown
File Attachments: None
Image Attachments:

1. dev-a-libs.jpg
(59 kb)

2. dev-b-libs.jpg
(59 kb)

3. maven-iml-differences.jpg
(249 kb)
Environment: Windows Xp

Build: 7,744
Fixed in build: 8,210
Severity: High


 Description  « Hide
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:

<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:

<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?



 All   Comments   Work Log   Change History      Sort Order:
There are no comments yet on this issue.