continuum-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Seth <h162...@stud.u-szeged.hu>
Subject Invalid parent-POM referenced by relative path problem
Date Fri, 08 Sep 2006 06:33:07 GMT

I was trying to make a site with Maven2 through Continuum from my java
source.
If I define the <packaging>jar</packaging> in the parent POM everything is
going well but only one whole project jar being created.
This project have a lot of packages (modules) so I decided to create all of
the package jars as I can do in the ant build format.
I've tried only with one of the component at the moment because it's simple.
The hierarchy of the project looks like this:
/bin
/doc
/lib
/make/Maven2/pom.xml
/src/dir1/...dir5/pom.xml
/test

I copy the relevant part of the poms here:
the /make/Maven2/pom.xml

  <modelVersion>4.0.0</modelVersion>
  <name>Main app</name>
  <groupId>PROJECT</groupId>
  <artifactId>Project_appl</artifactId>
  <version>4.5</version>
  <packaging>pom</packaging>
  <modules>
     <module>../../src/dir1/dir2/dir3/dir4/dir5</module>
  </modules>

the /src/dir1/...dir5/pom.xml

   <modelVersion>4.0.0</modelVersion>
   <name>Dir5</name>
   <groupId>dir1.dir2.dir3.dir4.dir5</groupId>
   <artifactId>Dir5_appl</artifactId>
   <packaging>jar</packaging>
   <version>4.5</version>
   <parent>
	  <groupId>>PROJECT</groupId>
      <artifactId>Project_appl</artifactId>
      <version>4.5</version>
	  <relativePath>../../../../../../Make/Maven2/</relativePath>
   </parent>

After that I got this error message:
[INFO] [site:site]
[WARNING] Error loading report org.apache.maven.plugin.taglist.TagListReport
- AbstractMethodError: canGenerateReport()
[DEBUG] Attempting to source module information from local filesystem
[DEBUG] Searching for parent-POM: >PROJECT:Project_appl::4.5 of project:
dir1.dir2.dir3.dir4.dir5:Dir5_appl:pom:4.5 in relative path:
../../../../../../Make/Maven2/
[DEBUG] Path specified in  (../../../../../../Make/Maven2/) is a directory.
Searching for 'pom.xml' within this directory.
[DEBUG] Invalid parent-POM referenced by relative path
'../../../../../../Make/Maven2/' in parent specification in
dir1.dir2.dir3.dir4.dir5:Dir5_appl:pom:4.5:
  Specified: >PROJECT:Project_appl::4.5
  Found:     PROJECT:Project_appl:pom:4.5
[DEBUG] Retrieving parent-POM: >PROJECT:Project_appl::4.5 for project:
dir1.dir2.dir3.dir4.dir5:Dir5_appl:pom:4.5 from the repository.
[DEBUG] Trying repository central

It's very strange for me that it works with jar and not with the pom tag. I
thing I did everything well but it seems like not. The difference between
the found and the specified tag is the :pom: tag. I can’t figure out how to
configure the child pom to recognize its parent.

So please help me to solve this problem. Thanks a lot.

-- 
View this message in context: http://www.nabble.com/Invalid-parent-POM-referenced-by-relative-path-problem-tf2237277.html#a6203604
Sent from the Continuum - Users forum at Nabble.com.


Mime
View raw message