Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Activating Eclipse WTP Dynamic Web Project creates extraneous EAR projects #349

Open
lmsurpre opened this issue Oct 2, 2019 · 1 comment

Comments

@lmsurpre
Copy link

lmsurpre commented Oct 2, 2019

We have a multi-module Maven project that builds a mix of jar and war projects and we notice that, when we import these projects into eclipse as Existing Maven Projects (with Liberty Tools installed), it generates a corresponding EAR project for every dependency of the war project.

We've done some research on this and found others with similar issues like https://stackoverflow.com/questions/50613029/eclipse-import-existing-maven-projects-create-ear-project-automatically

The accepted answer claims this is an artifact of an older version of the WebSphere tools, but I'm seeing this behavior even with the latest WebSphere Liberty Tools (2019-09).

Unfortunately, we can't seem to find a way to disable/workaround this annoying behavior. We can either:

  1. disable wtp activation as described in that stack overflow post, then document how to enable project facets for the 2 web projects in our list; or
  2. instruct users to manually delete all the generated EAR projects

And in the case of number 1, I found that even if i just manually enable the Dynamic Web Module facet, clicking "Apply and Close" will generate a corresponding EAR project (but at least it doesn't generate an EAR project for all of its dependencies as well).

When I perform the same action using Eclipse 2019-09 WITHOUT the Liberty Tools, there are no extraneous EAR projects created.

@prb112
Copy link

prb112 commented Oct 2, 2019

I was able to replicate the behavior as well with a fresh workspace and git. If you want to clone https://github.com/ibm/fhir (it'll show the problem with fhir-parent and importing that project and submodules)

@theshovon-zz theshovon-zz removed their assignment Aug 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants