Skip to main content
added 335 characters in body
Source Link
ali haider
  • 20.6k
  • 22
  • 88
  • 159

I am using apache maven 3.1.0 (after quite some time) on windows for a project put together by somebody else. I have a parent pom & multiple child pom xml files. The child pom contains the following which is causing an issue when I run mvn clean install:

<parent> <groupId>com.test.platform</groupId> <artifactId>test-parent</artifactId> <version>0.0.1-SNAPSHOT</version>  <relativePath>../pom.xml</relativePath> </parent> 

The error I get from mvn -e points to a dependency issue due to inability to find the artifact (referring to the 0.0.1-SNAPSHOT). I am not sure if I am missing a step or need to change something with my project/pom xml files. Any useful suggestions would be welcome (I can post more detailed error messages if needed). Thanks!

Update: I have also tried adding a relative path to the child pom xml file though its still giving me an error.

Directory Structure:

 Main Directory -> pom.xml file Child Directory -> pom.xml file (with parent tag) - I added the relative section to it as well. 

I am using apache maven 3.1.0 (after quite some time) on windows for a project put together by somebody else. I have a parent pom & multiple child pom xml files. The child pom contains the following which is causing an issue when I run mvn clean install:

<parent> <groupId>com.test.platform</groupId> <artifactId>test-parent</artifactId> <version>0.0.1-SNAPSHOT</version> </parent> 

The error I get from mvn -e points to a dependency issue due to inability to find the artifact (referring to the 0.0.1-SNAPSHOT). I am not sure if I am missing a step or need to change something with my project/pom xml files. Any useful suggestions would be welcome (I can post more detailed error messages if needed). Thanks!

I am using apache maven 3.1.0 (after quite some time) on windows for a project put together by somebody else. I have a parent pom & multiple child pom xml files. The child pom contains the following which is causing an issue when I run mvn clean install:

<parent> <groupId>com.test.platform</groupId> <artifactId>test-parent</artifactId> <version>0.0.1-SNAPSHOT</version>  <relativePath>../pom.xml</relativePath> </parent> 

The error I get from mvn -e points to a dependency issue due to inability to find the artifact (referring to the 0.0.1-SNAPSHOT). I am not sure if I am missing a step or need to change something with my project/pom xml files. Any useful suggestions would be welcome (I can post more detailed error messages if needed). Thanks!

Update: I have also tried adding a relative path to the child pom xml file though its still giving me an error.

Directory Structure:

 Main Directory -> pom.xml file Child Directory -> pom.xml file (with parent tag) - I added the relative section to it as well. 
Source Link
ali haider
  • 20.6k
  • 22
  • 88
  • 159

maven dependency issue with parent-child reference

I am using apache maven 3.1.0 (after quite some time) on windows for a project put together by somebody else. I have a parent pom & multiple child pom xml files. The child pom contains the following which is causing an issue when I run mvn clean install:

<parent> <groupId>com.test.platform</groupId> <artifactId>test-parent</artifactId> <version>0.0.1-SNAPSHOT</version> </parent> 

The error I get from mvn -e points to a dependency issue due to inability to find the artifact (referring to the 0.0.1-SNAPSHOT). I am not sure if I am missing a step or need to change something with my project/pom xml files. Any useful suggestions would be welcome (I can post more detailed error messages if needed). Thanks!