Skip to content

Commit

Permalink
Version 0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
johnmay committed Oct 25, 2015
1 parent b8e8021 commit e93a9a3
Show file tree
Hide file tree
Showing 11 changed files with 1,639 additions and 0 deletions.
36 changes: 36 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# CDK Depict

A small web service application for generating chemical structure depictions.

#### Build

```
$ mvn clean install
```

This generates a web archive (WAR) and a runnable java archive (JAR) in the
target directory. The WAR file

```
$ target/cdkdepict-0.1.war
$ target/cdkdepict-0.1.jar
```

#### Embedded App

When launching the embedded application the HTTP port is optional (default: 8080).
Run the following command and access the site 'http://localhost:8081' by web
browser.

```
$ java -jar target/cdkdepict-0.1.jar -httpPort 8081
```

#### Libraries

[Spring](http://spring.io/)
[Chemistry Development Kit](http://github.com/cdk/cdk)

#### License

LGPL v2.1 or later
85 changes: 85 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>com.nextmovesoftware</groupId>
<artifactId>cdkdepict</artifactId>
<version>0.1</version>
<packaging>war</packaging>

<properties>
<cdk.version>1.5.12-SNAPSHOT</cdk.version>
</properties>

<dependencies>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-webmvc</artifactId>
<version>LATEST</version>
</dependency>
<dependency>
<groupId>org.openscience.cdk</groupId>
<artifactId>cdk-depict</artifactId>
<version>${cdk.version}</version>
</dependency>
<dependency>
<groupId>org.openscience.cdk</groupId>
<artifactId>cdk-forcefield</artifactId>
<version>${cdk.version}</version>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<configuration>
<webResources>
<resource>
<filtering>true</filtering>
<directory>src/main/webapp</directory>
<includes>
<include>**/*.html</include>
</includes>
</resource>
</webResources>
<warSourceDirectory>src/main/webapp</warSourceDirectory>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.tomcat.maven</groupId>
<artifactId>tomcat7-maven-plugin</artifactId>
<version>2.1</version>
<executions>
<execution>
<id>tomcat-run</id>
<goals>
<goal>exec-war-only</goal>
</goals>
<phase>package</phase>
<configuration>
<finalName>${project.name}-${project.version}.jar</finalName>
<path>/</path>
<attachArtifactClassifier>boot
</attachArtifactClassifier>
<attachArtifactClassifierType>jar
</attachArtifactClassifierType>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.2</version>
<configuration>
<source>1.7</source>
<target>1.7</target>
</configuration>
</plugin>
</plugins>
</build>
</project>
Loading

0 comments on commit e93a9a3

Please sign in to comment.