Viz Heres one I have setup...
<?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.company</groupId> <artifactId>company</artifactId> <version>1</version> <packaging>pom</packaging> <name>Nexus Alpha Ltd</name> <description> </description> <organization> <name>Company Name</name> <url>http://www.company.com/</url> </organization> <url>http://www.company.com/</url> <distributionManagement> <repository> <id>internal-released</id> <url>scp://192.168.6.194/var/mvn/internal-released</url> </repository> <snapshotRepository> <id>internal-snapshot</id> <url>scp://192.168.6.194/var/mvn/internal-snapshot</url> </snapshotRepository> </distributionManagement> </project> Now I have release this to my internal repo, but i guess you could just install it to your local repo. Also you could have a project that has modules. like the following dir structure myproject myproject/pom.xml myproject/module1/pom.xml myproject/module2/pom.xml the top level pom would contain your global settings and the modules element <modules> <module>module1</module> <module>module2</module> </modules> Im still new to maven 2 also but i hope this gives you some ideas. Ben On 7/10/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
Hi All, I'm new to Maven and am struggling to create a super pom. I am involved in a project which has a number of sub projects and would like to have a super pom for the general configs, which are inherited by the sub projects. The problem is that I can create a super pom by hand, but when I reference it using <parent/> the sub project goes of to the repo to download... I just wanted a super pom that I could use to set project wide configs. I tried various params with mvn archetype:create but no luck. Could someone please point me in the right direction. Many thanks in advance. -- Viz --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
