Maven 2.x Eclipse Plugin

Workspace inspection when adding a project

Details

  • Type: New Feature New Feature
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Duplicate
  • Affects Version/s: 2.1
  • Fix Version/s: 2.5
  • Labels:
    None
  • Number of attachments :
    0

Description

The eclipse plugin should lookup which project is present in a workspace and update/create the project in function of what is already present.

Scénario 1 : Module A use module B. Module B is already present as a project in the workspace. When adding A, the created project A should be dependent of the project B instead of dependent of the jar in the repository.

Scénario 2 : idem, but A is first added, then B. When B is added, the project A is updated in order to be dependent of B instead of the jar in the repository.

Scénario 3 : Add a goal to remove a project (and update dependencies accordingly).

Of curse all those scenario should take into account the version numbers present in the poms inside the project.

This is an alternative to MECLIPSE-32 .

Issue Links

Activity

Hide
Richard van Nieuwenhoven added a comment -

MECLIPSE-344 automatically connects workspace projects / artefacts as project references.

Show
Richard van Nieuwenhoven added a comment - MECLIPSE-344 automatically connects workspace projects / artefacts as project references.
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 (3)
Watch (2)

Dates

  • Created:
    Updated:
    Resolved: