Skip to content
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

Support for Payara Micro Remote execution #450

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
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
14 changes: 14 additions & 0 deletions ejb/remote/roles-allowed/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,20 @@
</dependency>
</dependencies>
</profile>

<profile>
<id>payara-micro-remote</id>
<build>
<plugins>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<skipTests>true</skipTests>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>


Expand Down
113 changes: 111 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@
(these are downloaded and installed in these versions by Maven for the CI profiles)
-->
<payara.version>4.1.2.181</payara.version>
<payara_domain>payaradomain</payara_domain>
<payara.micro.version>5.182</payara.micro.version>
<payara.micro.version>5.191</payara.micro.version>
<glassfish.client.version>5.0</glassfish.client.version> <!-- For remote EJB for Payara and Glassfish -->
<glassfish.version>4.1.1</glassfish.version>
<liberty.version>16.0.0.4</liberty.version>
Expand Down Expand Up @@ -584,6 +583,116 @@
</testResources>
</build>
</profile>

<profile>
<id>payara-micro-remote</id>

<properties>
<!-- default port -->
<payara.httpPort>8080</payara.httpPort>
<!-- JMS and JAXWS not supported by Micro -->
<skipJMS>true</skipJMS>
<skipJAXWS>true</skipJAXWS>

<!-- Being a WebProfile++, Micro does not support ear archives -->
<skipEAR>true</skipEAR>

<!-- Client-cert needs complicated cert setup, which hasn't been done -->
<skipServletClientCertificate>true</skipServletClientCertificate>
</properties>

<dependencies>

<!-- Java EE based client dependencies to contact a server via WebSocket or REST -->
<!-- Not needed by the container, but some tests seem to expect JAXRS client implementation to
be on the classpath -->
<dependency>
<groupId>fish.payara.arquillian</groupId>
<artifactId>payara-client-ee7</artifactId>
</dependency>

<!-- The actual Arquillian connector -->
<dependency>
<groupId>fish.payara.arquillian</groupId>
<artifactId>payara-micro-remote</artifactId>
<version>1.0.Beta4-SNAPSHOT</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<systemPropertyVariables>
<javaEEServer>payara-remote</javaEEServer>
<payara.httpPort>${payara.httpPort}</payara.httpPort>
<use.cnHost>${use.cnHost}</use.cnHost>
<skipEAR>${skipEAR}</skipEAR>
</systemPropertyVariables>
</configuration>
</plugin>
</plugins>
</build>
</profile>

<profile>
<!-- Helper profile for launching the server. Before the tests run
mvn -Ppayara-micro-remote-control -N
Take note of the HTTP port from the output and use it for -Dpayara.httpPort

Afterwards stop the server with mvn -Ppayara-micro-remote-control -N payara-micro:stop -->
<id>payara-micro-remote-control</id>


<build>
<defaultGoal>dependency:copy payara-micro:start</defaultGoal>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<configuration>
<artifactItems>
<artifactItem>
<groupId>fish.payara.arquillian</groupId>
<artifactId>payara-micro-deployer</artifactId>
<version>1.0.Beta4-SNAPSHOT</version>
<type>war</type>
</artifactItem>
</artifactItems>
<stripVersion>true</stripVersion>
</configuration>
</plugin>
<plugin>
<groupId>fish.payara.maven.plugins</groupId>
<artifactId>payara-micro-maven-plugin</artifactId>
<version>1.0.5</version>
<configuration>
<payaraVersion>${payara.micro.version}</payaraVersion>
<daemon>true</daemon>

<commandLineOptions>
<option>
<key>--autoBindHttp</key>
</option>
<option>
<key>--deploy</key>
<value>target/dependency/payara-micro-deployer.war</value>
</option>
<option>
<key>--contextRoot</key>
<value>micro-deployer</value>
</option>
<option>
<key>--logToFile</key>
<value>target/payara-micro.log</value>
</option>
</commandLineOptions>
</configuration>
</plugin>
</plugins>
</build>
</profile>



Expand Down