Skip to content

poconnor-lab49/intellij_session-rootDirectory

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

IntelliJ IDEA resolving session.rootDirectory

Project resolution fails when maven.config uses ${session.rootDirectory}

Start a repository manager

Use some kind of repository manager. Everything is currently configured to use Reposilite listening on port 8080 as a repository manager.

It can be brought up with docker compose up using the provided compose.yaml file.

Deploy the dependencies to a mirror

Install to the repository manager that we’ll use as a mirror

$ pushd dependency1
$ ./mvnw clean deploy
$ popd
$ pushd dependency2
$ ./mvnw clean deploy
$ popd

Check your multimodule parent from a CLI

$ rm -rf ~/.m2/repository/com/lab49
$ pushd simple-parent
$ ./mvnw clean install
$ rm -rf ~/.m2/repository/com/lab49

Import the project to IntelliJ

Caution

Do not import the directory root.

You need to ONLY import simple-parent

Import the project to IDEA. Do dependencies resolve?

About

IntelliJ multimodule weirdness

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published