Maven multi-module projects
See original GitHub issueI’m trying to use spring-loaded on maven multi-module project. Simplified structure:
parent
|-- war project
`-- jar project
War project has jar project in maven dependencies. War project deployed in Tomcat with spring-loaded java agent. IDE - Intellij IDEA. When I modify code in war project, IDE compile *.java files in *.class files and place this files in ‘classes’ folder and spring-loaded successfully reload this code. But when I modify code in jar project, hot reload didn’t work, because jar project locate in ‘lib’ folder in builded war as *.jar file. I know, that spring-loaded can’t reload jar files, but maybe I can modify my build somehow? Any tips?
Issue Analytics
- State:
- Created 9 years ago
- Comments:19 (5 by maintainers)
Top Results From Across the Web
Multi-Module Project with Maven - Baeldung
A multi-module project is built from an aggregator POM that manages a group of submodules. In most cases, the aggregator is located in...
Read more >Guide to Working with Multiple Modules - Apache Maven
Guide to Working with Multiple Modules ... As seen in the introduction to the POM, Maven supports project aggregation in addition to project...
Read more >Maven - How to create a multi module project - Mkyong.com
Maven – How to create a multi module project · 1. Directory Structure · 2. Maven POM · 3. Parent Project · 4....
Read more >Multi-module projects - IntelliJ IDEA Guide - JetBrains
Multi -module projects · 1. Introduction · 2. Installing Maven · 3. Maven wrapper and importing projects · 4. Pom.xml file · 5....
Read more >Maven Multimodule Project: A Detailed View | by Anish Antony
Maven is a greater tool which makes build process easily. In Organizational projects, you can see there are different sub-modules.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Not sure why I didn’t mention this before but spring loaded has had a rebasepaths option for a while, this allows it to load from location X but watch location Y for changes. Maybe it can help here, maybe not. Something like:
Now when things are loaded
/a/b/c/com/foo/MyClass.class
, it will watch the file at/d/e/f/com/foo/MyClass.class
. Multiple path mappings can be passed (comma separated).Or at least that is the principal, I’m not sure there are lots of regression tests for it…
I have a problem, my multi-module project is finely running inside IntelliJ build but when I made an executable jar file from maven, the only index file run but all other classes didn’t work, why?