Skip to content

Commit 36df763

Browse files
authored
Merge pull request #1649 from cherylking/fixDocsAndComponentsXml
Fix multiple doc issues and missing groupId in components.xml
2 parents a6533a6 + 5c6ead4 commit 36df763

File tree

6 files changed

+32
-11
lines changed

6 files changed

+32
-11
lines changed

README.md

+21-1
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,27 @@ Example using the `runtimeArtifact` parameter to install a WebSphere Liberty run
112112
<runtimeArtifact>
113113
<groupId>com.ibm.websphere.appserver.runtime</groupId>
114114
<artifactId>wlp-webProfile8</artifactId>
115-
<version>22.0.0.12</version>
115+
<version>23.0.0.2</version>
116+
<type>zip</type>
117+
</runtimeArtifact>
118+
</configuration>
119+
</plugin>
120+
```
121+
122+
To install an Open Liberty beta runtime, specify the `runtimeArtifact` with the `io.openliberty.beta` groupId, `open liberty-runtime` artifactId and the `version` that is needed.
123+
124+
Example using the `runtimeArtifact` parameter to install an Open Liberty beta runtime from a Maven artifact:
125+
126+
```xml
127+
<plugin>
128+
<groupId>io.openliberty.tools</groupId>
129+
<artifactId>liberty-maven-plugin</artifactId>
130+
<version>3.7.1</version>
131+
<configuration>
132+
<runtimeArtifact>
133+
<groupId>io.openliberty.beta</groupId>
134+
<artifactId>openliberty-runtime</artifactId>
135+
<version>23.0.0.3-beta</version>
116136
<type>zip</type>
117137
</runtimeArtifact>
118138
</configuration>

docs/common-parameters.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Parameters shared by all goals.
1313
| install | Install Liberty runtime from the [Liberty repository](installation-configuration.md#using-the-install-liberty-ant-task). | Yes, only when `installDirectory`, `runtimeArchive`, and `runtimeArtifact` parameters are not set. |
1414
| licenseArtifact | Maven artifact name of the Liberty license jar. It will be used to upgrade the installation at the location specified by the `runtimeInstallDirectory` parameter. | No |
1515
| serverName | Name of the Liberty server instance. The default value is `defaultServer`. | No |
16-
| userDirectory | Alternative user directory location that contains server definitions and shared resources (`WLP_USER_DIR`). | No |
16+
| userDirectory | Alternative user directory location that contains server definitions and shared resources. The default value is `usr` located in the Liberty runtime installation directory. | No |
1717
| outputDirectory | Alternative location for server generated output such as logs, the _workarea_ directory, and other generated files (`WLP_OUTPUT_DIR`). The default value for the `package` and `install-feature` goals is `${project.build.directory}/liberty-alt-output-dir`. | No |
1818
| runtimeInstallDirectory | Local installation directory location of the Liberty server when the server is installed using the runtime archive, runtime artifact or repository option. The default value is `${project.build.directory}/liberty`. | No |
1919
| refresh | If true, re-install Liberty server into the local directory. This is only used when when the server is installed using the runtime archive or runtime artifact option. The default value is false. | No |

docs/deploy.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ The following are the parameters supported by this goal in addition to the [comm
1010
| -------- | ----------- | ------- |
1111
| appsDirectory | The server's `apps` or `dropins` directory where the application files should be copied. The default value is set to `apps` if the application is defined in the server configuration, otherwise it is set to `dropins`. | No |
1212
| copyLibsDirectory | The optional directory to which loose application dependencies referenced by the loose application configuration file are copied. For example, if you want loose application dependencies to be contained within the build directory, you could set this parameter to `target`. The loose application configuration file will reference this directory for the loose application dependencies instead of the local repository cache. Only applicable when `looseApplication` is set to `true`. | No |
13-
| deployPackages | The Maven packages to copy to Liberty runtime's application directory. One of `dependencies`, `project` or `all`. The default is `project`.<br>For an ear type project, this parameter is ignored and only the project package is installed. | No |
13+
| deployPackages | The Maven packages to copy to Liberty runtime's application directory. One of `dependencies`, `project`, `spring-boot-project` or `all`. The default is `project`.<br>For an ear type project, this parameter is ignored and only the project package is installed. | No |
1414
| looseApplication | Generate a loose application configuration file representing the Maven project package and copy it to the Liberty server's `apps` or `dropins` directory. The default value is `true`. This parameter is ignored if `deployPackages` is set to `dependencies` or if the project packaging type is neither `war` nor `liberty-assembly`. When using the packaging type `liberty-assembly`, using a combination of `deployPackages` set to `all` or `project` and `looseApplication` set to `true` results in the installation of application code provided in the project without the need of adding additional goals to your POM file. | No |
1515
| stripVersion | Strip artifact version when copying the application to Liberty runtime's application directory. The default value is `false`. | No |
1616
| timeout | Maximum time to wait (in seconds) to verify that the deployment has completed successfully. The default value is 40 seconds. | No |

docs/installation-configuration.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ The Maven Central repository includes the following Liberty runtime artifacts. V
88

99
| Group ID : Artifact ID | Description |
1010
| ---------------------- | ----------- |
11+
| [`io.openliberty:openliberty-kernel`](https://repo1.maven.org/maven2/io/openliberty/openliberty-kernel/) | Open Liberty runtime kernel. |
1112
| [`io.openliberty:openliberty-runtime`](https://repo1.maven.org/maven2/io/openliberty/openliberty-runtime/) | Open Liberty runtime. |
1213
| [`io.openliberty:openliberty-jakartaee9`](https://repo1.maven.org/maven2/io/openliberty/openliberty-jakartaee9/) | Open Liberty runtime with all Jakarta EE 9 features. |
1314
| [`io.openliberty:openliberty-javaee8`](https://repo1.maven.org/maven2/io/openliberty/openliberty-javaee8/) | Open Liberty runtime with all Java EE 8 Full Platform features. |
@@ -16,7 +17,7 @@ The Maven Central repository includes the following Liberty runtime artifacts. V
1617
| [`io.openliberty:openliberty-microProfile5`](https://repo1.maven.org/maven2/io/openliberty/openliberty-microProfile5/) | Open Liberty runtime with features for a MicroProfile 5 runtime. |
1718
| [`io.openliberty:openliberty-microProfile4`](https://repo1.maven.org/maven2/io/openliberty/openliberty-microProfile4/) | Open Liberty runtime with features for a MicroProfile 4 runtime. |
1819
| [`io.openliberty:openliberty-microProfile3`](https://repo1.maven.org/maven2/io/openliberty/openliberty-microProfile3/) | Open Liberty runtime with features for a MicroProfile 3 runtime. |
19-
| [`io.openliberty:openliberty-kernel`](https://repo1.maven.org/maven2/io/openliberty/openliberty-kernel/) | Open Liberty runtime kernel. |
20+
| [`io.openliberty.beta:openliberty-runtime `](https://repo1.maven.org/maven2/io/openliberty/beta/openliberty-runtime/) | Open Liberty runtime beta. |
2021
| [`com.ibm.websphere.appserver.runtime:wlp-jakartaee9`](https://repo1.maven.org/maven2/com/ibm/websphere/appserver/runtime/wlp-jakartaee9/) | WebSphere Liberty runtime with all Jakarta EE 9 features. |
2122
| [`com.ibm.websphere.appserver.runtime:wlp-javaee8`](https://repo1.maven.org/maven2/com/ibm/websphere/appserver/runtime/wlp-javaee8/) | WebSphere Liberty runtime with all Java EE 8 Full Platform features. |
2223
| [`com.ibm.websphere.appserver.runtime:wlp-javaee7`](https://repo1.maven.org/maven2/com/ibm/websphere/appserver/runtime/wlp-javaee7/) | WebSphere Liberty runtime with all Java EE 7 Full Platform features. |

docs/spring-boot-support.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ The `liberty-maven-plugin` provides support for Spring Boot applications, allowi
33

44
### Additional Parameters
55

6-
When installing a Spring Boot application via the Spring Boot executable JAR, the following are the parameters supported by the `install-apps` goal in addition to the [common server parameters](common-server-parameters.md#common-server-parameters) and the [common parameters](common-parameters.md#common-parameters).
6+
When installing a Spring Boot application via the Spring Boot executable JAR, the following are the parameters supported by the `deploy` goal in addition to the [common server parameters](common-server-parameters.md#common-server-parameters) and the [common parameters](common-parameters.md#common-parameters).
77

88
| Parameter | Description | Required |
99
| -------- | ----------- | ------- |
1010
| appsDirectory | The server's `apps` or `dropins` directory where the application files should be copied. The default value is set to `apps` if the application is defined in the server configuration, otherwise it is set to `dropins`. | No |
11-
| deployPackages | The Maven packages to copy to Liberty runtime's application directory. `spring-boot-project` should be configured to this parameter. | Yes |
11+
| deployPackages | The Maven packages to copy to Liberty runtime's application directory. This parameter should be set to `spring-boot-project`. | Yes |
1212

13-
The `server.xml` provided by the `serverXml` parameter should enable the one of the following Spring Boot features.
13+
The `server.xml` provided by the `serverXmlFile` parameter or located in the `configDirectory` should enable the one of the following Spring Boot features.
1414

1515
| Feature | Description |
1616
| ------- | ----------- |
@@ -36,7 +36,7 @@ To use the `liberty-maven-plugin` to install a Spring Boot application packaged
3636
<id>install-apps</id>
3737
<phase>pre-integration-test</phase>
3838
<goals>
39-
<goal>install-apps</goal>
39+
<goal>deploy</goal>
4040
</goals>
4141
<configuration>
4242
<appsDirectory>apps</appsDirectory>

liberty-maven-plugin/src/main/resources/META-INF/plexus/components.xml

+3-3
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@
3939
org.apache.maven.plugins:maven-surefire-plugin:test
4040
</test>
4141
<prepare-package>
42-
:liberty-maven-plugin:install-server,
42+
io.openliberty.tools:liberty-maven-plugin:install-server,
4343
io.openliberty.tools:liberty-maven-plugin:create,
44-
io.openliberty.tools:liberty-maven-plugin:prepare-feature,
45-
io.openliberty.tools:liberty-maven-plugin:install-feature,
44+
io.openliberty.tools:liberty-maven-plugin:prepare-feature,
45+
io.openliberty.tools:liberty-maven-plugin:install-feature
4646
</prepare-package>
4747
<package>
4848
io.openliberty.tools:liberty-maven-plugin:deploy,

0 commit comments

Comments
 (0)