You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Dietrich Schulten <sc...@escalon.de> on 2005/10/28 08:59:39 UTC

Children cannot find master pom in local repo

Hi,
I have several projects and try to build them with a master POM
containing an artifactId proj-master. The master contains <module>
entries for each of the children. The children POMs point back to the
master in a <parent> element. All projects have the same groupID.

I used mvn install on the master to have everything in the local repository.

Now, when I try to build a child separately the build fails because a
proj-master.pom artifact cannot be found in the local or remote
repository. I checked the local repo, it is true, there is no such POM.

I'm new to mvn, maybe I didn't get the project structure right. The
proj-master in fact should not produce any artifacts, it rather causes
the submodules to build their artifacts. Then why do the children expect
an artifact of the master?

Regards,
Dietrich

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Children cannot find master pom in local repo

Posted by Wim Deblauwe <wi...@gmail.com>.
Hi,

I had the same problem and your solution works. Thank you!

regards,

Wim

2005/10/28, Johnny R. Ruiz <jr...@exist.com>:
>
> Hi,
>
> In your master pom. Shouldn't the "<packaging>jar</packaging>" be
> "<packaging>pom</packaging>" ? Please try it out and do "mvn
> install" in the master project. After trying it out, then do the "mvn
> install" in the child project. Let me know if this works. :D
>
>
> Cheers,
> Johnny
>
> Dietrich Schulten wrote:
>
> >Below you find the output, the master pom and the child pom.
> >
> >
> >Johnny R. Ruiz schrieb:
> >
> >
> >
> >>Hi,
> >>
> >>Please post the build results, it will be easier to see what's causing
> >>the error.
> >>
> >>
> >
> >
> >The build output within a sub-project:
> >
> >$ mvn compile
> >[INFO] Scanning for projects...
> >[INFO]
> >-------------------------------------------------------------------------
> >---
> >[INFO] Building Implementation of enter*easy Core Interfaces
> >[INFO] task-segment: [compile]
> >[INFO]
> >-------------------------------------------------------------------------
> >---
> >[INFO] [resources:resources]
> >[INFO] Using default encoding to copy filtered resources.
> >[WARNING] POM for: 'commons-dbcp:commons-dbcp:pom:1.2.1' does not appear
> >to be v
> >alid. Its will be ignored for artifact resolution.
> >
> >Reason: Failed to validate POM
> >
> >
> >[INFO]
> >-------------------------------------------------------------------------
> >---
> >[ERROR] BUILD ERROR
> >[INFO]
> >-------------------------------------------------------------------------
> >---
> >[INFO] Failed to resolve artifact.
> >
> >GroupId: de.yellow.eeasy
> >ArtifactId: eeasy-master
> >Version: 1.0-SNAPSHOT
> >
> >Reason: Unable to download the artifact from any repository
> > de.yellow.eeasy:eeasy-master:1.0-SNAPSHOT:pom
> >
> >from the specified remote repositories:
> > central (http://repo1.maven.org/maven2)
> >
> >-----------------------------------------
> >
> >The problem is the line "Unable to download..."
> >
> >
> >
> >The master POM:
> >
> ><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>de.yellow.eeasy</groupId>
> > <artifactId>eeasy-master</artifactId>
> > <packaging>jar</packaging>
> > <version>1.0-SNAPSHOT</version>
> > <name>The Server</name>
> > <url>http://www.unknown.de</url>
> >
> > <dependencyManagement>
> > <dependencies>
> > <dependency>
> > <groupId>de.yellow.eeasy</groupId>
> > <artifactId>eeasy-core</artifactId>
> > <version>1.0-SNAPSHOT</version>
> > </dependency>
> > <dependency>
> > <groupId>de.yellow.eeasy</groupId>
> > <artifactId>eeasy-ifc-impl</artifactId>
> > <version>1.0-SNAPSHOT</version>
> > </dependency>
> > <dependency>
> > <groupId>junit</groupId>
> > <artifactId>junit</artifactId>
> > <version>3.8.1</version>
> > <scope>test</scope>
> > </dependency>
> > <dependency>
> > <groupId>junit-doclet</groupId>
> > <artifactId>junit-doclet</artifactId>
> > <version>1.0.2</version>
> > </dependency>
> > <dependency>
> > <groupId>springframework</groupId>
> > <artifactId>spring</artifactId>
> > <version>1.2.5</version>
> > </dependency>
> > <dependency>
> > <groupId>acegisecurity</groupId>
> > <artifactId>acegi-security</artifactId>
> > <version>0.8.3</version>
> > </dependency>
> > <dependency>
> > <groupId>ehcache</groupId>
> > <artifactId>ehcache</artifactId>
> > <version>1.1</version>
> > </dependency>
> > <dependency>
> > <groupId>commons-logging</groupId>
> > <artifactId>commons-logging</artifactId>
> > <version>1.0.4</version>
> > </dependency>
> > <dependency>
> > <groupId>commons-logging</groupId>
> > <artifactId>commons-logging-api</artifactId>
> > <version>1.0.4</version>
> > </dependency>
> > <dependency>
> > <groupId>commons-discovery</groupId>
> > <artifactId>commons-discovery</artifactId>
> > <version>0.2</version>
> > </dependency>
> > <dependency>
> > <groupId>commons-codec</groupId>
> > <artifactId>commons-codec</artifactId>
> > <version>1.3</version>
> > </dependency>
> > <dependency>
> > <groupId>commons-collections</groupId>
> > <artifactId>commons-collections</artifactId>
> > <version>3.1</version>
> > </dependency>
> > <dependency>
> > <groupId>commons-dbcp</groupId>
> > <artifactId>commons-dbcp</artifactId>
> > <version>1.2.1</version>
> > </dependency>
> > <dependency>
> > <groupId>commons-digester</groupId>
> > <artifactId>commons-digester</artifactId>
> > <version>1.7</version>
> > </dependency>
> > <dependency>
> > <groupId>commons-beanutils</groupId>
> > <artifactId>commons-beanutils</artifactId>
> > <version>1.7.0</version>
> > </dependency>
> > <dependency>
> > <groupId>commons-lang</groupId>
> > <artifactId>commons-lang</artifactId>
> > <version>2.1</version>
> > </dependency>
> > <dependency>
> > <groupId>commons-pool</groupId>
> > <artifactId>commons-pool</artifactId>
> > <version>1.2</version>
> > </dependency>
> > <dependency>
> > <groupId>hsqldb</groupId>
> > <artifactId>hsqldb</artifactId>
> > <version>1.8.0.1 <http://1.8.0.1></version>
> > </dependency>
> > <dependency>
> > <groupId>oro</groupId>
> > <artifactId>oro</artifactId>
> > <version>2.0.8</version>
> > </dependency>
> > <dependency>
> > <groupId>axis</groupId>
> > <artifactId>axis</artifactId>
> > <version>1.2.1</version>
> > </dependency>
> > <dependency>
> > <groupId>axis</groupId>
> > <artifactId>axis-wsdl4j</artifactId>
> > <version>1.5.1</version>
> > </dependency>
> > <dependency>
> > <groupId>axis</groupId>
> > <artifactId>axis-jaxrpc</artifactId>
> > <version>1.2.1</version>
> > </dependency>
> > <dependency>
> > <groupId>axis</groupId>
> > <artifactId>axis-ant</artifactId>
> > <version>1.2.1</version>
> > </dependency>
> > <dependency>
> > <groupId>axis</groupId>
> > <artifactId>axis-saaj</artifactId>
> > <version>1.2.1</version>
> > </dependency>
> > <dependency>
> > <groupId>javax.activation</groupId>
> > <artifactId>activation</artifactId>
> > <version>1.0.2</version>
> > </dependency>
> > <dependency>
> > <groupId>javax.mail</groupId>
> > <artifactId>mail</artifactId>
> > <version>1.3.2</version>
> > </dependency>
> > <dependency>
> > <groupId>javax.xml</groupId>
> > <artifactId>jaxrpc</artifactId>
> > <version>1.1</version>
> > </dependency>
> > <dependency>
> > <groupId>myfaces</groupId>
> > <artifactId>myfaces-impl</artifactId>
> > <version>1.1.0</version>
> > </dependency>
> > <dependency>
> > <groupId>myfaces</groupId>
> > <artifactId>myfaces-jsf-api</artifactId>
> > <version>1.0.9</version>
> > </dependency>
> > </dependencies>
> > </dependencyManagement>
> > <build>
> > <plugins>
> > <plugin>
> > <groupId>org.apache.maven.plugins</groupId>
> > <artifactId>maven-site-plugin</artifactId>
> > <configuration>
> > <locales>en,de</locales>
> > </configuration>
> > </plugin>
> > </plugins>
> > </build>
> > <modules>
> > <module>eeasy-core</module>
> > <module>eeasy-ifc-impl</module>
> > <module>eeasy-admin-webapp</module>
> > <module>eeasy-webservice</module>
> > </modules>
> ></project>
> >
> >The child POM:
> >
> >
> ><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>de.yellow.eeasy</groupId>
> > <artifactId>eeasy-ifc-impl</artifactId>
> > <packaging>jar</packaging>
> > <version>1.0-SNAPSHOT</version>
> > <name>Implementation of Core Interfaces</name>
> > <url>http://www.unknown.de</url>
> > <parent>
> > <groupId>de.yellow.eeasy</groupId>
> > <artifactId>eeasy-master</artifactId>
> > <version>1.0-SNAPSHOT</version>
> > </parent>
> > <dependencies>
> > <dependency>
> > <groupId>de.yellow.eeasy</groupId>
> > <artifactId>eeasy-core</artifactId>
> > <version>1.0-SNAPSHOT</version>
> > </dependency>
> > <dependency>
> > <groupId>junit</groupId>
> > <artifactId>junit</artifactId>
> > <version>3.8.1</version>
> > <scope>test</scope>
> > </dependency>
> > <dependency>
> > <groupId>springframework</groupId>
> > <artifactId>spring</artifactId>
> > <version>1.2.5</version>
> > </dependency>
> > <dependency>
> > <groupId>commons-logging</groupId>
> > <artifactId>commons-logging</artifactId>
> > <version>1.0.4</version>
> > </dependency>
> > <dependency>
> > <groupId>commons-logging</groupId>
> > <artifactId>commons-logging-api</artifactId>
> > <version>1.0.4</version>
> > </dependency>
> > <dependency>
> > <groupId>javax.xml</groupId>
> > <artifactId>jaxrpc</artifactId>
> > <version>1.1</version>
> > </dependency>
> > <dependency>
> > <groupId>commons-dbcp</groupId>
> > <artifactId>commons-dbcp</artifactId>
> > <version>1.2.1</version>
> > </dependency>
> > <dependency>
> > <groupId>hsqldb</groupId>
> > <artifactId>hsqldb</artifactId>
> > <version>1.8.0.1 <http://1.8.0.1></version>
> > </dependency>
> > <dependency>
> > <groupId>junit-doclet</groupId>
> > <artifactId>junit-doclet</artifactId>
> > <version>1.0.2</version>
> > </dependency>
> > </dependencies>
> > <build>
> > <plugins>
> > <plugin>
> > <groupId>org.apache.maven.plugins</groupId>
> > <artifactId>maven-eclipse-plugin</artifactId>
> > <configuration>
> > <buildcommands>
> > <java.lang.String>
> > org.eclipse.wst.common.modulecore.ComponentStructuralBuilder
> > </java.lang.String>
> > <java.lang.String>
> > org.eclipse.jdt.core.javabuilder
> > </java.lang.String>
> > <java.lang.String>
> > org.springframework.ide.eclipse.core.springbuilder
> > </java.lang.String>
> > <java.lang.String>
> > org.eclipse.wst.validation.validationbuilder
> > </java.lang.String>
> > <java.lang.String>
> >
> >
> org.eclipse.wst.common.modulecore.ComponentStructuralBuilderDependencyResolver
> > </java.lang.String>
> > <java.lang.String>
> > org.eclipse.wst.common.modulecore.DependencyGraphBuilder
> > </java.lang.String>
> > </buildcommands>
> > <projectnatures>
> > <java.lang.String>
> > org.springframework.ide.eclipse.core.springnature
> > </java.lang.String>
> > <java.lang.String>
> > org.eclipse.jdt.core.javanature
> > </java.lang.String>
> > <java.lang.String>
> > org.eclipse.wst.common.modulecore.ModuleCoreNature
> > </java.lang.String>
> > </projectnatures>
> > </configuration>
> > </plugin>
> > </plugins>
> > </build>
> ></project>
> >
> >
> >
> >------------------------------------------------------------------------
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> >For additional commands, e-mail: users-help@maven.apache.org
> >
>
>
>

Re: Children cannot find master pom in local repo

Posted by "Johnny R. Ruiz " <jr...@exist.com>.
Hi, 

In your master pom.  Shouldn't the  "<packaging>jar</packaging>"  be 
"<packaging>pom</packaging>" ?      Please try it out and do "mvn 
install"  in the master project.   After trying it out, then do the "mvn 
install" in the child project.   Let me know if this works.  :D


Cheers,
Johnny

Dietrich Schulten wrote:

>Below you find the output, the master pom and the child pom.
>
>
>Johnny R. Ruiz schrieb:
>
>  
>
>>Hi,
>>
>>Please post the build results, it will be easier to see what's causing
>>the error.
>>    
>>
>
>
>The build output within a sub-project:
>
>$ mvn compile
>[INFO] Scanning for projects...
>[INFO]
>-------------------------------------------------------------------------
>---
>[INFO] Building Implementation of enter*easy Core Interfaces
>[INFO]    task-segment: [compile]
>[INFO]
>-------------------------------------------------------------------------
>---
>[INFO] [resources:resources]
>[INFO] Using default encoding to copy filtered resources.
>[WARNING] POM for: 'commons-dbcp:commons-dbcp:pom:1.2.1' does not appear
>to be v
>alid. Its will be ignored for artifact resolution.
>
>Reason: Failed to validate POM
>
>
>[INFO]
>-------------------------------------------------------------------------
>---
>[ERROR] BUILD ERROR
>[INFO]
>-------------------------------------------------------------------------
>---
>[INFO] Failed to resolve artifact.
>
>GroupId: de.yellow.eeasy
>ArtifactId: eeasy-master
>Version: 1.0-SNAPSHOT
>
>Reason: Unable to download the artifact from any repository
>  de.yellow.eeasy:eeasy-master:1.0-SNAPSHOT:pom
>
>from the specified remote repositories:
>  central (http://repo1.maven.org/maven2)
>
>-----------------------------------------
>
>The problem is the line "Unable to download..."
>
>
>
>The master POM:
>
><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>de.yellow.eeasy</groupId>
>	<artifactId>eeasy-master</artifactId>
>	<packaging>jar</packaging>
>	<version>1.0-SNAPSHOT</version>
>	<name>The Server</name>
>	<url>http://www.unknown.de</url>
>	
>	<dependencyManagement>
>		<dependencies>
>			<dependency>
>				<groupId>de.yellow.eeasy</groupId>
>				<artifactId>eeasy-core</artifactId>
>				<version>1.0-SNAPSHOT</version>
>			</dependency>
>			<dependency>
>				<groupId>de.yellow.eeasy</groupId>
>				<artifactId>eeasy-ifc-impl</artifactId>
>				<version>1.0-SNAPSHOT</version>
>			</dependency>
>			<dependency>
>				<groupId>junit</groupId>
>				<artifactId>junit</artifactId>
>				<version>3.8.1</version>
>				<scope>test</scope>
>			</dependency>
>			<dependency>
>				<groupId>junit-doclet</groupId>
>				<artifactId>junit-doclet</artifactId>
>				<version>1.0.2</version>
>			</dependency>
>			<dependency>
>				<groupId>springframework</groupId>
>				<artifactId>spring</artifactId>
>				<version>1.2.5</version>
>			</dependency>
>			<dependency>
>				<groupId>acegisecurity</groupId>
>				<artifactId>acegi-security</artifactId>
>				<version>0.8.3</version>
>			</dependency>
>			<dependency>
>				<groupId>ehcache</groupId>
>				<artifactId>ehcache</artifactId>
>				<version>1.1</version>
>			</dependency>
>			<dependency>
>				<groupId>commons-logging</groupId>
>				<artifactId>commons-logging</artifactId>
>				<version>1.0.4</version>
>			</dependency>
>			<dependency>
>				<groupId>commons-logging</groupId>
>				<artifactId>commons-logging-api</artifactId>
>				<version>1.0.4</version>
>			</dependency>
>			<dependency>
>				<groupId>commons-discovery</groupId>
>				<artifactId>commons-discovery</artifactId>
>				<version>0.2</version>
>			</dependency>
>			<dependency>
>				<groupId>commons-codec</groupId>
>				<artifactId>commons-codec</artifactId>
>				<version>1.3</version>
>			</dependency>
>			<dependency>
>				<groupId>commons-collections</groupId>
>				<artifactId>commons-collections</artifactId>
>				<version>3.1</version>
>			</dependency>
>			<dependency>
>				<groupId>commons-dbcp</groupId>
>				<artifactId>commons-dbcp</artifactId>
>				<version>1.2.1</version>
>			</dependency>
>			<dependency>
>				<groupId>commons-digester</groupId>
>				<artifactId>commons-digester</artifactId>
>				<version>1.7</version>
>			</dependency>
>			<dependency>
>				<groupId>commons-beanutils</groupId>
>				<artifactId>commons-beanutils</artifactId>
>				<version>1.7.0</version>
>			</dependency>
>			<dependency>
>				<groupId>commons-lang</groupId>
>				<artifactId>commons-lang</artifactId>
>				<version>2.1</version>
>			</dependency>
>			<dependency>
>				<groupId>commons-pool</groupId>
>				<artifactId>commons-pool</artifactId>
>				<version>1.2</version>
>			</dependency>
>			<dependency>
>				<groupId>hsqldb</groupId>
>				<artifactId>hsqldb</artifactId>
>				<version>1.8.0.1</version>
>			</dependency>
>			<dependency>
>				<groupId>oro</groupId>
>				<artifactId>oro</artifactId>
>				<version>2.0.8</version>
>			</dependency>
>			<dependency>
>				<groupId>axis</groupId>
>				<artifactId>axis</artifactId>
>				<version>1.2.1</version>
>			</dependency>
>			<dependency>
>				<groupId>axis</groupId>
>				<artifactId>axis-wsdl4j</artifactId>
>				<version>1.5.1</version>
>			</dependency>
>			<dependency>
>				<groupId>axis</groupId>
>				<artifactId>axis-jaxrpc</artifactId>
>				<version>1.2.1</version>
>			</dependency>
>			<dependency>
>				<groupId>axis</groupId>
>				<artifactId>axis-ant</artifactId>
>				<version>1.2.1</version>
>			</dependency>
>			<dependency>
>				<groupId>axis</groupId>
>				<artifactId>axis-saaj</artifactId>
>				<version>1.2.1</version>
>			</dependency>
>			<dependency>
>				<groupId>javax.activation</groupId>
>				<artifactId>activation</artifactId>
>				<version>1.0.2</version>
>			</dependency>
>			<dependency>
>				<groupId>javax.mail</groupId>
>				<artifactId>mail</artifactId>
>				<version>1.3.2</version>
>			</dependency>
>			<dependency>
>				<groupId>javax.xml</groupId>
>				<artifactId>jaxrpc</artifactId>
>				<version>1.1</version>
>			</dependency>
>			<dependency>
>				<groupId>myfaces</groupId>
>				<artifactId>myfaces-impl</artifactId>
>				<version>1.1.0</version>
>			</dependency>
>			<dependency>
>				<groupId>myfaces</groupId>
>				<artifactId>myfaces-jsf-api</artifactId>
>				<version>1.0.9</version>
>			</dependency>
>		</dependencies>
>	</dependencyManagement>
>	<build>
>		<plugins>
>			<plugin>
>			<groupId>org.apache.maven.plugins</groupId>
>			<artifactId>maven-site-plugin</artifactId>
>				<configuration>
>					<locales>en,de</locales>
>				</configuration>
>			</plugin>
>		</plugins>
>	</build>
>	<modules>
>		<module>eeasy-core</module>
>		<module>eeasy-ifc-impl</module>
>		<module>eeasy-admin-webapp</module>
>		<module>eeasy-webservice</module>
>	</modules>
></project>
>
>The child POM:
>
>
><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>de.yellow.eeasy</groupId>
>	<artifactId>eeasy-ifc-impl</artifactId>
>	<packaging>jar</packaging>
>	<version>1.0-SNAPSHOT</version>
>	<name>Implementation of Core Interfaces</name>
>	<url>http://www.unknown.de</url>
>	<parent>
>		<groupId>de.yellow.eeasy</groupId>
>		<artifactId>eeasy-master</artifactId>
>		<version>1.0-SNAPSHOT</version>
>	</parent>
>	<dependencies>
>		<dependency>
>			<groupId>de.yellow.eeasy</groupId>
>			<artifactId>eeasy-core</artifactId>
>			<version>1.0-SNAPSHOT</version>
>		</dependency>
>		<dependency>
>			<groupId>junit</groupId>
>			<artifactId>junit</artifactId>
>			<version>3.8.1</version>
>			<scope>test</scope>
>		</dependency>
>		<dependency>
>			<groupId>springframework</groupId>
>			<artifactId>spring</artifactId>
>			<version>1.2.5</version>
>		</dependency>
>		<dependency>
>			<groupId>commons-logging</groupId>
>			<artifactId>commons-logging</artifactId>
>			<version>1.0.4</version>
>		</dependency>
>		<dependency>
>			<groupId>commons-logging</groupId>
>			<artifactId>commons-logging-api</artifactId>
>			<version>1.0.4</version>
>		</dependency>
>		<dependency>
>			<groupId>javax.xml</groupId>
>			<artifactId>jaxrpc</artifactId>
>			<version>1.1</version>
>		</dependency>
>		<dependency>
>			<groupId>commons-dbcp</groupId>
>			<artifactId>commons-dbcp</artifactId>
>			<version>1.2.1</version>
>		</dependency>
>		<dependency>
>			<groupId>hsqldb</groupId>
>			<artifactId>hsqldb</artifactId>
>			<version>1.8.0.1</version>
>		</dependency>
>		<dependency>
>			<groupId>junit-doclet</groupId>
>			<artifactId>junit-doclet</artifactId>
>			<version>1.0.2</version>
>		</dependency>
>	</dependencies>
>	<build>
>			<plugins>
>			<plugin>
>				<groupId>org.apache.maven.plugins</groupId>
>				<artifactId>maven-eclipse-plugin</artifactId>
>				<configuration>
>					<buildcommands>
>						<java.lang.String>
>							org.eclipse.wst.common.modulecore.ComponentStructuralBuilder
>						</java.lang.String>
>						<java.lang.String>
>							org.eclipse.jdt.core.javabuilder
>						</java.lang.String>
>						<java.lang.String>
>							org.springframework.ide.eclipse.core.springbuilder
>						</java.lang.String>
>						<java.lang.String>
>							org.eclipse.wst.validation.validationbuilder
>						</java.lang.String>
>						<java.lang.String>
>						
>org.eclipse.wst.common.modulecore.ComponentStructuralBuilderDependencyResolver
>						</java.lang.String>
>						<java.lang.String>
>							org.eclipse.wst.common.modulecore.DependencyGraphBuilder
>						</java.lang.String>
>					</buildcommands>
>					<projectnatures>
>						<java.lang.String>
>							org.springframework.ide.eclipse.core.springnature
>						</java.lang.String>
>						<java.lang.String>
>							org.eclipse.jdt.core.javanature
>						</java.lang.String>
>						<java.lang.String>
>							org.eclipse.wst.common.modulecore.ModuleCoreNature
>						</java.lang.String>
>					</projectnatures>
>				</configuration>
>			</plugin>
>		</plugins>
>	</build>
></project>
>
>  
>
>------------------------------------------------------------------------
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>For additional commands, e-mail: users-help@maven.apache.org
>


Re: Children cannot find master pom in local repo

Posted by Dietrich Schulten <sc...@escalon.de>.
Below you find the output, the master pom and the child pom.


Johnny R. Ruiz schrieb:

> Hi,
> 
> Please post the build results, it will be easier to see what's causing
> the error.


The build output within a sub-project:

$ mvn compile
[INFO] Scanning for projects...
[INFO]
-------------------------------------------------------------------------
---
[INFO] Building Implementation of enter*easy Core Interfaces
[INFO]    task-segment: [compile]
[INFO]
-------------------------------------------------------------------------
---
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[WARNING] POM for: 'commons-dbcp:commons-dbcp:pom:1.2.1' does not appear
to be v
alid. Its will be ignored for artifact resolution.

Reason: Failed to validate POM


[INFO]
-------------------------------------------------------------------------
---
[ERROR] BUILD ERROR
[INFO]
-------------------------------------------------------------------------
---
[INFO] Failed to resolve artifact.

GroupId: de.yellow.eeasy
ArtifactId: eeasy-master
Version: 1.0-SNAPSHOT

Reason: Unable to download the artifact from any repository
  de.yellow.eeasy:eeasy-master:1.0-SNAPSHOT:pom

from the specified remote repositories:
  central (http://repo1.maven.org/maven2)

-----------------------------------------

The problem is the line "Unable to download..."



The master POM:

<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>de.yellow.eeasy</groupId>
	<artifactId>eeasy-master</artifactId>
	<packaging>jar</packaging>
	<version>1.0-SNAPSHOT</version>
	<name>The Server</name>
	<url>http://www.unknown.de</url>
	
	<dependencyManagement>
		<dependencies>
			<dependency>
				<groupId>de.yellow.eeasy</groupId>
				<artifactId>eeasy-core</artifactId>
				<version>1.0-SNAPSHOT</version>
			</dependency>
			<dependency>
				<groupId>de.yellow.eeasy</groupId>
				<artifactId>eeasy-ifc-impl</artifactId>
				<version>1.0-SNAPSHOT</version>
			</dependency>
			<dependency>
				<groupId>junit</groupId>
				<artifactId>junit</artifactId>
				<version>3.8.1</version>
				<scope>test</scope>
			</dependency>
			<dependency>
				<groupId>junit-doclet</groupId>
				<artifactId>junit-doclet</artifactId>
				<version>1.0.2</version>
			</dependency>
			<dependency>
				<groupId>springframework</groupId>
				<artifactId>spring</artifactId>
				<version>1.2.5</version>
			</dependency>
			<dependency>
				<groupId>acegisecurity</groupId>
				<artifactId>acegi-security</artifactId>
				<version>0.8.3</version>
			</dependency>
			<dependency>
				<groupId>ehcache</groupId>
				<artifactId>ehcache</artifactId>
				<version>1.1</version>
			</dependency>
			<dependency>
				<groupId>commons-logging</groupId>
				<artifactId>commons-logging</artifactId>
				<version>1.0.4</version>
			</dependency>
			<dependency>
				<groupId>commons-logging</groupId>
				<artifactId>commons-logging-api</artifactId>
				<version>1.0.4</version>
			</dependency>
			<dependency>
				<groupId>commons-discovery</groupId>
				<artifactId>commons-discovery</artifactId>
				<version>0.2</version>
			</dependency>
			<dependency>
				<groupId>commons-codec</groupId>
				<artifactId>commons-codec</artifactId>
				<version>1.3</version>
			</dependency>
			<dependency>
				<groupId>commons-collections</groupId>
				<artifactId>commons-collections</artifactId>
				<version>3.1</version>
			</dependency>
			<dependency>
				<groupId>commons-dbcp</groupId>
				<artifactId>commons-dbcp</artifactId>
				<version>1.2.1</version>
			</dependency>
			<dependency>
				<groupId>commons-digester</groupId>
				<artifactId>commons-digester</artifactId>
				<version>1.7</version>
			</dependency>
			<dependency>
				<groupId>commons-beanutils</groupId>
				<artifactId>commons-beanutils</artifactId>
				<version>1.7.0</version>
			</dependency>
			<dependency>
				<groupId>commons-lang</groupId>
				<artifactId>commons-lang</artifactId>
				<version>2.1</version>
			</dependency>
			<dependency>
				<groupId>commons-pool</groupId>
				<artifactId>commons-pool</artifactId>
				<version>1.2</version>
			</dependency>
			<dependency>
				<groupId>hsqldb</groupId>
				<artifactId>hsqldb</artifactId>
				<version>1.8.0.1</version>
			</dependency>
			<dependency>
				<groupId>oro</groupId>
				<artifactId>oro</artifactId>
				<version>2.0.8</version>
			</dependency>
			<dependency>
				<groupId>axis</groupId>
				<artifactId>axis</artifactId>
				<version>1.2.1</version>
			</dependency>
			<dependency>
				<groupId>axis</groupId>
				<artifactId>axis-wsdl4j</artifactId>
				<version>1.5.1</version>
			</dependency>
			<dependency>
				<groupId>axis</groupId>
				<artifactId>axis-jaxrpc</artifactId>
				<version>1.2.1</version>
			</dependency>
			<dependency>
				<groupId>axis</groupId>
				<artifactId>axis-ant</artifactId>
				<version>1.2.1</version>
			</dependency>
			<dependency>
				<groupId>axis</groupId>
				<artifactId>axis-saaj</artifactId>
				<version>1.2.1</version>
			</dependency>
			<dependency>
				<groupId>javax.activation</groupId>
				<artifactId>activation</artifactId>
				<version>1.0.2</version>
			</dependency>
			<dependency>
				<groupId>javax.mail</groupId>
				<artifactId>mail</artifactId>
				<version>1.3.2</version>
			</dependency>
			<dependency>
				<groupId>javax.xml</groupId>
				<artifactId>jaxrpc</artifactId>
				<version>1.1</version>
			</dependency>
			<dependency>
				<groupId>myfaces</groupId>
				<artifactId>myfaces-impl</artifactId>
				<version>1.1.0</version>
			</dependency>
			<dependency>
				<groupId>myfaces</groupId>
				<artifactId>myfaces-jsf-api</artifactId>
				<version>1.0.9</version>
			</dependency>
		</dependencies>
	</dependencyManagement>
	<build>
		<plugins>
			<plugin>
			<groupId>org.apache.maven.plugins</groupId>
			<artifactId>maven-site-plugin</artifactId>
				<configuration>
					<locales>en,de</locales>
				</configuration>
			</plugin>
		</plugins>
	</build>
	<modules>
		<module>eeasy-core</module>
		<module>eeasy-ifc-impl</module>
		<module>eeasy-admin-webapp</module>
		<module>eeasy-webservice</module>
	</modules>
</project>

The child POM:


<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>de.yellow.eeasy</groupId>
	<artifactId>eeasy-ifc-impl</artifactId>
	<packaging>jar</packaging>
	<version>1.0-SNAPSHOT</version>
	<name>Implementation of Core Interfaces</name>
	<url>http://www.unknown.de</url>
	<parent>
		<groupId>de.yellow.eeasy</groupId>
		<artifactId>eeasy-master</artifactId>
		<version>1.0-SNAPSHOT</version>
	</parent>
	<dependencies>
		<dependency>
			<groupId>de.yellow.eeasy</groupId>
			<artifactId>eeasy-core</artifactId>
			<version>1.0-SNAPSHOT</version>
		</dependency>
		<dependency>
			<groupId>junit</groupId>
			<artifactId>junit</artifactId>
			<version>3.8.1</version>
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>springframework</groupId>
			<artifactId>spring</artifactId>
			<version>1.2.5</version>
		</dependency>
		<dependency>
			<groupId>commons-logging</groupId>
			<artifactId>commons-logging</artifactId>
			<version>1.0.4</version>
		</dependency>
		<dependency>
			<groupId>commons-logging</groupId>
			<artifactId>commons-logging-api</artifactId>
			<version>1.0.4</version>
		</dependency>
		<dependency>
			<groupId>javax.xml</groupId>
			<artifactId>jaxrpc</artifactId>
			<version>1.1</version>
		</dependency>
		<dependency>
			<groupId>commons-dbcp</groupId>
			<artifactId>commons-dbcp</artifactId>
			<version>1.2.1</version>
		</dependency>
		<dependency>
			<groupId>hsqldb</groupId>
			<artifactId>hsqldb</artifactId>
			<version>1.8.0.1</version>
		</dependency>
		<dependency>
			<groupId>junit-doclet</groupId>
			<artifactId>junit-doclet</artifactId>
			<version>1.0.2</version>
		</dependency>
	</dependencies>
	<build>
			<plugins>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-eclipse-plugin</artifactId>
				<configuration>
					<buildcommands>
						<java.lang.String>
							org.eclipse.wst.common.modulecore.ComponentStructuralBuilder
						</java.lang.String>
						<java.lang.String>
							org.eclipse.jdt.core.javabuilder
						</java.lang.String>
						<java.lang.String>
							org.springframework.ide.eclipse.core.springbuilder
						</java.lang.String>
						<java.lang.String>
							org.eclipse.wst.validation.validationbuilder
						</java.lang.String>
						<java.lang.String>
						
org.eclipse.wst.common.modulecore.ComponentStructuralBuilderDependencyResolver
						</java.lang.String>
						<java.lang.String>
							org.eclipse.wst.common.modulecore.DependencyGraphBuilder
						</java.lang.String>
					</buildcommands>
					<projectnatures>
						<java.lang.String>
							org.springframework.ide.eclipse.core.springnature
						</java.lang.String>
						<java.lang.String>
							org.eclipse.jdt.core.javanature
						</java.lang.String>
						<java.lang.String>
							org.eclipse.wst.common.modulecore.ModuleCoreNature
						</java.lang.String>
					</projectnatures>
				</configuration>
			</plugin>
		</plugins>
	</build>
</project>


Re: Children cannot find master pom in local repo

Posted by "Johnny R. Ruiz " <jr...@exist.com>.
Dietrich Schulten wrote:

>Hi,
>I have several projects and try to build them with a master POM
>containing an artifactId proj-master. The master contains <module>
>entries for each of the children. The children POMs point back to the
>master in a <parent> element. All projects have the same groupID.
>
>I used mvn install on the master to have everything in the local repository.
>
>Now, when I try to build a child separately the build fails because a
>proj-master.pom artifact cannot be found in the local or remote
>repository. I checked the local repo, it is true, there is no such POM.
>
>I'm new to mvn, maybe I didn't get the project structure right. The
>proj-master in fact should not produce any artifacts, it rather causes
>the submodules to build their artifacts. Then why do the children expect
>an artifact of the master?
>
>Regards,
>Dietrich
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>For additional commands, e-mail: users-help@maven.apache.org
>
>  
>
Hi,

Please post the build results, it will be easier to see what's causing 
the error.



Cheers,
Johnny