Hello,

 I am new to Maven. I have the following problem. Need your expertise
knowledge on this.

     I have few Application related properties file. When I do compile I
expect all goes to the respective folder(In my case my properties file is
under ${basedir}/phonebook/src/com/wssc/ad/phonebook/utils  after
compilation I expect it to be copied under
${basedir}/phonebook/WebContent/WEB-INF/classes/ com/wssc/ad/phonebook/utils 
)

 

Surprisingly its copying under
${basedir}/phonebook/WebContent/WEB-INF/classes since my
<outputDirectory>${basedir}/phonebook/WebContent/WEB-INF/classes</outputDirectory>
setting. Not sure how to configure.

 

Here is my pom.xml file

 

 

<?xml version="1.0" encoding="UTF-8"?>

<project>

            <modelVersion>4.0.0</modelVersion>

            <groupId>com.wssc.ad.phonebook</groupId>

            <artifactId>phonebook</artifactId>

            <packaging>war</packaging>

            <version>1.0.0</version>

            <description>WSSC Blue Book </description>

   <dependencies>

 

  <build>

            <sourceDirectory>${basedir}/phonebook</sourceDirectory> 

           
<outputDirectory>${basedir}/phonebook/WebContent/WEB-INF/classes</outputDirectory>

             <resources>

      <resource>

       
<directory>${basedir}/phonebook/src/com/wssc/ad/phonebook/utils</directory>     
                             

        <includes>

                          <filtering>false</filtering>

          <include>**/*.properties</include>

       </includes>

      </resource>

    </resources>

 

    <plugins>

 

                          <plugin>                      

                                   
<groupId>org.apache.maven.plugins</groupId>

                                   
<artifactId>maven-compiler-plugin</artifactId>

                                    <configuration>

                                               
<compilerVersion>1.4</compilerVersion>

                                                <source>1.4</source>

                                                <target>1.4</target>

                                    </configuration> 

                                    

                          </plugin>

                        

                           <plugin>

                                               
<groupId>org.apache.maven.plugins</groupId>

                                               
<artifactId>maven-war-plugin</artifactId>

                                                <configuration>        

                                                 
<warSourceDirectory>${basedir}/phonebook/WebContent</warSourceDirectory>        
                   

                                                </configuration>

                                    </plugin>    

 

            </plugins>                     

 

  </build>

 </project>


-- 
View this message in context: 
http://www.nabble.com/Copying-resource--files-into-custom-directory-tf4530240s177.html#a12927708
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to