Мне не удалось получить тестовую пробку Arquillian, работающую вместе с WLP 8.5.5.4. Есть ли какой-нибудь простой пример проекта, который демонстрирует это мне? Я его не нашел.Пример настройки для использования arquillian с профилем Websphere Liberty 8.5.5.4
1
A
ответ
2
Вы можете найти сложную настройку с созданием сервера тестирования в этом redbook Configuring and Deploying Open Source with WebSphere Application Server Liberty Profile.
Здесь у вас есть очень основные настройки:
Настройка
arquillian.xml
файл для WebSphere Liberty:<arquillian xmlns="http://jboss.org/schema/arquillian" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jboss.org/schema/arquillian http://jboss.org/schema/arquillian/arquillian_1_0.xsd"> <engine> <property name="deploymentExportPath">target/</property> </engine> <container qualifier="wlp-managed-85" default="true"> <configuration> <property name="wlpHome">C:/IBM/WebSphere/wlp</property> <property name="serverName">defaultServer</property> <property name="httpPort">9080</property> <property name="appDeployTimeout">20</property> <property name="appUndeployTimeout">20</property> </configuration> </container>
Настройка требуемых зависимостей в
pom.xml
:<!-- Configure WASdev repository --> <repositories> <repository> <releases> <updatePolicy>never</updatePolicy> </releases> <snapshots> <enabled>false</enabled> <updatePolicy>never</updatePolicy> </snapshots> <id>ibm-maven-repo</id> <name>ibm-maven-repo</name> <url>http://public.dhe.ibm.com/ibmdl/export/pub/software/websphere/wasdev/maven/repository/</url> </repository> </repositories> <pluginRepositories> <pluginRepository> <id>ibm-maven-repo</id> <name>ibm-maven-repo</name> <url>http://public.dhe.ibm.com/ibmdl/export/pub/software/websphere/wasdev/maven/repository/</url> <layout>default</layout> <snapshots> <enabled>true</enabled> </snapshots> <releases> <enabled>true</enabled> </releases> </pluginRepository> </pluginRepositories> <dependencyManagement> <dependencies> <dependency> <groupId>org.jboss.arquillian</groupId> <artifactId>arquillian-bom</artifactId> <version>1.1.8.Final</version> <scope>import</scope> <type>pom</type> </dependency> </dependencies>
.....
<dependency> <groupId>com.ibm.tools.target</groupId> <artifactId>was-liberty</artifactId> <version>LATEST</version> <type>pom</type> <scope>provided</scope> </dependency> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.11</version> <scope>test</scope> </dependency> <dependency> <groupId>org.jboss.arquillian.junit</groupId> <artifactId>arquillian-junit-container</artifactId> <scope>test</scope> </dependency> <dependency> <!-- Arquillian WebSphere Liberty Profile support --> <groupId>org.jboss.arquillian.container</groupId> <artifactId>arquillian-wlp-managed-8.5</artifactId> <version>1.0.0.Alpha2</version> <scope>test</scope> </dependency>
Смежные вопросы
- 1. HttpsUrlConnection с использованием KeyStore вместо TrustStore с профилем WebSphere Liberty
- 2. j_security_check login.jsp не работает с профилем WebSphere Liberty
- 3. Использование JaCoCo с профилем Liberty 8.5.5.4 в Eclipse не создает никакого покрытия кода
- 4. Управление серверами приложений Websphere Liberty (websphere-liberty)
- 5. websphere liberty admincenter datasource
- 6. Websphere Liberty - Пользовательская регистрация
- 7. Весенняя ботинок с профилем Liberty на докере
- 8. Добавление области в Websphere Linux 8.5.5.4 Сервер
- 9. WebSphere Liberty ActiveMQ
- 10. Конфигурирование log4jdbc-log4j2 с профилем Liberty
- 11. Websphere Liberty- java.lang.NoClassDefFoundError: com.ibm.websphere.ssl.SSLException
- 12. Websphere Liberty in eclipse
- 13. Журналы профилей WebSphere Liberty
- 14. Dandelion datatables не работает над профилем Liberty
- 15. любой пример использования Arquillian с hibernate и embedded-tomcat 7
- 16. WebSphere WAS Экспресс обновление с 8.5.5.4 до 8.5.5.10
- 17. Автомасштабирование WebSphere Liberty CPU metric
- 18. Приложение загадочно запускается на Websphere Liberty Profile
- 19. Как изменить user.home для websphere liberty
- 20. Профиль WebSphere Liberty JAXBContext ClassCastException
- 21. Конфигурирование значений env-entry в WebSphere Liberty?
- 22. websphere liberty на докер-контейнере
- 23. Исключения с использованием последней версии Websphere Liberty
- 24. Монитор Websphere Liberty Профиль с JConsole
- 25. Элемент управления WebSphere Liberty и источника subversion
- 26. websphere liberty - конкретная конфигурация регистрации приложений
- 27. Websphere Liberty ClassNotFoundException во время проверки
- 28. WebSphere Liberty реализация JSR-250 (RolesAllowed)
- 29. WebSphere Liberty Profile OIDC URL-адрес клиента
- 30. Настройки регистрации трассировки для Liberty на Bluemix