Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 0af9370

Browse files
Initial support for Piranha
Note: connector needs to be locally compiled first for now Signed-off-by: arjantijms <arjan.tijms@gmail.com>
1 parent ff745e5 commit 0af9370

File tree

2 files changed

+53
-1
lines changed

2 files changed

+53
-1
lines changed

‎pom.xml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -358,6 +358,54 @@
358358

359359

360360
<profiles>
361+
362+
<!-- ### PIRANHA ### -->
363+
364+
<profile>
365+
<id>piranha-embedded</id>
366+
367+
<properties>
368+
<skipEJB>true</skipEJB>
369+
<skipCDI>true</skipCDI>
370+
<skipJSF>true</skipJSF>
371+
<skipJACC>true</skipJACC>
372+
<!-- Client-cert needs complicated cert setup, which hasn't been done -->
373+
<skipServletClientCertificate>true</skipServletClientCertificate>
374+
</properties>
375+
376+
<dependencies>
377+
<!-- Java EE based client dependencies to contact a server via WebSocket or REST -->
378+
<dependency>
379+
<groupId>fish.payara.arquillian</groupId>
380+
<artifactId>payara-client-ee7</artifactId>
381+
</dependency>
382+
383+
<dependency>
384+
<groupId>cloud.piranha.arquillian</groupId>
385+
<artifactId>piranha-arquillian-server</artifactId>
386+
<version>20.1.0-SNAPSHOT</version>
387+
</dependency>
388+
</dependencies>
389+
390+
<build>
391+
<plugins>
392+
<plugin>
393+
<groupId>org.apache.maven.plugins</groupId>
394+
<artifactId>maven-surefire-plugin</artifactId>
395+
<configuration>
396+
<systemPropertyVariables>
397+
<javaEEServer>piranha-embedded</javaEEServer>
398+
<piranha.version>19.12.0</piranha.version>
399+
<piranha.repositories>https://dl.bintray.com/piranhacloud/maven</piranha.repositories>
400+
</systemPropertyVariables>
401+
</configuration>
402+
</plugin>
403+
</plugins>
404+
</build>
405+
406+
</profile>
407+
408+
361409

362410
<!-- ### PAYARA ### -->
363411

‎test-utils/src/main/java/org/javaee7/ServerOperations.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,11 @@ public static void addUsersToContainerIdentityStore() {
5656
cmd.add("u1");
5757

5858
CliCommands.payaraGlassFish(cmd);
59-
} else {
59+
} else if ("piranha-embedded".equals(javaEEServer)) {
60+
System.out.println("Adding user for piranha-embedded");
61+
System.setProperty("io.piranha.identitystore.callers", "<u><caller callername=\"u1\" password=\"p1\" groups=\"g1\"/></u>");
62+
}
63+
else {
6064
if (javaEEServer == null) {
6165
System.out.println("javaEEServer not specified");
6266
} else {

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /