Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 96729 - dev-java/maven-bin doesn't detect MAVEN_HOME properly
Summary: dev-java/maven-bin doesn't detect MAVEN_HOME properly
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-21 13:37 UTC by Volker Wegert
Modified: 2005-11-21 17:08 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Volker Wegert 2005-06-21 13:37:04 UTC
It is possible to emerge dev-java/maven-bin without having dev-java/forehead
installed; however, I was unable to run maven without installing forehead
manually because of some ClassNotFound exception pointing to forehead.

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Sven Vermeulen (RETIRED) gentoo-dev 2005-07-06 01:52:24 UTC
I second this; dev-java/forehead is required for dev-java/maven-bin to work. But
dev-java/forehead is ~x86 (dev-java/maven-bin is x86).
Comment 2 Jesus Rivero (Neurogeek) 2005-09-12 07:37:57 UTC
Hi,

dev-java/Maven-bin already come with forehead (1.0-beta-5) in /usr/share/maven/lib 
without actually installing forehead.

 neurogeek
Comment 3 Josh Nichols (RETIRED) gentoo-dev 2005-11-02 05:13:14 UTC
Could you post more information? In particular, which version of maven-bin this
was with, and a log of the messages you get when you attempt to run it.
Comment 4 katerina 2005-11-05 18:52:03 UTC
dev-java/maven-bin-1.0 
% maven
Exception in thread "main" java.lang.NoClassDefFoundError:
com/werken/forehead/Forehead

Emerging forehead [dev-java/forehead-1.0_beta5] and running env-update makes
maven run on ~amd64 [after keywording forehead appropriately].
Comment 5 olivierva 2005-11-13 10:26:29 UTC
I've installed forehead but maven still doesn't run (did env-update)

i've installed (on x86):
dev-java/maven-bin-1.0_rc3
dev-java/forehead-1.0_beta5

The error I get:
Exception in thread "main" java.lang.NoClassDefFoundError:
com/werken/forehead/Forehead
Comment 6 olivierva 2005-11-13 10:48:09 UTC
It looks like MAVEN_HOME isn't set correctly. 

Online 154 in /usr/bin/maven it tries to search forehead in the maven directory
(so yes a forehead dependancy isn't neccesary):
-classpath "${MAVEN_HOME}/lib/forehead-${FOREHEAD_VERSION}.jar" \

but MAVEN_HOME is set to /usr for some reason 

after doing an:
export MAVEN_HOME=/usr/share/maven

everything worked fine
Comment 7 Josh Nichols (RETIRED) gentoo-dev 2005-11-21 17:08:09 UTC
I've added a patch for /usr/bin/maven to properly detect MAVEN_HOME to CVS.
Thanks for reporting.