Skip to content

Parent pom (in multi-module project) permanently cached after first build #1481

@pn-santos

Description

@pn-santos

Affected version

1.0.3

Bug description

In a multi-module project, e.g.

├── module-1
│   ├── src
│   └── pom.xml
├──module-2
│   ├── src
│   └── pom.xml
└── pom.xml

after the first (per mvnd instance) build is run (from the root of the project), e.g.

mvnd package

the (multi-module) parent pom seems to be persistently cached by mvnd. Changes to the parent pom are simply ignored until the mvnd is restarted.

Be it

mvnd package

or even

mvnd clean package

will re-use the parent pom that was initially loaded.

If any of the modules pom files are changed though, that is picked up by mvnd. But the project parent pom seems to never be refreshed/reloaded. Doing

mvnd --stop

followed by

mvnd package

will pick up the changed parent pom.

In a non multi-module project no such issue occurs.

If I use mvn I have no such issue.

My mvnd command is aliased to this (not sure if relevant):

mvnd -ntp \
  -s path/to/maven/settings.xml \
  -Dmaven.repo.local=path/to/local/repo \
  -Daether.dependencyCollector.impl=bf

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions