Skip to content

Commit

Permalink
separate distro zip from libs export assembly
Browse files Browse the repository at this point in the history
some generalization to make files reusable in other extensions
  • Loading branch information
edeso committed Aug 24, 2021
1 parent 88e0dfe commit 0e9127b
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 4 deletions.
27 changes: 27 additions & 0 deletions devel-libs.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<assembly xmlns="http://maven.apache.org/ASSEMBLY/2.1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/ASSEMBLY/2.1.0 http://maven.apache.org/xsd/assembly-2.1.0.xsd">
<id>devel libs dir</id>
<formats>
<!-- for development purposes -->
<format>dir</format>
</formats>
<includeBaseDirectory>false</includeBaseDirectory>
<dependencySets>
<dependencySet>
<!--
place runtime deps in target/libs/ to be avail for IDE development
e.g. in Eclipse compile the extension and run OJ with program arguments
-limit-ext-lookup false
-extensions-directory "${workspace_loc:<extension_project>}/target/classes"
-jars-directory "${workspace_loc:<extension_project>}/target/libs"
-->
<scope>runtime</scope>
<useTransitiveFiltering>true</useTransitiveFiltering>
<useProjectArtifact>false</useProjectArtifact>
<excludes>
<exclude>org.openjump:OpenJUMP</exclude>
</excludes>
</dependencySet>
</dependencySets>
</assembly>
8 changes: 4 additions & 4 deletions distro-zip.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,20 @@
<id>distro zip</id>
<formats>
<format>zip</format>
<!-- for development purposes -->
<format>dir</format>
</formats>
<includeBaseDirectory>false</includeBaseDirectory>
<dependencySets>
<dependencySet>
<!-- place extension jar in folder root to be parsed by OJ -->
<outputDirectory>/</outputDirectory>
<useTransitiveFiltering>false</useTransitiveFiltering>
<includes>
<include>*:bsheditor-extension</include>
<include>${artifact}</include>
</includes>
</dependencySet>
<dependencySet>
<outputDirectory>/lib</outputDirectory>
<!-- place deps in a extension specific subfolder -->
<outputDirectory>/${project.build.finalName}</outputDirectory>
<unpack>false</unpack>
<scope>runtime</scope>
<useTransitiveFiltering>true</useTransitiveFiltering>
Expand Down
17 changes: 17 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,23 @@
<descriptors>
<descriptor>distro-zip.xml</descriptor>
</descriptors>
<attach>false</attach>
</configuration>
<goals>
<goal>single</goal>
</goals>
</execution>
<execution>
<!-- fix "not covered by lifecycle configuration" Eclipse issue -->
<?m2e execute onConfiguration,onIncremental?>
<id>devel libs dir</id>
<phase>process-resources</phase>
<configuration>
<descriptors>
<descriptor>devel-libs.xml</descriptor>
</descriptors>
<finalName>libs</finalName>
<attach>false</attach>
</configuration>
<goals>
<goal>single</goal>
Expand Down

0 comments on commit 0e9127b

Please sign in to comment.