Maven: Building a sar and adding files -


i building sar archive filetype. using using jboss-packaging-maven-plugin org.codehaus.mojo. however, i'll happy use regular maven-ear-plugin if can need.

the sar file i'm building bit strange. libraries kept in root directory (no problem that), there few dozen additional properties files , xml files packed sar.

i looking @ documentation of both jboss-packaging-maven-plugin , maven-ear-plugin, don't see way specify additional files in <configuration> section (such <fileset> parameter). switch assembly , build sar way, doesn't assemblies sar formats (at least default).

so, how add these additional property files sar either through maven-ear-plugin or jboss-packaging-maven-plugin?

is possible in assembly specify different format other standard formats? if so, how go that?

here's pom.xml.

<project>   <modelversion>4.0.0</modelversion>   <parent>     <groupid>com.vegicorp</groupid>     <artifactid>parent</artifactid>     <version>1.0.0</version>   </parent>   <artifactid>child-sar</artifactid>   <packaging>jboss-sar</packaging>   <version>1.0.0</version>    <build>     <plugins>       <plugin>         <groupid>org.codehaus.mojo</groupid>         <artifactid>jboss-packaging-maven-plugin</artifactid>         <version>2.2</version>         <extensions>true</extensions>         <configuration>           <!-- here dragons -->           <deploymentdescriptorfile>${project.parent.basedir}/config/jboss/jboss-service.xml</deploymentdescriptorfile>           <libdirectory>${project.build.directory}/${project.build.finalname}</libdirectory>         </configuration>       </plugin>     </plugins>   </build>   <dependencies>     <dependency>       <groupid>com.vegicorp</groupid>       <artifactid>child-jar</artifactid>       <version>1.0.0</version>     </dependency>     <dependency>       <groupid>com.vegicorp</groupid>       <artifactid>child-jar</artifactid>       <classifier>mdb</classifier>       <version>1.0.0</version>     </dependency>   </dependencies> </project> 

and, i'd avoid maven-antrun-plugin if possible.

the maven assembly plugin build sar artifacts though doesn't mention in documentation. switched using assemblies , works.


Comments

Popular posts from this blog

account - Script error login visual studio DefaultLogin_PCore.js -

xcode - CocoaPod Storyboard error: -