You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "Muralidhar Y." <TC...@emirates.com> on 2005/09/28 15:58:45 UTC
Cycle detected problem
hi I am using multiproject plug-in. When I am trying to create complete
build it says cycle detected. Build failed. This is happening when I declare
dependency of one subproject in another like the following
I had 2 subprojects. I declared 1st one as dependency in 2nd one and 2nd one
in 1st one.
Pls tell me how to solve it.
Muralidhar Y
Software Engineer,
Adastrum technologies-Nikai groups,
EmiratesGroup-I.T Division,
Dubai, UAE.
Mobile : 00971-50-2256149.
http://www.adastrumtech.com
http://www.mercator.aero
(Keep Smiling. Be happy All The Time.)
-----Original Message-----
From: Erick Dovale [mailto:erick.dovale@carosys.com]
Sent: 28 September 2005 17:34
To: Maven Users List
Subject: Re: eclipse:eclipse does not generates proper folder for resources
Kenney Westerhof wrote:
>On Tue, 27 Sep 2005, Erick Dovale wrote:
>
>I use the plugin extensively and never had these sorts of problems.
>
>What is your pom.xml, directory structure, and how do you invoke
>eclipse:eclipse, and from what location?
>
>-- Kenney
>
>
>
>>Hi there,
>>When I call m2 eclipse:eclipse on any eclipse project it does it all
>>fine except for the fact that the src/main/resources directory is
>>outputted to the root of the project.
>>is it me whose missing something here or is there a bug?? I search in
>>jira and did not find anything like this reported..
>>
>>Thanks..
>>edovale.
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>>
>
>--
>Kenney Westerhof
>http://www.neonics.com
>GPG public key: http://www.gods.nl/~forge/kenneyw.key
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>For additional commands, e-mail: users-help@maven.apache.org
>
>
>
>
Hi Kenney,
This is my pom.xml file:
<?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.thewoodexplorer</groupId>
<artifactId>thewoodexplorer.ui</artifactId>
<packaging>jar</packaging>
<version>0.1</version>
<parent>
<groupId>com.thewoodexplorer</groupId>
<artifactId>thewoodexplorer</artifactId>
<version>0.1</version>
</parent>
<build>
<sourceDirectory>src/main/java</sourceDirectory>
<testSourceDirectory>src/test/java</testSourceDirectory>
<resources>
<resource>
<directory>src/main/resources</directory>
<includes>
<include>**/*</include>
</includes>
</resource>
</resources>
</build>
<dependencies>
<dependency>
<groupId>com.thewoodexplorer</groupId>
<artifactId>thewoodexplorer.service</artifactId>
<version>0.1</version>
<type>jar</type>
</dependency>
<dependency>
<groupId>jgoodies</groupId>
<artifactId>forms</artifactId>
<version>1.0.5</version>
<type>jar</type>
</dependency>
<dependency>
<groupId>jgoodies</groupId>
<artifactId>looks</artifactId>
<version>1.3.1</version>
<type>jar</type>
</dependency>
<dependency>
<groupId>springframework</groupId>
<artifactId>spring</artifactId>
<version>1.2.4</version>
<type>jar</type>
</dependency>
<dependency>
<groupId>commons-beanutils</groupId>
<artifactId>commons-beanutils</artifactId>
<version>1.6.1</version>
<type>jar</type>
</dependency>
</dependencies>
</project>
the problem is that the output folder for the resources directory is set to
the root of the project as apposed to target/classes or something like that.
I also have a second folder into resources and I need it to be added as a
source folder so that eclipse add it to the classpath.
Thanks..
edovale
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Cycle detected problem
Posted by Trygve Laugstøl <tr...@codehaus.org>.
Do not hijack threads like this. Start a new thread instead of replying
to a existing thread. It messes up the thread view in the email clients
that thread messages.
On Wed, 2005-09-28 at 17:58 +0400, Muralidhar Y. wrote:
>
> hi I am using multiproject plug-in. When I am trying to create complete
> build it says cycle detected. Build failed. This is happening when I declare
> dependency of one subproject in another like the following
>
> I had 2 subprojects. I declared 1st one as dependency in 2nd one and 2nd one
> in 1st one.
>
> Pls tell me how to solve it.
You can't have a circular dependency. The only way to solve this is to
move the parts of 1 and 2 that you want to share in a third project and
make both 1 and 2 depend on 3.
--
Trygve
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org