mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
RM-1107 (Mavenization of the RM build)
* Minor changes (update README.txt, pom.xml and build.xml) git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@59637 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
14
README.txt
14
README.txt
@@ -2,7 +2,7 @@
|
||||
|
||||
Prerequisites
|
||||
|
||||
- Maven 3.0.3 (or higher)
|
||||
- Maven 3.0.4 (or higher)
|
||||
- Eclipse Maven Plugin (m2e)
|
||||
- See Maven setup instructions https://ts.alfresco.com/share/page/site/eng/wiki-page?title=Maven_Setup
|
||||
|
||||
@@ -13,12 +13,13 @@ Initial Setup
|
||||
- Check out RM code into the "code" directory (eg "checkout https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD")
|
||||
- Create the tomcat instances using "use-tomcat7" and "use-app-tomcat7"
|
||||
|
||||
|
||||
Using Eclipse
|
||||
|
||||
- Import projects as Maven projects ("Import > Maven > Existing Maven Projects")
|
||||
- Browse to the code directory of your project and select "rm-server/pom.xml" and "rm-share/pom.xml". DO NOT select the parent "/pom.xml"
|
||||
- Open the Ant view and add the build files for both modules ("build.xml")
|
||||
- Run the "prepareEnv" targets for both modules which will prepare the development environment. This target must be run just once.
|
||||
- Run the "prepareEnv" target for rm-server which will prepare the development environment. This target must be run just once.
|
||||
- Now "buildAndDeploy" target can be run which will create the amp file, apply it to the war file and copy the war file to webapps folder.
|
||||
|
||||
|
||||
@@ -41,8 +42,7 @@ Summary of Available Internal Ant Targets
|
||||
- copyDBDriver : Copies the DB driver
|
||||
- copyDevContextFile : Copies the dev-context.xml file
|
||||
- copyWarFileToTomcat : Copies the war file (amp applied) to the webapp folder
|
||||
- deleteExplodedWar : Deletes the exploded war file
|
||||
- deleteWarFile : Deletes the war file
|
||||
- fetchWarFile : Gets the "original" war file
|
||||
- install : Executes the "mvn install" command
|
||||
- updateClassPath : Updates the classpath / Generates the eclipse configuration files
|
||||
- deleteExplodedWar : Deletes the exploded war file
|
||||
- deleteWarFile : Deletes the war file
|
||||
- fetchWarFile : Gets the "original" war file
|
||||
- install : Executes the "mvn install" command
|
16
build.xml
16
build.xml
@@ -80,7 +80,7 @@
|
||||
|
||||
<target name="assembleLocalisationPackage" description="">
|
||||
<delete dir="${ant.build.directory}/i18n" failonerror="true" />
|
||||
<copy todir="${ant.build.directory}/i18n/${ant.project.name}/${ant.config.directory}" failonerror="true">
|
||||
<copy todir="${ant.build.directory}/i18n/${ant.project.name}/${ant.config.directory}" failonerror="true">
|
||||
<fileset dir="${ant.config.directory}">
|
||||
<include name="**/*.properties" />
|
||||
<exclude name="**/*_*.properties" />
|
||||
@@ -95,19 +95,21 @@
|
||||
|
||||
<target name="assembleIconPackage" description="">
|
||||
<delete dir="${ant.build.directory}/icons" failonerror="true" />
|
||||
<copy todir="${ant.build.directory}/icons/${ant.project.name}" failonerror="true">
|
||||
<fileset dir=".">
|
||||
<copy todir="${ant.build.directory}/icons/${ant.project.name}" failonerror="true">
|
||||
<fileset dir=".">
|
||||
<include name="**/*.png"/>
|
||||
<exclude name="**/${ant.build.directory}/**"/>
|
||||
<exclude name="**/${ant.build.directory}/**"/>
|
||||
</fileset>
|
||||
</copy>
|
||||
</target>
|
||||
|
||||
<target name="deployExploded" description="">
|
||||
<fail message="Exploded webapp directory '${app.war.artifactId}' does not exist.">
|
||||
<condition><not>
|
||||
<available file="${app.folder}" type="dir"/>
|
||||
</not></condition>
|
||||
<condition>
|
||||
<not>
|
||||
<available file="${app.folder}" type="dir"/>
|
||||
</not>
|
||||
</condition>
|
||||
</fail>
|
||||
<copy todir="${app.folder}/WEB-INF/lib" failonerror="true">
|
||||
<fileset dir="${ant.build.directory}">
|
||||
|
@@ -236,6 +236,7 @@
|
||||
<version>5.1.14</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<!-- Dependencies for the test result reports -->
|
||||
<dependency>
|
||||
<groupId>org.uncommons</groupId>
|
||||
<artifactId>reportng</artifactId>
|
||||
|
Reference in New Issue
Block a user