Use build-helper plugin to attach the checked-out jar to your build,
so it is installed and deployed alongside other artifacts.

This will not, however, prevent Maven from deploying your packaged jar as well.

Wayne

On Tue, Oct 7, 2008 at 5:37 AM, Michael Hüttermann
<[EMAIL PROTECTED]> wrote:
> Hello experts,
>
> during a build lifecycle I want to checkout a whole eclipse project from
> SVN which also contains an already available and packaged JAR. I copy this
> JAR from outside the checkout-directory to the root of my Maven project.
> This copied jar must be distributed by install/deploy. The Maven project
> itself neither contains business classes nor contains test classes, it is
> just a wrapper for the checked-out JAR. How would you archieve this?
>
> One try you can see below. The checked-out JAR is placed correctly to the
> root folder of my Maven project but the wrong jar is installed. "mvn
> install" installs the empty jar (the project has no classes) describing my
> Maven project itself. Why? How can I install/deploy the final checked-out
> JAR (only)? Thanks !!!!
>
>
> <?xml version="1.0" encoding="UTF-8"?>
> <project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> http://maven.apache.org/maven-v4_0_0.xsd";
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
>  <modelVersion>4.0.0</modelVersion>
>  <artifactId>abc</artifactId>
>  <packaging>pom</packaging>
>  <version>0.0.1-SNAPSHOT</version>
>
>  <build>
>    <pluginManagement>
>      <plugins>
>        <plugin>
>          <groupId>org.apache.maven.plugins</groupId>
>          <artifactId>maven-jar-plugin</artifactId>
>          <configuration>
>            <finalName>todelete</finalName>
>          </configuration>
>        </plugin>
>        <plugin>
>          <groupId>org.apache.maven.plugins</groupId>
>          <artifactId>maven-scm-plugin</artifactId>
>          <executions>
>            <execution>
>              <phase>compile</phase>
>              <configuration>
>                <connectionUrl>check the eclipse project out
> ...</connectionUrl>
>                <scmVersion>...</scmVersion>
>                <scmVersionType>...</scmVersionType>
>              </configuration>
>              <goals>
>                <goal>checkout</goal>
>              </goals>
>            </execution>
>          </executions>
>        </plugin>
>        <plugin>
>          <groupId>org.apache.maven.plugins</groupId>
>          <artifactId>maven-antrun-plugin</artifactId>
>          <executions>
>            <execution>
>              <phase>package</phase>
>              <configuration>
>                <tasks>
>                  <echo>copy just the jar from outside the checkout-folder
> to the Maven-project root directory</echo>
>                  <copy .../>
>                </tasks>
>              </configuration>
>              <goals>
>                <goal>run</goal>
>              </goals>
>            </execution>
>          </executions>
>        </plugin>
>      </plugins>
>    </pluginManagement>
>  </build>
>
> </project>
>
>
>
>
> Thanks !!!!
>
> Michael
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to