Navigation Menu

Skip to content

Commit

Permalink
mavenization, removed useless tests, several other updates
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasjungblut committed Dec 6, 2012
1 parent ea8ea26 commit d2c1791
Show file tree
Hide file tree
Showing 12 changed files with 714 additions and 836 deletions.
12 changes: 7 additions & 5 deletions .gitignore
@@ -1,7 +1,9 @@
/bin
/.settings
/.idea
/bin
/.settings
/.idea
/thomasjungblut-common.eml
/thomasjungblut-common.iml
/.project
/.classpath
/.project
/.classpath
/target
/lib
66 changes: 38 additions & 28 deletions README
@@ -1,28 +1,38 @@
Hey all,

this is my code-sink for mainly java files.

Have fun to browse through many things for:

- Datastructures & Algorithms
- Apache Hadoop
- Apache Hama
- Graph algorithms (they are now in the other repository called "tjungblut-graph")
- Clustering
- Machine learning
- Matrix and Vector stuff
- JCuda experiments

Since I am Apache committer, I consider everything inside of this repository
licensed by Apache 2.0 license, although I haven't put the usual header into the source files.

Sorry for the bad package layout, I decided very late to add testcases,
I haven't thought that this repository will grow so big over time.

Package Layout:

/src -> raw source code.
/test -> testcases for the code in /src.
/files -> reserved directory for files in examples or ignored paths for output of applications.
/jcuda -> the cuda 3rd party libs for the de.jungblut.math.cuda package
/lib -> the 3rd party libs needed (if I have time I will switch to maven)
Hey all,

this is my code-sink for mainly java files.
Have fun to browse through many things for:

- Datastructures & Algorithms
- Apache Hadoop
- Apache Hama
- Machine learning (Clustering, Classification, Optimization algorithms)
- [Graph algorithms (they are now in the other repository called "tjungblut-graph")](https://github.com/thomasjungblut/tjungblut-graph "Thomas' nifty graph lib")
- [Matrix and Vector stuff (they are now in the other repository called "tjungblut-math")](https://github.com/thomasjungblut/tjungblut-math "Thomas' nifty math lib")
- JCuda experiments

License
=============

Since I am Apache committer, I consider everything inside of this repository
licensed by Apache 2.0 license, although I haven't put the usual header into the source files.

If something is not licensed via Apache 2.0, there is a reference or an additional licence header included in the specific source file.

Package Layout
=============

/src -> raw source code.
/test -> testcases for the code in /src.
/files -> reserved directory for files in examples or ignored paths for output of applications.
/jcuda -> the cuda 3rd party libs for the de.jungblut.math.cuda package

Build
=============

To build this library, you will need to install [my math lib on your local computer](https://github.com/thomasjungblut/tjungblut-math "Thomas' nifty math lib"), build instructions can be found there as well.
Everything else shall be found on the central maven repository, or in the case of JCUDA in the jcuda path which is automagically added.

You can simply build with "mvn clean package install" the created jar contains debugable code + sources.

Note that there may be an issue to retrieve MRUnit-0.9.0-incubating, therefore you can simply download it and install it manually via Maven.
241 changes: 241 additions & 0 deletions pom.xml
@@ -0,0 +1,241 @@
<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/maven-v4_0_0.xsd">

<modelVersion>4.0.0</modelVersion>
<groupId>de.jungblut.common</groupId>
<artifactId>thomasjungblut-common</artifactId>
<name>thomasjungblut-common</name>
<version>1.0</version>
<packaging>jar</packaging>
<prerequisites>
<maven>3.0</maven>
</prerequisites>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>

<dependencies>
<!-- JCUDA is locally in the jcuda dir -->
<dependency>
<groupId>jcuda</groupId>
<artifactId>jcuda</artifactId>
<version>0.5.0</version>
<scope>system</scope>
<systemPath>${project.basedir}/jcuda/jcuda-0.5.0.jar</systemPath>
</dependency>
<dependency>
<groupId>jcuda</groupId>
<artifactId>jcublas</artifactId>
<version>0.5.0</version>
<scope>system</scope>
<systemPath>${project.basedir}/jcuda/jcublas-0.5.0.jar</systemPath>
</dependency>
<!-- retrievable artifacts -->
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>13.0.1</version>
</dependency>
<dependency>
<groupId>org.apache.mrunit</groupId>
<artifactId>mrunit</artifactId>
<version>0.9.0-incubating</version>
</dependency>
<dependency>
<groupId>net.sf.trove4j</groupId>
<artifactId>trove4j</artifactId>
<version>3.0.2</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.11</version>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-math3</artifactId>
<version>3.0</version>
</dependency>
<dependency>
<groupId>commons-httpclient</groupId>
<artifactId>commons-httpclient</artifactId>
<version>3.0.1</version>
</dependency>
<dependency>
<groupId>org.htmlparser</groupId>
<artifactId>htmllexer</artifactId>
<version>2.1</version>
</dependency>
<dependency>
<groupId>net.sf.opencsv</groupId>
<artifactId>opencsv</artifactId>
<version>2.3</version>
</dependency>
<dependency>
<groupId>tomcat</groupId>
<artifactId>servlet-api</artifactId>
<version>5.5.23</version>
</dependency>
<dependency>
<groupId>org.twitter4j</groupId>
<artifactId>twitter4j-core</artifactId>
<version>3.0.2</version>
</dependency>
<dependency>
<groupId>org.twitter4j</groupId>
<artifactId>twitter4j-stream</artifactId>
<version>3.0.2</version>
</dependency>
<dependency>
<groupId>de.jungblut.math</groupId>
<artifactId>tjungblut-math</artifactId>
<version>1.0</version>
</dependency>
<dependency>
<groupId>net.sourceforge.nekohtml</groupId>
<artifactId>nekohtml</artifactId>
<version>1.9.17</version>
</dependency>
<dependency>
<groupId>org.htmlparser</groupId>
<artifactId>htmlparser</artifactId>
<version>2.1</version>
</dependency>
<dependency>
<groupId>org.codehaus.jackson</groupId>
<artifactId>jackson-core-asl</artifactId>
<version>1.9.11</version>
</dependency>
<dependency>
<groupId>org.codehaus.jackson</groupId>
<artifactId>jackson-mapper-asl</artifactId>
<version>1.9.11</version>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-all</artifactId>
<version>1.9.5</version>
</dependency>
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>1.2.17</version>
</dependency>
<dependency>
<groupId>commons-cli</groupId>
<artifactId>commons-cli</artifactId>
<version>1.2</version>
</dependency>
<dependency>
<groupId>de.l3s.boilerpipe</groupId>
<artifactId>boilerpipe</artifactId>
<version>1.1.0</version>
</dependency>
<dependency>
<groupId>org.apache.hadoop</groupId>
<artifactId>hadoop-core</artifactId>
<version>1.0.0</version>
</dependency>
<dependency>
<groupId>org.apache.hama</groupId>
<artifactId>hama-core</artifactId>
<version>0.6.0</version>
</dependency>
<dependency>
<groupId>org.apache.hama</groupId>
<artifactId>hama-examples</artifactId>
<version>0.6.0</version>
</dependency>
<dependency>
<groupId>org.apache.hama</groupId>
<artifactId>hama-graph</artifactId>
<version>0.6.0</version>
</dependency>
<dependency>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
<version>1.1.1</version>
</dependency>
<dependency>
<groupId>commons-configuration</groupId>
<artifactId>commons-configuration</artifactId>
<version>1.7</version>
</dependency>
<dependency>
<groupId>commons-lang</groupId>
<artifactId>commons-lang</artifactId>
<version>2.6</version>
</dependency>
<dependency>
<groupId>org.apache.zookeeper</groupId>
<artifactId>zookeeper</artifactId>
<version>3.4.5</version>
<exclusions>
<exclusion>
<groupId>com.sun.jmx</groupId>
<artifactId>jmxri</artifactId>
</exclusion>
<exclusion>
<groupId>com.sun.jdmk</groupId>
<artifactId>jmxtools</artifactId>
</exclusion>
<exclusion>
<groupId>javax.jms</groupId>
<artifactId>jms</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>

<build>
<!-- I have a plain layout -->
<sourceDirectory>src/</sourceDirectory>
<testSourceDirectory>test/</testSourceDirectory>
<resources>
<resource>
<directory>src/</directory>
</resource>
</resources>
<finalName>thomasjungblut-common-${project.version}</finalName>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.0</version>
<configuration>
<source>1.7</source>
<target>1.7</target>
<debug>true</debug>
<optimize>true</optimize>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.11</version>
<dependencies>
<dependency>
<groupId>org.apache.maven.surefire</groupId>
<artifactId>surefire-junit47</artifactId>
<version>2.11</version>
</dependency>
</dependencies>
<configuration>
<parallel>both</parallel>
<threadCount>10</threadCount>
</configuration>
<executions>
<execution>
<id>test</id>
<phase>install</phase>
<goals>
<goal>test</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>

</project>

0 comments on commit d2c1791

Please sign in to comment.