[ 
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

Reply via email to