|
6 | 6 | <artifactId>basicmodule</artifactId> |
7 | 7 | <version>0.1-SNAPSHOT</version> |
8 | 8 | </parent> |
9 | | - <groupId>org.openmrs.module</groupId> |
| 9 | + |
10 | 10 | <artifactId>basicmodule-omod</artifactId> |
11 | 11 | <packaging>jar</packaging> |
12 | 12 | <name>Basic Module OMOD</name> |
|
55 | 55 | </resource> |
56 | 56 | <resource> |
57 | 57 | <directory>src/main/webapp</directory> |
58 | | - <filtering>true</filtering> |
| 58 | + <filtering>false</filtering> |
59 | 59 | <excludes> |
60 | 60 | <exclude>resources</exclude> |
61 | 61 | </excludes> |
|
70 | 70 | <targetPath>web/module</targetPath> |
71 | 71 | </resource> |
72 | 72 | </resources> |
| 73 | + |
73 | 74 | <testResources> |
74 | 75 | <testResource> |
75 | 76 | <directory>src/test/resources</directory> |
76 | 77 | <filtering>true</filtering> |
77 | | - <includes> |
78 | | - <include>**/*.xml</include> |
79 | | - <include>**/*.txt</include> |
80 | | - </includes> |
81 | | - </testResource> |
82 | | - <testResource> |
83 | | - <directory>src/test/resources</directory> |
84 | | - <filtering>false</filtering> |
85 | | - <excludes> |
86 | | - <exclude>**/*.xml</exclude> |
87 | | - <exclude>**/*.txt</exclude> |
88 | | - </excludes> |
89 | 78 | </testResource> |
90 | 79 | </testResources> |
| 80 | + |
91 | 81 | <pluginManagement> |
92 | 82 | <plugins> |
93 | 83 | <plugin> |
|
96 | 86 | <includeEmptyDirs>true</includeEmptyDirs> |
97 | 87 | </configuration> |
98 | 88 | </plugin> |
| 89 | + <!--This plugin's configuration is used to store Eclipse m2e settings |
| 90 | + only. It has no influence on the Maven build itself. --> |
| 91 | + <plugin> |
| 92 | + <groupId>org.eclipse.m2e</groupId> |
| 93 | + <artifactId>lifecycle-mapping</artifactId> |
| 94 | + <version>1.0.0</version> |
| 95 | + <configuration> |
| 96 | + <lifecycleMappingMetadata> |
| 97 | + <pluginExecutions> |
| 98 | + <pluginExecution> |
| 99 | + <pluginExecutionFilter> |
| 100 | + <groupId>org.openmrs.maven.plugins</groupId> |
| 101 | + <artifactId>maven-openmrs-plugin</artifactId> |
| 102 | + <versionRange>[1.0.1,)</versionRange> |
| 103 | + <goals> |
| 104 | + <goal>initialize-module</goal> |
| 105 | + </goals> |
| 106 | + </pluginExecutionFilter> |
| 107 | + <action> |
| 108 | + <ignore></ignore> |
| 109 | + </action> |
| 110 | + </pluginExecution> |
| 111 | + <pluginExecution> |
| 112 | + <pluginExecutionFilter> |
| 113 | + <groupId>org.apache.maven.plugins</groupId> |
| 114 | + <artifactId>maven-dependency-plugin</artifactId> |
| 115 | + <versionRange>[2.1,)</versionRange> |
| 116 | + <goals> |
| 117 | + <goal>unpack-dependencies</goal> |
| 118 | + </goals> |
| 119 | + </pluginExecutionFilter> |
| 120 | + <action> |
| 121 | + <ignore></ignore> |
| 122 | + </action> |
| 123 | + </pluginExecution> |
| 124 | + </pluginExecutions> |
| 125 | + </lifecycleMappingMetadata> |
| 126 | + </configuration> |
| 127 | + </plugin> |
99 | 128 | </plugins> |
100 | 129 | </pluginManagement> |
| 130 | + |
101 | 131 | <plugins> |
102 | 132 | <plugin> |
103 | 133 | <groupId>org.openmrs.maven.plugins</groupId> |
|
120 | 150 | </execution> |
121 | 151 | </executions> |
122 | 152 | </plugin> |
| 153 | + <plugin> |
| 154 | + <groupId>org.apache.maven.plugins</groupId> |
| 155 | + <artifactId>maven-dependency-plugin</artifactId> |
| 156 | + <executions> |
| 157 | + <execution> |
| 158 | + <id>Expand moduleApplicationContext and messages</id> |
| 159 | + <goals> |
| 160 | + <goal>unpack-dependencies</goal> |
| 161 | + </goals> |
| 162 | + <phase>generate-resources</phase> |
| 163 | + <configuration> |
| 164 | + <includeGroupIds>${project.parent.groupId}</includeGroupIds> |
| 165 | + <includeArtifactIds>${project.parent.artifactId}-api</includeArtifactIds> |
| 166 | + <excludeTransitive>true</excludeTransitive> |
| 167 | + <includes>**/*</includes> |
| 168 | + <outputDirectory>${project.build.directory}/classes</outputDirectory> |
| 169 | + </configuration> |
| 170 | + </execution> |
| 171 | + </executions> |
| 172 | + </plugin> |
123 | 173 | </plugins> |
124 | 174 | </build> |
125 | 175 |
|
126 | | - <properties> |
127 | | - <MODULE_ID>${project.parent.artifactId}</MODULE_ID> |
128 | | - <MODULE_NAME>${project.parent.name}</MODULE_NAME> |
129 | | - <MODULE_VERSION>${project.parent.version}</MODULE_VERSION> |
130 | | - <MODULE_PACKAGE>${project.parent.groupId}.${project.parent.artifactId}</MODULE_PACKAGE> |
131 | | - </properties> |
132 | | - |
133 | 176 | </project> |
0 commit comments