I have the following file structure:
/Deep6MasterPOM
pom.xml
/Foundation
pom.xml
I have a local maven repository in ~woo/.m2/repository, of course.
I'm trying to put a few common things into the Deep6MasterPOM like the
JDepends plugin for later components of the entire Deep6 build to use.
Right now, I have the Deep6MasterPOM/pom.xml as
--------------
<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.areteq</groupId>
<artifactId>Deep6MasterPOM</artifactId>
<packaging>pom</packaging>
<modules>
<module>../Foundation</module>
</modules>
<version>0.0.1-SNAPSHOT</version>
<name>Deep6MasterPOM</name>
<url>http://maven.apache.org</url>
<description>This project provides a Super POM with the JDepend
plugin specified</description>
<inceptionYear>Feb-20-2009</inceptionYear>
<issueManagement>
<system>Mantis</system>
<url>http://localhost/~woo/mantis</url>
</issueManagement>
<developers>
<developer>
<id>woo</id>
<name>John Wooten</name>
<email>jwoo...@shoulderscorp.com</email>
<organization>ShouldersCorp</organization>
<organizationUrl>http://www.shoulderscorp.com</organizationUrl>
<timezone>EST</timezone>
<roles>
<role>Architect/Lead-Developer</role>
</roles>
</developer>
</developers>
<scm>
<connection>scm:svn:svn+ssh://woo37...@www.areteq.com/Deep6</
connection>
<tag>Deep6Master</tag>
<url>http://localhost</url>
</scm>
<organization>
<name>ShouldersCorp.</name>
<url>http://www.shoulderscorp.com</url>
</organization>
<!-- repositories>
</repositories -->
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<scope>test</scope>
</dependency>
</dependencies>
<reporting>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>jdepend-maven-plugin</artifactId>
</plugin>
</plugins>
</reporting>
</project>
----------
and the /Foundation/pom.xml as
<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
">
<parent>
<groupId>com.areteq</groupId>
<artifactId>Deep6MasterPOM</artifactId>
<version>1</version>
<relativePath>../Deep6MasterPOM/pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>Foundation</artifactId>
<name>Foundation</name>
<version>0.0.1-SNAPSHOT</version>
<description>The base classes for all AreteQ projects</description>
<repositories>
<!-- repository>
<id>local</id>
<name>Local Repository Switchboard</name>
<layout>default</layout>
<url>file://Users/woo/</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository -->
</repositories>
</project>
---------------
My intent is to have the mvn site:site for Foundation use the super
pom (i.e. parent ) and incorporate that into the child pom, so that
the JDepends works there as
well as other things I'll have in common.
1) Should I be creating a pom in Deep6MasterPOM/pom.xml? Apparently
when Foundation tries to run, it looks in the maven remote repository
for
my pom file for Deep6MasterPOM?
-------
url = http://repo1.maven.org/maven2
Downloading:
http://repo1.maven.org/maven2/com/areteq/Deep6MasterPOM/1/Deep6MasterPOM-1.pom
[ERROR]
Failed to resolve parent-POM from repository.
Parent POM Information:
Group-Id: com.areteq
Artifact-Id: Deep6MasterPOM
Version: 1
Local Repository: /Users/woo/.m2/repository
Remote Repositories:
central -> http://repo1.maven.org/maven2
Reason: Unable to download the artifact from any repository
com.areteq:Deep6MasterPOM:pom:1
from the specified remote repositories:
central (http://repo1.maven.org/maven2)
Project Id: [inherited]:Foundation:jar:0.0.1-SNAPSHOT
From file: /Users/woo/Development/workspaces/Qworkspace/Foundation/
pom.xml
[INFO]
------------------------------------------------------------------------
[INFO] For more information, run with the -e flag
[INFO]
------------------------------------------------------------------------
[INFO] + Ignoring build failures
How do I make it keep my stuff local, and use the master only for the
jars, etc. that it needs?
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org