Maven 2.x Eclipse Plugin

Ignore artifact version mismatches on creating references to sub-projects

Details

  • Patch Submitted:
    Yes
  • Number of attachments :
    2

Description

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

  1. ignore_version-2.3.patch
    19/Apr/07 11:21 AM
    3 kB
    Harald Braumann
  2. ignore_version-2.3.patch
    19/Apr/07 10:09 AM
    3 kB
    Harald Braumann

Issue Links

Activity

Hide
Harald Braumann added a comment -

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

Show
Harald Braumann added a comment - The first patch had a little error in the @parameter expression
Hide
Arnaud Heritier added a comment -

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.

Show
Arnaud Heritier added a comment - 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.

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: