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

Spotify docker-maven-plugin unauthorized: authentication required public repo
maven integration test runOrder is not working
Maven SNAPSHOT version not loaded from Nexus
NoClassDefFoundError when using cxf-codegen-plugin with maven
Exclude hidden folders to generate archetype
How does Maven order modules in the reactor
CAS: How to overlay a package
Can child poms inherit dependency exclusions defined in the parent pom?
Failed to load class “org.slf4j.impl.StaticLoggerBinder” error
How to run maven plugin for only root of multimodule project [duplicate]
deploy maven project in tomcat8 in eclipse
One of the dependencies (ofbcore:ofbcore-xerces:jar:serializer) is nowhere to be found in the internet
What is the proper set up for Maven to communicate with Docker daemon on Mac?
Something like “mvn undeploy” to remove artifacts from Nexus?
artifactId equivalent in Gradle?
How to configure artifactory for private maven repository

Categories

HOME
ibm-bluemix
vim
pdf
wso2
gerrit
server
iterator
include
stock
bpmn
google-oauth
elm
bs4
kibana-4
facebook-php-sdk
nano-server
floating-action-button
imacros
django-admin
p-value
sqlcipher
semantic-analysis
rst2pdf
linkerd
ejabberd-module
primitive
bcd
fog
caret
framemaker
protovis
wallpaper
mapdb
ios5
dosbox
restlet
withings
theano.scan
avro4s
janrain
keydown
vao
acoustics
segment
wso2carbon
auto-update
angular-resource
hibernate-tools
dandelion
csound
ifs
query-performance
cubes
word-vba-mac
jquery-filter
firmata
passport-google-oauth
libpng
adxstudio-portals
player
gstreamer-0.10
prettytensor
qcustomplot
fadeout
ios4
goose
ptrace
uid
jfugue
purge
rgeo
riak-cs
cakephp-3.1
microbenchmark
sortedlist
web-controls
inmobi
nsmutabledictionary
facebook-graph-api-v2.4
tt-news
java.util.concurrent
android-imagebutton
qcodo
googlemock
rdl
zend-route
mesa
terminal-services
shellexecute
buster.js
back-stack
pushbackinputstream
html-editor
cassini-dev
wsdl-2.0
punbb
work-stealing
gnu-prolog
coercion
modelstate
firefox-5
photoshop-cs4
sector
multiple-languages

Resources

Database Users
RDBMS discuss
Database Dev&Adm
javascript
java
csharp
php
android
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App