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"?>
|
||||
<project name="rm-parent" basedir=".">
|
||||
<property file="local.build.properties" />
|
||||
<property file="build.local.properties" />
|
||||
<property file="build.properties" />
|
||||
<!-- The properties 'artifactId' and 'tomcat' are defined in the modules -->
|
||||
<property name="groupId" value="org.alfresco"/>
|
||||
@@ -17,11 +17,11 @@
|
||||
<property name="app.package" value="${artifactId}.${packaging}" />
|
||||
<property name="app.package.path" location="${webapps}/${app.package}" />
|
||||
|
||||
<target name="clean">
|
||||
<target name="cleanTarget">
|
||||
<delete dir="${target}" />
|
||||
</target>
|
||||
|
||||
<target name="install" depends="clean">
|
||||
<target name="install" depends="cleanTarget, updateClassPath">
|
||||
<exec executable="${mvn}">
|
||||
<arg value="install" />
|
||||
<arg value="-DskipTests" />
|
||||
@@ -41,14 +41,10 @@
|
||||
<arg value="-DartifactId=${artifactId}" />
|
||||
<arg value="-Dversion=${version}" />
|
||||
<arg value="-Dpackaging=${packaging}" />
|
||||
<arg value="-Ddest=${app.package}" />
|
||||
<arg value="-Ddest=${target}/${app.package}" />
|
||||
</exec>
|
||||
</target>
|
||||
|
||||
<target name="copyWarFileToTarget">
|
||||
<copy file="${app.package}" todir="${target}"/>
|
||||
</target>
|
||||
|
||||
<target name="deleteWarFile">
|
||||
<delete file="${app.package.path}" />
|
||||
</target>
|
||||
@@ -63,7 +59,7 @@
|
||||
</exec>
|
||||
</target>
|
||||
|
||||
<target name="alfresco:install" depends="deleteWarFile, deleteExplodedWar, alfresco:amp, copyWarFileToTarget">
|
||||
<target name="alfresco:install" depends="deleteWarFile, deleteExplodedWar, alfresco:amp, fetchWarFile">
|
||||
<exec executable="${mvn}">
|
||||
<arg value="alfresco:install" />
|
||||
</exec>
|
||||
@@ -73,7 +69,7 @@
|
||||
<copy file="${target}/${app.package}" todir="${webapps}"/>
|
||||
</target>
|
||||
|
||||
<target name="buildAndDeploy" depends="fetchWarFile, alfresco:install, copyWarFileToTomcat" description=""/>
|
||||
<target name="buildAndDeploy" depends="alfresco:install, copyWarFileToTomcat" description=""/>
|
||||
|
||||
<target name="tomcat-start" description="">
|
||||
<exec executable="${bash}">
|
||||
|
37
pom.xml
37
pom.xml
@@ -100,18 +100,6 @@
|
||||
</properties>
|
||||
|
||||
<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>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
@@ -320,6 +308,31 @@
|
||||
<artifactId>replacer</artifactId>
|
||||
<version>1.5.2</version>
|
||||
</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>
|
||||
</pluginManagement>
|
||||
</build>
|
||||
|
@@ -1,14 +1,18 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<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>
|
||||
<projects/>
|
||||
<buildSpec>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.jdt.core.javabuilder</name>
|
||||
</buildCommand>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.m2e.core.maven2Builder</name>
|
||||
</buildCommand>
|
||||
</buildSpec>
|
||||
<natures>
|
||||
<nature>org.eclipse.m2e.core.maven2Nature</nature>
|
||||
<nature>org.eclipse.jdt.core.javanature</nature>
|
||||
</natures>
|
||||
</projectDescription>
|
@@ -27,7 +27,7 @@
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
<!-- Additional source folder to be added: source/compatibility -->
|
||||
<!-- Additional source folder to be added: src/main/compatibility -->
|
||||
<plugin>
|
||||
<groupId>org.codehaus.mojo</groupId>
|
||||
<artifactId>build-helper-maven-plugin</artifactId>
|
||||
@@ -39,7 +39,7 @@
|
||||
</goals>
|
||||
<configuration>
|
||||
<sources>
|
||||
<source>source/compatibility</source>
|
||||
<source>src/main/compatibility</source>
|
||||
</sources>
|
||||
</configuration>
|
||||
</execution>
|
||||
@@ -67,6 +67,35 @@
|
||||
</executions>
|
||||
</plugin>
|
||||
</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>
|
||||
<profiles>
|
||||
<profile>
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user