- Update
version
in pom.xml on root directory. - Make release in GitHub.
- JitPack builds wovnjava library. (https://jitpack.io/#wovnio/wovnjava)
Our wovnjava repository is registered in JitPack, and JitPack is monitoring our repository.
When new release is created, JitPack will automatically build wovnjava like the followings.
https://jitpack.io/com/github/wovnio/wovnjava/1.8.0/wovnjava-1.8.0.jar
https://jitpack.io/com/github/wovnio/wovnjava/1.8.0/wovnjava-1.8.0-jar-with-dependencies.jar
wovnjava-XXX.jar
doesn't include depencencies.
wovnjava-XXX-jar-with-dependencies.jar
includes devepdencies.
There are branches for Java6 and Java7.
https://github.com/WOVNio/wovnjava/tree/java6_support
https://github.com/WOVNio/wovnjava/tree/java7_support
The big difference is version for source
and target
.
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.5.1</version>
<configuration>
<source>1.6</source>
<target>1.6</target>
<encoding>UTF-8</encoding>
</configuration>
</plugin>
To build local docker environemnt, this repository is using the following three docker images.
- tomcat: Tomcat is software to run Java Servlet
- maven: Maven is software to manage and build Java Servlet
- ngrok: This is utility tool to make your local website accessible from the outside
You can start using local environment with make command in Makefile.
If you want to change the version of Java, you can change VERSION
in Makefile.
docker/java8/hello/src/main/webapp/WEB-INF/web.xml
is configuration file for your wovnjava.
Change configuration like project token.
Add the following configuration, If you want to use local translation API and local widget.
<init-param>
<param-name>devMode</param-name>
<param-value>true</param-value>
</init-param>
make build_wovn_java_and_website
This command run the followings.
- Build your local wovnjava will be created
- Copy it to your website directory
- Build your local website
You will see that docker/java8/hello/target
is created depends on docker/java8/hello/src/main/webapp
.
make start
This command start tomcat to serve your website.
Go to http://localhost:8080 , then you can see your website.
When you want to change your website, change docker/java8/hello/src/main/webapp
.
The following command rebuilds your website, and restart tomcat to apply them.
make build_website && make restart
After you change local wovnjava, the following command rebuilds wovnjava, and restart tomcat.
make build_wovn_java_and_website && make restart
make stop
Stop local environment and remove docker.
If you want to expose your website, you can use Ngrok. Access http://127.0.0.1:4040/ , and check published public URL.
You can see Tomcat logs at docker/java8/logs
.
docker exec -it wovnjava-tomcat-jdk8 sh
docker/java8/hello/pom_jitpack.xml
is the configuration file to use published wovnjava with your local website.
- Change makefile to
WEBSITE_CONFIG_FILE = pom_jitpack.xml
- Build website with command
make build_website
- Start tomcat with command
make restart