maven


How to have 2 interdependant modules with their own config in IntelliJ?


I am an Eclipse user having metaphysical question before fully switching to IntelliJ.
I have 2 Maven modules:
"main" module which is my main app which uses
"shared" module which is shared by misc applications
I'd like to:
work at the same time on both modules, meaning the changes in "shared" code would be automatically picked by my main app when I run it.
Ideally I would not have to be forced to create & install in my .m2 folder the artifact "shared-SNAPSHOT.jar" for my main app to use the updated code.
be able to work independantly on each one (own .idea containing each it's own launchconfiguration) while sharing in their own respective git repo their own configuration. It would mean:
each can have it's own set of launchconfigurations (the folders in the .idea where are defined the launch configurations)
each would have it's own code formatter setting
=> with this requirement, I want a new dev to be able to just git clone one project and work on it directly with minimal configuration.
What I managed to do:
If I open the "main" module with a .idea preconfigured inside it is ok: I directly have my formatter & my launch configs.
BUT if I then try to open the "shared" module, IntelliJ proposes:
either to open in a new window. The problem is then that I have to INSTALL the shared-SNAPSHOT.jar in my .m2 repo in order for the updated code to be seen by my main app. Is there any way for 2 IntelliJ windows to 'see' the code from one another ?
or to keep the same window, BUT it adds a new config for the imported "shared" module inside "main"'s .idea folder. Which I don't want because I'd like "main" module to be unaware of "shared" (apart from the maven dependency). And I don't want to force any colleague working on "main" to be forced to also import "shared".
Do you have a best practise for me or should I stay with Eclipse ;) ?

Related Links

Jenkins Integration with Automic for Pipeline Script
Nexus doesn't download the complete artifact content from the Central repository
How to implement auto-incrementing build number in maven project?
How to include particular file from a folder in maven install target directory?
SonarQube fails to connect to database with error “cannot load jdbc driver class 'com.mysql.jdbc.driver'”
How to prevent maven releasing a SNAPSHOT bom file?
Why is maven downloading the same artifact multiple times?
test-verify goal doesn't work with maven-soapui-extension-plugin
Double artifact resolution in Maven/Assembly plugin
What exactly is thread-count parameter in maven
How to build two different project in single repository, using jenkins
Apache spark Hive, executable JAR with maven shade
#Inject is not working in JAX-RS resource [duplicate]
Spring-WS Element Name Has More Than One Mapping
Can't execute “mvn clean package” task in GO CD
java.lang.IllegalStateException: Could not find backup for factory javax.faces.context.FacesContextFactory

Categories

HOME
proxy
keras
homebrew
youtube-dl
sqlite3
gps
serverspec
datastax-java-driver
django-imagekit
podio
facebook-messenger-bot
here-api
nstableview
collectd
windows-azure-storage
ups
angular-ui
serilog
database-replication
text-rendering
paging
xlsxwriter
csrf-protection
pass-by-reference
crystal-reports-2010
brunch
typo3-6.2.x
windowbuilder
google-cloud-nl
delicious-api
r-raster
bosh
column-family
catch-all
repo
espeak
libraries
uft-api
reportbuilder
elasticsearch-plugin
mapzen
g-code
dynamic-reports
glew
midl
import-from-excel
sas-jmp
smartcontracts
komodoedit
mplayer
csound
android-textview
xml-attribute
autorest
disque
oauth2client
rhino-servicebus
phpcas
tcpserver
marching-cubes
security-testing
embedded-code
apache-commons-fileupload
angular-local-storage
website-monitoring
ng-animate
android-imagebutton
rdtsc
id3v2
device-manager
gulp-less
issuu
code-access-security
resty-gwt
ember-charts
srs
listings
odata4j
bulkloader
padarn
mylyn
jquery-mobile-dialog
android-screen-support
kyotocabinet
coderush
frameset
manchester-syntax
dsn
twrequest
tridion-worldserver
hosts-file
online-compilation
whoosh
genshi
infobox
table-footer
h.323
asp.net-mvc-areas
mozilla-prism
data-driven
avatar
boost-smart-ptr
defensive-programming
3gp

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App