Qi4j dependencies are not getting resolved while using SNAPSHOT

9 views
Skip to first unread message

jaydatt desai

unread,
Jul 16, 2014, 8:47:56 AM7/16/14
to qi4j...@googlegroups.com
Hi Guys,

First of all amazing framework, we are using Qi4j for creating one of our product, well some of you might know my team members, they are Jiri Jetmar and Michael pantazoglou. 
Well the problem we faced recently is, till now we are using the actual qi4j source code for our development purpose and now we are using a Qi4j SNAPSHOT.
We wrote our own build.gradle file and over there we have specified Qi4j-SNAPSHOT dependencies. but when we try to run this we came up with lot of compilation/run time errors about "ClassNotFound", we invested lot of time on this to resolve this and finally figured out that we need to add all dependencies which were there in Qi4j. 

When we are not using this snapshot and actual Qi4j source code than it has lot of build.gradle file in different modules so it will resolve all dependencies. but with snapshot it will not get resolved. and this why we need to add them explicitly in build.gradle, this is my first impression about this kind of behavior. 

Let me know if I am missing some thing or if I am wrong anywhere.


Niclas Hedhman

unread,
Jul 16, 2014, 10:19:31 PM7/16/14
to jaydatt desai, qi4j...@googlegroups.com

Which snapshot repository are you using?

My guess is that Maven pom artifacts are not generated correctly, and hence you won't see them.

Otherwise, my guess would be around the use of "transitive" dependency resolution in your project is set to "off".

Cheers
Niclas


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



--
Niclas Hedhman, Software Developer
河南南路555弄15号1901室。
http://www.qi4j.org - New Energy for Java

I live here; http://tinyurl.com/3xugrbk
I work here; http://tinyurl.com/6a2pl4j
I relax here; http://tinyurl.com/2cgsug

Paul Merlin

unread,
Jul 17, 2014, 3:40:47 AM7/17/14
to qi4j...@googlegroups.com
Hi,

Browsing the SNAPSHOT repository, POMs look ok to me, eg:

https://repository-qi4j.forge.cloudbees.com/snapshot/org/qi4j/extension/org.qi4j.extension.entitystore-hazelcast/2.1-SNAPSHOT/org.qi4j.extension.entitystore-hazelcast-2.1-20140618.020419-18.pom

Must be something with your build. Can you reproduce your issue in a small shareable project?

Cheers

/Paul

jaydatt desai a écrit :

jaydatt desai

unread,
Jul 17, 2014, 7:48:29 AM7/17/14
to qi4j...@googlegroups.com, jaydat...@gmail.com, nic...@hedhman.org
Hi Niclas,

Thanks alot for the reply, 


after adding this when wrote my build.gradle and I build it, after when I open the file where this dependencies are getting used it was giving me error, than I added same dependencies in project root build.gradle file and it works, strange. because as I already added the snapshot it should add all this files....I guess

jaydatt desai

unread,
Jul 17, 2014, 7:51:39 AM7/17/14
to qi4j...@googlegroups.com, pa...@nosphere.org
HI Paul,

Thank you as well for your reply,
well I am using the same snapshot and yes it also looks ok to me,but as I replied above after building when I open that class I was getting this errror as it was not able to find the dependencies, than I added the required dependencies in root build.gradle file and I was able to resolve it, 

Here As I understood from the snap shot it should automatically get resolved.

well about building a small example I will definitly try to make one.... so that you can get a clear picture...

Paul Merlin

unread,
Jul 17, 2014, 7:59:43 AM7/17/14
to qi4j...@googlegroups.com
jaydatt desai a écrit :
HI Paul,

Thank you as well for your reply,
well I am using the same snapshot and yes it also looks ok to me,but as I replied above after building when I open that class I was getting this errror as it was not able to find the dependencies, than I added the required dependencies in root build.gradle file and I was able to resolve it, 

Here As I understood from the snap shot it should automatically get resolved.
Note that some libraries/extensions do depend on artifacts that are not available in MavenCentral nor in the Qi4j repository. For theses you must add the repositories to your build so it can resolve them.

HTH

Reply all
Reply to author
Forward
0 new messages