Skip to content

Commit

Permalink
readme: create jar
Browse files Browse the repository at this point in the history
  • Loading branch information
adibaba committed Jan 7, 2021
1 parent 5d631f3 commit 917be5a
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 8 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,14 @@ A demo of [Relicensing Combined Datasets](https://github.com/dice-group/ReCoDa).
- Open [http://localhost:8443/](http://localhost:8443/)


## How to create and run a jar

- [Download the code](https://github.com/dice-group/ReCoDa/archive/demo.zip)
- Run: `mvn package org.springframework.boot:spring-boot-maven-plugin:repackage`
- Run: `java -jar target/recoda-demo-1.0.0-SNAPSHOT-exec.jar`
- Open [http://localhost:8443/](http://localhost:8443/)


## Credits

[Data Science Group (DICE)](https://dice-research.org/) at [Paderborn University](https://www.uni-paderborn.de/)
Expand Down
37 changes: 29 additions & 8 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
<groupId>org.dice_research.opal</groupId>
<artifactId>recoda-demo</artifactId>

<version>0.0.1-SNAPSHOT</version>
<!-- Version is based on the current ReCoDa release -->
<version>1.0.2</version>

<properties>
<java.version>1.8</java.version>
Expand Down Expand Up @@ -72,12 +73,12 @@
<version>${spring.version}</version>
</dependency>

<!-- <dependency> -->
<!-- <groupId>org.springframework.boot</groupId> -->
<!-- <artifactId>spring-boot-devtools</artifactId> -->
<!-- <version>${spring.version}</version> -->
<!-- <optional>true</optional> -->
<!-- </dependency> -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<version>${spring.version}</version>
<optional>true</optional>
</dependency>

</dependencies>

Expand All @@ -97,7 +98,27 @@
<url>https://repo1.maven.org/maven2/</url>
</repository>


</repositories>

<!-- https://docs.spring.io/spring-boot/docs/1.2.7.RELEASE/reference/html/howto-build.html -->
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<version>${spring.version}</version>
<executions>
<execution>
<goals>
<goal>repackage</goal>
</goals>
</execution>
</executions>
<configuration>
<classifier>exec</classifier>
</configuration>
</plugin>
</plugins>
</build>

</project>

0 comments on commit 917be5a

Please sign in to comment.