Package io.quarkus.deployment.util
Class ArtifactInfoUtil
java.lang.Object
io.quarkus.deployment.util.ArtifactInfoUtil
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringdeploymentArtifactCoords(io.quarkus.maven.dependency.ResolvedDependency runtimeExtension) Reads thedeployment-artifactproperty from the extension descriptor of a runtime extension artifact.groupIdAndArtifactId(Class<?> clazz, CurateOutcomeBuildItem curateOutcomeBuildItem) Returns a Map.Entry containing the groupId and the artifactId of the module the contains the BuildItemReturns a Map.Entry containing the groupId and the artifactId of the module the contains the BuildItemstatic AbstractMap.SimpleEntry<String, String> groupIdAndArtifactId(Path pomPropertiesContainer) (package private) static booleanisTargetClasses(Path location) Checks if the given path represents a Maven target/classes directory.
-
Field Details
-
DEPLOYMENT
- See Also:
-
-
Constructor Details
-
ArtifactInfoUtil
public ArtifactInfoUtil()
-
-
Method Details
-
groupIdAndArtifactId
public static Map.Entry<String,String> groupIdAndArtifactId(Class<?> clazz, CurateOutcomeBuildItem curateOutcomeBuildItem) Returns a Map.Entry containing the groupId and the artifactId of the module the contains the BuildItemThe way this works is by depending on the pom.properties file that should be present in the deployment jar
- Parameters:
clazz- the caller clazz. (must not benull)curateOutcomeBuildItem- the application model that gets searched for the caller clazz. optional- Returns:
- the result, or throws
-
deploymentArtifactCoords
public static String deploymentArtifactCoords(io.quarkus.maven.dependency.ResolvedDependency runtimeExtension) Reads thedeployment-artifactproperty from the extension descriptor of a runtime extension artifact.The descriptor is only present in the runtime artifact, so this is the only place the link between a runtime artifact and its deployment artifact is recorded. The
-deploymentnaming convention is not authoritative.- Parameters:
runtimeExtension- a runtime extension artifact- Returns:
- the coordinates of its deployment artifact, or
nullwhen the descriptor or the property is absent
-
isTargetClasses
Checks if the given path represents a Maven target/classes directory. This works for any module type (deployment, runtime, spi, etc.). -
groupIdAndArtifactId
Returns a Map.Entry containing the groupId and the artifactId of the module the contains the BuildItemThe way this works is by depending on the pom.properties file that should be present in the deployment jar
- Returns:
- the result, or null if no maven metadata were found
- Throws:
IOException
-
groupIdAndArtifactId
public static AbstractMap.SimpleEntry<String,String> groupIdAndArtifactId(Path pomPropertiesContainer) throws IOException - Throws:
IOException
-