Skip to content

updated wlst unit test plugin and removed enforcer #444

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 17, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@
<goal>test</goal>
</goals>
<configuration>
<skipTests>${skipTests}</skipTests>
<wlstScriptDirectory>${unit-test-wlst-dir}</wlstScriptDirectory>
<wlstExtClasspath>
<element>org.antlr:antlr4-runtime:jar</element>
Expand Down
14 changes: 2 additions & 12 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@
<plugin>
<groupId>io.rhpatrick.mojo</groupId>
<artifactId>wlst-test-maven-plugin</artifactId>
<version>1.0.2</version>
<version>1.0.3</version>
</plugin>
<plugin>
<groupId>org.antlr</groupId>
Expand Down Expand Up @@ -212,18 +212,8 @@
<rules>
<requireJavaVersion>
<version>1.8.0</version>
<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>
<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>
</requireJavaVersion>
<requireProperty>
<property>unit-test-wlst-dir</property>
<message>
You must set the unit-test-wlst-dir System property to point
the directory where the WLST shell script lives.
</message>
</requireProperty>
</rules>
</configuration>
</execution>
Expand Down
7 changes: 4 additions & 3 deletions site/developer/developer_guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -229,10 +229,11 @@ If you are making changes to the project, you can build the project using this c

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.

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:
Another option for specifying the WLST directory is to set the environment variable WLST_DIR. It is not necessary to use both, and
the -D setting will take precedence.

`mvn -Denforcer.skip -DskipTests clean install`
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:

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

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