spring boot - How to include workspace artifacts in the assembly using Appassembler maven plug-in? -


i'm using eclipse m2e in development environment, , have spring-boot maven project(can viewed standard maven jar project runnable main class in context) depends on maven project in same workspace(workspace artifact, let's call moduleb, sibling of spring-boot project), when run maven goal clean package(the appassembler:assemble goal can ommited because configured execution section of plugin, see configuration detail below), generated assembly in target directory seems fine, except jar of moduleb missing in repo. seems plugin trying copy every file under class folder in moduleb according log:

... [info] installing artifact ... [info] installing artifact /foo/bar/moduleb/target/classes /foo/bar/repo/groupid/artifactid/0.0.1-snapshot/moduleb-0.0.1-snapshot.jar [info] installing ... ... 

how resolve this? have install moduleb maven local repository before running assemble? there way bypass step because don't want mess repository unstable artifacts.

p.s. configuration of plugin:

<plugin>     <groupid>org.codehaus.mojo</groupid>     <artifactid>appassembler-maven-plugin</artifactid>     <version>1.10</version>     <configuration>         <configurationdirectory>conf</configurationdirectory>         <configurationsourcedirectory>src/main/resources</configurationsourcedirectory>         <copyconfigurationdirectory>true</copyconfigurationdirectory>         <includeconfigurationdirectoryinclasspath>true</includeconfigurationdirectoryinclasspath>         <assembledirectory>${project.build.directory}/someapp</assembledirectory>         <extrajvmarguments>-xms128m</extrajvmarguments>         <logsdirectory>logs</logsdirectory>         <repositorylayout>default</repositorylayout>         <repositoryname>repo</repositoryname>         <showconsolewindow>true</showconsolewindow>         <platforms>             <platform>windows</platform>             <platform>unix</platform>         </platforms>         <binfileextensions>             <unix>.sh</unix>         </binfileextensions>         <programs>             <program>                 <mainclass>someclass</mainclass>                 <id>app</id>                 <platforms>                     <platform>windows</platform>                     <platform>unix</platform>                 </platforms>             </program>         </programs>     </configuration>     <executions>         <execution>             <id>assemble</id>             <goals>                 <goal>assemble</goal>             </goals>         </execution>     </executions> </plugin> 

update #1:

i bypass spring-boot:repackage goal because encapsulates in 1 jar, including configuration files want conveniently editable in production environment. here's earlier question asked: alternatives distribute spring-boot application using maven (other spring-boot:repackage)


Comments