Merge pull request #13 from Alfresco/feature/SEARCH-664_Add_SearchServices-InsightEngine_version_to_the_Solr_Admin_UI

SEARCH-664 (Add SearchServices/InsightEngine version to the Solr Admi…
This commit is contained in:
Michael
2018-03-01 16:38:10 +00:00
committed by GitHub
3 changed files with 57 additions and 2 deletions
+52 -1
View File
@@ -8,7 +8,6 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<project.timestamp>${maven.build.timestamp}</project.timestamp>
<project.build.key>${bamboo_fullBuildKey}</project.build.key>
<project.revision.key>${bamboo_repository_revision_number}</project.revision.key>
</properties>
<parent>
@@ -199,6 +198,58 @@
</execution>
</executions>
</plugin>
<plugin>
<!-- DO NOT CHANGE THE FORMATTING FOR THIS PLUGIN CONFIGURATION -->
<groupId>com.google.code.maven-replacer-plugin</groupId>
<artifactId>replacer</artifactId>
<executions>
<execution>
<id>alter-index.css</id>
<phase>prepare-package</phase>
<goals>
<goal>replace</goal>
</goals>
<configuration>
<file>${project.build.directory}/solr-${solr.version}/server/solr-webapp/webapp/css/angular/index.css</file>
<replacements>
<replacement>
<token>property\.png \); }</token>
<value>property.png ); }
#content #index #versions .alfresco span { background-image: url( ../../img/alfresco-ico.png ); }</value>
</replacement>
</replacements>
</configuration>
</execution>
<execution>
<id>alter-index.html</id>
<phase>prepare-package</phase>
<goals>
<goal>replace</goal>
</goals>
<configuration>
<file>${project.build.directory}/solr-${solr.version}/server/solr-webapp/webapp/partials/index.html</file>
<replacements>
<replacement>
<token>&lt;li class="solr solr_spec_version"&gt;</token>
<value>
&lt;li class="alfresco"&gt;&lt;dl class="clearfix"&gt;
&lt;dt&gt;&lt;span&gt;Search Services&lt;/span&gt;&lt;/dt&gt;
&lt;dd&gt;\${project.version}&lt;/dd&gt;
&lt;/dl&gt;&lt;/li&gt;
&lt;li&gt;&lt;dl class="clearfix"&gt;
&lt;dt&gt;&lt;span&gt;&lt;/span&gt;&lt;/dt&gt;
&lt;dd&gt;\${project.revision.key} - \${project.timestamp}&lt;/dd&gt;
&lt;/dl&gt;&lt;/li&gt;
&lt;li class="solr solr_spec_version"&gt;
</value>
</replacement>
</replacements>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<executions>
@@ -7,6 +7,11 @@
<includeBaseDirectory>true</includeBaseDirectory>
<baseDirectory>${project.artifactId}</baseDirectory>
<fileSets>
<fileSet>
<directory>${project.build.outputDirectory}/solr/server/solr-webapp/webapp/img</directory>
<outputDirectory>./solr/server/solr-webapp/webapp/img</outputDirectory>
<filtered>false</filtered>
</fileSet>
<fileSet>
<directory>${project.build.outputDirectory}</directory>
<outputDirectory>.</outputDirectory>
@@ -39,7 +44,6 @@
<exclude>**/example/**</exclude>
<exclude>**/bin/solr.in.sh</exclude>
<exclude>**/bin/solr.in.cmd</exclude>
</excludes>
</fileSet>
<!-- Solr config -->
Binary file not shown.

After

Width:  |  Height:  |  Size: 5.6 KiB