Guillaume/Jeremy:

Thanks for your replies! A build.properties file in "C:\Documents and
Settings\Jeff Boring" with the following properties solved the problem
of maven not being able to locate the repo or plugins. I also changed
the MAVEN_HOME to use / instead of \. MAVEN_HOME was set for me via the
win install. 

maven.repo.local=C:/maven/.maven/repository
maven.home.local=C:/maven
maven.plugins.local=C:/maven/plugins
maven.plugin.local=C:/maven/plugins

However, the maven build ended unsuccessfully with,
"java.lang.NoClassDefFoundError:
org/exolab/castor/builder/SourceGenerator". The entire maven output is
shown below. Below that I've also attached the output of a set so you
can see how the environment is set up. 

Jeff

Maven output:
C:\jetspeed-1.5>maven war
 __  __
|  \/  |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|  v. 1.0-rc2

Attempting to download servletapi-2.2.jar.
Attempting to download soap-2.1.jar.
Attempting to download stratum-1.0-b4-dev.jar.
Attempting to download torque-3.1.jar.
Attempting to download turbine-2.2.jar.
Attempting to download uddi4j-1.0.jar.
Attempting to download velocity-1.3.jar.
Attempting to download village-2.0-dev-20030625.jar.
Attempting to download xalan-2.3.1.jar.
Attempting to download xercesImpl-2.0.2.jar.
Attempting to download xml-apis-2.0.2.jar.
Attempting to download maven-torque-plugin-3.2.jar.
Attempting to download cactus-13-1.4.1.jar.
Attempting to download cactus-ant-1.4.1.jar.
Attempting to download junit-3.7.jar.
Tag library requested that is not present: 'maven' in plugin: 'null'
Attempting to download commons-jelly-tags-jsl-20030211.143151.jar.
Attempting to download commons-jelly-tags-log-20030211.142821.jar.
Attempting to download commons-jelly-tags-velocity-20030303.205659.jar.
Attempting to download commons-jelly-tags-xml-20030211.142705.jar.
Attempting to download maven-1.0-beta-10.jar.
Attempting to download velocity-1.4-dev.jar.
Attempting to download velocity-dvsl-0.45.jar.
Attempting to download maven.jar.
Attempting to download isorelax-20030108.jar.
Attempting to download jing-20030619.jar.
Attempting to download commons-net-1.0.0.jar.
Attempting to download commons-httpclient-2.0-beta1.jar.
Attempting to download commons-lang-1.0.1.jar.
Attempting to download jsch-0.1.5.jar.
Attempting to download castor-0.9.5.jar.
Tag library requested that is not present: 'maven' in plugin: 'null'
Attempting to download commons-jelly-tags-antlr-20030211.143720.jar.
Attempting to download antlr-2.7.2.jar.

build:start:

war:init:
java:prepare-filesystem:
    [mkdir] Created dir: C:\jetspeed-1.5\target\classes
Tag library requested that is not present: 'maven' in plugin: 'null'

java:compile:
prepare.apis:
    [echo] Generating Jetspeed XML bindings
    [java] java.lang.NoClassDefFoundError:
org/exolab/castor/builder/SourceGenerator
    [java] Exception in thread "main"
    [java] [ERROR] Java Result: 1

BUILD FAILED
File...... file:/C:/jetspeed-1.5/maven.xml
Element... attainGoal
Line...... 153
Column.... 33
No goal [torque:om]
Total time: 3 minutes 54 seconds
Finished at: Wed Apr 28 13:27:06 EDT 2004

C:\jetspeed-1.5>

Output of set:

C:\jetspeed-1.5>set
ALLUSERSPROFILE=C:\Documents and Settings\All Users
ANT_HOME=C:/dev/library/apache-ant-1.6.1
APPDATA=C:\Documents and Settings\Jeff Boring\Application Data
CATALINA_HOME=C:/dev/library/jakarta-tomcat-4
CommonProgramFiles=C:\Program Files\Common Files
COMPUTERNAME=DEV-JWB
ComSpec=C:\WINDOWS\system32\cmd.exe
ECLIPSE_HOME=C:/dev/library/eclipse
HOMEDRIVE=C:
HOMEPATH=\
JAVA_HOME=C:\j2sdk1.4.2_04
JBOSS_HOME=C:/jboss-3.2.3
LOGONSERVER=\\DEV-JWB
MAVEN_HOME=C:\maven
NUMBER_OF_PROCESSORS=1
OS=Windows_NT
Path=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\PROGRA~1
\ULTRAE~1;C:\j2sdk1.4.2_04\bin;C:\dev\library\ap
ache-ant-1.6.1\bin;C:\maven\bin
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
PROCESSOR_ARCHITECTURE=x86
PROCESSOR_IDENTIFIER=x86 Family 15 Model 2 Stepping 9, GenuineIntel
PROCESSOR_LEVEL=15
PROCESSOR_REVISION=0209
ProgramFiles=C:\Program Files
PROMPT=$P$G
SESSIONNAME=Console
SystemDrive=C:
SystemRoot=C:\WINDOWS
TEMP=C:\WINDOWS\TEMP
TMP=C:\WINDOWS\TEMP
USERDOMAIN=DEV-JWB
USERNAME=Jeff Boring
USERPROFILE=C:\Documents and Settings\Jeff Boring
windir=C:\WINDOWS

C:\jetspeed-1.5>


-----Original Message-----
From: Jeremy Ford [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 28, 2004 11:38 AM
To: [EMAIL PROTECTED]
Subject: RE: newbe 1.5 build problems

>From my understanding of maven:

If you have a build.properties in your user.home directory, the
properties 
in this file will override those found in Jetspeed local directory.

Maven traditionally has used the user.home/.maven to place 
plugins/repository files.  If you wish to override this, put in the 
user.home/build.properties file maven.repo.local=MYREPO.  There is
probably 
an override for plugins, but I don't know it.

Check out the maven doc if you haven't already.  It may be able to
answer 
some of your questions.

Jeremy Ford
[EMAIL PROTECTED]

>From: "Jeff Boring" <[EMAIL PROTECTED]>
>Reply-To: "Jetspeed Users List" <[EMAIL PROTECTED]>
>To: "'Jetspeed Users List'" <[EMAIL PROTECTED]>
>Subject: newbe 1.5 build problems
>Date: Wed, 28 Apr 2004 11:05:58 -0400
>
>Environment: Jetspeed-1.5 (jetspeed-1.5-src.zip unzipped to
>c:/jetspeed-1.5) on Windows XP. Maven v1.0 rc2 installed at c:\maven)
>
>I'm trying to go thru the tutorials, starting with the Prerequisites.
>
>On step 6. Build Jetspeed,
>
>       /jetspeed-1.5/maven war
>
>and
>
>       /jetspeed-1.5/maven dist:install
>
>both produce
>
>       "Directory C:\Documents and Settings\Jeff
>Boring\.maven\repository does not exist."
>
>and proceed to create a plugins & .maven\repository directory under
>"C:\Documents and Settings\Jeff Boring."
>
>I assume this is an error since both directories already exists under
>c:/maven. Maven FAQ says that "The default value for maven.repo.local
is
>now defined in the default.properties file and it has a value of
>${maven.home.local}/repository." However, there is no
default.properties
>under either my maven or jetspeed-1.5 dirs.
>
>
>jetspeed-1.5/project.properties says to set maven.home your
>"${user.home}/build.properties rather than here." I don't understand
>this. Setting maven.home in this file resolves the "repository does not
>exist" problem but still creates a plugin dir under "C:\Documents and
>Settings\Jeff Boring\"
>
>How do I get the maven artifacts distributed with jetspeed-1.5-src.zip
>to recognize my maven?
>
>Jeff
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>

_________________________________________________________________
>From must-see cities to the best beaches, plan a getaway with the Spring

Travel Guide! http://special.msn.com/local/springtravel.armx


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to