Skip to content

Commit 00a36da

Browse files
author
Matt Gardner
committed
Updated the README, and added deployment stuff to pom.xml
1 parent 6029073 commit 00a36da

File tree

2 files changed

+185
-122
lines changed

2 files changed

+185
-122
lines changed

README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,27 @@
11
# GraphChi-java
22
Version 0.2
33

4+
## Fork Info
5+
6+
I made this fork around April 2013, working with Aapo when he was at CMU. The
7+
point was to allow for storing more information in each walk than an int would
8+
allow for. If we used a long instead, we could store more information within
9+
each random walk (such as a random walk type or a walk id). But using
10+
generics and autoboxing would take too much of a performance hit. So I
11+
refactored the code and made it so you could use ints and longs directly, only
12+
making the higher-level parts abstract. This worked well, and I could
13+
successfully use GraphChi for doing random walks with either ints or longs
14+
representing the walk, depending on how much information needed to be in the
15+
walk for the particular application.
16+
17+
The code changes I made never made it into GraphChi proper, though I used them
18+
in my PRA code. Now I'm trying to make my PRA code available via maven, and
19+
it's convenient to have this modified version of GraphChi available as well.
20+
So, in August 2014, I forked the current graphchi-java code on github and
21+
ported the changes that I made over to it, then added a mvn-repo branch so
22+
that it's accessible via maven. I followed the instructions for doing that
23+
here:
24+
http://stackoverflow.com/questions/14013644/hosting-a-maven-repository-on-github.
425

526
## News
627

pom.xml

Lines changed: 164 additions & 122 deletions
Original file line numberDiff line numberDiff line change
@@ -1,140 +1,182 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<project xmlns="http://maven.apache.org/POM/4.0.0"
3-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4-
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5-
<modelVersion>4.0.0</modelVersion>
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5+
<modelVersion>4.0.0</modelVersion>
66

7-
<groupId>groupId</groupId>
8-
<artifactId>graphchi-java</artifactId>
9-
<version>0.2</version>
7+
<groupId>groupId</groupId>
8+
<artifactId>graphchi-java</artifactId>
9+
<version>0.2</version>
1010

11-
<repositories>
11+
<properties>
12+
<!-- github server corresponds to entry in ~/.m2/settings.xml -->
13+
<github.global.server>github</github.global.server>
14+
</properties>
15+
<repositories>
1216
<repository>
13-
<id>SonatypeNexusSnapshots</id>
14-
<name>Sonatype Nexus Snapshots</name>
15-
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
16-
<snapshots><enabled>true</enabled></snapshots>
17+
<id>SonatypeNexusSnapshots</id>
18+
<name>Sonatype Nexus Snapshots</name>
19+
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
20+
<snapshots><enabled>true</enabled></snapshots>
1721

1822
</repository>
19-
<repository>
20-
<id>scala-tools.org</id>
21-
<name>Scala-tools Maven2 Repository</name>
22-
<url>http://scala-tools.org/repo-releases</url>
23+
<repository>
24+
<id>scala-tools.org</id>
25+
<name>Scala-tools Maven2 Repository</name>
26+
<url>http://scala-tools.org/repo-releases</url>
2327
</repository>
2428
</repositories>
2529

26-
<dependencies>
27-
<dependency>
28-
<groupId>com.yammer.metrics</groupId>
29-
<artifactId>metrics-core</artifactId>
30-
<version>2.2.0</version>
30+
<distributionManagement>
31+
<repository>
32+
<id>internal.repo</id>
33+
<name>Temporary Staging Repository</name>
34+
<url>file:://${project.build.directory}/mvn-repo</url>
35+
</repository>
36+
</distributionManagement>
37+
38+
<dependencies>
39+
<dependency>
40+
<groupId>com.yammer.metrics</groupId>
41+
<artifactId>metrics-core</artifactId>
42+
<version>2.2.0</version>
3143
</dependency>
3244

33-
<!-- Scala version is very important. Luckily the plugin warns you if you don't specify:
34-
[WARNING] you don't define org.scala-lang:scala-library as a dependency of the project -->
35-
<dependency>
36-
<groupId>org.scala-lang</groupId>
37-
<artifactId>scala-library</artifactId>
38-
<version>2.9.0-1</version>
39-
</dependency>
40-
<dependency>
41-
<groupId>mysql</groupId>
42-
<artifactId>mysql-connector-java</artifactId>
43-
<version>5.1.6</version>
44-
</dependency>
45-
<dependency>
46-
<groupId>junit</groupId>
47-
<artifactId>junit</artifactId>
48-
<version>4.10</version>
49-
<type>jar</type>
50-
<scope>test</scope>
51-
<optional>true</optional>
52-
</dependency>
53-
<dependency>
54-
<groupId>org.apache.pig</groupId>
55-
<artifactId>pig</artifactId>
56-
<scope>compile</scope>
57-
<version>0.10.0</version>
58-
</dependency>
59-
<dependency>
60-
<groupId>org.apache.hadoop</groupId>
61-
<artifactId>hadoop-core</artifactId>
62-
<version>0.20.2</version>
63-
</dependency>
64-
<dependency>
65-
<groupId>org.apache.commons</groupId>
66-
<artifactId>commons-math</artifactId>
67-
<version>2.0</version>
68-
</dependency>
69-
<dependency>
70-
<groupId>org.apache.commons</groupId>
71-
<artifactId>commons-math</artifactId>
72-
<version>2.1</version>
73-
</dependency>
74-
<dependency>
75-
<groupId>commons-cli</groupId>
76-
<artifactId>commons-cli</artifactId>
77-
<version>1.2</version>
78-
</dependency>
79-
</dependencies>
80-
81-
<build>
82-
<plugins>
83-
<plugin>
84-
<groupId>org.scala-tools</groupId>
85-
<artifactId>maven-scala-plugin</artifactId>
86-
<version>2.15.2</version>
87-
<executions>
45+
<!-- Scala version is very important. Luckily the plugin warns you if you don't specify:
46+
[WARNING] you don't define org.scala-lang:scala-library as a dependency of the project -->
47+
<dependency>
48+
<groupId>org.scala-lang</groupId>
49+
<artifactId>scala-library</artifactId>
50+
<version>2.9.0-1</version>
51+
</dependency>
52+
<dependency>
53+
<groupId>mysql</groupId>
54+
<artifactId>mysql-connector-java</artifactId>
55+
<version>5.1.6</version>
56+
</dependency>
57+
<dependency>
58+
<groupId>junit</groupId>
59+
<artifactId>junit</artifactId>
60+
<version>4.10</version>
61+
<type>jar</type>
62+
<scope>test</scope>
63+
<optional>true</optional>
64+
</dependency>
65+
<dependency>
66+
<groupId>org.apache.pig</groupId>
67+
<artifactId>pig</artifactId>
68+
<scope>compile</scope>
69+
<version>0.10.0</version>
70+
</dependency>
71+
<dependency>
72+
<groupId>org.apache.hadoop</groupId>
73+
<artifactId>hadoop-core</artifactId>
74+
<version>0.20.2</version>
75+
</dependency>
76+
<dependency>
77+
<groupId>org.apache.commons</groupId>
78+
<artifactId>commons-math</artifactId>
79+
<version>2.0</version>
80+
</dependency>
81+
<dependency>
82+
<groupId>org.apache.commons</groupId>
83+
<artifactId>commons-math</artifactId>
84+
<version>2.1</version>
85+
</dependency>
86+
<dependency>
87+
<groupId>commons-cli</groupId>
88+
<artifactId>commons-cli</artifactId>
89+
<version>1.2</version>
90+
</dependency>
91+
</dependencies>
8892

89-
<execution>
90-
<id>compile</id>
91-
<goals>
92-
<goal>compile</goal>
93-
</goals>
94-
<phase>compile</phase>
95-
</execution>
96-
<execution>
97-
<id>test-compile</id>
98-
<goals>
99-
<goal>testCompile</goal>
100-
</goals>
101-
<phase>test-compile</phase>
102-
</execution>
103-
<execution>
104-
<phase>process-resources</phase>
105-
<goals>
106-
<goal>compile</goal>
107-
</goals>
108-
</execution>
109-
</executions>
110-
</plugin>
93+
<build>
94+
<plugins>
95+
<plugin>
96+
<groupId>org.scala-tools</groupId>
97+
<artifactId>maven-scala-plugin</artifactId>
98+
<version>2.15.2</version>
99+
<executions>
111100

112-
<plugin>
113-
<artifactId>maven-compiler-plugin</artifactId>
114-
<version>2.3.2</version>
101+
<execution>
102+
<id>compile</id>
103+
<goals>
104+
<goal>compile</goal>
105+
</goals>
106+
<phase>compile</phase>
107+
</execution>
108+
<execution>
109+
<id>test-compile</id>
110+
<goals>
111+
<goal>testCompile</goal>
112+
</goals>
113+
<phase>test-compile</phase>
114+
</execution>
115+
<execution>
116+
<phase>process-resources</phase>
117+
<goals>
118+
<goal>compile</goal>
119+
</goals>
120+
</execution>
121+
</executions>
122+
</plugin>
115123

116-
<configuration>
117-
<source>1.6</source>
118-
<target>1.6</target>
119-
</configuration>
120-
</plugin>
121-
<!-- The configuration of maven-assembly-plugin -->
122-
<plugin>
123-
<groupId>org.apache.maven.plugins</groupId>
124-
<artifactId>maven-assembly-plugin</artifactId>
125-
<version>2.2.2</version>
126-
<!-- The configuration of the plugin -->
127-
<configuration>
128-
<!-- Specifies the configuration file of the assembly plugin -->
129-
<descriptors>
130-
<descriptor>src/main/assembly/assembly.xml</descriptor>
131-
</descriptors>
132-
</configuration>
133-
</plugin>
124+
<plugin>
125+
<artifactId>maven-compiler-plugin</artifactId>
126+
<version>2.3.2</version>
134127

135-
</plugins>
136-
<testOutputDirectory>target/test-classes</testOutputDirectory>
137-
<testSourceDirectory>test</testSourceDirectory>
138-
</build>
128+
<configuration>
129+
<source>1.6</source>
130+
<target>1.6</target>
131+
</configuration>
132+
</plugin>
133+
<!-- The configuration of maven-assembly-plugin -->
134+
<plugin>
135+
<groupId>org.apache.maven.plugins</groupId>
136+
<artifactId>maven-assembly-plugin</artifactId>
137+
<version>2.2.2</version>
138+
<!-- The configuration of the plugin -->
139+
<configuration>
140+
<!-- Specifies the configuration file of the assembly plugin -->
141+
<descriptors>
142+
<descriptor>src/main/assembly/assembly.xml</descriptor>
143+
</descriptors>
144+
</configuration>
145+
</plugin>
146+
<plugin>
147+
<artifactId>maven-deploy-plugin</artifactId>
148+
<version>2.8.1</version>
149+
<configuration>
150+
<altDeploymentRepository>internal.repo::default::file://${project.build.directory}/mvn-repo</altDeploymentRepository>
151+
</configuration>
152+
</plugin>
153+
<plugin>
154+
<groupId>com.github.github</groupId>
155+
<artifactId>site-maven-plugin</artifactId>
156+
<version>0.9</version>
157+
<configuration>
158+
<message>Maven artifacts for ${project.version}</message> <!-- git commit message -->
159+
<noJekyll>true</noJekyll> <!-- disable webpage processing -->
160+
<outputDirectory>${project.build.directory}/mvn-repo</outputDirectory> <!-- matches distribution management repository url above -->
161+
<branch>refs/heads/mvn-repo</branch> <!-- remote branch name -->
162+
<includes><include>**/*</include></includes>
163+
<repositoryName>graphchi-java</repositoryName> <!-- github repo name -->
164+
<repositoryOwner>matt-gardner</repositoryOwner> <!-- github username -->
165+
</configuration>
166+
<executions>
167+
<!-- run
168+
site-maven-plugin's 'site' target as part of the build's normal 'deploy' phase -->
169+
<execution>
170+
<goals>
171+
<goal>site</goal>
172+
</goals>
173+
<phase>deploy</phase>
174+
</execution>
175+
</executions>
176+
</plugin>
177+
</plugins>
178+
<testOutputDirectory>target/test-classes</testOutputDirectory>
179+
<testSourceDirectory>test</testSourceDirectory>
180+
</build>
139181

140182
</project>

0 commit comments

Comments
 (0)