maven - Cyclic Reference Error from parent to children module reference -


i'm referencing jar dependency generated module build by:

<dependency>     <groupid>org.hammerden</groupid>     <artifactid>adapter</artifactid>     <version>1.0-snapshot</version>     <classifier>classes</classifier> </dependency> 

my module like:

<parent>     <groupid>org.hammerden</groupid>     <artifactid>acacia</artifactid>     <version>1.0-snapshot</version> </parent> <artifactid>adapter</artifactid> <packaging>war</packaging>  <build>     <plugins>         <plugin>             <artifactid>maven-war-plugin</artifactid>             <version>2.6</version>             <configuration>                 <attachclasses>true</attachclasses>             </configuration>         </plugin>     </plugins> </build> 

when try build parent project error

[info] scanning projects... [error] [error] projects in reactor contain cyclic reference: edge between 'vertex{label='org.hammerden:acacia:1.0-snapshot'}' , 'vertex{label='org.hammerden:adapter:1.0-snapshot'}' introduces cycle in graph org.hammerden:adapter:1.0-snapshot --> org.hammerden:acacia:1.0-snapshot --> org.hammerden:adapter:1.0-snapshot @

how can find generated jar children module? seems jar cannot found parent.

see maven: complete reference, 3.6.2. multi-module vs. inheritance:

figure 3.4. maven-book multi-module vs. inheritance

there reason why red arrows point 1 direction only: inheritance.


Comments

Popular posts from this blog

ios - RestKit 0.20 — CoreData: error: Failed to call designated initializer on NSManagedObject class (again) -

java - Digest auth with Spring Security using javaconfig -

laravel - PDOException in Connector.php line 55: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES) -