> -----Original Message-----
> From: Brett Porter [mailto:[EMAIL PROTECTED] 
> Sent: Friday, August 12, 2005 9:06 AM
> To: Maven Users List
> Subject: Re: [m2] Dependencies as resources
> 
> The resources don't currently copy dependencies.
> 
> This is something the assembly plugin does however (Creating 
> a tar/zip/jar including certain files, dependencies, etc).
> 

Ok... So the steps are jar:jar to jar my target, then assembly:assembly
to add a dependency jar file to that target archive?

My POM is included below.  Basically I just want to bundle the
kxml-1.2.1.jar dependency in the below POM in the root directory of my
target jar.  How do I use the assembly:assembly goal to do this?  I
didn't see anything in project descriptor documentation or at
http://maven.apache.org/maven2/plugins/maven-assembly-plugin/assembly-mo
jo.html that gives me many clues.

Thanks again for your help... 

  <build>
        <resources>
          <resource>
             <directory>res</directory>
                 <includes>
                    <include>metadata.*</include>
                 </includes>
                 <excludes>
                        <exclude>manifest.mf</exclude>
                 </excludes>
          </resource>
        </resources>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-osgi-plugin</artifactId>
        <version>1.0-SNAPSHOT</version>
        <configuration>
          <manifestFile>res/manifest.mf</manifestFile>
        </configuration>
      </plugin>
    </plugins>
  </build>
  <dependencies>
    <dependency>
      <groupId>kxml</groupId>
      <artifactId>kxml</artifactId>
      <version>1.2.1</version>
    </dependency>
        <dependency>
          <groupId>osgi</groupId>
          <artifactId>osgi-framework</artifactId>
          <version>1.2</version>
    </dependency>
  </dependencies>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to