|
82 | 82 |
|
83 | 83 | <build> |
84 | 84 |
|
| 85 | + <resources> |
| 86 | + <resource> |
| 87 | + <directory>src/main/xar-resources</directory> |
| 88 | + <filtering>false</filtering> |
| 89 | + <excludes> |
| 90 | + <exclude>modules/git-sync.xql</exclude> |
| 91 | + <exclude>services/git-commit.xql</exclude> |
| 92 | + </excludes> |
| 93 | + <targetPath>xar-resources</targetPath> |
| 94 | + </resource> |
| 95 | + <resource> |
| 96 | + <directory>src/main/xar-resources</directory> |
| 97 | + <filtering>true</filtering> |
| 98 | + <includes> |
| 99 | + <include>modules/git-sync.xql</include> |
| 100 | + <include>services/git-commit.xql</include> |
| 101 | + </includes> |
| 102 | + <targetPath>xar-resources</targetPath> |
| 103 | + </resource> |
| 104 | + <resource> |
| 105 | + <!-- NOTE(AR): the templates are also needed at runtime by the generated forms --> |
| 106 | + <directory>src/main/formGenerator/templates</directory> |
| 107 | + <filtering>false</filtering> |
| 108 | + <targetPath>xar-resources/forms/templates</targetPath> |
| 109 | + </resource> |
| 110 | + </resources> |
| 111 | + |
85 | 112 | <pluginManagement> |
86 | 113 | <plugins> |
87 | 114 | <plugin> |
|
96 | 123 | <plugin> |
97 | 124 | <groupId>org.apache.maven.plugins</groupId> |
98 | 125 | <artifactId>maven-resources-plugin</artifactId> |
99 | | - <version>3.3.1</version> |
100 | 126 | <executions> |
101 | 127 | <execution> |
102 | | - <id>copy-xar-resources</id> |
103 | | - <phase>process-resources</phase> |
104 | | - <goals> |
105 | | - <goal>copy-resources</goal> |
106 | | - </goals> |
107 | | - <configuration> |
108 | | - <resources> |
109 | | - <resource> |
110 | | - <directory>src/main/xar-resources</directory> |
111 | | - <filtering>false</filtering> |
112 | | - </resource> |
113 | | - </resources> |
114 | | - <outputDirectory>${project.build.directory}/xar-resources</outputDirectory> |
115 | | - </configuration> |
116 | | - </execution> |
117 | | - <execution> |
118 | | - <id>copy-formGenerator-templates</id> |
119 | 128 | <phase>process-resources</phase> |
120 | 129 | <goals> |
121 | | - <goal>copy-resources</goal> |
| 130 | + <goal>resources</goal> |
122 | 131 | </goals> |
123 | | - <configuration> |
124 | | - <resources> |
125 | | - <!-- NOTE(AR): the templates are also needed at runtime by the generated forms --> |
126 | | - <resource> |
127 | | - <directory>src/main/formGenerator/templates</directory> |
128 | | - <filtering>false</filtering> |
129 | | - </resource> |
130 | | - </resources> |
131 | | - <outputDirectory>${project.build.directory}/xar-resources/forms/templates</outputDirectory> |
132 | | - </configuration> |
133 | 132 | </execution> |
134 | 133 | </executions> |
135 | 134 | </plugin> |
|
0 commit comments