-
Notifications
You must be signed in to change notification settings - Fork 14
Installation
Martynas Jusevičius edited this page Apr 28, 2015
·
32 revisions
To run Graphity Client:
- checkout the source code from this Git repository
- build Client as a Maven Web application (as specified by the default
standalone
Maven profile) - run the webapp in an IDE or deploy the
.war
on a servlet container such as Tomcat - open the webapp in a browser (on an address such as http://localhost:8080/; depends on host, Tomcat port and application context path)
Using Client in your Maven Web application
To add Graphity Client dependency:
-
add Graphity Client as a Maven dependency in your project using an IDE, or in the
pom.xml
file.<classifier>classes</classifier> addresses the
jarartifact built into
war. The
war` dependency enables reuse of static resources from Graphity Client, such as Twitter Bootstrap<dependencies> <dependency> <groupId>org.graphity</groupId> <artifactId>client</artifactId> <version>1.1.2</version> <classifier>classes</classifier> </dependency> <dependency> <groupId>org.graphity</groupId> <artifactId>client</artifactId> <version>1.1.2</version> <type>war</type> </dependency> </dependencies>
-
to import static resources enabled by the
<type>war</type>
dependency, add a Maven overlay under<configuration>
ofmaven-war-plugin
:<overlays> <overlay> <groupId>org.graphity</groupId> <artifactId>client</artifactId> </overlay> </overlays>
-
add
main/webapp/WEB-INF/web.xml
with Configuration