It's not recommanded to use the same project for your multiproject entry and to store the parent settings.
Generally, what it is recommended to do is : modules |-modules-parent | \-project.xml => All your common settings for your modules |-module-A | \-project.xml => Extends modules-parent |-module-B | \-project.xml => Extends modules-parent and uses module-A for example \-project.xml => Multiproject settings (very light). Don't extends modules-parent Arnaud On 2/16/06, Manisha Sur <[EMAIL PROTECTED]> wrote: > Hi , > > let me take an example , > > i have a 'modules' maven directory containing project.xml with the contents: > <project> > ....... > <dependencies> > <dependency> > <groupId>com.sun.j2ee.blueprints</groupId> > <artifactId>petstore-war</artifactId> > <version>${pom.currentVersion}</version> > <type>war</type> > <properties> > <ear.bundle>true</ear.bundle> > <ear.appxml.war.context-root>/petstore</ear.appxml.war.context-root> > </properties> > </dependency> > <build> > ....... > </build> > ....... > </project> > > the project.properties : > maven.multiproject.includes=**/project.xml > maven.multiproject.excludes=project.xml > > > i have a subproject 'petstore-web' under the modules directory containing > project.xml with the contents: > > <project> > <extend>../project.xml</extend> > <name>Petstore WAR</name> > <artifactId>petstore-war</artifactId> > <package>com.sun.j2ee.blueprints.petstore</package> > <shortDescription>Petstore WAR</shortDescription> > <description>Petstore WAR</description> > <dependencies> > <dependency> > <groupId>com.sun.j2ee.blueprints</groupId> > <artifactId>util-tracer</artifactId> > <version>${pom.currentVersion}</version> > <properties> > <war.bundle>true</war.bundle> > </properties> > </dependency> > ........ > </dependencies> > <build> > ...... > </build> > </project> > > > Now ... From modules when i run 'multiproject:clean' , it gives the same > error of cycle. > but if i run clean from the petstore-web directory , i get no such error > ..... > The Multiproject:clean must be calling clean on each subproject ... so if i > run explicitly from the subproject ... it runs smoothly i.e. it deletes the > target directory within the subproject. > What causes the error ? > > > On 2/16/06, Manisha Sur <[EMAIL PROTECTED]> wrote: > > > > How does it effect the clean goal ? it only means to clean the target > > directory. > > > > On 2/15/06, Arnaud HERITIER <[EMAIL PROTECTED] > wrote: > > > > > > Yes, if each subproject extends the master you have a cycle because > > > aech subproject declares itself as a dependency. > > > It's better to define your dependencies in each subproject. > > > > > > Arnaud > > > > > > On 2/15/06, Manisha Sur < [EMAIL PROTECTED]> wrote: > > > > Hi, > > > > > > > > I get the 'A cycle was detected' error for the multiproject:goal > > > > -Dgoal=3Dclean . > > > > The master project.xml contains dependencies on its subprojects, is > > > this the > > > > reason its giving this error. > > > > when i comment the dependencies part of the master project.xml , > > > everything > > > > works fine. > > > > how to tackle this problem . I am using maven 1.1 beta2 . i also have > > > a copy > > > > of maven 1.0.2 > > > > > > > > > > > > -- > > > > Warm Regards > > > > Manisha Sur > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > -- > > Warm Regards > > Manisha Sur > > > > > -- > Warm Regards > Manisha Sur > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]