I'm trying to create an aggregate POM for a third-party object consisting of several binary (jar) files, to be stored in my Nexus repository.
Based on examples from the maven repository, I created simple POMs for each jar and added them to nexus. Then I created a POM-packaged POM that lists the individual simple POMs as dependencies. When I got to the Upload Artifact screen I found that I had to provide an artifact file name, so I ended up using the aggregate pom name in both the artifact file and pom file fields (was this correct?) When I try to build my project POM, which contains a reference to the aggregate POM, there are no error messages but the transitive dependencies are NOT downloaded from Nexus. Browsing the repository shows all the required jars in the right places. Obviously I've missed something. Can some kind soul take pity on a Maven/Nexus newbie and help out? Here are the pertinent files: Simple POM for one of the jar file components (jviews-sdmgui.pom): <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</version> <description>JViews sdmgui library</description> </project> Aggregate POM (jviews.pom): <project xmlns="http://maven.apache.org/POM/4.0.0"> <modelVersion>4.0.0</modelVersion> <groupId>com.ilog</groupId> <artifactId>jviews</artifactId> <version>5.5</version> <description>JViews</description> <packaging>pom</packaging> <dependencies> <dependency> <groupId>com.ilog.jviews</groupId> <artifactId>jviewsall</artifactId> <version>5.5</version> </dependency> <dependency> <groupId>com.ilog.jviews</groupId> <artifactId>sdmgui</artifactId> <version>5.5</version> </dependency> <dependency> <groupId>com.ilog.jviews</groupId> <artifactId>svgdom</artifactId> <version>5.5</version> </dependency> </dependencies> </project> Dependency specification in the project POM: <dependency> <groupId>com.ilog</groupId> <artifactId>jviews</artifactId> <version>5.5</version> <type>pom</type> </dependency> If I include the three individual dependencies here instead of just the reference to the aggregate, the build works. http://www.troux.com/email --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
