mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
RM 2.3 now works against 5.0-BF-SNAPSHOT (Community and Enterprise)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@83493 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -25,7 +25,7 @@ Using Eclipse
|
|||||||
|
|
||||||
Summary of Available Ant Targets
|
Summary of Available Ant Targets
|
||||||
|
|
||||||
- configureSOLR : Configures SOLR for Alfresco
|
- configureSolr : Configures Solr for Alfresco
|
||||||
- fullBuild : Creates the amp file and applies it to the war file
|
- fullBuild : Creates the amp file and applies it to the war file
|
||||||
- incrementalBuild : Creates the jar file and copies the jar file with other files like css, js, ftl, etc. files
|
- incrementalBuild : Creates the jar file and copies the jar file with other files like css, js, ftl, etc. files
|
||||||
- prepareEnv : Prepares the development environment (must be run just once)
|
- prepareEnv : Prepares the development environment (must be run just once)
|
||||||
@@ -42,7 +42,7 @@ Summary of Available Internal Ant Targets
|
|||||||
- copyWebDirectory : Copies the source/web folder
|
- copyWebDirectory : Copies the source/web folder
|
||||||
- deleteExplodedWar : Deletes the exploded war file
|
- deleteExplodedWar : Deletes the exploded war file
|
||||||
- deleteWarFile : Deletes the war file
|
- deleteWarFile : Deletes the war file
|
||||||
- fetchSOLR : Gets the the SOLR artifact
|
- fetchSolr : Gets the the Solr artifact
|
||||||
- fetchWarFile : Gets the "original" war file
|
- fetchWarFile : Gets the "original" war file
|
||||||
- install : Executes the "mvn install" command
|
- install : Executes the "mvn install" command
|
||||||
- package : Executes the "mvn package" command
|
- package : Executes the "mvn package" command
|
||||||
|
5
pom.xml
5
pom.xml
@@ -82,14 +82,9 @@
|
|||||||
|
|
||||||
<!-- Sonar specific properties -->
|
<!-- Sonar specific properties -->
|
||||||
<sonar.jacoco.reportPath>${project.build.directory}/jacoco.exec</sonar.jacoco.reportPath>
|
<sonar.jacoco.reportPath>${project.build.directory}/jacoco.exec</sonar.jacoco.reportPath>
|
||||||
|
|
||||||
<!-- Bamboo build number and build key. These property values are empty. The values will be passed on bamboo configuration -->
|
|
||||||
<buildNumber></buildNumber>
|
|
||||||
<buildKey></buildKey>
|
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
<finalName>${project.artifactId}-${project.version}${buildNumber}${buildKey}</finalName>
|
|
||||||
<plugins>
|
<plugins>
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
@@ -7,13 +7,12 @@ app.war.artifactId=alfresco
|
|||||||
# Tomcat folder name used by the alfresco application
|
# Tomcat folder name used by the alfresco application
|
||||||
app.tomcat=tomcat
|
app.tomcat=tomcat
|
||||||
|
|
||||||
# SOLR configuration
|
# Solr configuration
|
||||||
solr.directory=solr
|
solr.directory=solr
|
||||||
solr.artifactId=alfresco-solr
|
solr.artifactId=alfresco-solr
|
||||||
solr.packaging=zip
|
solr.packaging=zip
|
||||||
solr.package=${solr.artifactId}.${solr.packaging}
|
solr.package=${solr.artifactId}.${solr.packaging}
|
||||||
|
|
||||||
|
|
||||||
# DB driver properties
|
# DB driver properties
|
||||||
db.driver.groupId=postgresql
|
db.driver.groupId=postgresql
|
||||||
db.driver.artifactId=${db.driver.groupId}
|
db.driver.artifactId=${db.driver.groupId}
|
||||||
|
@@ -33,7 +33,7 @@
|
|||||||
</exec>
|
</exec>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="fetchSOLR">
|
<target name="fetchSolr">
|
||||||
<xmlproperty file="../pom.xml" keepRoot="false"/>
|
<xmlproperty file="../pom.xml" keepRoot="false"/>
|
||||||
<exec executable="${mvn.exec}" failonerror="true">
|
<exec executable="${mvn.exec}" failonerror="true">
|
||||||
<arg value="dependency:get" />
|
<arg value="dependency:get" />
|
||||||
@@ -46,8 +46,8 @@
|
|||||||
<unzip src="${solr.directory}/${solr.package}" dest="${solr.directory}"/>
|
<unzip src="${solr.directory}/${solr.package}" dest="${solr.directory}"/>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="configureSOLR" depends="fetchSOLR"
|
<target name="configureSolr" depends="fetchSolr"
|
||||||
description="Configures Tomcat and the Alfresco repository to use SOLR">
|
description="Configures Tomcat and the Alfresco repository to use Solr">
|
||||||
|
|
||||||
<dirname property="temp.dir" file="${ant.file}"/>
|
<dirname property="temp.dir" file="${ant.file}"/>
|
||||||
<pathconvert property="base.dir" targetos="unix">
|
<pathconvert property="base.dir" targetos="unix">
|
||||||
@@ -59,7 +59,7 @@
|
|||||||
|
|
||||||
<mkdir dir="${data.root}/solr-index"/>
|
<mkdir dir="${data.root}/solr-index"/>
|
||||||
|
|
||||||
<!-- copy SOLR config files -->
|
<!-- copy Solr config files -->
|
||||||
<copy file="${solr.directory}/context.xml"
|
<copy file="${solr.directory}/context.xml"
|
||||||
tofile="${app.tomcat.folder}/conf/Catalina/localhost/solr.xml" />
|
tofile="${app.tomcat.folder}/conf/Catalina/localhost/solr.xml" />
|
||||||
<replace file="${app.tomcat.folder}/conf/Catalina/localhost/solr.xml" summary="yes">
|
<replace file="${app.tomcat.folder}/conf/Catalina/localhost/solr.xml" summary="yes">
|
||||||
@@ -85,20 +85,19 @@
|
|||||||
<replacetoken><![CDATA[<!-- Alfresco SSL Connector placeholder -->]]></replacetoken>
|
<replacetoken><![CDATA[<!-- Alfresco SSL Connector placeholder -->]]></replacetoken>
|
||||||
<replacevalue><![CDATA[
|
<replacevalue><![CDATA[
|
||||||
<Connector port="8443" protocol="org.apache.coyote.http11.Http11Protocol" SSLEnabled="true"
|
<Connector port="8443" protocol="org.apache.coyote.http11.Http11Protocol" SSLEnabled="true"
|
||||||
maxThreads="150" scheme="https" keystoreFile="../../data/keystore/ssl.keystore"
|
maxThreads="150" scheme="https" keystoreFile="../../data/keystore/ssl.keystore"
|
||||||
keystorePass="kT9X6oe68t" keystoreType="JCEKS"
|
keystorePass="kT9X6oe68t" keystoreType="JCEKS"
|
||||||
secure="true" connectionTimeout="240000"
|
secure="true" connectionTimeout="240000"
|
||||||
truststoreFile="../../data/keystore/ssl.truststore"
|
truststoreFile="../../data/keystore/ssl.truststore"
|
||||||
truststorePass="kT9X6oe68t" truststoreType="JCEKS"
|
truststorePass="kT9X6oe68t" truststoreType="JCEKS"
|
||||||
clientAuth="want" sslProtocol="TLS" allowUnsafeLegacyRenegotiation="true" maxHttpHeaderSize="32768" />]]></replacevalue>
|
clientAuth="want" sslProtocol="TLS" allowUnsafeLegacyRenegotiation="true" maxHttpHeaderSize="32768" />]]></replacevalue>
|
||||||
</replace>
|
</replace>
|
||||||
|
|
||||||
<!-- update project repository.properties file with SOLR properties -->
|
<!-- update project repository.properties file with Solr properties -->
|
||||||
<propertyfile file="${data.root}/repository.properties">
|
<propertyfile file="${data.root}/repository.properties">
|
||||||
<entry key="dir.keystore" value="${data.root}/keystore" />
|
<entry key="dir.keystore" value="${data.root}/keystore" />
|
||||||
<entry key="index.subsystem.name" value="solr" />
|
<entry key="index.subsystem.name" value="solr" />
|
||||||
</propertyfile>
|
</propertyfile>
|
||||||
|
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
</project>
|
</project>
|
@@ -27,7 +27,7 @@
|
|||||||
</testResource>
|
</testResource>
|
||||||
</testResources>
|
</testResources>
|
||||||
<plugins>
|
<plugins>
|
||||||
<!-- Additional source folder to be added: source/compatibility -->
|
<!-- Additional source folder to be added: source/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>
|
||||||
@@ -130,30 +130,6 @@
|
|||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
</profile>
|
</profile>
|
||||||
<profile>
|
|
||||||
<id>Alfresco42</id>
|
|
||||||
<!-- 'config' dependencies -->
|
|
||||||
<dependencies>
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.alfresco</groupId>
|
|
||||||
<artifactId>alfresco-data-model</artifactId>
|
|
||||||
<version>${alfresco.base.version}</version>
|
|
||||||
<classifier>config</classifier>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.alfresco</groupId>
|
|
||||||
<artifactId>alfresco-repository</artifactId>
|
|
||||||
<version>${alfresco.base.version}</version>
|
|
||||||
<classifier>config</classifier>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.alfresco</groupId>
|
|
||||||
<artifactId>alfresco-remote-api</artifactId>
|
|
||||||
<version>${alfresco.base.version}</version>
|
|
||||||
<classifier>config</classifier>
|
|
||||||
</dependency>
|
|
||||||
</dependencies>
|
|
||||||
</profile>
|
|
||||||
<profile>
|
<profile>
|
||||||
<id>fullBuild</id>
|
<id>fullBuild</id>
|
||||||
<build>
|
<build>
|
||||||
@@ -193,11 +169,17 @@
|
|||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
</profile>
|
</profile>
|
||||||
|
<profile>
|
||||||
|
<id>enterprise</id>
|
||||||
|
<properties>
|
||||||
|
<webapp.id>alfresco-enterprise</webapp.id>
|
||||||
|
</properties>
|
||||||
|
</profile>
|
||||||
</profiles>
|
</profiles>
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.alfresco</groupId>
|
<groupId>org.alfresco</groupId>
|
||||||
<artifactId>alfresco</artifactId>
|
<artifactId>${webapp.id}</artifactId>
|
||||||
<version>${alfresco.base.version}</version>
|
<version>${alfresco.base.version}</version>
|
||||||
<type>war</type>
|
<type>war</type>
|
||||||
</dependency>
|
</dependency>
|
||||||
@@ -221,11 +203,11 @@
|
|||||||
<scope>test</scope>
|
<scope>test</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.mockito</groupId>
|
<groupId>org.mockito</groupId>
|
||||||
<artifactId>mockito-all</artifactId>
|
<artifactId>mockito-all</artifactId>
|
||||||
<version>1.9.5</version>
|
<version>1.9.5</version>
|
||||||
<scope>test</scope>
|
<scope>test</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.springframework</groupId>
|
<groupId>org.springframework</groupId>
|
||||||
<artifactId>spring-test</artifactId>
|
<artifactId>spring-test</artifactId>
|
||||||
@@ -246,18 +228,6 @@
|
|||||||
<classifier>tests</classifier>
|
<classifier>tests</classifier>
|
||||||
<scope>test</scope>
|
<scope>test</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
|
||||||
<groupId>org.apache.chemistry</groupId>
|
|
||||||
<artifactId>chemistry-tck-atompub</artifactId>
|
|
||||||
<version>0.1-incubating-unreleased</version>
|
|
||||||
<scope>test</scope>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.apache.myfaces.core</groupId>
|
|
||||||
<artifactId>myfaces-api</artifactId>
|
|
||||||
<version>2.1.9</version>
|
|
||||||
<scope>test</scope>
|
|
||||||
</dependency>
|
|
||||||
<!-- Database drivers -->
|
<!-- Database drivers -->
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>postgresql</groupId>
|
<groupId>postgresql</groupId>
|
||||||
@@ -284,11 +254,5 @@
|
|||||||
<version>3.0</version>
|
<version>3.0</version>
|
||||||
<scope>test</scope>
|
<scope>test</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
<!-- FIXME: Test do not run (NoClassDefFoundError: org/w3c/dom/ElementTraversal) -->
|
|
||||||
<dependency>
|
|
||||||
<groupId>xml-apis</groupId>
|
|
||||||
<artifactId>xml-apis</artifactId>
|
|
||||||
<version>1.4.01</version>
|
|
||||||
</dependency>
|
|
||||||
</dependencies>
|
</dependencies>
|
||||||
</project>
|
</project>
|
Reference in New Issue
Block a user