|
45 | 45 | <version.plugin.source>2.1.2</version.plugin.source> |
46 | 46 | <version.plugin.javadoc>2.8.1</version.plugin.javadoc> |
47 | 47 | <version.plugin.gpg>1.1</version.plugin.gpg> |
| 48 | + <version.plugin.surefire>2.12.4</version.plugin.surefire> |
| 49 | + <version.plugin.failsafe>2.12.4</version.plugin.failsafe> |
| 50 | + <version.plugin.qarqas>0.3</version.plugin.qarqas> |
| 51 | + |
| 52 | + <qarqas.clientKey>commonjava-UNKNOWN</qarqas.clientKey> |
| 53 | + <qarqas.reservation.baseurl>http://localhost:9080/qarqas/api/1.0/reservation/</qarqas.reservation.baseurl> |
| 54 | + <qarqas.jbossas.coord>org.jboss.as:jboss-as-dist:${qarqas.jbossas.version}</qarqas.jbossas.coord> |
| 55 | + <qarqas.jbossas.version>7.1.1.Final</qarqas.jbossas.version> |
| 56 | + |
48 | 57 | <repo.snapshots>http://localhost:9080/aprox/api/1.0/group/public/</repo.snapshots> |
49 | 58 | </properties> |
50 | 59 |
|
|
83 | 92 | <id>components.xml</id> |
84 | 93 | <goals> |
85 | 94 | <goal>generate-metadata</goal> |
| 95 | + <goal>generate-test-metadata</goal> |
86 | 96 | </goals> |
87 | 97 | </execution> |
88 | 98 | </executions> |
89 | 99 | </plugin> |
| 100 | + <plugin> |
| 101 | + <artifactId>maven-surefire-plugin</artifactId> |
| 102 | + <version>${version.plugin.surefire}</version> |
| 103 | + <configuration> |
| 104 | + <excludes> |
| 105 | + <exclude>**/fixture/*.java</exclude> |
| 106 | + <exclude>**/live/*.java</exclude> |
| 107 | + </excludes> |
| 108 | + </configuration> |
| 109 | + </plugin> |
| 110 | + <plugin> |
| 111 | + <artifactId>maven-failsafe-plugin</artifactId> |
| 112 | + <version>${version.plugin.failsafe}</version> |
| 113 | + <configuration> |
| 114 | + <excludes> |
| 115 | + <exclude>**/fixture/*.java</exclude> |
| 116 | + </excludes> |
| 117 | + <includes> |
| 118 | + <include>**/live/*.java</include> |
| 119 | + <include>**/live/**/*.java</include> |
| 120 | + </includes> |
| 121 | + </configuration> |
| 122 | + <executions> |
| 123 | + <execution> |
| 124 | + <id>integration-tests</id> |
| 125 | + <goals> |
| 126 | + <goal>integration-test</goal> |
| 127 | + <goal>verify</goal> |
| 128 | + </goals> |
| 129 | + </execution> |
| 130 | + </executions> |
| 131 | + </plugin> |
| 132 | + <plugin> |
| 133 | + <groupId>org.commonjava.maven.plugins</groupId> |
| 134 | + <artifactId>qarqas-maven-plugin</artifactId> |
| 135 | + <version>${version.plugin.qarqas}</version> |
| 136 | + <executions> |
| 137 | + <execution> |
| 138 | + <id>infra</id> |
| 139 | + <goals> |
| 140 | + <goal>setup</goal> |
| 141 | + <goal>teardown</goal> |
| 142 | + </goals> |
| 143 | + <configuration> |
| 144 | + <clientKey>${qarqas.clientKey}</clientKey> |
| 145 | + <asCoordinate>${qarqas.jbossas.coord}</asCoordinate> |
| 146 | + <configurators>reservation</configurators> |
| 147 | + <useDefaultConfigurators>false</useDefaultConfigurators> |
| 148 | + <output>${session.executionRootDirectory}/target/jbossas</output> |
| 149 | + <configProperties> |
| 150 | + <reservationBaseUrl>${qarqas.reservation.baseurl}</reservationBaseUrl> |
| 151 | + </configProperties> |
| 152 | + </configuration> |
| 153 | + </execution> |
| 154 | + </executions> |
| 155 | + </plugin> |
90 | 156 | <plugin> |
91 | 157 | <groupId>org.apache.maven.plugins</groupId> |
92 | 158 | <artifactId>maven-release-plugin</artifactId> |
|
101 | 167 | <plugin> |
102 | 168 | <artifactId>maven-enforcer-plugin</artifactId> |
103 | 169 | <version>${version.plugin.enforcer}</version> |
| 170 | + <dependencies> |
| 171 | + <dependency> |
| 172 | + <groupId>org.commonjava.maven.enforcer</groupId> |
| 173 | + <artifactId>enforce-managed-deps-rule</artifactId> |
| 174 | + <version>1.0</version> |
| 175 | + </dependency> |
| 176 | + </dependencies> |
104 | 177 | <executions> |
| 178 | + <execution> |
| 179 | + <id>enforce-best-practices</id> |
| 180 | + <goals> |
| 181 | + <goal>enforce</goal> |
| 182 | + </goals> |
| 183 | + <phase>initialize</phase> |
| 184 | + <configuration> |
| 185 | + <rules> |
| 186 | + <requireManagedDeps implementation="org.commonjava.maven.enforcer.rule.EnforceManagedDepsRule"> |
| 187 | + <!-- <message>Capture dependencies in top-level dependencyManagement section for easy reference.</message> --> |
| 188 | + <checkProfiles>false</checkProfiles> |
| 189 | + <failOnViolation>true</failOnViolation> |
| 190 | + </requireManagedDeps> |
| 191 | + </rules> |
| 192 | + </configuration> |
| 193 | + </execution> |
105 | 194 | <execution> |
106 | 195 | <id>enforce-maven</id> |
107 | 196 | <goals> |
|
0 commit comments