Enclojure installation fails: Build error

3 views
Skip to first unread message

j-g-faustus

unread,
May 12, 2010, 5:23:15 AM5/12/10
to enclojure
Hi,

Just tried to install Enclojure in NetBeans following the instructions
at http://github.com/relevance/labrepl

Building the labrepl project gives me a maven build error, see below.
Can I download the missing jar manually from somewhere? Or should I
just wait a few weeks and see if it gets fixed?

Thanks.

System: Mac OS X 10.5, NetBeans 6.8, Java 1.6.

NetBeans build output:

NetBeans: Executing 'mvn -Dnetbeans.execution=true install'
NetBeans: JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/
Versions/1.6/Home

...[snip]...

------------------------------------------------------------------------
[ERROR]BUILD ERROR
------------------------------------------------------------------------
Failed to resolve artifact.

Missing:
----------
1) org.clojure:clojure-contrib:jar:1.2.0-master-SNAPSHOT

... [snip]...

----------
1 required artifact is missing.

for artifact:
labrepl:labrepl:jar:0.0.1

from the specified remote repositories:
central (http://repo1.maven.org/maven2),
clojars (http://clojars.org/repo/),
incanter (http://repo.incanter.org),
clojure-snapshots (http://build.clojure.org/snapshots),
clojure (http://build.clojure.org/releases),
clojure-releases (http://build.clojure.org/releases)

--
You received this message because you are subscribed to the Google Groups "enclojure" group.
To post to this group, send email to encl...@googlegroups.com.
To unsubscribe from this group, send email to enclojure+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/enclojure?hl=en.

Eric Thorsen

unread,
May 12, 2010, 8:55:44 AM5/12/10
to enclojure
This is related to an update that was made to the clojure-contrib
snapshot name in the maven repo.
If you have version 1.1.3 of Enclojure installed and you create a new
project selecting the Clojure/labrepl, that will create a compatible
version that will not have this problem.
Did you already have Enclojure installed from a version prior to us
moving to the auto-update in Netbeans? If so, you might want to try
unstalling the Enclojure plugin and start fresh:
http://www.enclojure.org/gettingstarted


Let me know if this gets you moving forward.

Eric

On May 12, 5:23 am, j-g-faustus <johannes.fries...@gmail.com> wrote:
> Hi,
>
> Just tried to install Enclojure in NetBeans following the instructions
> athttp://github.com/relevance/labrepl

j-g-faustus

unread,
May 12, 2010, 10:28:03 AM5/12/10
to enclojure
No, I don't have any earlier Enclojure (or other Clojure) version
installed. (Just read this post
http://googlecode.blogspot.com/2010/05/better-performance-in-app-engine-with.html
and wanted to have a look at Clojure. )

Updating the labrepl project (git pull origin master, clean and build
in NetBeans) fixed the build error, so it's progress :)

But the REPL fails to start, I get the same error as here:
http://groups.google.com/group/enclojure/browse_thread/thread/79cae5eec62a9e7d?hl=en_US
As far as I can tell from the thread, this problem doesn't have a
solution yet?

BTW, I have the Ruby NetBeans rather than the Java SE version, but
after enabling Java those two should be the same, I suppose?

Eric Thorsen

unread,
May 12, 2010, 11:39:23 AM5/12/10
to enclojure
Regarding the version of Netbeans...it _shouldn't_ matter since they
have the lazy activation. That being said, all the tests I've done
have been with the Java version from the downloads page on Netbeans
and I'm not able to reproduce this problem.
If you create a project using the default Clojure project, are you
able to start a repl on that?

Thanks,
Eric

On May 12, 10:28 am, j-g-faustus <johannes.fries...@gmail.com> wrote:
> No, I don't have any earlier Enclojure (or other Clojure) version
> installed. (Just read this posthttp://googlecode.blogspot.com/2010/05/better-performance-in-app-engi...
> and wanted to have a look at Clojure. )
>
> Updating the labrepl project (git pull origin master, clean and build
> in NetBeans) fixed the build error, so it's progress :)
>
> But the REPL fails to start, I get the same error as here:http://groups.google.com/group/enclojure/browse_thread/thread/79cae5e...

j-g-faustus

unread,
May 12, 2010, 12:51:37 PM5/12/10
to enclojure
With a default Clojure project the repl works, thanks. I guess I'm
good :)

The primary difference seems to be that the default project uses
- clojure-1.0.0.jar
- clojure-contrib-1.0.0.jar

while the labrepl uses
- clojure-1.2.0-master-SNAPSHOT.jar
- clojure-contrib-1.2.0-SNAPSHOT.jar

Is the labrepl something it would be nice to have, or is it just a
demo along the lines of the Java Pet Store?

In any case I have enough to get started, thanks for your help.

Regards
jf

On May 12, 5:39 pm, Eric Thorsen <ethor...@enclojure.org> wrote:
> Regarding the version of Netbeans...it _shouldn't_ matter since they
> have the lazy activation.  That being said, all the tests I've done
> have been with the Java version from the downloads page on Netbeans
> and I'm not able to reproduce this problem.
> If you create a project using the default Clojure project, are you
> able to start a repl on that?
>
> Thanks,
> Eric
>

Eric Thorsen

unread,
May 12, 2010, 4:21:05 PM5/12/10
to enclojure
IMHO, I think the labrepl is a very good way of learning many
interesting aspects of clojure but you will need some of the newer
things that are in the 1.2 release track.
I'm here if you want to give it another shot in the future.

Have fun!
Eric

j-g-faustus

unread,
May 17, 2010, 9:00:06 PM5/17/10
to enclojure
I got the labrepl working without changing anything.

It turns out that the "Project REPL failed to start .... timeout
expired" error was just what it said, a timeout: If I shut down
everything else on the computer, including the browser, and do not try
to start the REPL until CPU load is close to zero, it works just
fine.

I discovered the fix by accident when the REPL for the Clojure 1.0
project failed to start with the same message while I was watching a
video in the browser :) Perhaps a longer timeout would be in order?

I suppose this explains why you haven't seen the problem yourself -
I'm running on a Macbook Air, I imagine you are using something more
powerful.

In any case it works now, thanks for a very useful plugin.

Regards
jf

xeuth

unread,
May 18, 2010, 1:47:01 PM5/18/10
to enclojure
Hi,

I downloaded enclojure yesterday and encountered the same problem.
I changed the version for artifact clojure-contrib in the the pom.xml
("master" removed).

<dependency>
<groupId>org.clojure</groupId>
<artifactId>clojure-contrib</artifactId>
<version>1.2.0-SNAPSHOT</version>
</dependency>

Now it works :-)

Cheers
Xeuth

On 12 Mai, 11:23, j-g-faustus <johannes.fries...@gmail.com> wrote:
> Hi,
>
> Just tried to install Enclojure in NetBeans following the instructions
> athttp://github.com/relevance/labrepl

Corey White

unread,
May 25, 2010, 2:57:19 PM5/25/10
to enclojure
I ran into the same build problems. Xeuth's fix took care of it.
Thanks, Xeuth!
Reply all
Reply to author
Forward
0 new messages