[FOLIO-605] Investigate possibitly of bundling RAML GitHub project as a release artifact Created: 16/May/17 Updated: 02/Sep/21 Resolved: 02/Sep/21 |
|
| Status: | Closed |
| Project: | FOLIO |
| Components: | None |
| Affects versions: | None |
| Fix versions: | None |
| Type: | Task | Priority: | P3 |
| Reporter: | John Malconian | Assignee: | John Malconian |
| Resolution: | Won't Do | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | 30 minutes | ||
| Original estimate: | Not Specified | ||
| Attachments: |
|
||||||||
| Issue links: |
|
||||||||
| Sprint: | |||||||||
| Description |
|
Alternatives to making the RAML files in https://gitbub.com/folio-org/raml available to other projects other than as a git submodule. Possible alternatives include deploying RAML project as a Maven artifact or as a Debian package. This would make it possible to build release distributions without relying on Git as a prerequisite. |
| Comments |
| Comment by John Malconian [ 16/May/17 ] |
|
https://maven.apache.org/plugins/maven-dependency-plugin/examples/unpacking-artifacts.html |
| Comment by Adam Dickmeiss [ 16/May/17 ] |
|
pom.xml is for okapi-core and illustrates how we can embed something from vertx-core.. Obviously we should includes something from the raml repo instead (which at this stage is not a Maven artifact).
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>3.0.0</version>
<executions>
<execution>
<id>unpack</id>
<phase>package</phase>
<goals>
<goal>unpack</goal>
</goals>
<configuration>
<artifactItems>
<artifactItem>
<groupId>io.vertx</groupId>
<artifactId>vertx-core</artifactId>
<version>${vertx-version}</version>
<type>jar</type>
<overWrite>true</overWrite>
<outputDirectory>src/main/raml/raml-util2</outputDirectory>
<destFileName>optional-new-name.jar</destFileName>
<includes>META-INF/maven/**</includes>
<excludes>**/*test.class</excludes>
</artifactItem>
</artifactItems>
</configuration>
</execution>
</executions>
</plugin>
|