Issue Details (XML | Word | Printable)

Key: MECLIPSE-260
Type: New Feature New Feature
Status: Closed Closed
Resolution: Duplicate
Priority: Minor Minor
Assignee: Arnaud Heritier
Reporter: Harald Braumann
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
Maven 2.x Eclipse Plugin

Ignore artifact version mismatches on creating references to sub-projects

Created: 19/Apr/07 10:09 AM   Updated: 31/Jan/08 08:07 AM   Resolved: 31/Jan/08 08:07 AM
Component/s: Core : Dependencies resolution and build path (.classpath)
Affects Version/s: None
Fix Version/s: 2.5

Time Tracking:
Not Specified

File Attachments: 1. Text File ignore_version-2.3.patch (3 kB)
2. Text File ignore_version-2.3.patch (3 kB)

Issue Links:
Duplicate
 
Related
 

Patch Submitted: Yes


 Description  « Hide

Currently the maven-eclipse-plugin only creates project references, if the version of the dependency equals exactly the version of the checked out artifact.

This is inconvenient during development, where I want to keep the inter-project dependencies, even if I change some versions.

The attached patch adds the parameter ignoreArtifactVersions. If this is set to true, the plugin will create inter-project dependencies, regardless of version mismatches.

The patch is created against version 2.3 but applies (with warnings) also to current HEAD



Harald Braumann added a comment - 19/Apr/07 11:21 AM

The first patch had a little error in the @parameter expression


Arnaud Heritier added a comment - 31/Jan/08 08:07 AM

This issue is considered as fixed with MECLIPSE-344.
To try the latest SNAPSHOT (2.5-20080131.135640-18) of the incoming version you have to define and activate this profile :

<profile>
      <id>apache.snapshots</id>
      <repositories>
        <repository>
          <releases>
            <enabled>false</enabled>
          </releases>
          <snapshots/>
          <id>apache.snapshots</id>
          <name>Maven Snapshots</name>
          <url>http://people.apache.org/maven-snapshot-repository</url>
        </repository>
      </repositories>
      <pluginRepositories>
        <pluginRepository>
          <releases>
            <enabled>false</enabled>
          </releases>
          <snapshots/>
          <id>apache.plugin.snapshots</id>
          <name>Maven Plugin Snapshots</name>
          <url>http://people.apache.org/maven-snapshot-repository</url>
        </pluginRepository>
      </pluginRepositories>
    </profile>

Then you have to call this command :

mvn org.apache.maven.plugins:maven-eclipse-plugin:2.5-SNAPSHOT:eclipse

If you think that your problem isn't resolved, please give us your feedback and we'll reopen the issue.