Class BootstrapMavenOptions
java.lang.Object
io.quarkus.bootstrap.resolver.maven.options.BootstrapMavenOptions
This class resolves relevant Maven command line options in case it's called
from a Maven build process. Maven internally uses org.apache.commons.cli.* API
besides Maven-specific API. This class locates the Maven's lib directory that
was used to launch the build process and loads the necessary classes from that
lib directory.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic PathgetClassOrigin(Class<?> cls) Returns the JAR or the root directory that contains the class file that is on the classpath of the context classloaderstatic StringgetOptionValue(String name) String[]getOptionValues(String name) static PathgetResourceOrigin(ClassLoader cl, String name) booleanbooleanisEmpty()static BootstrapMavenOptionsstatic BootstrapMavenOptionsnewInstance(String cmdLine)
-
Field Details
-
QUARKUS_INTERNAL_MAVEN_CMD_LINE_ARGS
- See Also:
-
ALTERNATE_USER_SETTINGS
- See Also:
-
ALTERNATE_GLOBAL_SETTINGS
- See Also:
-
ALTERNATE_POM_FILE
- See Also:
-
OFFLINE
- See Also:
-
SUPRESS_SNAPSHOT_UPDATES
- See Also:
-
UPDATE_SNAPSHOTS
- See Also:
-
CHECKSUM_FAILURE_POLICY
- See Also:
-
CHECKSUM_WARNING_POLICY
- See Also:
-
BATCH_MODE
- See Also:
-
NO_TRANSFER_PROGRESS
- See Also:
-
SYSTEM_PROPERTY
- See Also:
-
-
Method Details
-
parse
-
newInstance
-
newInstance
-
getMavenCmdLine
-
hasOption
-
getOptionValue
-
getOptionValues
-
getSystemProperties
-
isEmpty
public boolean isEmpty() -
getActiveProfileIds
-
getInactiveProfileIds
-
getClassOrigin
Returns the JAR or the root directory that contains the class file that is on the classpath of the context classloader- Throws:
IOException
-
getResourceOrigin
- Throws:
IOException
-