RM-1107 (Mavenization of the RM build)

* Removed "updateClassPath" ant target
 * Minor changes/tweaks in the pom.xml files

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@59575 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Tuna Aksoy
2014-01-08 19:35:25 +00:00
parent dae2194d93
commit 941eca033a
4 changed files with 6 additions and 44 deletions

View File

@@ -12,19 +12,13 @@
<delete dir="${ant.build.directory}" failonerror="true" /> <delete dir="${ant.build.directory}" failonerror="true" />
</target> </target>
<target name="install" depends="cleanTarget, updateClassPath"> <target name="install" depends="cleanTarget">
<exec executable="${mvn.exec}" failonerror="true"> <exec executable="${mvn.exec}" failonerror="true">
<arg value="install" /> <arg value="install" />
<arg value="-DskipTests" /> <arg value="-DskipTests" />
</exec> </exec>
</target> </target>
<target name="updateClassPath">
<exec executable="${mvn.exec}" failonerror="true">
<arg value="eclipse:eclipse" />
</exec>
</target>
<target name="fetchWarFile"> <target name="fetchWarFile">
<exec executable="${mvn.exec}" failonerror="true"> <exec executable="${mvn.exec}" failonerror="true">
<arg value="dependency:get" /> <arg value="dependency:get" />

11
pom.xml
View File

@@ -76,7 +76,6 @@
<!-- Maven specific build properties --> <!-- Maven specific build properties -->
<maven.alfresco.includeDependencies>false</maven.alfresco.includeDependencies> <maven.alfresco.includeDependencies>false</maven.alfresco.includeDependencies>
<maven.alfresco.version>1.1.1</maven.alfresco.version>
<maven.build.sourceVersion>1.7</maven.build.sourceVersion> <maven.build.sourceVersion>1.7</maven.build.sourceVersion>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
@@ -127,7 +126,6 @@
<plugin> <plugin>
<groupId>org.alfresco.maven.plugin</groupId> <groupId>org.alfresco.maven.plugin</groupId>
<artifactId>alfresco-maven-plugin</artifactId> <artifactId>alfresco-maven-plugin</artifactId>
<version>${maven.alfresco.version}</version>
<extensions>true</extensions> <extensions>true</extensions>
<configuration> <configuration>
<backup>true</backup> <backup>true</backup>
@@ -293,12 +291,11 @@
<artifactId>alfresco-maven-plugin</artifactId> <artifactId>alfresco-maven-plugin</artifactId>
<version>1.1.1</version> <version>1.1.1</version>
</plugin> </plugin>
<plugin> <plugin>
<groupId>net.alchim31.maven</groupId> <groupId>net.alchim31.maven</groupId>
<artifactId>yuicompressor-maven-plugin</artifactId> <artifactId>yuicompressor-maven-plugin</artifactId>
<version>1.3.2</version> <version>1.3.2</version>
</plugin> </plugin>
<!-- This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself. --> <!-- This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself. -->
<plugin> <plugin>
<groupId>org.eclipse.m2e</groupId> <groupId>org.eclipse.m2e</groupId>

View File

@@ -24,5 +24,5 @@
<copy file="${devContextFile}" todir="config/alfresco/extension" failonerror="true" /> <copy file="${devContextFile}" todir="config/alfresco/extension" failonerror="true" />
</target> </target>
<target name="prepareEnv" depends="updateClassPath, copyDBDriver, copyDevContextFile" description="" /> <target name="prepareEnv" depends="copyDBDriver, copyDevContextFile" description="" />
</project> </project>

View File

@@ -78,35 +78,6 @@
</executions> </executions>
</plugin> </plugin>
</plugins> </plugins>
<pluginManagement>
<plugins>
<!-- This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself. -->
<plugin>
<groupId>org.eclipse.m2e</groupId>
<artifactId>lifecycle-mapping</artifactId>
<version>1.0.0</version>
<configuration>
<lifecycleMappingMetadata>
<pluginExecutions>
<pluginExecution>
<pluginExecutionFilter>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<versionRange>[1.8,)</versionRange>
<goals>
<goal>add-source</goal>
</goals>
</pluginExecutionFilter>
<action>
<ignore />
</action>
</pluginExecution>
</pluginExecutions>
</lifecycleMappingMetadata>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build> </build>
<profiles> <profiles>
<profile> <profile>