Skip to content

Commit

Permalink
raise version, clarify how to deal with vertex-symbol dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
edeso committed Feb 23, 2022
1 parent 320305c commit ec1deec
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 26 deletions.
19 changes: 16 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,19 @@
# cadtool-extension
# cadtools-extension

cadtool-extension is an extension adding CAD tools to OpenJUMP
cadtool-extension adds CAD tools to OpenJUMP

## Maven build

as the extension depends on Vertex-Symbols, the dependency might be needed to be downloaded before a fresh build or after `mvn clean`. if Maven complains similar to

> Could not resolve dependencies for project org.openjump:cadtools-extension:jar:2.1.2: Could not find artifact com.cadplan:vertex-symbols:jar:2.2.0
the simply run `mvn initialize` one time before building like

```
mvn initialize
mvn package
```

## Source code

Expand All @@ -9,7 +22,7 @@ cadtool-extension is an extension adding CAD tools to OpenJUMP
* Line decorations, Block and Annotation tools from AdvancedTools (Giuseppe Aruta - GeoArbores Project)
* Other enhancements have been adapted from OpenJUMP 1.10 source code

## Licences
## Licenses
All copyright reserved under GNU version 3
except org.openjump.advancedtools.tools.ConstrainedNClickTool which is under GNU version 2

Expand Down
48 changes: 25 additions & 23 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>org.openjump</groupId>
<artifactId>cadtools-extension</artifactId>
<version>2.1.1</version>
<version>2.1.2</version>
<name>cadtools-extension</name>
<description>CAD like tools for OpenJUMP</description>

Expand Down Expand Up @@ -38,6 +38,7 @@
<artifactId>vertex-symbols</artifactId>
<version>2.2.0</version>
<scope>system</scope>
<!-- run `mvn initialize` to enforce download if build fails because it's missing -->
<systemPath>${project.build.directory}/lib.vertex-symbols/vertex-symbols-2.2.0.jar</systemPath>
</dependency>

Expand All @@ -57,6 +58,29 @@
</resource>
</resources>
<plugins>
<plugin>
<groupId>com.googlecode.maven-download-plugin</groupId>
<artifactId>download-maven-plugin</artifactId>
<version>1.6.8</version>
<configuration>
<alwaysVerifyChecksum>true</alwaysVerifyChecksum>
</configuration>
<executions>
<execution>
<id>download vertex-symbols</id>
<phase>initialize</phase>
<goals>
<goal>wget</goal>
</goals>
<configuration>
<url>https://github.com/openjump-gis/vertex-symbols/releases/download/v2.2.0/vertex-symbols-2.2.0.zip</url>
<sha1>22df1e3124113909ffaeba12f93647832554c9c1</sha1>
<unpack>true</unpack>
<outputDirectory>${project.build.directory}/lib.vertex-symbols/</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>io.github.git-commit-id</groupId>
<artifactId>git-commit-id-maven-plugin</artifactId>
Expand All @@ -82,28 +106,6 @@
</includeOnlyProperties>
</configuration>
</plugin>
<plugin>
<groupId>com.googlecode.maven-download-plugin</groupId>
<artifactId>download-maven-plugin</artifactId>
<version>1.6.6</version>
<configuration>
<alwaysVerifyChecksum>true</alwaysVerifyChecksum>
</configuration>
<executions>
<execution>
<id>download vertex-symbols</id>
<goals>
<goal>wget</goal>
</goals>
<configuration>
<url>https://github.com/openjump-gis/vertex-symbols/releases/download/v2.2.0/vertex-symbols-2.2.0.zip</url>
<sha1>22df1e3124113909ffaeba12f93647832554c9c1</sha1>
<unpack>true</unpack>
<outputDirectory>${project.build.directory}/lib.vertex-symbols/</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>net.nicoulaj.maven.plugins</groupId>
<artifactId>checksum-maven-plugin</artifactId>
Expand Down

0 comments on commit ec1deec

Please sign in to comment.