Код: Выделить всё
├── lib-module
│ ├── pom.xml
├── extensions-bundle (extensions parent)
│ ├── pom.xml
│ └── extension-a (a module from the extensions parent)
│ ├── deployment (a module from extension-a)
| ├── runtime (a module from extension-a)
│ └── pom.xml
├── module-a
│ ├── pom.xml
│ └── src
│ ├── main
│ └── test
└── pom.xml (root)
< /code>
module-aКод: Выделить всё
runtimeКод: Выделить всё
deploymentroot pom имеет следующие модули:
module-a
lib-module
extensions-bundle
< /code>
When I do
Код: Выделить всё
$ cd module-a
$ mvn clean quarkus:dev
< /code>
It works flawlessly.
But when I run from the root
$ mvn clean package
< /code>
The build of the module-aDownloading from central: https://repo.maven.apache.org/maven2/io ... nt-1.0.jar
< /code>
The following happens:
[INFO] root ............................... SUCCESS [ 0.090 s]
[INFO] lib-a .............................. SUCCESS [ 1.529 s]
[INFO] extensions-bundle .................. SUCCESS [ 0.006 s]
[INFO] extension-a-parent ................. SUCCESS [ 0.004 s]
[INFO] extension-a-runtime ................ SUCCESS [ 0.891 s]
[INFO] module-a ........................... FAILURE [ 0.075 s]
[INFO] extension-a-deployment ............. SKIPPED
< /code>
and the build fails with the following error:
[ERROR] Failed to execute goal
io.quarkus.platform:quarkus-maven-plugin:3.17.7:generate-code
(default) on project extension-a-deployment: Quarkus code generation
phase has failed: Failed to bootstrap application in NORMAL mode:
Failed to resolve artifact io.matheus:extension-a-deployment:jar:1.0:
The following artifacts could not be resolved:
io.matheus:extension-a-deployment:jar:1.0 (absent): Could not find
artifact io.matheus:extension-a-deployment:jar:1.0 in central
(https://repo.maven.apache.org/maven2) -> [Help 1]
Any idea on how to fix this?
Подробнее здесь: https://stackoverflow.com/questions/794 ... an-package