SEARCH-996 Update solr and alfresco-solrclient.

Update to Solr 6.6.5 and alfresco-solrclient 6.7 (which brings in
alfresco-datamodel 6.25).  This should fix several vulnerabilities
flagged by Whitesource.

Create build config to allow specifying the URL to download the solr
zip file from (in case we need to provide a patched version).
This commit is contained in:
Tom Page
2018-09-06 14:10:23 +01:00
parent 7baa878635
commit e01c33815e
2 changed files with 17 additions and 15 deletions

View File

@@ -50,28 +50,28 @@
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<groupId>com.googlecode.maven-download-plugin</groupId>
<artifactId>download-maven-plugin</artifactId>
<version>1.4.1</version>
<executions>
<execution>
<id>unpack-solr-war</id>
<phase>validate</phase>
<goals>
<goal>unpack</goal>
<goal>wget</goal>
</goals>
<configuration>
<artifactItems>
<artifactItem>
<groupId>org.apache.solr</groupId>
<artifactId>solr</artifactId>
<version>${solr.version}</version>
<type>zip</type>
<url>${solr.zip}</url>
<unpack>true</unpack>
<outputDirectory>${project.build.directory}</outputDirectory>
<excludes>**/*solr.xml</excludes>
</artifactItem>
</artifactItems>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>unpack-solr-config</id>
<phase>validate</phase>

View File

@@ -11,8 +11,10 @@
<packaging>pom</packaging>
<name>Alfresco Solr Search parent</name>
<properties>
<solr.version>6.6.0</solr.version>
<alfresco-solrclient.version>6.5</alfresco-solrclient.version>
<solr.version>6.6.5</solr.version>
<alfresco-solrclient.version>6.7</alfresco-solrclient.version>
<!-- The location to download the solr zip file from. -->
<solr.zip>https://archive.apache.org/dist/lucene/solr/${solr.version}/solr-${solr.version}.zip</solr.zip>
</properties>
<distributionManagement>
<repository>