Building hazelcast-all jar from source?

305 views
Skip to first unread message

Joe Planisky

unread,
Nov 5, 2013, 6:23:16 PM11/5/13
to haze...@googlegroups.com
I'm trying to build Hazelcast 3.1.1 from source using maven and can't seem to get the hazelcast-all-3.1.1.jar to build. Here's what I've done:

- cloned the repo from github
- did "git checkout v3.1.1"
- did "mvn clean install -DskipTests"

There's no sign of a hazelcast-all-3.1.1.jar in the hazelcast/hazelcast-all/target folder or in the ~/.m2/repository/com/hazelcast/hazelcast-all folder. Other jars (e.g. hazelcast-client-3.1.1.jar, hazelcast-cloud-3.1.1.jar, etc.) appeared where expected, just no hazelcast-all-3.1.1.jar.

Doing the same steps except checking out the v2.4.1 version DID produce a hazelcast-all-2.4.1.jar.

I'm a total newbie with maven. Is there something else I need to do to get the -all-3.1.1.jar to build?

--
Joe

Ali Gürbüz

unread,
Nov 5, 2013, 6:32:44 PM11/5/13
to haze...@googlegroups.com
Well I’ve done the same:

- clone repo from github to the folder hz-test
- checkout 3.1.1
- and "mvn clean install -DskipTests”

result is here for me : .../hz-test/hazelcast-all/target/hazelcast-all-3.1.1.jar




--
You received this message because you are subscribed to the Google Groups "Hazelcast" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hazelcast+...@googlegroups.com.
To post to this group, send email to haze...@googlegroups.com.
Visit this group at http://groups.google.com/group/hazelcast.
For more options, visit https://groups.google.com/groups/opt_out.

Mehmet Dogan

unread,
Nov 5, 2013, 6:50:59 PM11/5/13
to haze...@googlegroups.com
Joe,

'hazelast-all' module is not included in default build profile, it's in "zip" and "release" profiles. To be able to package/install 'hazelcast-all' artifact, you should add "zip" profile to the maven command;

mvn clean install -P zip 


PS: By 3.0 tests also are not included in default profile, they're moved to specific test profiles.

PS2: I guess Ali did a build with one of "zip" or "release" profiles before and because of this, he sees an old 'hazelcast-all' artifact in his build directory.


@mmdogan

Joe Planisky

unread,
Nov 6, 2013, 9:38:05 AM11/6/13
to haze...@googlegroups.com
Thanks, Mehmet. That worked.

--
Joe

On Nov 5, 2013, at 3:50 PM, Mehmet Dogan wrote:

> Joe,
>
> 'hazelast-all' module is not included in default build profile, it's in
> "zip" and "release" profiles. To be able to package/install 'hazelcast-all'
> artifact, you should add "zip" profile to the maven command;
>
> *mvn clean install -P zip *
Message has been deleted

Noctarius

unread,
May 23, 2014, 5:31:26 PM5/23/14
to haze...@googlegroups.com
As far as I see your question this is not Hazelcast specific but Java basics. You should try to get a Java beginners book otherwise you will get lost soon. Sorry for that answer but it is hard to bring someone through all basics. Btw if you start Java you probably should start by using a cluster system like Hazelcast.

Chris

Am 23.05.2014 um 23:12 schrieb Anwesha <anwesha....@gmail.com>:

Hi,

I have two questions:

1. I have trying to compile hazelcast from source, I did "git clone", installed maven and tried  "running mvn clean install", I get the following compilation/build error:

"/hazelcast/src/main/java/com/hazelcast/nio/UnsafeHelper.java:[63,12] sun.misc.Unsafe is internal proprietary API and may be removed in a future release"

I am using Java openjdk 1.6 on fedora. 

Is there any way I can compile it and build the jar file without using maven?

2. I downloaded the binary version of hazelcast without the source files. I am able to run the bash scripts like run.sh and server.sh which runs the compiles java files in examples folder. However I am not clear, as to how to compile a new program I write using the jar. I tried to compile my program using javac and then java using the hazelcast jar, it didn't work.

Could you please tell the steps to write and compile a program once the jar is available? I guess the path to the package needs to be correct inside the .java file? 

Some help/example will be appreciated. I am a newbie in hazelcast.

Thanks,
-- 
You received this message because you are subscribed to the Google Groups "Hazelcast" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hazelcast+...@googlegroups.com.
To post to this group, send email to haze...@googlegroups.com.
Visit this group at http://groups.google.com/group/hazelcast.
Reply all
Reply to author
Forward
0 new messages