public class Maven extends Object implements Profile, com.oracle.bedrock.ComposableOption<Maven>
Profile provides the ability define a Maven environment, configuration,
together with zero or more Artifacts to be resolved to automatically construct a
ClassPath for a JavaApplication.
Maven Profiles are ComposableOptions. When multiple are provided
as a parameter, they will be composed in order of declaration into a single new instance.
Copyright (c) 2016. All Rights Reserved. Oracle Corporation.
Oracle is a registered trademark of Oracle Corporation and/or its affiliates.
| Modifier and Type | Method and Description |
|---|---|
static Maven |
artifact(String artifact)
|
static Maven |
artifact(String groupId,
String artifactId,
String version)
|
static Maven |
autoDetect()
|
Maven |
compose(Maven other) |
boolean |
equals(Object o) |
int |
hashCode() |
static Maven |
include(ClassPath classPath)
|
static Maven |
offline()
|
static Maven |
offline(boolean isOffline)
|
void |
onClosing(Platform platform,
Application application,
com.oracle.bedrock.OptionsByType optionsByType) |
void |
onLaunched(Platform platform,
Application application,
com.oracle.bedrock.OptionsByType optionsByType) |
void |
onLaunching(Platform platform,
MetaClass metaClass,
com.oracle.bedrock.OptionsByType optionsByType) |
static Maven |
scope(String scope)
|
static Maven |
settings(File settingsFileLocation)
|
static Maven |
settings(String settingsFileLocation)
|
public void onLaunching(Platform platform, MetaClass metaClass, com.oracle.bedrock.OptionsByType optionsByType)
onLaunching in interface Profilepublic void onLaunched(Platform platform, Application application, com.oracle.bedrock.OptionsByType optionsByType)
onLaunched in interface Profilepublic void onClosing(Platform platform, Application application, com.oracle.bedrock.OptionsByType optionsByType)
public static Maven offline(boolean isOffline)
@OptionsByType.Default public static Maven autoDetect()
public Maven compose(Maven other)
compose in interface com.oracle.bedrock.ComposableOption<Maven>Copyright © 2017. All rights reserved.