Skip to content

Commit b43a2f6

Browse files
author
David Bold
committed
Merged PR 1: Merge documentation to master
**Updated README Documentation** - Removed ANT build [description](url) - Added Maven build description - Add description howto trigger Maven build with Eclipse - Add Maven build goals description - Add description how to build and copy result to Protégé directory depending on Maven goals **Changed Maven build** - Removed Maven repository "prefuse" depency - Restored previous used "prefuse.jar" and added as local Maven repository (like tablelayout) - Add local Maven repository "prefuse" depency - Added ANT task to copy the compiled jar to defined directory (if goal install is set) Note: Both versions of prefuse available within the Maven repository seems to be not useable. https://mvnrepository.com/artifact/org.prefuse/prefuse previous jar 592 KB, Maven jar 565 KB with some differences between those jars: [Compare.zip](https://github.com/VisualDataWeb/ProtegeVOWL/files/1675581/Compare.zip)
1 parent 72cdec3 commit b43a2f6

3 files changed

Lines changed: 62 additions & 20 deletions

File tree

README.md

Lines changed: 27 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,27 @@
1-
ProtégéVOWL
2-
===========
3-
4-
Source code of the VOWL plugin for Protégé.
5-
6-
Note that ProtégéVOWL has some known bugs and does not implement all visual elements defined in the VOWL specification. A more complete implementation of VOWL is provided by the web application [WebVOWL] (https://github.com/VisualDataWeb/WebVOWL).
7-
8-
See http://vowl.visualdataweb.org for more information on ProtégéVOWL and WebVOWL.
9-
10-
11-
### Ant Usage
12-
13-
To be able to run the ant build file properly you have to create a local file named 'local.properties' which will be ignored by the VCS. This file must contain at least the line 'protege.home=' followed by the path of Protege.
1+
ProtégéVOWL
2+
===========
3+
4+
Source code of the VOWL plugin for Protégé.
5+
6+
Note that ProtégéVOWL has some knwon has some known bugs and does not implement all visual elements defined in the VOWL specification.
7+
A more complete implementation of VOWL is provided by the web application [WebVOWL] (https://github.com/VisualDataWeb/WebVOWL).
8+
9+
See http://vowl.visualdataweb.org for more information on ProtégéVOWL and WebVOWL.
10+
11+
## Developer Setup
12+
13+
### Requirements
14+
Java JDK is required for the ProtégéVOWL build.
15+
16+
### Eclipse Setup
17+
There are several options if you want to use Eclipse as IDE. You need to select the
18+
``Import`` within Eclipse and select the ``Maven``, ``Existing Maven Projects`` option and select the ProtégéVOWL Git Repository. Eclipse will automatically suggest to import ``pom.xml``
19+
20+
### Maven Build
21+
Some steps are required to build ProtégéVOWL with Maven. If you use Eclipse you need to run the ``pom.xml`` as Maven build and you may need to select JDK as Alternate JRE.
22+
In addition you need to add the goals ``clean compile package``. You will find the compiled packaged within the target folder.
23+
24+
### Copy to Protege
25+
To copy the build result to your Protégé installation you need to add ``install`` to your maven goals.
26+
In addition you have to add the parameter ``protege.home`` which leads to your Protégé installation.
27+
If you remove the ``install`` goal the build result is not copied to Protégé.
592 KB
Binary file not shown.

pom.xml

Lines changed: 35 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,7 @@
2929
<log4j.version>1.2.14</log4j.version>
3030
</properties>
3131

32-
<dependencies>
33-
<dependency>
34-
<groupId>org.prefuse</groupId>
35-
<artifactId>prefuse</artifactId>
36-
<version>beta-20071021</version>
37-
</dependency>
38-
32+
<dependencies>
3933
<dependency>
4034
<groupId>edu.stanford.protege</groupId>
4135
<artifactId>protege-common</artifactId>
@@ -66,6 +60,11 @@
6660
<artifactId>log4j</artifactId>
6761
<version>${log4j.version}</version>
6862
</dependency>
63+
<dependency>
64+
<groupId>prefuse</groupId>
65+
<artifactId>prefuse</artifactId>
66+
<version>pre-2007</version>
67+
</dependency>
6968
</dependencies>
7069

7170
<build>
@@ -150,15 +149,44 @@
150149
<pde>true</pde>
151150
</configuration>
152151
</plugin>
152+
<plugin>
153+
<artifactId>maven-antrun-plugin</artifactId>
154+
<version>1.8</version>
155+
<executions>
156+
<execution>
157+
<id>copy</id>
158+
<phase>install</phase>
159+
<configuration>
160+
<target>
161+
<echo>ANT TASK - Copy JAR to Protege</echo>
162+
<copy todir="${protege.home}/plugins" overwrite="true" flatten="true">
163+
<fileset dir="${basedir}" includes="*.bat" >
164+
<!-- multiple possible
165+
<include name="*.bat" />
166+
<include name="ReadME.*" /> -->
167+
<include name="target/*.jar" />
168+
</fileset>
169+
</copy>
170+
</target>
171+
</configuration>
172+
<goals>
173+
<goal>run</goal>
174+
</goals>
175+
</execution>
176+
</executions>
177+
</plugin>
153178
</plugins>
179+
154180
</build>
155181

156182
<!-- tablelayout -->
183+
<!-- prefuse -->
157184
<repositories>
158185
<repository>
159186
<id>local-repo</id>
160187
<url>file:///${project.basedir}/local-mvn-repo/</url>
161188
</repository>
162189
</repositories>
190+
163191

164192
</project>

0 commit comments

Comments
 (0)