Documentation - Update way of generating AMP in platform

This commit is contained in:
Jose Luis Osorno
2019-03-26 12:38:14 +01:00
parent ea4c12a836
commit e5e0a7f76d

View File

@@ -95,39 +95,28 @@ do is modify the `pom.xml` file of the corresponding docker module / project in
### Platform / Share project ### Platform / Share project
1. Modify the Maven Dependency Plugin in the file `pom.xml` to set the platform / share JAR dependency type to `amp`: 1. Modify the Maven Resource Plugin in the file `pom.xml` to set the platform / share JAR artifact to copy to `amp`:
``` ```
<plugin> <execution>
<groupId>org.apache.maven.plugins</groupId> <id>copy-repository-extension</id>
<artifactId>maven-dependency-plugin</artifactId> <phase>package</phase>
<executions> <goals>
<!-- Copy the repository extension and the dependencies required for execute integration tests --> <goal>copy-resources</goal>
<execution> </goals>
<id>copy-repo-extension</id> <configuration>
<phase>pre-integration-test</phase> <outputDirectory>${project.build.directory}/extensions</outputDirectory>
<goals> <resources>
<goal>copy</goal> <resource>
</goals> <directory>target</directory>
<configuration> <includes>
<artifactItems> <include>${build.finalName}.amp</include>
<artifactItem> </includes>
<groupId>org.alfresco</groupId> <filtering>false</filtering>
<artifactId>sample-platform-jar</artifactId> </resource>
<version>1.0-SNAPSHOT</version> </resources>
<overWrite>false</overWrite> </configuration>
<outputDirectory>${project.build.directory}/extensions</outputDirectory> </execution>
<type>amp</type>
</artifactItem>
<!-- Test dependencies -->
...
</artifactItems>
</configuration>
</execution>
<!-- Copy other dependencies (JARs or AMPs) declared in the platform module -->
...
</executions>
</plugin>
``` ```
Once this configuration is in place, you simply need to rebuild and restart the project. The new configuration will make the Docker images automatically Once this configuration is in place, you simply need to rebuild and restart the project. The new configuration will make the Docker images automatically