You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by sam <qi...@gmail.com> on 2007/05/18 11:24:38 UTC
Run package life cyclic for the subproject occur error.
HI,
Guys!I have set up a parent project which has three sub project.(see the
attachments please).Both the agentapp project
and the agentwar project is dependence agentcommon project. I have installed
the agentcommon project to the local repo.
and run mvn -N install under the parent project agent directory.so I can
package the other subproject agentapp and agentwar,
But when I package the agentcommon again,maven has reported the error
message like this:
=============================================================================================
D:\workspace\agent\agentcommon>mvn package -X
+ Error stacktraces are turned on.
Maven version: 2.0.5
[DEBUG] Building Maven user-level plugin registry from: 'C:\Documents and
Settings\Administrator\.m2
\plugin-registry.xml'
[DEBUG] Building Maven global-level plugin registry from: 'E:\maven-
2.0.5\bin\..\conf\plugin-registr
y.xml'
[INFO] Scanning for projects...
[DEBUG] Searching for parent-POM: com.sinosafe.pcies:agent::1.0-SNAPSHOT of
project: com.sinosafe.pc
ies:agentcommon:jar:1.0-SNAPSHOT in relative path: ../pom.xml
[DEBUG] Using parent-POM from the project hierarchy at: '../pom.xml' for
project: com.sinosafe.pcies
:agentcommon:jar:1.0-SNAPSHOT
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] The projects in the reactor contain a cyclic reference: Edge between
'Vertex{label='com.sinos
afe.pcies:agentcommon'}' and 'Vertex{label='com.sinosafe.pcies:agentcommon'}'
introduces to cycle in
the graph com.sinosafe.pcies:agentcommon --> com.sinosafe.pcies:agentcommon
[INFO]
------------------------------------------------------------------------
[DEBUG] Trace
org.apache.maven.BuildFailureException: The projects in the reactor contain
a cyclic reference: Edge
between 'Vertex{label='com.sinosafe.pcies:agentcommon'}' and
'Vertex{label='com.sinosafe.pcies:agen
tcommon'}' introduces to cycle in the graph com.sinosafe.pcies:agentcommon-->
com.sinosafe.pcies:ag
entcommon
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:123)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:272)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java
:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java
:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.codehaus.plexus.util.dag.CycleDetectedException: Edge between
'Vertex{label='com.sino
safe.pcies:agentcommon'}' and 'Vertex{label='com.sinosafe.pcies:agentcommon'}'
introduces to cycle i
n the graph com.sinosafe.pcies:agentcommon -->
com.sinosafe.pcies:agentcommon
at org.codehaus.plexus.util.dag.DAG.addEdge(DAG.java:127)
at org.codehaus.plexus.util.dag.DAG.addEdge(DAG.java:107)
at org.apache.maven.project.ProjectSorter.<init>(ProjectSorter.java
:104)
at org.apache.maven.execution.ReactorManager.<init>(
ReactorManager.java:59)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:296)
... 10 more
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 1 second
[INFO] Finished at: Fri May 18 17:14:20 CST 2007
[INFO] Final Memory: 1M/2M
[INFO]
------------------------------------------------------------------------
===================================================================================================
what this message mean please?thanks in Advance!
Re: Run package life cyclic for the subproject occur error.
Posted by Varghese C V <vc...@zafinlabs.com>.
This might be the cause for the cyclic reference. Your parent pom
contains a dependency on and has a module defined as 'agentcommon'
...
<dependency>
<groupId>com.sinosafe.pcies</groupId>
<artifactId>agentcommon</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>
<modules>
<module>agentcommon</module>
<module>agentwar</module>
<module>agentapp</module>
</modules>
...
cheers
Varghese C V
sam wrote:
>
> HI,
> Guys!I have set up a parent project which has three sub project.(see
> the attachments please).Both the agentapp project
> and the agentwar project is dependence agentcommon project. I have
> installed the agentcommon project to the local repo.
> and run mvn -N install under the parent project agent directory.so I
> can package the other subproject agentapp and agentwar,
> But when I package the agentcommon again,maven has reported the error
> message like this:
> =============================================================================================
> D:\workspace\agent\agentcommon>mvn package -X
> + Error stacktraces are turned on.
> Maven version: 2.0.5
> [DEBUG] Building Maven user-level plugin registry from: 'C:\Documents
> and Settings\Administrator\.m2
> \plugin-registry.xml'
> [DEBUG] Building Maven global-level plugin registry from:
> 'E:\maven-2.0.5\bin\..\conf\plugin-registr
> y.xml'
> [INFO] Scanning for projects...
> [DEBUG] Searching for parent-POM:
> com.sinosafe.pcies:agent::1.0-SNAPSHOT of project: com.sinosafe.pc
> ies:agentcommon:jar:1.0-SNAPSHOT in relative path: ../pom.xml
> [DEBUG] Using parent-POM from the project hierarchy at: '../pom.xml'
> for project: com.sinosafe.pcies
> :agentcommon:jar:1.0-SNAPSHOT
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] The projects in the reactor contain a cyclic reference: Edge
> between 'Vertex{label='com.sinos
> afe.pcies:agentcommon'}' and
> 'Vertex{label='com.sinosafe.pcies:agentcommon'}' introduces to cycle in
> the graph com.sinosafe.pcies:agentcommon -->
> com.sinosafe.pcies:agentcommon
> [INFO]
> ------------------------------------------------------------------------
> [DEBUG] Trace
> org.apache.maven.BuildFailureException : The projects in the reactor
> contain a cyclic reference: Edge
> between 'Vertex{label='com.sinosafe.pcies:agentcommon'}' and
> 'Vertex{label='com.sinosafe.pcies:agen
> tcommon'}' introduces to cycle in the graph
> com.sinosafe.pcies:agentcommon --> com.sinosafe.pcies:ag
> entcommon
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:123)
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:272)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java
> :39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at org.codehaus.classworlds.Launcher.launchEnhanced
> (Launcher.java:315)
> at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
> at
> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
> at org.codehaus.classworlds.Launcher.main (Launcher.java:375)
> Caused by: org.codehaus.plexus.util.dag.CycleDetectedException: Edge
> between 'Vertex{label='com.sino
> safe.pcies:agentcommon'}' and
> 'Vertex{label='com.sinosafe.pcies:agentcommon' }' introduces to cycle i
> n the graph com.sinosafe.pcies:agentcommon -->
> com.sinosafe.pcies:agentcommon
> at org.codehaus.plexus.util.dag.DAG.addEdge(DAG.java:127)
> at org.codehaus.plexus.util.dag.DAG.addEdge (DAG.java:107)
> at
> org.apache.maven.project.ProjectSorter.<init>(ProjectSorter.java:104)
> at
> org.apache.maven.execution.ReactorManager.<init>(ReactorManager.java:59)
> at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:296)
> ... 10 more
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 1 second
> [INFO] Finished at: Fri May 18 17:14:20 CST 2007
> [INFO] Final Memory: 1M/2M
> [INFO]
> ------------------------------------------------------------------------
>
> ===================================================================================================
> what this message mean please?thanks in Advance!
>
> ------------------------------------------------------------------------
>
> <?xml version="1.0" encoding="UTF-8"?>
> <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.sinosafe.pcies</groupId>
> <artifactId>agent</artifactId>
> <packaging>pom</packaging>
> <version>1.0-SNAPSHOT</version>
> <name>agent</name>
> <url>http://maven.apache.org</url>
> <build>
> <resources>
> <resource>
> <directory>${basedir}/agentcommon/src/main/java</directory>
> </resource>
> </resources>
> <plugins>
> <plugin>
> <artifactId>maven-compiler-plugin</artifactId>
> <configuration>
> <source>1.5</source>
> <target>1.5</target>
> </configuration>
> </plugin>
> </plugins>
> </build>
> <dependencies>
> <dependency>
> <groupId>junit</groupId>
> <artifactId>junit</artifactId>
> <version>3.8.1</version>
> <scope>test</scope>
> </dependency>
> <dependency>
> <groupId>acegi-security</groupId>
> <artifactId>acegi-security</artifactId>
> <version>1.0.0</version>
> </dependency>
> <dependency>
> <groupId>commons-beanutils</groupId>
> <artifactId>commons-beanutils</artifactId>
> <version>2006</version>
> </dependency>
> <dependency>
> <groupId>ehcache</groupId>
> <artifactId>ehcache</artifactId>
> <version>1.2beta4</version>
> </dependency>
> <dependency>
> <groupId>log4j</groupId>
> <artifactId>log4j</artifactId>
> <version>1.2.9</version>
> </dependency>
> <dependency>
> <groupId>huafa</groupId>
> <artifactId>huafa</artifactId>
> <version>1.0-rc3-20061220</version>
> </dependency>
> <dependency>
> <groupId>javax.servlet</groupId>
> <artifactId>servlet-api</artifactId>
> <version>2.4.public_draft</version>
> </dependency>
> <dependency>
> <groupId>struts</groupId>
> <artifactId>struts</artifactId>
> <version>1.2.9</version>
> </dependency>
> <dependency>
> <groupId>taglibs</groupId>
> <artifactId>standard</artifactId>
> <version>1.1.2</version>
> </dependency>
> <dependency>
> <groupId>ibatis</groupId>
> <artifactId>ibatis-common</artifactId>
> <version>2.0.0</version>
> </dependency>
> <dependency>
> <groupId>commons-collections</groupId>
> <artifactId>commons-collections</artifactId>
> <version>3.1</version>
> </dependency>
> <dependency>
> <groupId>ibatis</groupId>
> <artifactId>ibatis-sqlmap</artifactId>
> <version>2.0.0</version>
> </dependency>
> <dependency>
> <groupId>commons-lang</groupId>
> <artifactId>commons-lang</artifactId>
> <version>2.1</version>
> </dependency>
> <dependency>
> <groupId>ojdbc</groupId>
> <artifactId>ojdbc</artifactId>
> <version>14</version>
> </dependency>
> <dependency>
> <groupId>huafa</groupId>
> <artifactId>common-bizorg-service</artifactId>
> <version>1.0</version>
> </dependency>
> <dependency>
> <groupId>spring</groupId>
> <artifactId>spring-ldap</artifactId>
> <version>1.1.2</version>
> </dependency>
> <dependency>
> <groupId>spring</groupId>
> <artifactId>spring</artifactId>
> <version>2.0</version>
> </dependency>
> <dependency>
> <groupId>displaytag</groupId>
> <artifactId>displaytag</artifactId>
> <version>1.1</version>
> </dependency>
> <dependency>
> <groupId>displaytag</groupId>
> <artifactId>displaytag-export-poi</artifactId>
> <version>1.1</version>
> </dependency>
> <dependency>
> <groupId>displaytag</groupId>
> <artifactId>taglibs-image</artifactId>
> <version>1.0</version>
> </dependency>
> <dependency>
> <groupId>displaytag</groupId>
> <artifactId>pmiw</artifactId>
> <version>1.0</version>
> </dependency>
> <dependency>
> <groupId>common-service</groupId>
> <artifactId>common-service-print</artifactId>
> <version>1.0.2</version>
> </dependency>
> <dependency>
> <groupId>pif</groupId>
> <artifactId>pif-app</artifactId>
> <version>1.3.7</version>
> </dependency>
> <dependency>
> <groupId>spring</groupId>
> <artifactId>spring-webflow</artifactId>
> <version>1.0</version>
> </dependency>
> <dependency>
> <groupId>spring</groupId>
> <artifactId>spring-binding</artifactId>
> <version>1.0</version>
> </dependency>
> <dependency>
> <groupId>ognl</groupId>
> <artifactId>ognl</artifactId>
> <version>2.6.9</version>
> </dependency>
> <dependency>
> <groupId>extremecomponents</groupId>
> <artifactId>extremecomponents</artifactId>
> <version>1.0.1</version>
> </dependency>
> <dependency>
> <groupId>itext</groupId>
> <artifactId>itext</artifactId>
> <version>1.3</version>
> </dependency>
> <dependency>
> <groupId>iTextAsian</groupId>
> <artifactId>iTextAsian</artifactId>
> <version>1.3</version>
> </dependency>
> <dependency>
> <groupId>poi</groupId>
> <artifactId>poi-2.5.1-final</artifactId>
> <version>20040804</version>
> </dependency>
> <dependency>
> <groupId>drools</groupId>
> <artifactId>drools-compiler-3.1.0-M1</artifactId>
> <version>3.1.0-M1</version>
> </dependency>
> <dependency>
> <groupId>drools</groupId>
> <artifactId>drools-core-3.1.0-M1</artifactId>
> <version>3.1.0-M1</version>
> </dependency>
> <dependency>
> <groupId>drools</groupId>
> <artifactId>drools-jsr94-3.1.0-M1</artifactId>
> <version>3.1.0-M1</version>
> </dependency>
> <dependency>
> <groupId>antlr</groupId>
> <artifactId>antlr-3.0b5</artifactId>
> <version>3.0b5</version>
> </dependency>
> <dependency>
> <groupId>stringtemplate</groupId>
> <artifactId>stringtemplate-3.0</artifactId>
> <version>3.0</version>
> </dependency>
> <dependency>
> <groupId>xml-apis</groupId>
> <artifactId>xml-apis-1.0.b2</artifactId>
> <version>1.0.b2</version>
> </dependency>
> <dependency>
> <groupId>janino</groupId>
> <artifactId>janino-2.5.5</artifactId>
> <version>2.5.5</version>
> </dependency>
> <dependency>
> <groupId>jsr94</groupId>
> <artifactId>jsr94-1.1</artifactId>
> <version>1.1</version>
> </dependency>
> <dependency>
> <groupId>huafa</groupId>
> <artifactId>common-suite</artifactId>
> <version>1.0.1</version>
> </dependency>
> <dependency>
> <groupId>fop</groupId>
> <artifactId>fop</artifactId>
> <version>1.0</version>
> </dependency>
> <dependency>
> <groupId>avalon</groupId>
> <artifactId>avalon</artifactId>
> <version>1.0</version>
> </dependency>
> <dependency>
> <groupId>batik</groupId>
> <artifactId>batik</artifactId>
> <version>1.0</version>
> </dependency>
> <dependency>
> <groupId>com.sinosafe.pcies</groupId>
> <artifactId>agentcommon</artifactId>
> <version>${project.version}</version>
> </dependency>
> </dependencies>
> <modules>
> <module>agentcommon</module>
> <module>agentwar</module>
> <module>agentapp</module>
> </modules>
> <repositories>
> <repository>
> <id>maven</id>
> <name>Maven Repository</name>
> <url>http://10.10.202.22/maven</url>
> </repository>
> </repositories>
> <distributionManagement>
> <site>
> <id>maven</id>
> <url />
> </site>
> </distributionManagement>
> </project>
> ------------------------------------------------------------------------
>
> <?xml version="1.0"?>
> <project>
> <parent>
> <artifactId>agent</artifactId>
> <groupId>com.sinosafe.pcies</groupId>
> <version>1.0-SNAPSHOT</version>
> </parent>
> <modelVersion>4.0.0</modelVersion>
> <groupId>com.sinosafe.pcies</groupId>
> <artifactId>agentapp</artifactId>
> <name>agentapp</name>
> <version>1.0-SNAPSHOT</version>
> <url>http://maven.apache.org</url>
> <build>
> <plugins>
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-compiler-plugin</artifactId>
> <configuration>
> <source>1.5</source>
> <target>1.5</target>
> </configuration>
> </plugin>
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-jar-plugin</artifactId>
> <configuration>
> <archive>
> <addMavenDescriptor>false</addMavenDescriptor>
> </archive>
> </configuration>
> </plugin>
> </plugins>
> </build>
> </project>
> ------------------------------------------------------------------------
>
> <?xml version="1.0"?>
> <project>
> <parent>
> <artifactId>agent</artifactId>
> <groupId>com.sinosafe.pcies</groupId>
> <version>1.0-SNAPSHOT</version>
> </parent>
> <modelVersion>4.0.0</modelVersion>
> <groupId>com.sinosafe.pcies</groupId>
> <artifactId>agentcommon</artifactId>
> <name>agentcommon</name>
> <version>1.0-SNAPSHOT</version>
> <url>http://maven.apache.org</url>
> <build>
> <plugins>
> <plugin>
> <artifactId>maven-compiler-plugin</artifactId>
> <configuration>
> <source>1.5</source>
> <target>1.5</target>
> </configuration>
> </plugin>
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-jar-plugin</artifactId>
> <configuration>
> <archive>
> <addMavenDescriptor>false</addMavenDescriptor>
> </archive>
> </configuration>
> </plugin>
> </plugins>
> </build>
> </project>
> ------------------------------------------------------------------------
>
> <?xml version="1.0"?>
> <project>
> <parent>
> <artifactId>agent</artifactId>
> <groupId>com.sinosafe.pcies</groupId>
> <version>1.0-SNAPSHOT</version>
> </parent>
> <modelVersion>4.0.0</modelVersion>
> <groupId>com.sinosafe.pcies</groupId>
> <artifactId>agentwar</artifactId>
> <packaging>war</packaging>
> <name>agentwar Maven Webapp</name>
> <version>1.0-SNAPSHOT</version>
> <url>http://maven.apache.org</url>
> <build>
> <finalName>agentwar</finalName>
> <plugins>
> <plugin>
> <artifactId>maven-compiler-plugin</artifactId>
> <configuration>
> <source>1.5</source>
> <target>1.5</target>
> </configuration>
> </plugin>
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-jar-plugin</artifactId>
> <configuration>
> <archive>
> <addMavenDescriptor>false</addMavenDescriptor>
> </archive>
> </configuration>
> </plugin>
> </plugins>
> </build>
> </project>
> ------------------------------------------------------------------------
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org