У меня есть следующая структура проекта:Как включить скомпилированные классы из одного модуля maven в другой?
billing-project
|-- billing-shared
| |
| +-- pom.xml
|
|-- billing-console-configurator
| |
| +-- pom.xml
|
|-- billing-webapp
| |
| +-- pom.xml
|
+-- pom.xml
pom.xml
внутри billing-console-configurator
имеет следующую зависимость:
<dependencies>
<dependency>
<groupId>net.example.project</groupId>
<artifactId>billing-shared</artifactId>
<version>1.0</version>
</dependency>
</dependencies>
И мои billing-console-configurator
проекты использует классы из billing-shared
, IDE и Maven успешно компилировать billing-console-configurator
. Но когда я смотрю на billing-console-configurer-1.0.jar
, я не могу найти, скажем, SettingsHolder
класс, который находится внутри модуля billing-shared
.
Вопрос заключается в том, как сделать классы из billing-shared
для упаковки внутри billing-console-configurator
?
http://stackoverflow.com/questions/574594/how-can-i-create-an-executable-jar-with-dependencies-using-maven – rciovati
спасибо, работал как шарм – Kerb