Skip to content
Martynas Jusevičius edited this page Sep 18, 2019 · 32 revisions

Running standalone Web-Client

Use Docker image atomgraph/web-client.

Using Web-Client in your application

To add Web-Client dependency:

  • for a stable version

  • for a SNAPSHOT version

  • add Web-Client as a Maven dependency in your project using an IDE, or in the pom.xml file. <classifier>classes</classifier> addresses the jar artifact built into war. The <type>war</type> dependency enables reuse of static resources from AtomGraph Web-Client, such as Twitter Bootstrap

      <dependencies>
          <dependency>
              <groupId>com.atomgraph</groupId>
              <artifactId>client</artifactId>
              <version>2.0.4</version>
              <classifier>classes</classifier>
          </dependency>
          <dependency>
              <groupId>com.atomgraph</groupId>
              <artifactId>client</artifactId>
              <version>2.0.4</version>
              <type>war</type>
          </dependency>
      </dependencies>
    
  • to import static resources enabled by the <type>war</type> dependency, add a Maven overlay under <configuration> of maven-war-plugin:

      <overlays>
          <overlay>
              <groupId>com.atomgraph</groupId>
              <artifactId>client</artifactId>
          </overlay>
      </overlays>
    
  • add or edit main/webapp/WEB-INF/web.xml with Configuration

Building from source

  • build it as jar using Maven (dependency Maven profile: mvn -Pdependency package)
  • build it as war using Maven (standalone Maven profile: mvn -Pstandalone package)