You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@giraph.apache.org by Ahmet Emre Aladağ <em...@agmlab.com> on 2013/04/08 15:00:25 UTC
mvn changes PageRankVertex.java
Hi,
I'm trying to build giraph. I start hadoop 1.1.2 and run "mvn test" on a
clean git clone. Then I get errors.
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-compiler-plugin:3.0:compile
(default-compile) on project giraph-core: Compilation failure:
Compilation failure:
[ERROR]
/home/emre/git/giraph/giraph-core/target/munged/main/org/apache/giraph/benchmark/PageRankVertex.java:[1,1]
class, interface, or enum expected
[ERROR]
/home/emre/git/giraph/giraph-core/target/munged/main/org/apache/giraph/benchmark/PageRankVertex.java:[10,16]
class, interface, or enum expected
[ERROR] -> [Help 1]
When I looked at this file, I see that mvn causes a change on the
comments like below. Is this a bug or am I doing something wrong?
[emre@localhost giraph]$ git diff
diff --git
a/giraph-core/src/main/java/org/apache/giraph/benchmark/PageRankVertex.java
b/giraph-core/src/main/java/org/apache/giraph/benchmark/PageRankVertex.java
index 9c3b9f5..d9dbe24 100644
---
a/giraph-core/src/main/java/org/apache/giraph/benchmark/PageRankVertex.java
+++
b/giraph-core/src/main/java/org/apache/giraph/benchmark/PageRankVertex.java
@@ -1,4 +1,7 @@
-/*
+/
+
+*
+
* Licensed to the Apache Software Foundation (ASF) under one
Re: mvn changes PageRankVertex.java
Posted by Ahmet Emre Aladağ <em...@agmlab.com>.
Seems like they were the results of the unstable code and missing jar
files on the web. I got a recent copy and used skipTests parameter and
could successfully build giraph without passing the tests.
Re: mvn changes PageRankVertex.java
Posted by Ahmet Emre Aladağ <em...@agmlab.com>.
Hi,
I fixed the modified file problem I mentioned in my previous post with a
trick modifying the line /* to /** and it didn't happen.
Now I'm getting the following error:
[ERROR] Failed to execute goal on project giraph-examples: Could not
resolve dependencies for project
org.apache.giraph:giraph-examples:jar:0.2-SNAPSHOT: Failure to find
org.apache.giraph:giraph-core:jar:tests:0.2-SNAPSHOT in
http://repo1.maven.org/maven2 was cached in the local repository,
resolution will not be reattempted until the update interval of central
has elapsed or updates are forced -> [Help 1]
Seems like giraph packages are not available on any maven repos on the
web. I removed giraph-examples from the modules in pom.xml now I got
[ERROR] Failed to execute goal on project giraph-accumulo: Could not
resolve dependencies for project
org.apache.giraph:giraph-accumulo:jar:0.2-SNAPSHOT: Failure to find
org.apache.giraph:giraph-core:jar:tests:0.2-SNAPSHOT in
http://repo1.maven.org/maven2 was cached in the local repository,
resolution will not be reattempted until the update interval of central
has elapsed or updates are forced -> [Help 1]
What can I do?
On 04/08/2013 04:00 PM, Ahmet Emre Aladağ wrote:
> Hi,
>
> I'm trying to build giraph. I start hadoop 1.1.2 and run "mvn test" on
> a clean git clone. Then I get errors.
>
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-compiler-plugin:3.0:compile
> (default-compile) on project giraph-core: Compilation failure:
> Compilation failure:
> [ERROR]
> /home/emre/git/giraph/giraph-core/target/munged/main/org/apache/giraph/benchmark/PageRankVertex.java:[1,1]
> class, interface, or enum expected
> [ERROR]
> /home/emre/git/giraph/giraph-core/target/munged/main/org/apache/giraph/benchmark/PageRankVertex.java:[10,16]
> class, interface, or enum expected
> [ERROR] -> [Help 1]
>
> When I looked at this file, I see that mvn causes a change on the
> comments like below. Is this a bug or am I doing something wrong?
>
> [emre@localhost giraph]$ git diff
> diff --git
> a/giraph-core/src/main/java/org/apache/giraph/benchmark/PageRankVertex.java
> b/giraph-core/src/main/java/org/apache/giraph/benchmark/PageRankVertex.java
>
> index 9c3b9f5..d9dbe24 100644
> ---
> a/giraph-core/src/main/java/org/apache/giraph/benchmark/PageRankVertex.java
> +++
> b/giraph-core/src/main/java/org/apache/giraph/benchmark/PageRankVertex.java
> @@ -1,4 +1,7 @@
> -/*
> +/
> +
> +*
> +
> * Licensed to the Apache Software Foundation (ASF) under one
>
>