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 TypeFieldDescriptionstatic final Stringstatic final Stringprotected Stringstatic final Stringprotected StringAnypoint bearer tokenprotected Stringprotected Stringprotected ConfigProfilestatic final Stringstatic final Stringstatic 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()findPrefixProperties(Map<String, String> target, String prefix) findPrefixProperties(Properties source, Map<String, String> target, String prefix) protected StringgetProperty(String name) Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Field Details
-
BEARER_TOKEN_PROPERTY
- See Also:
-
DEFAULT_EMSERVER_URL
- See Also:
-
EM_CLIENT
- See Also:
-
EM_CLIENT_ID
- See Also:
-
EM_CLIENT_SECRET
- See Also:
-
ANYPOINT_USERNAME
- See Also:
-
ANYPOINT_PASSWORD
- See Also:
-
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
-
-
Constructor Details
-
AbstractAnypointMojo
public AbstractAnypointMojo()
-
-
Method Details
-
getClient
- 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
-
findPrefixProperties
-
findPrefixProperties
-