Class Project
java.lang.Object
com.microservices.starter.core.environment.Project
- All Implemented Interfaces:
Serializable
Client specific maven project structure information
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
The Camel Cluster Service implementation type to use, per environment.The major version of java to use when creating container images for flex components.Values to set as overrides for the same properties declared in the starter parent.Whether to include sample code (autoconfiguration, sample domain, and test) for an enabled service library component during project structure generation.The starter parent version to target for this project.Optionally configure a specific port for Tenant URL Admin resolution.Optionally configure a specific port for Tenant URL Application resolution.Whether an OS upgrade command should be executed during the Dockerfile construction for a module (e.g.Whether Alpine Linux Temurin java images should be used for flexpackage image generation, as well as for config server and gateway image references.int
hashCode()
void
setAdminStarterAssemblyVersionOverride
(String adminStarterAssemblyVersionOverride) void
setAdminStarterDockerVersionOverride
(String adminStarterDockerVersionOverride) void
setArtifactIdPrefix
(String artifactIdPrefix) void
setClusterServiceType
(ClusterServiceType clusterServiceType) The Camel Cluster Service implementation type to use, per environment.void
setCommerceStarterAssemblyVersionOverride
(String commerceStarterAssemblyVersionOverride) void
setCommerceStarterDockerVersionOverride
(String commerceStarterDockerVersionOverride) void
setCommerceStarterThemedWebAssemblyVersionMapOverride
(String commerceStarterThemedWebAssemblyVersionMapOverride) void
setCommerceStarterThemedWebDockerVersionMapOverride
(String commerceStarterThemedWebDockerVersionMapOverride) void
setCommerceStarterThemeOverride
(String commerceStarterThemeOverride) void
setConfigServerVersionOverride
(String configServerVersionOverride) void
setGatewayVersionOverride
(String gatewayVersionOverride) void
setGroupId
(String groupId) void
setJavaMajorVersion
(String javaMajorVersion) The major version of java to use when creating container images for flex components.void
setJpaCoreVersionOverride
(String jpaCoreVersionOverride) void
setOpenApiAssemblyVersionOverride
(String openApiAssemblyVersionOverride) void
setOpenApiDockerVersionOverride
(String openApiDockerVersionOverride) void
setPackageName
(String packageName) void
setReleaseTrainArtifactIdOverride
(String releaseTrainArtifactIdOverride) void
setReleaseTrainGroupIdOverride
(String releaseTrainGroupIdOverride) void
setReleaseTrainVersionOverride
(String releaseTrainVersionOverride) Values to set as overrides for the same properties declared in the starter parent.void
setSampleCode
(Boolean sampleCode) Whether to include sample code (autoconfiguration, sample domain, and test) for an enabled service library component during project structure generation.void
setSearchVersionOverride
(String searchVersionOverride) void
setStarterParentVersion
(String starterParentVersion) The starter parent version to target for this project.void
setTenantUrlResolverAdminPort
(String tenantUrlResolverAdminPort) Optionally configure a specific port for Tenant URL Admin resolution.void
setTenantUrlResolverApplicationPort
(String tenantUrlResolverApplicationPort) Optionally configure a specific port for Tenant URL Application resolution.void
setUpgradeOSOnBuild
(Boolean upgradeOSOnBuild) Whether an OS upgrade command should be executed during the Dockerfile construction for a module (e.g.void
setUseAlpineJavaImages
(Boolean useAlpineJavaImages) Whether Alpine Linux Temurin java images should be used for flexpackage image generation, as well as for config server and gateway image references.void
setVersion
(String version) toString()
-
Constructor Details
-
Project
public Project()
-
-
Method Details
-
getGroupId
-
getArtifactIdPrefix
-
getPackageName
-
getVersion
-
getClusterServiceType
The Camel Cluster Service implementation type to use, per environment. Valid values arefile
,kubernetes
, andzookeeper
. Optional. -
getSampleCode
Whether to include sample code (autoconfiguration, sample domain, and test) for an enabled service library component during project structure generation. Optional. False by default. If declared at theComponent
level, that value will override this one. -
getStarterParentVersion
The starter parent version to target for this project. This drives a harmonized combination of related dependency versions, including release train. The starter parent version generally matches up with a release train version. Required. -
getUseAlpineJavaImages
Whether Alpine Linux Temurin java images should be used for flexpackage image generation, as well as for config server and gateway image references. Alpine images will be the most secure with the fewest OS vulns. Optional. True by default. Note, the Alpine Linux Temurin Java image is available only in amd64 at Java 17, so arm64-based machines must be capable of emulating (e.g. qemu or rosetta2). Such a situation is suitable for development. However, if an arm64 processor is being used in production, then this setting should be set to false for the performance benefit. Note, for Java 21, the alpine image is truly multi-platform and should be safely consumed on both amd64 and arm64. -
getJavaMajorVersion
The major version of java to use when creating container images for flex components. This will determine the base image used based on a particular Java version when executing containerized components in the target execution environment (e.g. docker compose or kubernetes). Valid values are17
and21
. The default value is17
. -
getUpgradeOSOnBuild
Whether an OS upgrade command should be executed during the Dockerfile construction for a module (e.g. apk upgrade). Optional. False by default, which will avoid unnecessary layer churn. -
getTenantUrlResolverApplicationPort
Optionally configure a specific port for Tenant URL Application resolution. If nothing is specified, theFlexPackageEnvironmentPostProcessor
will attempt to find the primary port for the corresponding commerce gateway to set (@code UrlResolverProperties). Tenant'sDefaultTenantResolver
will by default validate all NON-standard ports configured in (@code UrlResolverProperties) i.e. not "80" or "443". Setting this to a standard port allows for validation of the domain without the port as long as the port is not passed in with the url being resolved. -
getTenantUrlResolverAdminPort
Optionally configure a specific port for Tenant URL Admin resolution. If nothing is specified, theFlexPackageEnvironmentPostProcessor
will attempt to find the primary port for the corresponding admin gateway to set (@code UrlResolverProperties). Tenant'sDefaultTenantResolver
will by default validate all NON-standard ports configured in (@code UrlResolverProperties) i.e. not "80" or "443". Setting this to a standard port allows for validation of the domain without the port as long as the port is not passed in with the url being resolved. -
getReleaseTrainVersionOverride
Values to set as overrides for the same properties declared in the starter parent. If declared, one or more properties with the override values are generated in the project pom files during aflex-maven-plugin
generate goal execution. Optional. -
getReleaseTrainGroupIdOverride
-
getReleaseTrainArtifactIdOverride
-
getJpaCoreVersionOverride
-
getGatewayVersionOverride
-
getAdminStarterDockerVersionOverride
-
getAdminStarterAssemblyVersionOverride
-
getCommerceStarterThemedWebDockerVersionMapOverride
-
getCommerceStarterThemedWebAssemblyVersionMapOverride
-
getCommerceStarterThemeOverride
-
getCommerceStarterDockerVersionOverride
-
getCommerceStarterAssemblyVersionOverride
-
getSearchVersionOverride
-
getOpenApiDockerVersionOverride
-
getOpenApiAssemblyVersionOverride
-
getConfigServerVersionOverride
-
setGroupId
-
setArtifactIdPrefix
-
setPackageName
-
setVersion
-
setClusterServiceType
The Camel Cluster Service implementation type to use, per environment. Valid values arefile
,kubernetes
, andzookeeper
. Optional. -
setSampleCode
Whether to include sample code (autoconfiguration, sample domain, and test) for an enabled service library component during project structure generation. Optional. False by default. If declared at theComponent
level, that value will override this one. -
setStarterParentVersion
The starter parent version to target for this project. This drives a harmonized combination of related dependency versions, including release train. The starter parent version generally matches up with a release train version. Required. -
setUseAlpineJavaImages
Whether Alpine Linux Temurin java images should be used for flexpackage image generation, as well as for config server and gateway image references. Alpine images will be the most secure with the fewest OS vulns. Optional. True by default. Note, the Alpine Linux Temurin Java image is available only in amd64 at Java 17, so arm64-based machines must be capable of emulating (e.g. qemu or rosetta2). Such a situation is suitable for development. However, if an arm64 processor is being used in production, then this setting should be set to false for the performance benefit. Note, for Java 21, the alpine image is truly multi-platform and should be safely consumed on both amd64 and arm64. -
setJavaMajorVersion
The major version of java to use when creating container images for flex components. This will determine the base image used based on a particular Java version when executing containerized components in the target execution environment (e.g. docker compose or kubernetes). Valid values are17
and21
. The default value is17
. -
setUpgradeOSOnBuild
Whether an OS upgrade command should be executed during the Dockerfile construction for a module (e.g. apk upgrade). Optional. False by default, which will avoid unnecessary layer churn. -
setTenantUrlResolverApplicationPort
Optionally configure a specific port for Tenant URL Application resolution. If nothing is specified, theFlexPackageEnvironmentPostProcessor
will attempt to find the primary port for the corresponding commerce gateway to set (@code UrlResolverProperties). Tenant'sDefaultTenantResolver
will by default validate all NON-standard ports configured in (@code UrlResolverProperties) i.e. not "80" or "443". Setting this to a standard port allows for validation of the domain without the port as long as the port is not passed in with the url being resolved. -
setTenantUrlResolverAdminPort
Optionally configure a specific port for Tenant URL Admin resolution. If nothing is specified, theFlexPackageEnvironmentPostProcessor
will attempt to find the primary port for the corresponding admin gateway to set (@code UrlResolverProperties). Tenant'sDefaultTenantResolver
will by default validate all NON-standard ports configured in (@code UrlResolverProperties) i.e. not "80" or "443". Setting this to a standard port allows for validation of the domain without the port as long as the port is not passed in with the url being resolved. -
setReleaseTrainVersionOverride
Values to set as overrides for the same properties declared in the starter parent. If declared, one or more properties with the override values are generated in the project pom files during aflex-maven-plugin
generate goal execution. Optional. -
setReleaseTrainGroupIdOverride
-
setReleaseTrainArtifactIdOverride
-
setJpaCoreVersionOverride
-
setGatewayVersionOverride
-
setAdminStarterDockerVersionOverride
-
setAdminStarterAssemblyVersionOverride
-
setCommerceStarterThemedWebDockerVersionMapOverride
public void setCommerceStarterThemedWebDockerVersionMapOverride(String commerceStarterThemedWebDockerVersionMapOverride) -
setCommerceStarterThemedWebAssemblyVersionMapOverride
public void setCommerceStarterThemedWebAssemblyVersionMapOverride(String commerceStarterThemedWebAssemblyVersionMapOverride) -
setCommerceStarterThemeOverride
-
setCommerceStarterDockerVersionOverride
-
setCommerceStarterAssemblyVersionOverride
public void setCommerceStarterAssemblyVersionOverride(String commerceStarterAssemblyVersionOverride) -
setSearchVersionOverride
-
setOpenApiDockerVersionOverride
-
setOpenApiAssemblyVersionOverride
-
setConfigServerVersionOverride
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-