문제

Are there any Maven archetypes for Websphere 8 and Webshpere liberty.

I just want to get started on a JAX-RS war?

도움이 되었습니까?

해결책

There are some archetypes for WAS 855 and Liberty 855, but none for JAX-RS yet.

To use them, you need to add the following repository, for example, in your settings.xml file.

To use the archetypes from RAD 9 or WDT 855, you can open the new Maven project wizard and the archetypes should be listed in the second page of the wizard, if you select the correct catalog.

Most of the archetypes include one dependency like this in the pom.xml

<dependency>
    <groupId>com.ibm.tools.target</groupId>
    <artifactId>was</artifactId>
    <version>8.5.5</version>
    <type>pom</type>
    <scope>provided</scope>
</dependency>

This dependency groups the runtime libraries. If you want to manage the runtime dependencies by yourself, you can remove the dependency above.

If you have not followed the steps described in this link, you will find that a lot of dependencies cannot be found during the build because of the dependency mentioned above:

Note: if you are using liberty archetypes, instead of using the files listed in the step 5 of the previous link, use the files in the folder com/ibm/tools/target/was.liberty.installer in the repository mentioned previously. Download the files was.liberty.installer-8.5.0.pom or was.liberty.installer-8.5.5.pom, rename them to pom.xml, and use them in step 5. This is because the files in the repository are more current than the files shipped in RAD 9 and WDT 8.5.5.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top