diff --git a/plugins/alfresco-maven-plugin/src/main/java/org/alfresco/maven/plugin/RunMojo.java b/plugins/alfresco-maven-plugin/src/main/java/org/alfresco/maven/plugin/RunMojo.java index a777a4f5..d1c3ee4b 100644 --- a/plugins/alfresco-maven-plugin/src/main/java/org/alfresco/maven/plugin/RunMojo.java +++ b/plugins/alfresco-maven-plugin/src/main/java/org/alfresco/maven/plugin/RunMojo.java @@ -75,10 +75,18 @@ public class RunMojo extends AbstractMojo { * alfresco-maven-plugin * 3.0.0 * - * true - * false - * true * true + * true + * true + * false* + * + * + * ${alfresco.groupId} + * alfresco-share-services + * ${alfresco.share.version} + * amp + * + * * * * } @@ -139,6 +147,18 @@ public class RunMojo extends AbstractMojo { @Parameter(property = "maven.alfresco.testInclude", defaultValue = "**") protected String testInclude; + /** + * JARs and AMPs that should be overlayed/applied to the Platform/Repository WAR (i.e. alfresco.war) + */ + @Parameter(property = "maven.alfresco.platform.modules", defaultValue = "") + protected List platformModules; + + /** + * JARs and AMPs that should be overlayed/applied to the Share WAR (i.e. share.war) + */ + @Parameter(property = "maven.alfresco.share.modules", defaultValue = "") + protected List shareModules; + /** * Maven GAV properties for standard Alfresco web applications. */ @@ -166,51 +186,32 @@ public class RunMojo extends AbstractMojo { @Parameter(property = "alfresco.api.explorer.version", defaultValue = "1.0") protected String alfrescoApiExplorerVersion; - /** - * Maven GAV properties for customized alfresco.war and share.war - * Used by the Maven Tomcat 7 Plugin - * TODO: These properties don't need to be params anymore - */ - @Parameter(property = "runner.alfresco.groupId", defaultValue = "${alfresco.groupId}") - protected String runnerAlfrescoGroupId; - - @Parameter(property = "runner.alfresco.platform.war.artifactId", defaultValue = "${alfresco.platform.war.artifactId}") - protected String runnerAlfrescoPlatformWarArtifactId; - - @Parameter(property = "runner.alfresco.share.war.artifactId", defaultValue = "${alfresco.share.war.artifactId}") - protected String runnerAlfrescoShareWarArtifactId; - - @Parameter(property = "runner.alfresco.platform.version", defaultValue = "${alfresco.platform.version}") - protected String runnerAlfrescoPlatformVersion; - - @Parameter(property = "runner.alfresco.share.version", defaultValue = "${alfresco.share.version}") - protected String runnerAlfrescoShareVersion; - - /** - * JARs and AMPs that should be overlayed/applied to the Platform/Repository WAR (i.e. alfresco.war) - */ - @Parameter(property = "runner.alfresco.platform.modules", defaultValue = "") - protected List runnerAlfrescoPlatformModules; - - /** - * JARs and AMPs that should be overlayed/applied to the Share WAR (i.e. share.war) - */ - @Parameter(property = "runner.alfresco.share.modules", defaultValue = "") - protected List runnerAlfrescoShareModules; - /** * Directory that contains the Alfresco Solr 4 configuration */ @Parameter(property = "solr.home", defaultValue = "${project.basedir}/${alfresco.data.location}/solr") protected String solrHome; + /** + * Maven GAV properties for customized alfresco.war and share.war + * Used by the Maven Tomcat 7 Plugin + */ + private String runnerAlfrescoGroupId; + private String runnerAlfrescoPlatformWarArtifactId; + private String runnerAlfrescoShareWarArtifactId; + private String runnerAlfrescoPlatformVersion; + private String runnerAlfrescoShareVersion; + /** * Database JDBC connection URL * TODO: Is this parameter needed here? */ - @Parameter(property = "alfresco.db.url", defaultValue = "jdbc:h2:./${alfresco.data.location}/h2_data/${alfresco.db.name};${alfresco.db.params}") - protected String alfrescoDbUrl; +// @Parameter(property = "alfresco.db.url", defaultValue = "jdbc:h2:./${alfresco.data.location}/h2_data/${alfresco.db.name};${alfresco.db.params}") + // protected String alfrescoDbUrl; + /** + * The Maven environment that this mojo is executed in + */ private ExecutionEnvironment execEnv; public void execute() throws MojoExecutionException { @@ -345,7 +346,7 @@ public class RunMojo extends AbstractMojo { */ protected void buildPlatformWar() throws MojoExecutionException { String platformWarArtifactId = buildCustomWar("platform", - runnerAlfrescoPlatformModules, + platformModules, alfrescoPlatformWarArtifactId, alfrescoPlatformVersion); @@ -362,7 +363,7 @@ public class RunMojo extends AbstractMojo { */ protected void buildShareWar() throws MojoExecutionException { String shareWarArtifactId = buildCustomWar("share", - runnerAlfrescoShareModules, + shareModules, alfrescoShareWarArtifactId, alfrescoShareVersion);