I have this app loaded in IntelliJ: all modules projects sources are loaded + the “acme-lib” projects too.
<modules>
<module>model</module>
<module>service</module>
<module>app</module>
</modules>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>com.acme</groupId>
<artifactId>acme-parent</artifactId>
<version>${acme.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<dependency>
<groupId>com.acme</groupId>
<artifactId>acme-lib</artifactId>
</dependency>
<dependency>
<groupId>com.acme</groupId>
<artifactId>acme-lib2</artifactId>
</dependency>
</dependencies>
The app module contains the Main class.
If I modify the sources of acme-lib, I need to launch manually the lifecycle maven install otherwise, the modifications are not taken when I launch the App with IntelliJ
Worse, If I modify the sources of service, again, I need to launch manually the lifecycle maven install otherwise, the modifications are not taken when I launch the App with IntelliJ.
The auto-build is activated.
Delegate IDE build/run actions to Maven is activated
In the ‘Launch’ configuration, “Do not build before run” is checked, otherwise it compile everything and it takes time!
How to make IntelliJ more automatic and avoid to run the lifecycle “install” every time?
NOTE: If I use Eclipse, I have to trouble, it build projects
automatically and it’s much faster.
Thanks!
PS: it’s IntelliJ Community 2024.1.1