Skip to content

Commit 5a51d75

Browse files
author
Hugo Hromic
committed
first commit
1 parent 22adb65 commit 5a51d75

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+5378
-1
lines changed

.gitignore

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Created by https://www.gitignore.io
2+
3+
### Java ###
4+
*.class
5+
6+
# Mobile Tools for Java (J2ME)
7+
.mtj.tmp/
8+
9+
# Package Files #
10+
*.jar
11+
*.war
12+
*.ear
13+
14+
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
15+
hs_err_pid*
16+
17+
18+
### Maven ###
19+
target/
20+
pom.xml.tag
21+
pom.xml.releaseBackup
22+
pom.xml.versionsBackup
23+
pom.xml.next
24+
release.properties
25+
dependency-reduced-pom.xml
26+
buildNumber.properties

LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@
186186
same "printed page" as the copyright notice for easier
187187
identification within third-party archives.
188188

189-
Copyright {yyyy} {name of copyright owner}
189+
Copyright 2015 Hugo Hromic
190190

191191
Licensed under the Apache License, Version 2.0 (the "License");
192192
you may not use this file except in compliance with the License.

README.md

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
UIMR Java Toolbox
2+
=================
3+
4+
Documentation to come.

archetype/pom.xml

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3+
<modelVersion>4.0.0</modelVersion>
4+
5+
<parent>
6+
<groupId>io.github.hhromic.uimr</groupId>
7+
<artifactId>parent-pom</artifactId>
8+
<version>4.0-SNAPSHOT</version>
9+
</parent>
10+
11+
<artifactId>archetype</artifactId>
12+
<packaging>jar</packaging>
13+
14+
<name>UIMR Java Toolbox Maven Archetype</name>
15+
<description>Maven Project Archetype for projects using the UIMR Java Toolbox.</description>
16+
17+
<developers>
18+
<developer>
19+
<id>hhromic</id>
20+
<name>Hugo Hromic</name>
21+
<url>https://github.com/hhromic/</url>
22+
</developer>
23+
</developers>
24+
</project>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<archetype-descriptor name="basic">
3+
<fileSets>
4+
<fileSet filtered="true" packaged="true">
5+
<directory>src/main/java</directory>
6+
<includes>
7+
<include>**/*.java</include>
8+
</includes>
9+
</fileSet>
10+
</fileSets>
11+
<requiredProperties>
12+
<requiredProperty key="archetypeVersion"> </requiredProperty>
13+
</requiredProperties>
14+
</archetype-descriptor>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3+
<modelVersion>4.0.0</modelVersion>
4+
5+
<parent>
6+
<groupId>io.github.hhromic.uimr</groupId>
7+
<artifactId>parent-pom</artifactId>
8+
<version>${archetypeVersion}</version>
9+
</parent>
10+
11+
<groupId>${groupId}</groupId>
12+
<artifactId>${artifactId}</artifactId>
13+
<version>${version}</version>
14+
<packaging>jar</packaging>
15+
16+
<!-- Define the name and description for your artifact -->
17+
<name>Hello World</name>
18+
<description>This artifact simple prints Hello World.</description>
19+
20+
<!-- Define information about the developers -->
21+
<developers>
22+
<developer>
23+
<id>firlas</id>
24+
<name>First Last</name>
25+
<email>first.last@insight-centre.org</email>
26+
<url>https://github.com/firlas/</url>
27+
</developer>
28+
</developers>
29+
30+
<!-- Main class of your artifact -->
31+
<properties>
32+
<mainClass>${package}.HelloWorld</mainClass>
33+
</properties>
34+
35+
<build>
36+
<plugins>
37+
<plugin>
38+
<groupId>org.apache.maven.plugins</groupId>
39+
<artifactId>maven-compiler-plugin</artifactId>
40+
<configuration>
41+
<source>1.8</source>
42+
<target>1.8</target>
43+
</configuration>
44+
</plugin>
45+
<plugin>
46+
<groupId>org.apache.maven.plugins</groupId>
47+
<artifactId>maven-shade-plugin</artifactId>
48+
</plugin>
49+
</plugins>
50+
</build>
51+
52+
<!-- Remove unneeded UIMR Java Toolbox dependencies -->
53+
<dependencies>
54+
<dependency>
55+
<groupId>io.github.hhromic.uimr</groupId>
56+
<artifactId>logging</artifactId>
57+
</dependency>
58+
<dependency>
59+
<groupId>io.github.hhromic.uimr</groupId>
60+
<artifactId>toolbox</artifactId>
61+
</dependency>
62+
<dependency>
63+
<groupId>io.github.hhromic.uimr</groupId>
64+
<artifactId>toolbox-as</artifactId>
65+
</dependency>
66+
<dependency>
67+
<groupId>io.github.hhromic.uimr</groupId>
68+
<artifactId>toolbox-concurrent</artifactId>
69+
</dependency>
70+
<dependency>
71+
<groupId>io.github.hhromic.uimr</groupId>
72+
<artifactId>toolbox-mysql</artifactId>
73+
</dependency>
74+
<dependency>
75+
<groupId>io.github.hhromic.uimr</groupId>
76+
<artifactId>toolbox-servlet</artifactId>
77+
</dependency>
78+
<dependency>
79+
<groupId>io.github.hhromic.uimr</groupId>
80+
<artifactId>toolbox-stats</artifactId>
81+
</dependency>
82+
<dependency>
83+
<groupId>io.github.hhromic.uimr</groupId>
84+
<artifactId>toolbox-twitter</artifactId>
85+
</dependency>
86+
</dependencies>
87+
</project>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
package ${package};
2+
3+
import org.slf4j.Logger;
4+
import org.slf4j.LoggerFactory;
5+
6+
public class HelloWorld {
7+
private final static Logger logger = LoggerFactory.getLogger(HelloWorld.class);
8+
9+
/** Main method */
10+
public static void main(final String[] args) {
11+
logger.info("Hello World!");
12+
}
13+
}

logging/pom.xml

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3+
<modelVersion>4.0.0</modelVersion>
4+
5+
<parent>
6+
<groupId>io.github.hhromic.uimr</groupId>
7+
<artifactId>parent-pom</artifactId>
8+
<version>4.0-SNAPSHOT</version>
9+
</parent>
10+
11+
<artifactId>logging</artifactId>
12+
<packaging>jar</packaging>
13+
14+
<name>UIMR Java Toolbox Logging</name>
15+
<description>Handy logging resources and dependencies for quick research development.</description>
16+
17+
<developers>
18+
<developer>
19+
<id>hhromic</id>
20+
<name>Hugo Hromic</name>
21+
<url>https://github.com/hhromic/</url>
22+
</developer>
23+
</developers>
24+
25+
<dependencies>
26+
<dependency>
27+
<groupId>org.slf4j</groupId>
28+
<artifactId>slf4j-api</artifactId>
29+
</dependency>
30+
<dependency>
31+
<groupId>ch.qos.logback</groupId>
32+
<artifactId>logback-classic</artifactId>
33+
</dependency>
34+
<dependency>
35+
<groupId>org.fusesource.jansi</groupId>
36+
<artifactId>jansi</artifactId>
37+
</dependency>
38+
</dependencies>
39+
</project>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<included/>
+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<configuration>
2+
<appender name="color_stderr" class="ch.qos.logback.core.ConsoleAppender">
3+
<target>System.err</target>
4+
<withJansi>true</withJansi>
5+
<encoder>
6+
<pattern>%green(%date) %blue([){}%cyan(%thread){}%blue(]) %highlight(%-5level) %logger{15}: %msg%n</pattern>
7+
</encoder>
8+
</appender>
9+
10+
<root level="ALL">
11+
<appender-ref ref="color_stderr" />
12+
</root>
13+
14+
<include resource="logback-local.xml" />
15+
</configuration>

0 commit comments

Comments
 (0)