-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
1,639 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
Oops, something went wrong.