Hello, I'm trying to get my project to use a login.properties file that has
been placed in the java package. "I'm not entirely sure this is where it
should be placed". In order to get it to work, I needed to had the following
build code to my pom 

<build>
        <resources>
            <resource>
                <directory>src/main/java</directory>
                <includes>
                    <include>**/*.properties</include>                    
                </includes>                
            </resource>
       </resources>
</build>

This resulted with the application leaving out my hibernate xml files at
build time. My hibernate config files are placed within my resource package. 

To get this to work, I needed to add the following xml to my pom, 

<build>
        <resources>
            <resource>
                <directory>src/main/java</directory>
                <includes>
                    <include>**/*.properties</include>                    
                </includes>                
            </resource>
            <resource>
                <directory>src/main/resources</directory>
                <includes>
                    <include>**/*</include>                    
                </includes>                
            </resource>
        </resources>
</build>

This does work, however I'm wondering if there is a better/proper way to
handle this. 

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Configuring-pom-to-use-properties-from-root-tp5676092.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to