@Mojo(name="generate-sources",
defaultPhase=GENERATE_SOURCES,
requiresDependencyResolution=RUNTIME)
public class GenerateSourcesMojo
extends AbstractMuleMojo
| Modifier and Type | Field and Description |
|---|---|
protected ApplicationDependencySelector |
applicationDependencySelector |
protected MulePluginResolver |
mulePluginResolver |
appDirectory, CLASSES, finalName, LIB, libFolder, localRepository, META_INF, MULE, MULE_APP_PROPERTIES, MULE_CONFIG_XML, MULE_DEPLOY_PROPERTIES, MULE_SRC, muleSourceFolder, MUNIT, munitSourceFolder, outputDirectory, PLUGINS, pluginsFolder, POM_XML, project, projectBaseFolder, projectBuilder, remoteArtifactRepositories, repositorySystem, session, TARGET, TEST_MULE| Constructor and Description |
|---|
GenerateSourcesMojo() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addJarsFromProjectCompileDependencies() |
protected void |
addJarsFromProjectLibFolder() |
protected void |
copyFileFromRootToRoot(String source) |
protected void |
createDescriptorFilesContent() |
protected void |
createLibFolderContent() |
protected void |
createMuleFolderContent() |
protected void |
createMuleSourceFolderContent() |
protected void |
createPluginsFolderContent() |
void |
execute() |
protected void |
initializeApplicationDependencySelector() |
protected void |
initializeResolver() |
protected boolean |
isNotAlreadyPresentInMuleContainer(org.apache.maven.model.Dependency mulePlugin) |
getFilteredAppDirectory, getMuleAppZipFileprotected MulePluginResolver mulePluginResolver
protected ApplicationDependencySelector applicationDependencySelector
public void execute()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureExceptionprotected void createMuleFolderContent()
throws IOException
IOExceptionprotected void createLibFolderContent()
throws IOException
IOExceptionprotected void addJarsFromProjectCompileDependencies()
throws IOException
IOExceptionprotected void addJarsFromProjectLibFolder()
throws IOException
IOExceptionprotected void createPluginsFolderContent()
throws IOException,
org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.project.ProjectBuildingException
IOExceptionorg.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.project.ProjectBuildingExceptionprotected boolean isNotAlreadyPresentInMuleContainer(org.apache.maven.model.Dependency mulePlugin)
protected void createMuleSourceFolderContent()
throws IOException
IOExceptionprotected void createDescriptorFilesContent()
throws IOException
IOExceptionprotected void copyFileFromRootToRoot(String source) throws IOException
IOExceptionprotected void initializeResolver()
protected void initializeApplicationDependencySelector()
Copyright © 2017. All rights reserved.