You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hama.apache.org by "Tommaso Teofili (JIRA)" <ji...@apache.org> on 2011/04/20 07:38:05 UTC

[jira] [Created] (HAMA-382) Refactor HAMA POM

Refactor HAMA POM
-----------------

                 Key: HAMA-382
                 URL: https://issues.apache.org/jira/browse/HAMA-382
             Project: Hama
          Issue Type: Improvement
            Reporter: Tommaso Teofili
            Assignee: Tommaso Teofili


Refactoring include:
Change the groupId to not include the 'incubator' and replace it with 'hama' as the 'incubating' suffix is already added to the artifact version and the artifactId to 'hama-core', thus the resulting artifact would be org.apache.hama/hama-core/$version-incubating.
Create a profile 'examples' to generate the hama-examples jar with Maven

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (HAMA-382) Refactor HAMA POM

Posted by "Edward J. Yoon (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HAMA-382?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13022137#comment-13022137 ] 

Edward J. Yoon commented on HAMA-382:
-------------------------------------

Oh...  my version is "Apache Maven 2.2.1 (rdebian-1)".


> Refactor HAMA POM
> -----------------
>
>                 Key: HAMA-382
>                 URL: https://issues.apache.org/jira/browse/HAMA-382
>             Project: Hama
>          Issue Type: Improvement
>          Components: build , examples
>    Affects Versions: 0.2.0
>            Reporter: Tommaso Teofili
>            Assignee: Tommaso Teofili
>             Fix For: 0.3.0
>
>         Attachments: HAMA-382.patch
>
>
> Refactoring include:
> Change the groupId to not include the 'incubator' and replace it with 'hama' as the 'incubating' suffix is already added to the artifact version and the artifactId to 'hama-core', thus the resulting artifact would be org.apache.hama/hama-core/$version-incubating.
> Create a profile 'examples' to generate the hama-examples jar with Maven

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (HAMA-382) Refactor HAMA POM

Posted by "Tommaso Teofili (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HAMA-382?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tommaso Teofili updated HAMA-382:
---------------------------------

          Component/s: examples
                       build 
    Affects Version/s: 0.2.0
        Fix Version/s: 0.3.0

> Refactor HAMA POM
> -----------------
>
>                 Key: HAMA-382
>                 URL: https://issues.apache.org/jira/browse/HAMA-382
>             Project: Hama
>          Issue Type: Improvement
>          Components: build , examples
>    Affects Versions: 0.2.0
>            Reporter: Tommaso Teofili
>            Assignee: Tommaso Teofili
>             Fix For: 0.3.0
>
>
> Refactoring include:
> Change the groupId to not include the 'incubator' and replace it with 'hama' as the 'incubating' suffix is already added to the artifact version and the artifactId to 'hama-core', thus the resulting artifact would be org.apache.hama/hama-core/$version-incubating.
> Create a profile 'examples' to generate the hama-examples jar with Maven

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (HAMA-382) Refactor HAMA POM

Posted by "Edward J. Yoon (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HAMA-382?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13022112#comment-13022112 ] 

Edward J. Yoon commented on HAMA-382:
-------------------------------------

Yes, I did. but build fails.

{code}
...
Tests run: 23, Failures: 0, Errors: 0, Skipped: 0

[INFO] [jar:jar {execution: default-jar}]
[INFO] Building jar: /home/edward/workspace/hama-trunk/target/hama-core-0.3.0-incubating-SNAPSHOT.jar
[INFO] [install:install {execution: default-install}]
[INFO] Installing /home/edward/workspace/hama-trunk/target/hama-core-0.3.0-incubating-SNAPSHOT.jar to /home/edward/.m2/repository/org/apache/hama/hama-core/0.3.0-incubating-SNAPSHOT/hama-core-0.3.0-incubating-SNAPSHOT.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1 minute 13 seconds
[INFO] Finished at: Wed Apr 20 22:20:18 KST 2011
[INFO] Final Memory: 36M/302M
[INFO] ------------------------------------------------------------------------
edward@slave:~/workspace/hama-trunk$
edward@slave:~/workspace/hama-trunk$
edward@slave:~/workspace/hama-trunk$
edward@slave:~/workspace/hama-trunk$ mvn -Pexamples package
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] The projects in the reactor contain a cyclic reference: Edge between 'Vertex{label='org.apache.hama:hama-core'}' and 'Vertex{label='org.apache.hama:hama-core'}' introduces to cycle in the graph org.apache.hama:hama-core --> org.apache.hama:hama-core
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: < 1 second
[INFO] Finished at: Wed Apr 20 22:20:25 KST 2011
[INFO] Final Memory: 2M/74M
[INFO] ------------------------------------------------------------------------
{code}

> Refactor HAMA POM
> -----------------
>
>                 Key: HAMA-382
>                 URL: https://issues.apache.org/jira/browse/HAMA-382
>             Project: Hama
>          Issue Type: Improvement
>          Components: build , examples
>    Affects Versions: 0.2.0
>            Reporter: Tommaso Teofili
>            Assignee: Tommaso Teofili
>             Fix For: 0.3.0
>
>         Attachments: HAMA-382.patch
>
>
> Refactoring include:
> Change the groupId to not include the 'incubator' and replace it with 'hama' as the 'incubating' suffix is already added to the artifact version and the artifactId to 'hama-core', thus the resulting artifact would be org.apache.hama/hama-core/$version-incubating.
> Create a profile 'examples' to generate the hama-examples jar with Maven

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (HAMA-382) Refactor HAMA POM

Posted by "Tommaso Teofili (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HAMA-382?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13022690#comment-13022690 ] 

Tommaso Teofili commented on HAMA-382:
--------------------------------------

There are a lot of things fixed and improved in Maven 3 so I'd go with it.
The second point is correct, I have a new patch which handles Maven minor version and handles the main class and dependencies for the examples artifact.

> Refactor HAMA POM
> -----------------
>
>                 Key: HAMA-382
>                 URL: https://issues.apache.org/jira/browse/HAMA-382
>             Project: Hama
>          Issue Type: Improvement
>          Components: build , examples
>    Affects Versions: 0.2.0
>            Reporter: Tommaso Teofili
>            Assignee: Tommaso Teofili
>             Fix For: 0.3.0
>
>         Attachments: HAMA-382.patch
>
>
> Refactoring include:
> Change the groupId to not include the 'incubator' and replace it with 'hama' as the 'incubating' suffix is already added to the artifact version and the artifactId to 'hama-core', thus the resulting artifact would be org.apache.hama/hama-core/$version-incubating.
> Create a profile 'examples' to generate the hama-examples jar with Maven

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (HAMA-382) Refactor HAMA POM

Posted by "Edward J. Yoon (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HAMA-382?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13022746#comment-13022746 ] 

Edward J. Yoon commented on HAMA-382:
-------------------------------------

+1

> Refactor HAMA POM
> -----------------
>
>                 Key: HAMA-382
>                 URL: https://issues.apache.org/jira/browse/HAMA-382
>             Project: Hama
>          Issue Type: Improvement
>          Components: build , examples
>    Affects Versions: 0.2.0
>            Reporter: Tommaso Teofili
>            Assignee: Tommaso Teofili
>             Fix For: 0.3.0
>
>         Attachments: HAMA-382.patch, HAMA-382_2.patch
>
>
> Refactoring include:
> Change the groupId to not include the 'incubator' and replace it with 'hama' as the 'incubating' suffix is already added to the artifact version and the artifactId to 'hama-core', thus the resulting artifact would be org.apache.hama/hama-core/$version-incubating.
> Create a profile 'examples' to generate the hama-examples jar with Maven

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (HAMA-382) Refactor HAMA POM

Posted by "Tommaso Teofili (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HAMA-382?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tommaso Teofili updated HAMA-382:
---------------------------------

    Attachment: HAMA-382.patch

> Refactor HAMA POM
> -----------------
>
>                 Key: HAMA-382
>                 URL: https://issues.apache.org/jira/browse/HAMA-382
>             Project: Hama
>          Issue Type: Improvement
>          Components: build , examples
>    Affects Versions: 0.2.0
>            Reporter: Tommaso Teofili
>            Assignee: Tommaso Teofili
>             Fix For: 0.3.0
>
>         Attachments: HAMA-382.patch
>
>
> Refactoring include:
> Change the groupId to not include the 'incubator' and replace it with 'hama' as the 'incubating' suffix is already added to the artifact version and the artifactId to 'hama-core', thus the resulting artifact would be org.apache.hama/hama-core/$version-incubating.
> Create a profile 'examples' to generate the hama-examples jar with Maven

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (HAMA-382) Refactor HAMA POM

Posted by "Tommaso Teofili (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HAMA-382?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13022124#comment-13022124 ] 

Tommaso Teofili commented on HAMA-382:
--------------------------------------

Could that be related to Maven version? What version are you using?
I've tested it successfully with 3.0+
To be sure it was not something related to my environment I used an empty local repository with the following:

mvn clean install -Dmaven.repo.local=/tmp/hama382

and then

mvn -Pexamples package -Dmaven.repo.local=/tmp/hama382

> Refactor HAMA POM
> -----------------
>
>                 Key: HAMA-382
>                 URL: https://issues.apache.org/jira/browse/HAMA-382
>             Project: Hama
>          Issue Type: Improvement
>          Components: build , examples
>    Affects Versions: 0.2.0
>            Reporter: Tommaso Teofili
>            Assignee: Tommaso Teofili
>             Fix For: 0.3.0
>
>         Attachments: HAMA-382.patch
>
>
> Refactoring include:
> Change the groupId to not include the 'incubator' and replace it with 'hama' as the 'incubating' suffix is already added to the artifact version and the artifactId to 'hama-core', thus the resulting artifact would be org.apache.hama/hama-core/$version-incubating.
> Create a profile 'examples' to generate the hama-examples jar with Maven

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (HAMA-382) Refactor HAMA POM

Posted by "Edward J. Yoon (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HAMA-382?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13022103#comment-13022103 ] 

Edward J. Yoon commented on HAMA-382:
-------------------------------------

Thanks.

BTW, I can't run that command. What did I do wrong? 

{code}

edward@slave:~/workspace/hama-trunk$ mvn -Pexamples package -e
+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] The projects in the reactor contain a cyclic reference: Edge between 'Vertex{label='org.apache.hama:hama-core'}' and 'Vertex{label='org.apache.hama:hama-core'}' introduces to cycle in the graph org.apache.hama:hama-core --> org.apache.hama:hama-core
[INFO] ------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.BuildFailureException: The projects in the reactor contain a cyclic reference: Edge between 'Vertex{label='org.apache.hama:hama-core'}' and 'Vertex{label='org.apache.hama:hama-core'}' introduces to cycle in the graph org.apache.hama:hama-core --> org.apache.hama:hama-core
	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:295)
	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
	at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
	at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
	at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
	at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
	at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: hidden.org.codehaus.plexus.util.dag.CycleDetectedException: Edge between 'Vertex{label='org.apache.hama:hama-core'}' and 'Vertex{label='org.apache.hama:hama-core'}' introduces to cycle in the graph org.apache.hama:hama-core --> org.apache.hama:hama-core
	at hidden.org.codehaus.plexus.util.dag.DAG.addEdge(DAG.java:143)
	at hidden.org.codehaus.plexus.util.dag.DAG.addEdge(DAG.java:123)
	at org.apache.maven.project.ProjectSorter.<init>(ProjectSorter.java:118)
	at org.apache.maven.execution.ReactorManager.<init>(ReactorManager.java:99)
	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:288)
	... 11 more
[INFO] ------------------------------------------------------------------------
[INFO] Total time: < 1 second
[INFO] Finished at: Wed Apr 20 22:05:02 KST 2011
[INFO] Final Memory: 2M/74M
[INFO] ------------------------------------------------------------------------
{code}

> Refactor HAMA POM
> -----------------
>
>                 Key: HAMA-382
>                 URL: https://issues.apache.org/jira/browse/HAMA-382
>             Project: Hama
>          Issue Type: Improvement
>          Components: build , examples
>    Affects Versions: 0.2.0
>            Reporter: Tommaso Teofili
>            Assignee: Tommaso Teofili
>             Fix For: 0.3.0
>
>         Attachments: HAMA-382.patch
>
>
> Refactoring include:
> Change the groupId to not include the 'incubator' and replace it with 'hama' as the 'incubating' suffix is already added to the artifact version and the artifactId to 'hama-core', thus the resulting artifact would be org.apache.hama/hama-core/$version-incubating.
> Create a profile 'examples' to generate the hama-examples jar with Maven

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Resolved] (HAMA-382) Refactor HAMA POM

Posted by "Edward J. Yoon (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HAMA-382?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Edward J. Yoon resolved HAMA-382.
---------------------------------

    Resolution: Fixed

I've just committed this. Thanks!!

> Refactor HAMA POM
> -----------------
>
>                 Key: HAMA-382
>                 URL: https://issues.apache.org/jira/browse/HAMA-382
>             Project: Hama
>          Issue Type: Improvement
>          Components: build , examples
>    Affects Versions: 0.2.0
>            Reporter: Tommaso Teofili
>            Assignee: Tommaso Teofili
>             Fix For: 0.3.0
>
>         Attachments: HAMA-382.patch, HAMA-382_2.patch
>
>
> Refactoring include:
> Change the groupId to not include the 'incubator' and replace it with 'hama' as the 'incubating' suffix is already added to the artifact version and the artifactId to 'hama-core', thus the resulting artifact would be org.apache.hama/hama-core/$version-incubating.
> Create a profile 'examples' to generate the hama-examples jar with Maven

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (HAMA-382) Refactor HAMA POM

Posted by "Edward J. Yoon (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HAMA-382?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13022650#comment-13022650 ] 

Edward J. Yoon commented on HAMA-382:
-------------------------------------

Works fine with maven3. BTW, shouldn't it also work fine with maven2?

And I think, we need to add main class. 

{code}
edward@slave:~/workspace/hama-trunk$ bin/hama jar hama-examples-0.3.0-incubating-SNAPSHOT.jar pi
Exception in thread "main" java.lang.ClassNotFoundException: pi
        at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
        at org.apache.hama.util.RunJar.main(RunJar.java:139)
edward@slave:~/workspace/hama-trunk$ bin/hama jar hama-examples-0.3.0-incubating-SNAPSHOT.jar org.apache.hama.examples.PiEstimator
11/04/21 15:56:07 INFO bsp.BSPJobClient: Running job: job_201104211552_0003
{code}

> Refactor HAMA POM
> -----------------
>
>                 Key: HAMA-382
>                 URL: https://issues.apache.org/jira/browse/HAMA-382
>             Project: Hama
>          Issue Type: Improvement
>          Components: build , examples
>    Affects Versions: 0.2.0
>            Reporter: Tommaso Teofili
>            Assignee: Tommaso Teofili
>             Fix For: 0.3.0
>
>         Attachments: HAMA-382.patch
>
>
> Refactoring include:
> Change the groupId to not include the 'incubator' and replace it with 'hama' as the 'incubating' suffix is already added to the artifact version and the artifactId to 'hama-core', thus the resulting artifact would be org.apache.hama/hama-core/$version-incubating.
> Create a profile 'examples' to generate the hama-examples jar with Maven

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (HAMA-382) Refactor HAMA POM

Posted by "Tommaso Teofili (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HAMA-382?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13022075#comment-13022075 ] 

Tommaso Teofili commented on HAMA-382:
--------------------------------------

I attached a patch which reflects the above changes. To crete the examples package, run mvn -Pexamples package

> Refactor HAMA POM
> -----------------
>
>                 Key: HAMA-382
>                 URL: https://issues.apache.org/jira/browse/HAMA-382
>             Project: Hama
>          Issue Type: Improvement
>          Components: build , examples
>    Affects Versions: 0.2.0
>            Reporter: Tommaso Teofili
>            Assignee: Tommaso Teofili
>             Fix For: 0.3.0
>
>         Attachments: HAMA-382.patch
>
>
> Refactoring include:
> Change the groupId to not include the 'incubator' and replace it with 'hama' as the 'incubating' suffix is already added to the artifact version and the artifactId to 'hama-core', thus the resulting artifact would be org.apache.hama/hama-core/$version-incubating.
> Create a profile 'examples' to generate the hama-examples jar with Maven

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (HAMA-382) Refactor HAMA POM

Posted by "Tommaso Teofili (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HAMA-382?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13022105#comment-13022105 ] 

Tommaso Teofili commented on HAMA-382:
--------------------------------------

since the groupId and artifactId have changed, you first need to run a "mvn install" (which installs hama-core inside the local Maven repository) then you can execute "mvn -Pexamples package".

> Refactor HAMA POM
> -----------------
>
>                 Key: HAMA-382
>                 URL: https://issues.apache.org/jira/browse/HAMA-382
>             Project: Hama
>          Issue Type: Improvement
>          Components: build , examples
>    Affects Versions: 0.2.0
>            Reporter: Tommaso Teofili
>            Assignee: Tommaso Teofili
>             Fix For: 0.3.0
>
>         Attachments: HAMA-382.patch
>
>
> Refactoring include:
> Change the groupId to not include the 'incubator' and replace it with 'hama' as the 'incubating' suffix is already added to the artifact version and the artifactId to 'hama-core', thus the resulting artifact would be org.apache.hama/hama-core/$version-incubating.
> Create a profile 'examples' to generate the hama-examples jar with Maven

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (HAMA-382) Refactor HAMA POM

Posted by "Tommaso Teofili (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HAMA-382?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tommaso Teofili updated HAMA-382:
---------------------------------

    Attachment: HAMA-382_2.patch

> Refactor HAMA POM
> -----------------
>
>                 Key: HAMA-382
>                 URL: https://issues.apache.org/jira/browse/HAMA-382
>             Project: Hama
>          Issue Type: Improvement
>          Components: build , examples
>    Affects Versions: 0.2.0
>            Reporter: Tommaso Teofili
>            Assignee: Tommaso Teofili
>             Fix For: 0.3.0
>
>         Attachments: HAMA-382.patch, HAMA-382_2.patch
>
>
> Refactoring include:
> Change the groupId to not include the 'incubator' and replace it with 'hama' as the 'incubating' suffix is already added to the artifact version and the artifactId to 'hama-core', thus the resulting artifact would be org.apache.hama/hama-core/$version-incubating.
> Create a profile 'examples' to generate the hama-examples jar with Maven

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira