question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Maven multi-module projects

See original GitHub issue

I’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:open
  • Created 9 years ago
  • Comments:19 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
aclementcommented, Sep 25, 2015

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:

-Dspringloaded=rebasePaths=/a/b/c=/d/e/f

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…

0reactions
sunilpoudel123commented, Jan 13, 2019

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?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found