Nope....

Here's what I'd do:

%basedir%/sdmgui/pom.xml

<project  xmlns="http://maven.apache.org/POM/4.0.0";>
    <modelVersion>4.0.0</modelVersion>
    <groupId>com.ilog.jviews</groupId>
    <artifactId>sdmgui</artifactId>
    <version>5.5-SNAPSHOT</version>
    <description>JViews sdmgui library</description>
    <build>
      <plugins>
        <plugin>
          <artifactId>maven-jar-plugin</artifactId>
          <configuration>
            <forceCreation>true</forceCreation>
          </configuration>
        </plugin>
        <plugin>
          <artifactId>maven-antrun-plugin</artifactId>
          <executions>
            <execution>
              <phase>package</phase>
              <goals>
                <goal>run</goal>
              </goals>
              <configuration>
                <tasks>
                  <copy file="${basedir}/src/jar/${project.artifactId}"

tofile="${project.build.directory}/${project.build.finalName}"
                     overwrite="true"/>
                </tasks>
              </configuration>
            </execution>
          </executions>
        </plugin>
      </plugins>
    </build>
</project>

then put sdmgui.jar in

%basedir%/sdmgui/src/jar/sdmgui.jar

What this does is let maven do the build lifecycle as normal for a jar, and
then replaces the empty jar that maven has built with the one you want to
use during the package phase... when you hit the install/deploy phases maven
will then pick up your jar.

An alternative is to just attach the jar to a pom packaging pom.xml

Then you do mvn release:prepare release:perform to push the 5.5 version to
your Nexus

2008/11/6 jgarrison <[EMAIL PROTECTED]>

>
> I got this to work by adding a <modules>...</modules> section mentioning
> the
> dependencies as modules.
>
> I'm not sure I understand exactly WHY this works, and I HATE not
> understanding why a solution works :-)  My best guess is that the modules
> section describes what this POM "exports" and the dependencies specify how
> the exported artifacts are to be obtained.
>
> Is this anywhere near right?
> --
> View this message in context:
> http://www.nabble.com/Aggregate-POM-for-thirdparty-package---dependencies-not-downloaded-tp20330421p20364286.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to