[Logo] OLD FORUM - Use new one: https://www.CaptainCasa.online/forum
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
using dispatcherinfo.xml with maven  XML
Forum Index -> Development - Code Snippets
Author Message
dstrigel

Power User

Joined: 09/12/2010 09:23:42
Messages: 69
Offline

in our case the dispatcherinfo.xml was not moved to /target/classes/

Our solution is to define the Dispatcher.java/dispatcherinfo.xml directory as a resource directory ...
Code:
             <resource>
                 <targetPath>classes/path/to/dispatcherinfo_xml</targetPath>
                 <directory>${basedir}/src/main/path/to/dispatcherinfo_xml</directory>
                 <includes>
                     <include>**.xml</include>
                 </includes>
                 <filtering>false</filtering>
             </resource>
 


Kind, regards,
Daniel
 
Forum Index -> Development - Code Snippets
Go to:   
Powered by JForum 2.1.6 © JForum Team