Skip to content

Commit fde8a14

Browse files
authored
updated wlst unit test plugin and removed enforcer (#444)
1 parent 7aa9399 commit fde8a14

File tree

3 files changed

+7
-15
lines changed

3 files changed

+7
-15
lines changed

core/pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@
126126
<goal>test</goal>
127127
</goals>
128128
<configuration>
129+
<skipTests>${skipTests}</skipTests>
129130
<wlstScriptDirectory>${unit-test-wlst-dir}</wlstScriptDirectory>
130131
<wlstExtClasspath>
131132
<element>org.antlr:antlr4-runtime:jar</element>

pom.xml

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@
119119
<plugin>
120120
<groupId>io.rhpatrick.mojo</groupId>
121121
<artifactId>wlst-test-maven-plugin</artifactId>
122-
<version>1.0.2</version>
122+
<version>1.0.3</version>
123123
</plugin>
124124
<plugin>
125125
<groupId>org.antlr</groupId>
@@ -212,18 +212,8 @@
212212
<rules>
213213
<requireJavaVersion>
214214
<version>1.8.0</version>
215-
<message>
216-
You must use JDK 8 to build the project since the encryption utilities
217-
unit test requires JDK 8 due to the encryption algorithms used
218-
</message>
215+
<message>You must use JDK 8 to build the project since the encryption utilities unit test requires JDK 8 due to the encryption algorithms used</message>
219216
</requireJavaVersion>
220-
<requireProperty>
221-
<property>unit-test-wlst-dir</property>
222-
<message>
223-
You must set the unit-test-wlst-dir System property to point
224-
the directory where the WLST shell script lives.
225-
</message>
226-
</requireProperty>
227217
</rules>
228218
</configuration>
229219
</execution>

site/developer/developer_guide.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -229,10 +229,11 @@ If you are making changes to the project, you can build the project using this c
229229

230230
This will build the entire project and run the unit tests. Omit the `-Dunit-test-wlst-dir=` argument if you have created a `maven.config` file, as described above.
231231

232-
If you are not making changes and are only interested in building the latest version, then you can skip the unit tests, and avoid validation of the WLST location, using this command line:
232+
Another option for specifying the WLST directory is to set the environment variable WLST_DIR. It is not necessary to use both, and
233+
the -D setting will take precedence.
233234

234-
`mvn -Denforcer.skip -DskipTests clean install`
235+
If you are not making changes and are only interested in building the latest version, then you can skip the unit tests, using this command line:
235236

236-
The option `-Denforcer.skip` prevents the Maven Enforcer plugin from verifying the JDK version, and checking that the WLST directory is specified.
237+
`mvn -DskipTests clean install`
237238

238239
The resulting installer ZIP file built is under the `WLSDEPLOY_HOME/installer/target` directory.

0 commit comments

Comments
 (0)