maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eric Redmond" <eric.redm...@gmail.com>
Subject Re: Custom packaging type
Date Wed, 31 Jan 2007 08:08:56 GMT
If that does not work, check out the assembly plugin[1].

Eric

[1] http://maven.apache.org/plugins/maven-assembly-plugin/

On 1/31/07, 秋秋 <qingqiuliu@gmail.com> wrote:
>
> Hi,
>    I think you have met with the same issue with me,I hope the following
> configuration can help you:
> <--builder jar and war-->
> <build>
>   <sourceDirectory>src/main/java</sourceDirectory>
>   <testSourceDirectory>src/test</testSourceDirectory>
>   <outputDirectory>target/classes</outputDirectory>
>   <testOutputDirectory>target/test-classes</testOutputDirectory>
>   <resources>
>    <resource>
>     <directory>src/main/java</directory>
>     <includes>
>
> <--this comfiguration can package the xml file which are distribute the
> different directory with .java files together-->
>
>
>      <include>**/*.xml</include>
>     </includes>
>    </resource>
>    <resource>
>
> <-<-directory > appoint the file's address-->
>
>     <directory>src/main/config/ejb</directory>
>
> <--<targetPath>appoint the address where you want to package-->
>
>     <targetPath>META-INF/</targetPath>
>
> <--<include>appoint whick files you want to  package-->
>
>     <includes>
>      <include>*.xml</include>
>     </includes>
>    </resource>
>    <resource>
>     <directory>src/main/config/biz</directory>
>     <includes>
>      <include>*</include>
>     </includes>
>    </resource>
>    <resource>
>     <directory>src/main/process</directory>
>     <targetPath>./</targetPath>
>    </resource>
>   </resources>
>
>
> 2007/1/31, Rahamim, Zvi (Zvi) <zrahamim@avaya.com>:
>
> > Hi,
> > I have a new project type,
> > In this type I need to create a zip file that contain both directory
> > structure from version control and dependency files (e.g. jars/wars...)
> > (each file should be copied to a specific path - and this should be
> > configured in the pom.xml file)
> > It seems that I need to overwrite the prepare-sources and package and in
> > addition use the default install and deploy phases.
> >
> > Can you give me a hint how to start with it?
> > Thanks!
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
>
>


-- 
Eric Redmond
http://codehaus.org/~eredmond

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message