Class AbstractAnypointMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
com.aeontronix.enhancedmule.tools.AbstractAnypointMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
- Direct Known Subclasses:
AbstractOrganizationalMojo,ProvisionOrgMojo
public abstract class AbstractAnypointMojo
extends org.apache.maven.plugin.AbstractMojo
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected com.aeontronix.anypointsdk.AnypointClientprotected Stringprotected Stringprotected StringAnypoint bearer tokenprotected Stringprotected Stringprotected ConfigProfilestatic final Stringstatic final Stringprotected EnhancedMuleClientprotected Stringprotected StringAnypoint organization nameprotected StringAnypoint passwordprotected Stringprotected org.apache.maven.project.MavenProjectprotected org.apache.maven.execution.MavenSessionprotected org.apache.maven.settings.Settingsprotected StringAnypoint usernameFields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract voidfinal voidexecute()findPrefixedProperties(String... prefixes) findPrefixedProperties(Properties source, String prefix) getMavenProperty(String key, @Nullable Boolean defValue, @NotNull String... legacyKeys) getMavenProperty(String key, @Nullable String defValue, @NotNull String... legacyKeys) protected StringgetProperty(String name) Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Field Details
-
DEFAULT_EMSERVER_URL
- See Also:
-
EM_CLIENT
- See Also:
-
authType
-
username
Anypoint username -
password
Anypoint password -
clientId
-
clientSecret
-
bearerToken
Anypoint bearer token -
enhancedMuleServerUrl
@Parameter(property="enhancedmule.server.url", defaultValue="https://api.enhanced-mule.com") protected String enhancedMuleServerUrl -
anypointPlatformUrl
-
settings
@Parameter(defaultValue="${settings}", readonly=true) protected org.apache.maven.settings.Settings settings -
project
@Parameter(defaultValue="${project}", readonly=true, required=true) protected org.apache.maven.project.MavenProject project -
session
@Parameter(defaultValue="${session}", readonly=true, required=true) protected org.apache.maven.execution.MavenSession session -
org
Anypoint organization name -
profile
-
emClient
-
configProfile
-
anypointClient
protected com.aeontronix.anypointsdk.AnypointClient anypointClient
-
-
Constructor Details
-
AbstractAnypointMojo
public AbstractAnypointMojo()
-
-
Method Details
-
getLegacyClient
- Throws:
IOExceptionProfileNotFoundException
-
getEmClient
-
execute
public final void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException- Throws:
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureException
-
doExecute
- Throws:
Exception
-
getProperty
-
getMavenProperties
-
getMavenProperty
-
getMavenProperty
-
getEMTProperties
public EMTProperties getEMTProperties() throws NotFoundException, IOException, ProfileNotFoundException -
findPrefixedProperties
-
findPrefixedProperties
-