Hello

i am with this problem several days and i don't solve it and in this
momento i don't know what can i make.

i have one maven multiproject (using maven 3.0) with this structure:
parent
 |-module1Classes
 |-module2EJB
 |-module3BO
 |-module4War

Only the module 1 (module1Classes) has one conf directory (confdir) and
inside there are the conf files (properties and xml files)
 when i install the projects into the EJB project (jar file) or into the
War project doesn't package the conf directory; inside the jar or war
does't appears the conf directory with these files.

 the parent has this pom file:

 .........
 <build>
  <resources>
   <resource>
    <directory>${basedir}</directory>
    <includes>
     <include>confdir/**/*.*</include>
    </includes>
    <filtering>false</filtering>
   </resource>
  </resources>
  <plugins>
   <plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-compiler-plugin</artifactId>
    <configuration>
     <source>1.6</source>
     <target>1.6</target>
     <encoding>Cp1252</encoding>
    </configuration>
   </plugin>
   <plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-source-plugin</artifactId>
    <executions>
     <execution>
      <goals>
       <goal>jar</goal>
      </goals>
     </execution>
    </executions>
   </plugin>
  </plugins>
 </build>
 <modules>
  <module>../module1Classes</module>
  <module>../module2EJB</module>
  <module>../module3BO</module>
  <module>../module4War</module>
 </modules>
 <dependencies>
 ...........
 </dependencies>
</project>
the rest of the projects (the war for example) have theirs pom file with
this:
.......
 <parent>
  <groupId>com.parent</groupId>
  <artifactId>parent</artifactId>
  <version>0.0.1-SNAPSHOT</version>
  <relativePath>../parent/pom.xml</relativePath>
 </parent>
 <properties>
  <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
 </properties>
 <build>
  <plugins>
   <plugin>
    <artifactId>maven-war-plugin</artifactId>
    <version>2.3</version>
    <configuration><!--
     <warSourceDirectory>WebRoot</warSourceDirectory> -->
     <packagingExcludes>WEB-INF/lib/*.jar</packagingExcludes>
     <archive>
               <manifest>
                  <addClasspath>true</addClasspath>
                  <classpathPrefix>lib/</classpathPrefix>
               </manifest>
             </archive>
    </configuration>
   </plugin>
  </plugins>
 </build>
</project>

when, from the parent project, i make one install only the module1Classes
project (jar file) has inside the conffiles.
can you help me for configuring maven for including into the rest of the
modules (war, EJB, BO...) the conf dir and their files?
thnaks

Reply via email to