Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [m2e-users] dependencies to projects in the workspace

Hi


On Sat, Mar 29, 2014 at 12:31 PM, Bruno Haible <bruno.haible@xxxxxxxxxx> wrote:
Hi,

With m2e 1.4.0.20130601 I observe that the "Maven Dependencies" container
of a
Java project with m2e nature will contain
  * references to artifacts for
    - projects that are not loaded in the workspace,
    - projects that are loaded in the workspace and don't have m2e nature,
    - third-party libraries.
  * references to workspace projects for
    - projects that are loaded in the workspace and have m2e nature.


IIRC it is more exactly  

 - projects that are loaded in the workspace and have m2e nature *and have the right version*.

IMO this is the point that will be hard to do right if you want to have workspace reference for non m2e project.


The developer experience in Eclipse is much better when using references
to
workspace projects than with artifacts:
  - After navigating to a class, the developer can directly edit its
source code.
    Whereas an artifact's source code cannot be edited.
  - When debugging, it provides a great productivity boost to be able to
edit
    the source code on the fly, save it, and continue with the same
debugging
    session.
  - When not debugging, changes to the other project's source code are
taken
    into account directly by Eclipse, when no artifacts are used. Whereas
with
    artifacts, the developer needs to launch a Maven build and then a
Refresh
    on the project that uses the artifact.

What I would like to have is that the "Maven Dependencies" container
contains
  * references to artifacts for
    - projects that are not loaded in the workspace,
    - third-party libraries.
  * references to workspace projects for
    - projects that are loaded in the workspace and have m2e nature,
    - projects that are loaded in the workspace and don't have m2e nature,

Is there a way to configure m2e to this effect?

If not, is it a bug or a design choice?

Best regards,
----------------------------------------------------------------------------
Bruno Haible                            Email: <bruno.haible@xxxxxxxxxx>
IBM Deutschland
Wilhelm-Fay-Straße 30-34
65936 Frankfurt am Main
Germany
----------------------------------------------------------------------------
IBM Deutschland Research & Development GmbH
Geschäftsführung: Dirk Wittkopp
Sitz der Gesellschaft: Böblingen
Registergericht: Amtsgericht Stuttgart, HRB 243294

_______________________________________________
m2e-users mailing list
m2e-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/m2e-users



--
Adrien Rivard

Back to the top