public class IdeaMojo extends AbstractIdeaMojo
| Modifier and Type | Field and Description |
|---|---|
private boolean |
dependenciesAsLibraries
Causes the module libraries to use a short name for all dependencies.
|
private java.lang.String |
deploymentDescriptorFile
Specify the location of the deployment descriptor file, if one is provided.
|
private boolean |
downloadJavadocs
Enables/disables the downloading of javadoc attachments.
|
private boolean |
downloadSources
Enables/disables the downloading of source attachments.
|
private java.lang.String |
exclude
A comma-separated list of directories that should be excluded.
|
private boolean |
ideaPlugin
Tell IntelliJ IDEA that this module is an IntelliJ IDEA Plugin.
|
private java.lang.String |
ideaVersion
Specify the version of IDEA to target.
|
private java.lang.String |
javadocClassifier
Sets the classifier string attached to an artifact javadoc archive name.
|
private java.lang.String |
jdkLevel
Specify the version of the JDK to use for the project for the purpose of
enabled assertions and Java 5.0 language features.
|
private java.lang.String |
jdkName
Specify the name of the registered IDEA JDK to use
for the project.
|
private Library[] |
libraries
An optional set of Library objects that allow you to specify a comma separated list of source dirs, class dirs,
or to indicate that the library should be excluded from the module.
|
private boolean |
linkModules
Whether to link the reactor projects as dependency modules or as libraries.
|
private java.util.List |
reactorProjects
The reactor projects in a multi-module build.
|
private java.lang.String |
sourceClassifier
Sets the classifier string attached to an artifact source archive name.
|
private boolean |
useFullNames
Whether to use full artifact names when referencing libraries.
|
private org.apache.maven.artifact.manager.WagonManager |
wagonManager |
private java.lang.String |
wildcardResourcePatterns
Specify the resource pattern in wildcard format, for example "?*.xml;?*.properties".
|
artifactFactory, artifactMetadataSource, artifactResolver, executedProject, localRepo, log, overwrite| Constructor and Description |
|---|
IdeaMojo() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute() |
private void |
rewriteModule(java.util.Set macros) |
private void |
rewriteProject(java.util.Set macros) |
private void |
rewriteWorkspace() |
void |
setProject(org.apache.maven.project.MavenProject project) |
convertDriveLetter, createElement, doDependencyResolution, findComponent, findElement, findElement, getLog, getPluginSetting, initParam, readXmlDocument, removeOldElements, toRelative, writeXmlDocumentprivate java.util.List reactorProjects
private org.apache.maven.artifact.manager.WagonManager wagonManager
private boolean linkModules
private java.lang.String deploymentDescriptorFile
private boolean useFullNames
private boolean downloadSources
private boolean downloadJavadocs
private java.lang.String sourceClassifier
private java.lang.String javadocClassifier
private java.lang.String jdkName
private java.lang.String jdkLevel
private Library[] libraries
<libraries>
<library>
<name>webwork</name>
<sources>file://$webwork$/src/java</sources>
<!--
<classes>...</classes>
<exclude>true</exclude>
-->
</library>
</libraries>
private java.lang.String exclude
private java.lang.String wildcardResourcePatterns
private java.lang.String ideaVersion
private boolean dependenciesAsLibraries
private boolean ideaPlugin
public void execute()
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionprivate void rewriteModule(java.util.Set macros)
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionprivate void rewriteProject(java.util.Set macros)
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionprivate void rewriteWorkspace()
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionpublic void setProject(org.apache.maven.project.MavenProject project)