Backend extensibility

Issue-ID: SDC-2761
Change-Id: I9287e0255fdda8da61cafc4b761190c8992b9aff
Signed-off-by: MichaelMorris <michael.morris@est.tech>
diff --git a/catalog-be/pom.xml b/catalog-be/pom.xml
index fe52c62..cbfe98b 100644
--- a/catalog-be/pom.xml
+++ b/catalog-be/pom.xml
@@ -974,6 +974,39 @@
             <build>
                 <plugins>
                     <plugin>
+                        <artifactId>maven-antrun-plugin</artifactId>
+                        <version>1.8</version>
+                        <executions>
+                            <execution>
+                                <id>copy-context-file</id>
+                                <phase>validate</phase>
+                                <configuration>
+                                    <target>
+                                        <copy file="sdc-backend/context.xml.template" tofile="sdc-backend/context.xml"/>
+                                    </target>
+                                </configuration>
+                                <goals>
+                                    <goal>run</goal>
+                                </goals>
+                            </execution>
+                            <execution>
+                                <id>set-version-in-context-file</id>
+                                <phase>generate-resources</phase>
+                                <configuration>
+                                    <target>
+                                        <replace file="sdc-backend/context.xml">
+                                            <replacetoken>projectversion</replacetoken>
+                                            <replacevalue>${project.version}</replacevalue>
+                                        </replace>
+                                    </target>
+                                </configuration>
+                                <goals>
+                                    <goal>run</goal>
+                               </goals>
+                            </execution>
+                        </executions>
+                    </plugin>
+                    <plugin>
                         <groupId>org.apache.maven.plugins</groupId>
                         <artifactId>maven-resources-plugin</artifactId>
                         <executions>
@@ -1129,4 +1162,4 @@
             </build>
         </profile>
     </profiles>
-</project>
\ No newline at end of file
+</project>