mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
RM-1107 (Mavenization of the RM build)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/DEV/UIAUTOMATION@59300 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
16
build.xml
16
build.xml
@@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0"?>
|
<?xml version="1.0"?>
|
||||||
<project name="rm-parent" basedir=".">
|
<project name="rm-parent" basedir=".">
|
||||||
<property file="local.build.properties" />
|
<property file="build.local.properties" />
|
||||||
<property file="build.properties" />
|
<property file="build.properties" />
|
||||||
<!-- The properties 'artifactId' and 'tomcat' are defined in the modules -->
|
<!-- The properties 'artifactId' and 'tomcat' are defined in the modules -->
|
||||||
<property name="groupId" value="org.alfresco"/>
|
<property name="groupId" value="org.alfresco"/>
|
||||||
@@ -17,11 +17,11 @@
|
|||||||
<property name="app.package" value="${artifactId}.${packaging}" />
|
<property name="app.package" value="${artifactId}.${packaging}" />
|
||||||
<property name="app.package.path" location="${webapps}/${app.package}" />
|
<property name="app.package.path" location="${webapps}/${app.package}" />
|
||||||
|
|
||||||
<target name="clean">
|
<target name="cleanTarget">
|
||||||
<delete dir="${target}" />
|
<delete dir="${target}" />
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="install" depends="clean">
|
<target name="install" depends="cleanTarget, updateClassPath">
|
||||||
<exec executable="${mvn}">
|
<exec executable="${mvn}">
|
||||||
<arg value="install" />
|
<arg value="install" />
|
||||||
<arg value="-DskipTests" />
|
<arg value="-DskipTests" />
|
||||||
@@ -41,14 +41,10 @@
|
|||||||
<arg value="-DartifactId=${artifactId}" />
|
<arg value="-DartifactId=${artifactId}" />
|
||||||
<arg value="-Dversion=${version}" />
|
<arg value="-Dversion=${version}" />
|
||||||
<arg value="-Dpackaging=${packaging}" />
|
<arg value="-Dpackaging=${packaging}" />
|
||||||
<arg value="-Ddest=${app.package}" />
|
<arg value="-Ddest=${target}/${app.package}" />
|
||||||
</exec>
|
</exec>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="copyWarFileToTarget">
|
|
||||||
<copy file="${app.package}" todir="${target}"/>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<target name="deleteWarFile">
|
<target name="deleteWarFile">
|
||||||
<delete file="${app.package.path}" />
|
<delete file="${app.package.path}" />
|
||||||
</target>
|
</target>
|
||||||
@@ -63,7 +59,7 @@
|
|||||||
</exec>
|
</exec>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="alfresco:install" depends="deleteWarFile, deleteExplodedWar, alfresco:amp, copyWarFileToTarget">
|
<target name="alfresco:install" depends="deleteWarFile, deleteExplodedWar, alfresco:amp, fetchWarFile">
|
||||||
<exec executable="${mvn}">
|
<exec executable="${mvn}">
|
||||||
<arg value="alfresco:install" />
|
<arg value="alfresco:install" />
|
||||||
</exec>
|
</exec>
|
||||||
@@ -73,7 +69,7 @@
|
|||||||
<copy file="${target}/${app.package}" todir="${webapps}"/>
|
<copy file="${target}/${app.package}" todir="${webapps}"/>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="buildAndDeploy" depends="fetchWarFile, alfresco:install, copyWarFileToTomcat" description=""/>
|
<target name="buildAndDeploy" depends="alfresco:install, copyWarFileToTomcat" description=""/>
|
||||||
|
|
||||||
<target name="tomcat-start" description="">
|
<target name="tomcat-start" description="">
|
||||||
<exec executable="${bash}">
|
<exec executable="${bash}">
|
||||||
|
37
pom.xml
37
pom.xml
@@ -100,18 +100,6 @@
|
|||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
<sourceDirectory>source/java</sourceDirectory>
|
|
||||||
<testSourceDirectory>test/java</testSourceDirectory>
|
|
||||||
<testResources>
|
|
||||||
<testResource>
|
|
||||||
<directory>test/resources</directory>
|
|
||||||
</testResource>
|
|
||||||
</testResources>
|
|
||||||
<resources>
|
|
||||||
<resource>
|
|
||||||
<directory>config</directory>
|
|
||||||
</resource>
|
|
||||||
</resources>
|
|
||||||
<plugins>
|
<plugins>
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
@@ -320,6 +308,31 @@
|
|||||||
<artifactId>replacer</artifactId>
|
<artifactId>replacer</artifactId>
|
||||||
<version>1.5.2</version>
|
<version>1.5.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. -->
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.eclipse.m2e</groupId>
|
||||||
|
<artifactId>lifecycle-mapping</artifactId>
|
||||||
|
<version>1.0.0</version>
|
||||||
|
<configuration>
|
||||||
|
<lifecycleMappingMetadata>
|
||||||
|
<pluginExecutions>
|
||||||
|
<pluginExecution>
|
||||||
|
<pluginExecutionFilter>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-enforcer-plugin</artifactId>
|
||||||
|
<versionRange>[1.0.0,)</versionRange>
|
||||||
|
<goals>
|
||||||
|
<goal>enforce</goal>
|
||||||
|
</goals>
|
||||||
|
</pluginExecutionFilter>
|
||||||
|
<action>
|
||||||
|
<ignore />
|
||||||
|
</action>
|
||||||
|
</pluginExecution>
|
||||||
|
</pluginExecutions>
|
||||||
|
</lifecycleMappingMetadata>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
</pluginManagement>
|
</pluginManagement>
|
||||||
</build>
|
</build>
|
||||||
|
@@ -1,14 +1,18 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<projectDescription>
|
<projectDescription>
|
||||||
<name>alfresco-rm-server</name>
|
<name>alfresco-rm-server-test</name>
|
||||||
<comment>NO_M2ECLIPSE_SUPPORT: Project files created with the maven-eclipse-plugin are not supported in M2Eclipse.</comment>
|
<comment>NO_M2ECLIPSE_SUPPORT: Project files created with the maven-eclipse-plugin are not supported in M2Eclipse.</comment>
|
||||||
<projects/>
|
<projects/>
|
||||||
<buildSpec>
|
<buildSpec>
|
||||||
<buildCommand>
|
<buildCommand>
|
||||||
<name>org.eclipse.jdt.core.javabuilder</name>
|
<name>org.eclipse.jdt.core.javabuilder</name>
|
||||||
</buildCommand>
|
</buildCommand>
|
||||||
|
<buildCommand>
|
||||||
|
<name>org.eclipse.m2e.core.maven2Builder</name>
|
||||||
|
</buildCommand>
|
||||||
</buildSpec>
|
</buildSpec>
|
||||||
<natures>
|
<natures>
|
||||||
|
<nature>org.eclipse.m2e.core.maven2Nature</nature>
|
||||||
<nature>org.eclipse.jdt.core.javanature</nature>
|
<nature>org.eclipse.jdt.core.javanature</nature>
|
||||||
</natures>
|
</natures>
|
||||||
</projectDescription>
|
</projectDescription>
|
@@ -27,7 +27,7 @@
|
|||||||
</execution>
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
<!-- Additional source folder to be added: source/compatibility -->
|
<!-- Additional source folder to be added: src/main/compatibility -->
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.codehaus.mojo</groupId>
|
<groupId>org.codehaus.mojo</groupId>
|
||||||
<artifactId>build-helper-maven-plugin</artifactId>
|
<artifactId>build-helper-maven-plugin</artifactId>
|
||||||
@@ -39,7 +39,7 @@
|
|||||||
</goals>
|
</goals>
|
||||||
<configuration>
|
<configuration>
|
||||||
<sources>
|
<sources>
|
||||||
<source>source/compatibility</source>
|
<source>src/main/compatibility</source>
|
||||||
</sources>
|
</sources>
|
||||||
</configuration>
|
</configuration>
|
||||||
</execution>
|
</execution>
|
||||||
@@ -67,6 +67,35 @@
|
|||||||
</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>
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user