Hi Nishant,

I'm using maven-dependency-plugin's copy goal (copy-dependencies copies all
of the dependencies I think) to copy shared jars to my
tomcat-home/shared/lib.

(
http://maven.apache.org/plugins/maven-dependency-plugin/examples/copying-artifacts.html
)

-- Dan

  <build>
    <plugins>
      <plugin>
        <artifactId>maven-dependency-plugin</artifactId>
        <executions>
          <execution>
            <id>copy</id>
            <phase>package</phase>
            <goals>
              <goal>copy</goal>
            </goals>
            <configuration>
              <artifactItems>
                <artifactItem>
                  <groupId>postgresql</groupId>
                  <artifactId>postgresql</artifactId>
                  <version>8.1-404.jdbc3</version>
                  <type>jar</type>
                </artifactItem>
                <artifactItem>
                  <groupId>log4j</groupId>
                  <artifactId>log4j</artifactId>
                  <version>1.2.8</version>
                  <type>jar</type>
                </artifactItem>
                <artifactItem>
                  <groupId>commons-dbcp</groupId>
                  <artifactId>commons-dbcp</artifactId>
                  <version>1.2.1</version>
                  <type>jar</type>
                </artifactItem>
                <artifactItem>
                  <groupId>commons-pool</groupId>
                  <artifactId>commons-pool</artifactId>
                  <version>1.2</version>
                  <type>jar</type>
                </artifactItem>
              </artifactItems>
              <outputDirectory>${tomcat.path}/shared/lib</outputDirectory>
              <overWriteIfNewer>true</overWriteIfNewer>
              <overWriteSnapshots>true</overWriteSnapshots>
            </configuration>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>


On 10/28/07, Sonar, Nishant <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
>
>
> I need to add some libraries (Jars) to jboss in
> {JBOSS_HOME}/server/default/lib, these libraries are in the hosted
> central server repository (proximity). What I need is to write a POM
> that can download these dependencies to a lib folder (without group
> directories) and then copy these to jboss/lib. E.g
>
>
>
> <dependencies>
>
> ....
>
> </dependencies>
>
>
>
> To be download to
>
>
>
> {project_home}\lib\
>
>             -jar-1.0.jar
>
>             -jar-2.0.2.jar
>
>             -xxxjar-3.2.jar
>
>             -abc-4.5.jar
>
> And then these to be copied to jboss/server/default/lib
>
>
>
> Can anybody help me in this?
>
>
>
> Regards,
>
> Nishant Sonar
>
>

Reply via email to