Skip to content
Merged
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
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,6 @@
/wildfly/keycloak-saml-adapter/target/
/wildfly/keycloak-saml-adapter-ejb/target/
/wildfly/postgresql-timer-application/target/
wildfly/kafka-application/target
wildfly/keycloak-saml-adapter-ejb-bootable-jar/target

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ See the individual applications documentation for more details about the specifi

Provides APIs that allow to access the generated applications.
For instance the
[ApplicationProvider#wildflyMicroprofileReactiveMessagingKafkaProvisionedServerPath](application-provider/src/main/java/org/jboss/intersmash/applications/ApplicationProvider.java) provides the path of
[ApplicationProvider#wildflyDistributedSessionsInfinispanProvisionedServerPath](application-provider/src/main/java/org/jboss/intersmash/applications/ApplicationProvider.java) provides the path of
the `server` directory which contains a WildFly or JBoss EAP/JBoss EAP XP server generated by the WildFly Maven Plugin,
which includes the deployment.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
* deployments (e.g.: WAR, JAR) must be installed in local repository.
*/
public class ApplicationProvider {
static final String WILDFLY_MICROPROFILE_REACTIVE_MESSAGING_KAFKA_DEPLOYMENT = "wildfly-microprofile-reactive-messaging-kafka";
static final String WILDFLY_ELYTRON_OIDC_CLIENT_KEYCLOAK_DEPLOYMENT = "wildfly-elytron-oidc-client-keycloak";
static final String WILDFLY_WEB_CACHE_OFFLOAD_INFINISPAN_DEPLOYMENT = "wildfly-web-cache-offload-infinispan";
static final String WILDFLY_DISTRIBUTED_SESSIONS_INFINISPAN_DEPLOYMENT = "wildfly-distributed-sessions-infinispan";
Expand All @@ -39,21 +38,11 @@ public class ApplicationProvider {
static final String WILDFLY_KEYCLOAK_SAML_ADAPTER_EJB_BOOTABLE_JAR_DEPLOYMENT = "wildfly-keycloak-saml-adapter-ejb-bootable-jar";
static final String WILDFLY_ELYTRON_OIDC_CLIENT_KEYCLOAK_BOOTABLE_JAR = "wildfly-elytron-oidc-client-keycloak-bootable-jar";
static final String WILDFLY_POSTGRESQL_TIMER_APPLICATION_DEPLOYMENT = "wildfly-postgresql-timer-application";
static final String WILDFLY_KAFKA_APPLICATION_DEPLOYMENT = "wildfly-kafka-application";
static final String WILDFLY_KAFKA_SASL_APPLICATION_DEPLOYMENT = "wildfly-kafka-sasl-application";
static final String WILDFLY_DEPLOYMENT_ARTIFACT_PACKAGING_WAR = "war";
static final String WILDFLY_DEPLOYMENT_ARTIFACT_PACKAGING_JAR = "jar";

/**
* Provides access to a filesystem directory containing a server provisioned by
* the WildFly/JBoss EAP Maven plugin, which is generated from the
* {@code wildfly-microprofile-reactive-messaging-kafka} application
*
* @return {@link Path} instance that identifies the directory containing the
* WildFly/JBoss EAP provisioned server.
*/
public static Path wildflyMicroprofileReactiveMessagingKafkaProvisionedServerPath() {
return findApplicationDirectory("wildfly", "microprofile-reactive-messaging-kafka", "target", "server");
}

/**
* Provides access to a filesystem directory containing a server provisioned by
* the WildFly/JBoss EAP 8.x Maven plugin, which is generated from the
Expand Down Expand Up @@ -139,23 +128,51 @@ public static Path wildflyWebCacheOffloadInfinispanProvisionedServerPath() {
}

/**
* Provides access to a WAR deployment containing the
* {@code wildfly-microprofile-reactive-messaging-kafka} application
* Provides access to a filesystem directory containing a server provisioned by
* the WildFly/JBoss EAP 8.x Maven plugin, which is generated from the
* {@code keycloak-saml-adapter-ejb-bootable-jar} application
*
* @return {@link Path} instance that identifies the WAR artifact containing the
* {@code wildfly-microprofile-reactive-messaging-kafka} application.
* @return {@link Path} instance that identifies the directory containing the
* WildFly/JBoss EAP 8.x provisioned server.
*/
public static Path wildflyMicroprofileReactiveMessagingKafkaDeploymentPath() {
Path file = null;
try {
file = ArtifactProvider.resolveArtifact(ApplicationConfigurationProperties.groupID(),
WILDFLY_MICROPROFILE_REACTIVE_MESSAGING_KAFKA_DEPLOYMENT,
ApplicationConfigurationProperties.version(), WILDFLY_DEPLOYMENT_ARTIFACT_PACKAGING_WAR, null)
.toPath();
} catch (SettingsBuildingException | ArtifactResolutionException e) {
throw new RuntimeException("Can not get artifact", e);
}
return file;
public static Path wildflyKeycloakSamlAdapterEjbBootableJarProvisionedServerPath() {
return findApplicationDirectory("wildfly", "keycloak-saml-adapter-ejb-bootable-jar", "target", "server");
}

/**
* Provides access to a filesystem directory containing a server provisioned by
* the WildFly/JBoss EAP 8.x Maven plugin, which is generated from the
* {@code elytron-oidc-client-keycloak-bootable-jar} application
*
* @return {@link Path} instance that identifies the directory containing the
* WildFly/JBoss EAP 8.x provisioned server.
*/
public static Path wildflyElytronOidcClientKeycloakBootableJarProvisionedServerPath() {
return findApplicationDirectory("wildfly", "elytron-oidc-client-keycloak-bootable-jar", "target", "server");
}

/**
* Provides access to a filesystem directory containing a server provisioned by
* the WildFly/JBoss EAP 8.x Maven plugin, which is generated from the
* {@code wildfly-kafka-application} application
*
* @return {@link Path} instance that identifies the directory containing the
* WildFly/JBoss EAP 8.x provisioned server.
*/
public static Path wildflyKafkaApplicationProvisionedServerPath() {
return findApplicationDirectory("wildfly", "kafka-application", "target", "server");
}

/**
* Provides access to a filesystem directory containing a server provisioned by
* the WildFly/JBoss EAP 8.x Maven plugin, which is generated from the
* {@code wildfly-kafka-sasl-application} application
*
* @return {@link Path} instance that identifies the directory containing the
* WildFly/JBoss EAP 8.x provisioned server.
*/
public static Path wildflyKafkaSaslApplicationProvisionedServerPath() {
return findApplicationDirectory("wildfly", "kafka-sasl-application", "target", "server");
}

/**
Expand Down Expand Up @@ -389,7 +406,7 @@ public static Path wildflyActiveMQArtemisConnectorProvisionedServerPath() {
* @return {@link Path} instance that identifies the JAR artifact containing the
* {@code wildfly-activemq-artemis-connector} application.
*/
public static Path wildflyActiveMQArtemisConnectorDeploymentPath() {
public static Path wildflyActiveMQArtemisConnectorBootableJarDeploymentPath() {
Path file = null;
try {
file = ArtifactProvider.resolveArtifact(ApplicationConfigurationProperties.groupID(),
Expand All @@ -402,6 +419,46 @@ public static Path wildflyActiveMQArtemisConnectorDeploymentPath() {
return file;
}

/**
* Provides access to a WAR deployment containing the
* {@code wildfly-kafka-application} application
*
* @return {@link Path} instance that identifies the WAR artifact containing the
* {@code wildfly-kafka-application} application.
*/
public static Path wildflyKafkaApplicationDeploymentPath() {
Path file = null;
try {
file = ArtifactProvider.resolveArtifact(ApplicationConfigurationProperties.groupID(),
WILDFLY_KAFKA_APPLICATION_DEPLOYMENT,
ApplicationConfigurationProperties.version(), WILDFLY_DEPLOYMENT_ARTIFACT_PACKAGING_WAR, null)
.toPath();
} catch (SettingsBuildingException | ArtifactResolutionException e) {
throw new RuntimeException("Can not get artifact", e);
}
return file;
}

/**
* Provides access to a WAR deployment containing the
* {@code wildfly-kafka-sasl-application} application
*
* @return {@link Path} instance that identifies the WAR artifact containing the
* {@code wildfly-kafka-sasl-application} application.
*/
public static Path wildflyKafkaSaslApplicationDeploymentPath() {
Path file = null;
try {
file = ArtifactProvider.resolveArtifact(ApplicationConfigurationProperties.groupID(),
WILDFLY_KAFKA_SASL_APPLICATION_DEPLOYMENT,
ApplicationConfigurationProperties.version(), WILDFLY_DEPLOYMENT_ARTIFACT_PACKAGING_WAR, null)
.toPath();
} catch (SettingsBuildingException | ArtifactResolutionException e) {
throw new RuntimeException("Can not get artifact", e);
}
return file;
}

/**
* Provides access the provided applications base path.
*
Expand Down
Loading