sorry, i was just clarifying it since you did not show if the same layout applies to all sub-modules.
you can also configure the source directory using the maven-compiler-plugin. i was just browsing its documentation page because i realized that all compilations have debug turned on (shouldn't it be more logical to have it turned off, and let the developers turn it on when they are needed?) http://maven.apache.org/plugins/maven-compiler-plugin/compile-mojo.html ciao! On 11/17/05, Wim Deblauwe <[EMAIL PROTECTED]> wrote: > I have said that in my initial post. They do not follow the layout and I > have created a parent pom that both extend. > In that parent pom, I have this: > > <project> > <build> > <directory>temp</directory> > <outputDirectory>temp/classes</outputDirectory> > <finalName>${artifactId}-${version}</finalName> > <testOutputDirectory>temp/test-classes</testOutputDirectory> > <sourceDirectory>src/main</sourceDirectory> > <scriptSourceDirectory>src/main/scripts</scriptSourceDirectory> > <testSourceDirectory>src/test</testSourceDirectory> > <resources> > <resource> > <directory>src/resources</directory> > </resource> > </resources> > <testResources> > <testResource> > <directory>src/resources</directory> > </testResource> > </testResources> > </build> > ... > </project> > > Maybe I should specify add ${basedir} or something simular? > > regards, > > Wim > > 2005/11/17, Anuerin Diaz <[EMAIL PROTECTED]>: > > > > a few questions: > > > > - does utils-lang and utils-logging follow the expected directory layout? > > - if the answer to the first question is no, did you adjust the > > project descriptors of each project accordingly? > > > > sometime i get that "all classes are up to date" after a compilation > > failure. what i usually do is clean everything up so everything needs > > to be compiled again. > > > > ciao! > > > > On 11/17/05, Wim Deblauwe <[EMAIL PROTECTED]> wrote: > > > Hi, > > > > > > I have a problem using <modules/> and I don't know if it is a bug or > > maybe > > > I'm doing something wrong: > > > > > > This is my structure (note that I use a master pom that defines my > > slightly > > > different structure): > > > > > > + modules > > > + utils > > > + utils-lang > > > + pom.xml > > > + src > > > + main > > > + test > > > + utils-logging > > > + pom.xml > > > + src > > > + main > > > + test > > > > > > The utils-lang module depends on the utils-logging module, so I've put > > in > > > the pom.xml of utils-lang: > > > > > > <modules> > > > <module>../utils-logging</module> > > > </modules> > > > > > > When I then run 'mvn compile' from the utils-lang dir, I get the > > following > > > output: > > > > > > [INFO] Scanning for projects... > > > [INFO] Reactor build order: > > > [INFO] Utils Logging Module > > > [INFO] Utils Lang Module > > > [INFO] > > > > > ---------------------------------------------------------------------------- > > > [INFO] Building Utils Logging Module > > > [INFO] task-segment: [compile] > > > [INFO] > > > > > ---------------------------------------------------------------------------- > > > [INFO] [resources:resources] > > > [INFO] Using default encoding to copy filtered resources. > > > [INFO] [compiler:compile] > > > [INFO] Nothing to compile - all classes are up to date > > > [INFO] > > > > > ---------------------------------------------------------------------------- > > > [INFO] Building Utils Lang Module > > > [INFO] task-segment: [compile] > > > [INFO] > > > > > ---------------------------------------------------------------------------- > > > [INFO] No goals needed for project - skipping > > > [INFO] > > > [INFO] > > > [INFO] > > > > > ---------------------------------------------------------------------------- > > > [INFO] Reactor Summary: > > > [INFO] > > > > > ---------------------------------------------------------------------------- > > > [INFO] Utils Logging Module ................................... SUCCESS > > [ > > > 1.266s] > > > [INFO] Utils Lang Module ...................................... SUCCESS > > [ > > > 0.000s] > > > [INFO] > > > > > ---------------------------------------------------------------------------- > > > [INFO] > > > > > ---------------------------------------------------------------------------- > > > [INFO] BUILD SUCCESSFUL > > > [INFO] > > > > > ---------------------------------------------------------------------------- > > > [INFO] Total time: 1 second > > > [INFO] Finished at: Thu Nov 17 08:14:31 CET 2005 > > > [INFO] Final Memory: 2M/5M > > > [INFO] > > > > > ---------------------------------------------------------------------------- > > > > > > > > > So the module i'm trying to compile does not get build. The module that > > I > > > depend on, do gets build. What does the error 'No goals needed for > > project - > > > skipping' mean? Any clue on what goes wrong? > > > > > > regards, > > > > > > Wim > > > > > > > > > > > > -- > > > > "Programming, an artform that fights back" > > > > Anuerin G. Diaz > > Registered Linux User #246176 > > Friendly Linux Board @ http://mandrivausers.org/index.php > > http://capsule.ramfree17.org , when you absolutely have nothing else > > better to do > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > -- "Programming, an artform that fights back" Anuerin G. Diaz Registered Linux User #246176 Friendly Linux Board @ http://mandrivausers.org/index.php http://capsule.ramfree17.org , when you absolutely have nothing else better to do --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
