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

Dev mode multi module - automate workaround to install ear project to .m2 #1176

Closed
ericglau opened this issue Jun 28, 2021 · 1 comment · Fixed by #1183
Closed

Dev mode multi module - automate workaround to install ear project to .m2 #1176

ericglau opened this issue Jun 28, 2021 · 1 comment · Fixed by #1183

Comments

@ericglau
Copy link
Contributor

If the module containing Liberty configuration (specifically, the module without downstream dependencies) has packaging type liberty-assembly or pom and depends on a module of type ear, the user currently needs to install the ear project to the .m2 directory once before running dev mode:  mvn install -pl <ear-module> -am

Dev mode should try to automate this workaround to install the ear project (unless the ear artifact already exists in .m2) before starting dev mode on the liberty-assembly or pom module.

ericglau added a commit to ericglau/ci.maven that referenced this issue Jun 29, 2021
ericglau added a commit that referenced this issue Jun 30, 2021
* Add multi module test projects

* Substitute LMP version in testcases

* Add multi module IT

* Add testcases

* Add more testcases

* Fix test variables

* Fix copyrights

* Check for app name

* Do not expect unit tests to run on ear projects

* Add test for multi module run

* Print log on assert failure

* Workaround for #1176

* Fix plugin version
@ericglau ericglau self-assigned this Jun 30, 2021
jjiwooLim pushed a commit to jjiwooLim/ci.maven that referenced this issue Sep 2, 2021
* Add multi module test projects

* Substitute LMP version in testcases

* Add multi module IT

* Add testcases

* Add more testcases

* Fix test variables

* Fix copyrights

* Check for app name

* Do not expect unit tests to run on ear projects

* Add test for multi module run

* Print log on assert failure

* Workaround for OpenLiberty#1176

* Fix plugin version
@scottkurz
Copy link
Member

The #1570 fix addresses this problem without adding/purging from the local .m2 repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants