-
Notifications
You must be signed in to change notification settings - Fork 29
Description
Here the structure of my maven project
Project (0.1.1-SNAPSHOT)
|
L---- pom.xml
|
L---- MODULE-A
|
L---- pom.xml that include a depency to MODULE-COMMON-0.1.1-SNAPSHOT
|
L____ MODULE-COMMON
|
L---- pom.xml
When I launch a mvn clean install in the Project directory, everything seems fine. However, when I look the Project/MODULE-A/target/php-deps directory, I've got no MODULE-COMMON's files. However the MODULE-COMMON's phar file is correctly generated in its target directory.
When I analyse the mvn trace, the MODULE-COMMON build is correctly launched before the MODULE-A's build. When maven resolve the MODULE-A's dependencies, the MODULE-COMMON phar is found and a log message is print :
[INFO] Unpacking dependencies...
[INFO] Extracting D:\utilisateurs\lcotonea.m2\repository\com\xxx\MODULE-COMMON\0.1.1-SNAPSHOT\MODULE-COMMON-0.1.1-SNAPSHOT.phar to target
directory
However if I launch build with the debug flag (-X), I've no further messages during the MODULE-COMMON's phar extraction. But for another external dependency, I've some verbose messages during phar extraction.
Then I've done this last test:
- I've build and install MODULE-COMMON by launching mvn clean install int he Project/MODULE-COMMON directory.
- I've disabled the MODULE-COMMON module by deleteing the line MODULE-COMMON in the Project's pom file.
- I've build the Project by launching mvn clean install in the Project directory
===> And everything work fine.
So I think there is a bug in the phar location/extraction in a multi module project with internal dependencies.
I'm available to deliver you a test project if you want.