Project

General

Profile

« Previous | Next » 

Revision bd661375

Added by Andreas Kohlbecker about 13 years ago

improved build process & ready for release plugin

View differences:

pom.xml
134 134

  
135 135
	<!-- **** PLUGINS **** -->
136 136
	<build>
137
	   <resources>
138
	       <resource>
139
	           <!-- 
140
	               replace the project-version placeholder in the version.properties file. 
141
	               This property can then be used to retrieve the version number in the Bootloader
142
	            -->
143
	           <targetPath>${project.build.directory}/classes</targetPath>
144
	           <filtering>true</filtering> 
145
	           <directory>${basedir}/src/main/resources</directory>
146
	           <includes>
147
	               <include>version.properties</include>
148
	           </includes>
149
	       </resource>
150
	       <resource>
151
               <!-- 
152
                   all other files in classes
153
                -->
154
               <targetPath>${project.build.directory}/classes</targetPath>
155
               <directory>${basedir}/src/main/resources</directory>
156
               <excludes>
157
                   <exclude>version.properties</exclude>
158
               </excludes>
159
           </resource>
160
	   </resources>
137 161
		<plugins>
138 162
			<plugin>
139 163
				<artifactId>maven-compiler-plugin</artifactId>
......
244 268
			<!--
245 269
				package the default webapp, and also add the
246 270
				cdmlib-remote-webapp.war
271
				test with: mvn war:war
247 272
			-->
248 273
			<plugin>
249 274
				<groupId>org.apache.maven.plugins</groupId>
......
272 297
			<plugin>
273 298
				<!--
274 299
					Assemble the runnable server jar
300
					test with: mvn assembly:single
275 301
				-->
276 302
				<artifactId>maven-assembly-plugin</artifactId>
277 303
				<configuration>
......
282 308
					<archive>
283 309
						<manifest>
284 310
							<mainClass>eu.etaxonomy.cdm.server.Bootloader</mainClass>
311
							<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
312
							<addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
285 313
						</manifest>
286 314
					</archive>
287 315
				</configuration>

Also available in: Unified diff