Newer
Older
</configuration>
</execution>
</executions>
<configuration>
<skipAssembly>${skip.artifact.creation}</skipAssembly>
</configuration>
<!-- ============================= Sign executable jar files ============================ -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jarsigner-plugin</artifactId>
<version>1.4</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>sign</goal>
</goals>
<configuration>
<skip>${jarsigner.skip}</skip>
<verbose>false</verbose>
<processMainArtifact>false</processMainArtifact>
<processAttachedArtifacts>false</processAttachedArtifacts>
<archiveDirectory>target/win-jars</archiveDirectory>
<keystore>${signer-keystore-path}</keystore>
<storetype>${signer-keystore-type}</storetype>
<alias>${signer-keystore-alias}</alias>
<storepass>${signer-keystore-password}</storepass>
<keypass>${signer-keystore-password}</keypass>
<removeExistingSignatures>true</removeExistingSignatures>
<tsa>http://timestamp.comodoca.com/rfc3161</tsa>
</configuration>
</execution>
<execution>
<phase>package</phase>
<goals>
<goal>sign</goal>
</goals>
<configuration>
<skip>${jarsigner.skip}</skip>
<verbose>false</verbose>
<processMainArtifact>false</processMainArtifact>
<processAttachedArtifacts>false</processAttachedArtifacts>
<archiveDirectory>target/jars</archiveDirectory>
<keystore>${signer-keystore-path}</keystore>
<storetype>${signer-keystore-type}</storetype>
<alias>${signer-keystore-alias}</alias>
<storepass>${signer-keystore-password}</storepass>
<keypass>${signer-keystore-password}</keypass>
<removeExistingSignatures>true</removeExistingSignatures>
<tsa>http://timestamp.comodoca.com/rfc3161</tsa>
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
</plugin>
<!-- ========================== Create release zips ============================ -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<version>3.1.0</version>
<executions>
<execution>
<id>create-unix-release</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
<configuration>
<appendAssemblyId>false</appendAssemblyId>
<outputDirectory>${unix.release.folder}</outputDirectory>
<descriptors>
<descriptor>src/assembly/unix-release-assembly.xml</descriptor>
</descriptors>
<finalName>${unix.release.filename}</finalName>
</configuration>
</execution>
<execution>
<id>create-windows-release</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
<configuration>
<appendAssemblyId>false</appendAssemblyId>
<outputDirectory>${windows.release.folder}</outputDirectory>
<descriptors>
<descriptor>src/assembly/windows-release-assembly.xml</descriptor>
</descriptors>
<finalName>${windows.release.filename}</finalName>
</configuration>
</execution>
</executions>
<configuration>
<skipAssembly>${skip.artifact.creation}</skipAssembly>
</configuration>
</plugin>
</plugins>
<pluginManagement>
<plugins>
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
<!-- We need this next bit to get rid of a warning on the enforcer plugin in Eclipse -->
<plugin>
<groupId>org.eclipse.m2e</groupId>
<artifactId>lifecycle-mapping</artifactId>
<version>1.0.0</version>
<configuration>
<lifecycleMappingMetadata>
<pluginExecutions>
<pluginExecution>
<pluginExecutionFilter>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<versionRange>[1.3.1,)</versionRange>
<goals>
<goal>enforce</goal>
</goals>
</pluginExecutionFilter>
<action>
<ignore />
</action>
</pluginExecution>
</pluginExecutions>
</lifecycleMappingMetadata>
</configuration>
</plugin>
<!-- ============= Special task used on an ad-hoc basis to create EvoSuite tests ============ -->
<plugin>
<groupId>org.evosuite.plugins</groupId>
<artifactId>evosuite-maven-plugin</artifactId>
<version>${evosuite.plugin.version}</version>
<executions>
<execution>
<id>create-evosuite-tests</id>
<goals>
<goal>prepare</goal>
</goals>
<phase>process-test-classes</phase>
</execution>
</executions>
<configuration>
<extraArgs>-Dsearch_budget=90 -Dconsider_main_methods=false -Duse_separate_classloader=false</extraArgs>
</configuration>
<!-- =========== Check for plugin updates ================== -->
<!-- Use: mvn versions:display-plugin-updates -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>versions-maven-plugin</artifactId>
<version>2.7</version>
<configuration>
<generateBackupPoms>false</generateBackupPoms>
</configuration>
</plugin>
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
<!--
Deploy artifacts to a GitHub release - run manually using:
mvn github-release:release
-->
<!-- plugin>
<groupId>de.jutzig</groupId>
<artifactId>github-release-plugin</artifactId>
<version>1.2.0</version>
<inherited>false</inherited>
<configuration>
<description>See ChangeLog for details</description>
<releaseName>Release v${project.version}</releaseName>
<tag>v${project.version}</tag>
<draft>true</draft>
<artifact>${unix.release.folder}/${unix.release.filename}</artifact>
<fileSets>
<fileSet>
<includes>
<include>${osx.app.folder}/${osx.release.filename}.dmg</include>
<include>${windows.release.folder}/${windows.release.filename}</include>
<include>${project.basedir}/ChangeLog</include>
</includes>
</fileSet>
</fileSets>
</configuration>
</plugin -->
</plugins>
</pluginManagement>
</build>
<reporting>
<plugins>
<!-- Javadoc -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<failOnError>false</failOnError>
<quiet>true</quiet>
<excludePackageNames>org.*</excludePackageNames>
<excludes>**/*Test.java, **/*_scaffolding*.java</excludes>
<reportSets>
<reportSet>
<reports>
<report>javadoc-no-fork</report>
<report>test-javadoc-no-fork</report>
</reports>
</reportSet>
</reportSets>
</plugin>
</plugins>
</reporting>
<!-- ========================== Profile section =================================-->
<profiles>
<id>old-java8-profile-deprecated</id>
<!-- This profile runs all unit tests including Evosuite ones on Java 8. -->
<!-- Note however that some code changes will now be needed to compile on Java 8. -->
<build.profile.id>java8-profile</build.profile.id>
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
<build>
<plugins>
<!--
Compiling with Java 8 JDK... the compiler does not have the -release parameter,
so we fall back to source and target
-->
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.0</version>
<configuration>
<verbose>false</verbose>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.22.1</version>
<configuration>
<skipTests>${skip.tests}</skipTests>
<trimStackTrace>true</trimStackTrace>
<forkCount>${surefire.num.forks}</forkCount>
<reuseForks>false</reuseForks>
<testFailureIgnore>${ignore.test.failures}</testFailureIgnore>
<argLine>@{surefireArgLine}</argLine>
<excludes>
<!-- Start of Evosuite excludes -->
<exclude>${evosuite.exclude.filter}</exclude>
<exclude>org/gmod/**</exclude>
<exclude>**/j2ssh/**</exclude>
<!-- End of Evosuite excludes -->
<!-- Exclude manual adhoc tests -->
<exclude>**/RunBlastAtNCBITest.*</exclude>
<exclude>**/TestIbatisDAO.*</exclude>
<exclude>**/TestJdbcDAO.*</exclude>
</excludes>
<!-- Required when running Evosuite tests along with normal tests -->
<properties>
<property>
<name>listener</name>
<value>org.evosuite.runtime.InitializingListener</value>
</property>
</properties>
</configuration>
</plugin>
</plugins>
</build>
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
<profile>
<id>mac-osx-dmg-packaging</id>
<!--
App/dmg packaging that can only be run on a Mac.
-->
<activation>
<os>
<family>mac</family>
</os>
</activation>
<properties>
<build.profile.id>mac-osx-dmg-packaging</build.profile.id>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.8</version>
<executions>
<execution>
<id>build-macosx</id>
<phase>verify</phase>
<configuration>
<skip>${skip.artifact.creation}</skip>
<target>
<ant antfile="${project.basedir}/src/assembly/macosx-release-assembly.xml">
<target name="bundle-mac-osx"/>
<target name="bundle-mac-osx-chado"/>
</ant>
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<activation>
<activeByDefault>false</activeByDefault>
</activation>
<properties>
<skip.tests>false</skip.tests>
<evosuite.exclude.filter></evosuite.exclude.filter>
<skip.artifact.creation>false</skip.artifact.creation>
<skip.coverage.reporting>false</skip.coverage.reporting>
<build.profile.id>release</build.profile.id>