This is a user list question. However you can't have source in a pom project
as there is nothing bound to compile it. You need to move that source to a
child module of type jar.


On 1/21/09 1:15 AM, "Kumari, Shailja" <[email protected]> wrote:

> 
>  Hi,
> 
>  I have  directory strucute like this
>     
>              a/b
>             a/c
>             a/d.java
>             a/e.java
> 
> 
> I have one pom.xml  under "a" directory .. Having code for compilation
> and redirecting directories from there
> Like
> <project>
> <groupId>m</groupId>
> <modelVersion>4.0.0</modelVersion>
> <artifactId>a</artifactId>
> <version>1.0</version>
> <packaging>pom</packaging> 
> <modules>
> <module>b</module>
> <module>c</module>
> </modules>
> 
> <build>
>  
> <sourceDirectory>${TOPDIR}/${JAVA_CLASSES_SRC}/${CUR_DIR}</sourceDirecto
> ry> -- all properties are defined
>  <outputDirectory>${TOPDIR}/${JAVA_CLASSES_DEST}</outputDirectory>
> 
> <testSourceDirectory>${basedir}/test</testSourceDirectory>
> <testOutputDirectory>${TOPDIR}/${JAVA_CLASSES_DEST}</testOutputDirectory
>> 
> </plugins>
> ------- code for compilation----->
> <plugin> 
>    <artifactId>maven-compiler-plugin</artifactId>
> ----------------
> </plugin>
> </plugin>
> </build>
> </project>
> 
> 
> What  happen when I do  mvn compile ,under "a " directory .. Directories
> b and c get compiled  but not all .java files under a
>   means a/d.java and a/e.java is not getting compild .  WHY ? Plz help
> me
> -----------
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to