Problem Running Maven

2015-04-17 Thread Michael.CTR.Tarullo
I have recently downloaded and unzipped Maven 3.3.1 in Windows 7.

I updated my path environment variable to include 
C:\Apache\Maven\apache-maven-3.3.1\bin.  I also added a JAVA_HOME environment 
variable that points to my Java 8 JDK.  And created both an M2_HOME and M2 
environment variable.

When I enter mvn - -version on the command line I get the following:

H:\mvn --version
Usage: java [-options] class [args...]
   (to execute a class)
   or  java [-options] -jar jarfile [args...]
   (to execute a jar file)
where options include:
-d32  use a 32-bit data model if available
-d64  use a 64-bit data model if available
-server   to select the server VM
  The default VM is server.

-cp class search path of directories and zip/jar files
-classpath class search path of directories and zip/jar files
  A ; separated list of directories, JAR archives,
  and ZIP archives to search for class files.
-Dname=value
  set a system property
-verbose:[class|gc|jni]
  enable verbose output
-version  print product version and exit
-version:value
  require the specified version to run
-showversion  print product version and continue
-jre-restrict-search | -no-jre-restrict-search
  include/exclude user private JREs in the version search
-? -help  print this help message
-Xprint help on non-standard options
-ea[:packagename...|:classname]
-enableassertions[:packagename...|:classname]
  enable assertions with specified granularity
-da[:packagename...|:classname]
-disableassertions[:packagename...|:classname]
  disable assertions with specified granularity
-esa | -enablesystemassertions
  enable system assertions
-dsa | -disablesystemassertions
  disable system assertions
-agentlib:libname[=options]
  load native agent library libname, e.g. -agentlib:hprof
  see also, -agentlib:jdwp=help and -agentlib:hprof=help
-agentpath:pathname[=options]
  load native agent library by full pathname
-javaagent:jarpath[=options]
  load Java programming language agent, see java.lang.instrument

-splash:imagepath
  show splash screen with specified image
See http://www.oracle.com/technetwork/java/javase/documentation/index.html for 
more details.

However, when I change to any of the following three directories:

C:\Windows
C:\Windows\System32
C:\Apache\Maven\apache-maven-3.3.1\bin

and enter mvn - -version on the command line I get the following:

C:\Apache\Maven\apache-maven-3.3.1\binmvn --version
Apache Maven 3.3.1 (cab6659f9874fa96462afef40fcf6bc033d58c1c; 
2015-03-13T16:10:27-04:00)
Maven home: C:\Apache\Maven\apache-maven-3.3.1\bin\..
Java version: 1.8.0_31, vendor: Oracle Corporation
Java home: C:\Program Files\Java\jdk1.8.0_31\jre
Default locale: en_US, platform encoding: Cp1252
OS name: windows 7, version: 6.1, arch: amd64, family: dos

If I run mvn - -version from any other directory I get the same results as 
reported when I run from H:\.


Michael Tarullo
Contractor (Engility Corp)
Enterprise Architect
NSRR System Administrator
FAA WJH Technical Center
(609)485-5294



RE: Problem Running Maven

2015-04-17 Thread Michael.CTR.Tarullo
Here are the commands the batch file is executing:

Do you see anything in here that indicates the cause of the problem?

H:\mvn --version

H:\if  ==  (set HOME=H:\ )

H:\if not on ==  goto skipRcPre

H:\set ERROR_CODE=0

H:\if not C:\Program Files\Java\jdk1.8.0_31 ==  goto OkJHome

H:\if exist C:\Program Files\Java\jdk1.8.0_31\bin\java.exe goto chkMHome

H:\if not C:\Apache\Maven\apache-maven-3.3.1 ==  goto valMHome

H:\if not _1 == _\ goto checkMCmd

H:\if exist C:\Apache\Maven\apache-maven-3.3.1\bin\mvn.cmd goto init

H:\set MAVEN_CMD_LINE_ARGS=--version

H:\set MAVEN_PROJECTBASEDIR=

H:\IF NOT  ==  goto endDetectBaseDir

H:\set EXEC_DIR=H:\

H:\set WDIR=H:\

H:\IF EXIST H:\\.mvn goto baseDirFound

H:\cd ..

H:\IF H:\ == H:\ goto baseDirNotFound

H:\set MAVEN_PROJECTBASEDIR=H:\

H:\cd H:\

H:\IF NOT EXIST H:\\.mvn\jvm.config goto endReadAdditionalConfig

H:\SET MAVEN_JAVA_EXE=C:\Program Files\Java\jdk1.8.0_31\bin\java.exe

H:\for %i in (C:\Apache\Maven\apache-maven-3.3.1\boot\plexus-classworlds-*) d
o set CLASSWORLDS_JAR=%i

H:\set CLASSWORLDS_JAR=C:\Apache\Maven\apache-maven-3.3.1\boot\plexus-classwor
lds-2.5.2.jar

H:\set CLASSWORLDS_LAUNCHER=org.codehaus.plexus.classworlds.launcher.Launcher

H:\C:\Program Files\Java\jdk1.8.0_31\bin\java.exe-classpath C:\Apache\Ma
ven\apache-maven-3.3.1\boot\plexus-classworlds-2.5.2.jar -Dclassworlds.conf=C:
\Apache\Maven\apache-maven-3.3.1\bin\m2.conf -Dmaven.home=C:\Apache\Maven\apac
he-maven-3.3.1 -Dmaven.multiModuleProjectDirectory=H:\ org.codehaus.plexus.cl
assworlds.launcher.Launcher --version
Usage: java [-options] class [args...]
   (to execute a class)
   or  java [-options] -jar jarfile [args...]
   (to execute a jar file)
where options include:
-d32  use a 32-bit data model if available
-d64  use a 64-bit data model if available
-server   to select the server VM
  The default VM is server.

-cp class search path of directories and zip/jar files
-classpath class search path of directories and zip/jar files
  A ; separated list of directories, JAR archives,
  and ZIP archives to search for class files.
-Dname=value
  set a system property
-verbose:[class|gc|jni]
  enable verbose output
-version  print product version and exit
-version:value
  require the specified version to run
-showversion  print product version and continue
-jre-restrict-search | -no-jre-restrict-search
  include/exclude user private JREs in the version search
-? -help  print this help message
-Xprint help on non-standard options
-ea[:packagename...|:classname]
-enableassertions[:packagename...|:classname]
  enable assertions with specified granularity
-da[:packagename...|:classname]
-disableassertions[:packagename...|:classname]
  disable assertions with specified granularity
-esa | -enablesystemassertions
  enable system assertions
-dsa | -disablesystemassertions
  disable system assertions
-agentlib:libname[=options]
  load native agent library libname, e.g. -agentlib:hprof
  see also, -agentlib:jdwp=help and -agentlib:hprof=help
-agentpath:pathname[=options]
  load native agent library by full pathname
-javaagent:jarpath[=options]
  load Java programming language agent, see java.lang.instrument

-splash:imagepath
  show splash screen with specified image
See http://www.oracle.com/technetwork/java/javase/documentation/index.html for m
ore details.

H:\if ERRORLEVEL 1 goto error

H:\set ERROR_CODE=1

H:\if not on ==  goto skipRcPost

H:\if  == on pause

H:\if  == on exit 1

H:\exit /B 1

H:\

Michael Tarullo
Contractor (Engility Corp)
Enterprise Architect
NSRR System Administrator
FAA WJH Technical Center
(609)485-5294

-Original Message-
From: Bernd Eckenfels [mailto:e...@zusammenkunft.net] 
Sent: Friday, April 17, 2015 3:53 PM
To: users@maven.apache.org
Subject: Re: Problem Running Maven

Hello,

you can try to set MAVEN_BATCH_ECHO=ON and MAVEN_SKIP_RC=On to see the 
commands the batch are executing and make sure you have no old config laying 
around.

What is your JAVA_HOME actually set to? Does it end in a \? 

I suspect it is related to the new .mvn\ directory handling. It should be 
visible if you enable command echos. Paste the output to some pastebin where 
you can show it.

 Do you have any .mvn\ directories? What does where java and where  mvn 
tell you (outside the directories where it works).

Gruss
Bernd


 Am
Fri, 17 Apr 2015 19:34:10 + schrieb michael.ctr.taru...@faa.gov:

 I have recently downloaded and unzipped Maven 3.3.1 in Windows 7.
 
 I updated my path environment variable to include 
 C:\Apache\Maven\apache-maven-3.3.1\bin.  I also added a JAVA_HOME

Re: Problem Running Maven

2015-04-17 Thread Bernd Eckenfels
Hello,

you can try to set MAVEN_BATCH_ECHO=ON and MAVEN_SKIP_RC=On to see
the commands the batch are executing and make sure you have no old
config laying around.

What is your JAVA_HOME actually set to? Does it end in a \? 

I suspect it is related to the new .mvn\ directory handling. It should
be visible if you enable command echos. Paste the output to some
pastebin where you can show it.

 Do you have any .mvn\ directories? What does where java and where
 mvn tell you (outside the directories where it works).

Gruss
Bernd


 Am
Fri, 17 Apr 2015 19:34:10 + schrieb michael.ctr.taru...@faa.gov:

 I have recently downloaded and unzipped Maven 3.3.1 in Windows 7.
 
 I updated my path environment variable to include
 C:\Apache\Maven\apache-maven-3.3.1\bin.  I also added a JAVA_HOME
 environment variable that points to my Java 8 JDK.  And created both
 an M2_HOME and M2 environment variable.
 
 When I enter mvn - -version on the command line I get the following:
 
 H:\mvn --version
 Usage: java [-options] class [args...]
(to execute a class)
or  java [-options] -jar jarfile [args...]
(to execute a jar file)
 where options include:
 -d32  use a 32-bit data model if available
 -d64  use a 64-bit data model if available
 -server   to select the server VM
   The default VM is server.
 
 -cp class search path of directories and zip/jar files
 -classpath class search path of directories and zip/jar files
   A ; separated list of directories, JAR archives,
   and ZIP archives to search for class files.
 -Dname=value
   set a system property
 -verbose:[class|gc|jni]
   enable verbose output
 -version  print product version and exit
 -version:value
   require the specified version to run
 -showversion  print product version and continue
 -jre-restrict-search | -no-jre-restrict-search
   include/exclude user private JREs in the version
 search -? -help  print this help message
 -Xprint help on non-standard options
 -ea[:packagename...|:classname]
 -enableassertions[:packagename...|:classname]
   enable assertions with specified granularity
 -da[:packagename...|:classname]
 -disableassertions[:packagename...|:classname]
   disable assertions with specified granularity
 -esa | -enablesystemassertions
   enable system assertions
 -dsa | -disablesystemassertions
   disable system assertions
 -agentlib:libname[=options]
   load native agent library libname, e.g.
 -agentlib:hprof see also, -agentlib:jdwp=help and -agentlib:hprof=help
 -agentpath:pathname[=options]
   load native agent library by full pathname
 -javaagent:jarpath[=options]
   load Java programming language agent, see
 java.lang.instrument
 
 -splash:imagepath
   show splash screen with specified image
 See
 http://www.oracle.com/technetwork/java/javase/documentation/index.html
 for more details.
 
 However, when I change to any of the following three directories:
 
 C:\Windows
 C:\Windows\System32
 C:\Apache\Maven\apache-maven-3.3.1\bin
 
 and enter mvn - -version on the command line I get the following:
 
 C:\Apache\Maven\apache-maven-3.3.1\binmvn --version
 Apache Maven 3.3.1 (cab6659f9874fa96462afef40fcf6bc033d58c1c;
 2015-03-13T16:10:27-04:00) Maven home:
 C:\Apache\Maven\apache-maven-3.3.1\bin\.. Java version: 1.8.0_31,
 vendor: Oracle Corporation Java home: C:\Program
 Files\Java\jdk1.8.0_31\jre Default locale: en_US, platform encoding:
 Cp1252 OS name: windows 7, version: 6.1, arch: amd64, family:
 dos
 
 If I run mvn - -version from any other directory I get the same
 results as reported when I run from H:\.
 
 
 Michael Tarullo
 Contractor (Engility Corp)
 Enterprise Architect
 NSRR System Administrator
 FAA WJH Technical Center
 (609)485-5294
 
 


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



RE: Problem Running Maven

2015-04-17 Thread Michael.CTR.Tarullo
As does it fail when I try running it from C:\.

But as I stated in my initial post, it does not fail if I run it in C:\Widows 
or C:\Windows\System32!!!

I'm not sure why it should be failing from any directory from which it's 
started.

Does Maven assume that the directory when you are launching it from is 1)either 
already a project or 2)going to be a project?

Mike

Michael Tarullo
Contractor (Engility Corp)
Enterprise Architect
NSRR System Administrator
FAA WJH Technical Center
(609)485-5294

-Original Message-
From: Bernd Eckenfels [mailto:e...@zusammenkunft.net] 
Sent: Friday, April 17, 2015 4:30 PM
To: users@maven.apache.org
Subject: Re: Problem Running Maven

Hello,

hm, the problem is the \ in the .multiModuleProjectDirectory (caused by the 
fact that you run it in a toplevel directory I guess).

I guess this could be fixed, but then again, does it work when you use a subdir 
of the h:\ drive? IS this really a project directory?

I just tried it and can reproduce it, when I am in C:\ it fails, also. 

Gruss
Bernd


 Am Fri, 17 Apr 2015 20:10:17
+ schrieb michael.ctr.taru...@faa.gov:
 H:\cd ..
  H:\IF H:\ == H:\ goto baseDirNotFound
 H:\set MAVEN_PROJECTBASEDIR=H:\
 H:\cd H:\
...
 H:\C:\Program Files\Java\jdk1.8.0_31\bin\java.exe-classpath
 C:\Apache\Ma
 ven\apache-maven-3.3.1\boot\plexus-classworlds-2.5.2.jar
 -Dclassworlds.conf=C: \Apache\Maven\apache-maven-3.3.1\bin\m2.conf
 -Dmaven.home=C:\Apache\Maven\apac he-maven-3.3.1
 -Dmaven.multiModuleProjectDirectory=H:\ org.codehaus.plexus.cl 
 assworlds.launcher.Launcher --version
  


 Usage: java [-options] class
 [args...] (to execute a class) or  java [-options] -jar jarfile 
 [args...] (to execute a jar file) where options include:
 -d32  use a 32-bit data model if available
 -d64  use a 64-bit data model if available
 -server   to select the server VM
   The default VM is server.
 
 -cp class search path of directories and zip/jar files
 -classpath class search path of directories and zip/jar files
   A ; separated list of directories, JAR archives,
   and ZIP archives to search for class files.
 -Dname=value
   set a system property
 -verbose:[class|gc|jni]
   enable verbose output
 -version  print product version and exit
 -version:value
   require the specified version to run
 -showversion  print product version and continue
 -jre-restrict-search | -no-jre-restrict-search
   include/exclude user private JREs in the version
 search -? -help  print this help message
 -Xprint help on non-standard options
 -ea[:packagename...|:classname]
 -enableassertions[:packagename...|:classname]
   enable assertions with specified granularity
 -da[:packagename...|:classname]
 -disableassertions[:packagename...|:classname]
   disable assertions with specified granularity
 -esa | -enablesystemassertions
   enable system assertions
 -dsa | -disablesystemassertions
   disable system assertions
 -agentlib:libname[=options]
   load native agent library libname, e.g.
 -agentlib:hprof see also, -agentlib:jdwp=help and -agentlib:hprof=help
 -agentpath:pathname[=options]
   load native agent library by full pathname
 -javaagent:jarpath[=options]
   load Java programming language agent, see 
 java.lang.instrument
 
 -splash:imagepath
   show splash screen with specified image See 
 http://www.oracle.com/technetwork/java/javase/documentation/index.html
 for m ore details.
 
 H:\if ERRORLEVEL 1 goto error
 
 H:\set ERROR_CODE=1
 
 H:\if not on ==  goto skipRcPost
 
 H:\if  == on pause
 
 H:\if  == on exit 1
 
 H:\exit /B 1
 
 H:\
 
 Michael Tarullo
 Contractor (Engility Corp)
 Enterprise Architect
 NSRR System Administrator
 FAA WJH Technical Center
 (609)485-5294
 
 -Original Message-
 From: Bernd Eckenfels [mailto:e...@zusammenkunft.net]
 Sent: Friday, April 17, 2015 3:53 PM
 To: users@maven.apache.org
 Subject: Re: Problem Running Maven
 
 Hello,
 
 you can try to set MAVEN_BATCH_ECHO=ON and MAVEN_SKIP_RC=On to see 
 the commands the batch are executing and make sure you have no old 
 config laying around.
 
 What is your JAVA_HOME actually set to? Does it end in a \? 
 
 I suspect it is related to the new .mvn\ directory handling. It should 
 be visible if you enable command echos. Paste the output to some 
 pastebin where you can show it.
 
  Do you have any .mvn\ directories? What does where java and where  
 mvn tell you (outside the directories where it works).
 
 Gruss
 Bernd
 
 
  Am
 Fri, 17 Apr 2015 19:34:10 + schrieb michael.ctr.taru...@faa.gov:
 
  I have recently downloaded and unzipped Maven 3.3.1 in Windows 7.
  
  I updated my path

RE: Problem Running Maven

2015-04-17 Thread Michael.CTR.Tarullo
Ah, I see.  The problem is starting it in a root directory.

Thanks.

Michael Tarullo
Contractor (Engility Corp)
Enterprise Architect
NSRR System Administrator
FAA WJH Technical Center
(609)485-5294


-Original Message-
From: Bernd Eckenfels [mailto:e...@zusammenkunft.net] 
Sent: Friday, April 17, 2015 4:41 PM
To: users@maven.apache.org
Subject: Re: Problem Running Maven

Am Fri, 17 Apr 2015 20:38:03 +
schrieb michael.ctr.taru...@faa.gov:

 But as I stated in my initial post, it does not fail if I run it in 
 C:\Widows or C:\Windows\System32!!!

As I said it works in all directories if they are not the root of a drive.

https://issues.apache.org/jira/browse/MNG-5804

Gruss
Bernd

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Problem Running Maven

2015-04-17 Thread Bernd Eckenfels
Hello,

hm, the problem is the \ in the .multiModuleProjectDirectory (caused by
the fact that you run it in a toplevel directory I guess).

I guess this could be fixed, but then again, does it work when you use
a subdir of the h:\ drive? IS this really a project directory?

I just tried it and can reproduce it, when I am in C:\ it fails,
also. 

Gruss
Bernd


 Am Fri, 17 Apr 2015 20:10:17
+ schrieb michael.ctr.taru...@faa.gov:
 H:\cd ..
  H:\IF H:\ == H:\ goto baseDirNotFound
 H:\set MAVEN_PROJECTBASEDIR=H:\
 H:\cd H:\
...
 H:\C:\Program Files\Java\jdk1.8.0_31\bin\java.exe-classpath
 C:\Apache\Ma
 ven\apache-maven-3.3.1\boot\plexus-classworlds-2.5.2.jar
 -Dclassworlds.conf=C: \Apache\Maven\apache-maven-3.3.1\bin\m2.conf
 -Dmaven.home=C:\Apache\Maven\apac he-maven-3.3.1
 -Dmaven.multiModuleProjectDirectory=H:\ org.codehaus.plexus.cl
 assworlds.launcher.Launcher --version
  


 Usage: java [-options] class
 [args...] (to execute a class) or  java [-options] -jar jarfile
 [args...] (to execute a jar file)
 where options include:
 -d32  use a 32-bit data model if available
 -d64  use a 64-bit data model if available
 -server   to select the server VM
   The default VM is server.
 
 -cp class search path of directories and zip/jar files
 -classpath class search path of directories and zip/jar files
   A ; separated list of directories, JAR archives,
   and ZIP archives to search for class files.
 -Dname=value
   set a system property
 -verbose:[class|gc|jni]
   enable verbose output
 -version  print product version and exit
 -version:value
   require the specified version to run
 -showversion  print product version and continue
 -jre-restrict-search | -no-jre-restrict-search
   include/exclude user private JREs in the version
 search -? -help  print this help message
 -Xprint help on non-standard options
 -ea[:packagename...|:classname]
 -enableassertions[:packagename...|:classname]
   enable assertions with specified granularity
 -da[:packagename...|:classname]
 -disableassertions[:packagename...|:classname]
   disable assertions with specified granularity
 -esa | -enablesystemassertions
   enable system assertions
 -dsa | -disablesystemassertions
   disable system assertions
 -agentlib:libname[=options]
   load native agent library libname, e.g.
 -agentlib:hprof see also, -agentlib:jdwp=help and -agentlib:hprof=help
 -agentpath:pathname[=options]
   load native agent library by full pathname
 -javaagent:jarpath[=options]
   load Java programming language agent, see
 java.lang.instrument
 
 -splash:imagepath
   show splash screen with specified image
 See
 http://www.oracle.com/technetwork/java/javase/documentation/index.html
 for m ore details.
 
 H:\if ERRORLEVEL 1 goto error
 
 H:\set ERROR_CODE=1
 
 H:\if not on ==  goto skipRcPost
 
 H:\if  == on pause
 
 H:\if  == on exit 1
 
 H:\exit /B 1
 
 H:\
 
 Michael Tarullo
 Contractor (Engility Corp)
 Enterprise Architect
 NSRR System Administrator
 FAA WJH Technical Center
 (609)485-5294
 
 -Original Message-
 From: Bernd Eckenfels [mailto:e...@zusammenkunft.net] 
 Sent: Friday, April 17, 2015 3:53 PM
 To: users@maven.apache.org
 Subject: Re: Problem Running Maven
 
 Hello,
 
 you can try to set MAVEN_BATCH_ECHO=ON and MAVEN_SKIP_RC=On to
 see the commands the batch are executing and make sure you have no
 old config laying around.
 
 What is your JAVA_HOME actually set to? Does it end in a \? 
 
 I suspect it is related to the new .mvn\ directory handling. It
 should be visible if you enable command echos. Paste the output to
 some pastebin where you can show it.
 
  Do you have any .mvn\ directories? What does where java and
 where  mvn tell you (outside the directories where it works).
 
 Gruss
 Bernd
 
 
  Am
 Fri, 17 Apr 2015 19:34:10 + schrieb michael.ctr.taru...@faa.gov:
 
  I have recently downloaded and unzipped Maven 3.3.1 in Windows 7.
  
  I updated my path environment variable to include 
  C:\Apache\Maven\apache-maven-3.3.1\bin.  I also added a JAVA_HOME 
  environment variable that points to my Java 8 JDK.  And created
  both an M2_HOME and M2 environment variable.
  
  When I enter mvn - -version on the command line I get the following:
  
  H:\mvn --version
  Usage: java [-options] class [args...]
 (to execute a class)
 or  java [-options] -jar jarfile [args...]
 (to execute a jar file)
  where options include:
  -d32  use a 32-bit data model if available
  -d64  use a 64-bit data model if available
  -server   to select the server VM
The default VM

Re: Problem Running Maven

2015-04-17 Thread Bernd Eckenfels
Am Fri, 17 Apr 2015 20:38:03 +
schrieb michael.ctr.taru...@faa.gov:

 But as I stated in my initial post, it does not fail if I run it in
 C:\Widows or C:\Windows\System32!!!

As I said it works in all directories if they are not the root of a
drive.

https://issues.apache.org/jira/browse/MNG-5804

Gruss
Bernd

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org




Re: Problem Running Maven

2015-04-17 Thread Dan Tran
BTW, no need to configure M2_HOME env any more. the startup script does
that for you

-D

On Fri, Apr 17, 2015 at 1:49 PM, michael.ctr.taru...@faa.gov wrote:

 Ah, I see.  The problem is starting it in a root directory.

 Thanks.

 Michael Tarullo
 Contractor (Engility Corp)
 Enterprise Architect
 NSRR System Administrator
 FAA WJH Technical Center
 (609)485-5294


 -Original Message-
 From: Bernd Eckenfels [mailto:e...@zusammenkunft.net]
 Sent: Friday, April 17, 2015 4:41 PM
 To: users@maven.apache.org
 Subject: Re: Problem Running Maven

 Am Fri, 17 Apr 2015 20:38:03 +
 schrieb michael.ctr.taru...@faa.gov:

  But as I stated in my initial post, it does not fail if I run it in
  C:\Widows or C:\Windows\System32!!!

 As I said it works in all directories if they are not the root of a drive.

 https://issues.apache.org/jira/browse/MNG-5804

 Gruss
 Bernd

 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org


 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org




Problem running maven site:site outside the pom.xml directory

2008-02-20 Thread Mael Caldas
Hello,

I'm running mvn site:site two dirs above the pom's directory, specifying the
pom.xml location with the --file argument and the site is generated wrong.
If I run in the same directory of the pom.xml, everything goes right.

That is my dir structure:

My_CC_View\
   |
   |My_CC_VOB\
  |
  |project
|
|___pom.xml

So, I go to the *My_CC_View* and run the command:

*mvn -f My_CC_VOB/project/pom.xml site:site site:deploy

*And the build goes ok, but the site is generated as the *My_CC_View* was
the project, without any links and descriptions.

I have this need because I'm running the command on Continuum and had the
same problem described here: http://jira.codehaus.org/browse/SCM-288
I put the correct pom.xml location on continuum (*My_CC_VOB/project/pom.xml)
*, the project is checked out, the build goes ok, but the site not!

Any Idea!!!???


Thanks!!!


Re: Problem running maven site:site outside the pom.xml directory

2008-02-20 Thread Mael Caldas
Another information...
I noticed that the site is ways wrong generated if I run maven outside the
pom.xml 's directory, specifying the pom.xml location with the --file
argument!

Is that a site plugin bug!???
Any ideas!?

Thanks a lot!


On Feb 20, 2008 3:25 PM, Mael Caldas [EMAIL PROTECTED] wrote:

 Hello,

 I'm running mvn site:site two dirs above the pom's directory, specifying
 the pom.xml location with the --file argument and the site is generated
 wrong. If I run in the same directory of the pom.xml, everything goes
 right.

 That is my dir structure:

 My_CC_View\
|
|My_CC_VOB\
   |
   |project
 |
 |___pom.xml

 So, I go to the *My_CC_View* and run the command:

 *mvn -f My_CC_VOB/project/pom.xml site:site site:deploy

 *And the build goes ok, but the site is generated as the *My_CC_View* was
 the project, without any links and descriptions.

 I have this need because I'm running the command on Continuum and had the
 same problem described here: http://jira.codehaus.org/browse/SCM-288
 I put the correct pom.xml location on continuum (*
 My_CC_VOB/project/pom.xml)*, the project is checked out, the build goes
 ok, but the site not!

 Any Idea!!!???


 Thanks!!!




Re: Problem running Maven on an Alpha using Compaq Tru64 UNIX V5.1B (Rev. 2650)

2004-01-14 Thread Erik Husby
Well, it is obviously a bug in the Alpha JVM. The default JVM is the 
fast one which is known to have some problems with native code (ie. 
the code that access the file system to find jars and other useful 
things). So by setting MAVEN_OPTS to -Xmx256mb -classic, I can force 
the JVM into classic mode which appears to run.

Erik Husby wrote:

I've installed Maven-1.0-RC1 on my Windows XP system and my Alpha 
using Compaq Tru64 UNIX V5.1B (Rev. 2650);

Using a shared drive, if I build the project on the Windows XP system, 
it works fine. But if I build, using the same set of files on the Unix 
box, Maven fails to load the JUnitTask as shown below.



--- Unix Maven
107 11:41am [EMAIL PROTECTED] ~/workarea/SquidBuild/sequence/common  
maven test:test
__  __
|  \/  |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|  v. 1.0-rc1-SNAPSHOT

java:prepare-filesystem:

java:compile:
   [echo] Compiling to 
/home/radon00/mhusby/workarea/SquidBuild/sequence/common/target/classes

BUILD FAILED
File.. 
file:/home/radon00/mhusby/.maven/plugins/maven-test-plugin-1.4/
Element... taskdef
Line.. 89
Column 9
taskdef class org.apache.tools.ant.taskdefs.optional.junit.JUnitTask 
cannot be found
Total time: 12 seconds
Finished at: Thu Jan 08 11:41:49 EST 2004

7.487u 5.990s 0:14.39 93.6%0+581k 10+30io 0pf+0w
108 11:41am [EMAIL PROTECTED] ~/workarea/SquidBuild/sequence/common 
--- Windows XP Maven
F:\workarea\SquidBuild\sequence\commonmaven test
__  __
|  \/  |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|  v. 1.0-rc1-SNAPSHOT
Attempting to download maven-SNAPSHOT.jar.
Overriding previous definition of reference to clover.classpath
java:prepare-filesystem:
java:compile:
   [echo] Compiling to 
F:\workarea\SquidBuild\sequence\common/target/classes

java:jar-resources:

test:prepare-filesystem:

test:test-resources:

test:compile:

test:test:
   [junit] Running edu.mit.wi.genome.common.dba.AllTests
   [junit] Tests run: 29, Failures: 0, Errors: 1, Time elapsed: 3.225 sec

Its like Maven can't find its jar files. I've verified that 
$MAVEN_HOME/lib contains the same set of jar files on both systems.

Any suggestions on things to look at would be really appreciated.

--
Erik Husby
Team Lead for Software Quality Automation
Genome Center at MIT
Rm. 2192
320 Charles St
Cambridge, MA 02141-2023
mobile: 781.354.6669
office: 617.258.9227
[EMAIL PROTECTED]


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


Re: Problem running Maven on an Alpha using Compaq Tru64 UNIX V5.1B (Rev. 2650)

2004-01-14 Thread Erik Husby
I was premature in my report. Maven still doesn't run on Alpha. I've 
tracked the problem down to the maven-xdoc-plugin-1.4/plugin.jelly when 
it tries to register a report  using the attainGoal 
name=${report}:register

I suspect the problem is something similar to junit class loading issue 
which necessities the property maven.junit.fork=yes

If I run the report register goal directly, maven succeeds. The problem 
occurs when the report registration is called from 
xdoc:register-reports. I.E. maven maven-junit-report-plugin:register 
succeeds whereas maven xdoc:register-reports fails.

If there is any experienced java developer who would care to comment 
with workaround suggestions, I would appreciate that.

Erik Husby wrote:

Well, it is obviously a bug in the Alpha JVM. The default JVM is the 
fast one which is known to have some problems with native code (ie. 
the code that access the file system to find jars and other useful 
things). So by setting MAVEN_OPTS to -Xmx256mb -classic, I can force 
the JVM into classic mode which appears to run.

Erik Husby wrote:

I've installed Maven-1.0-RC1 on my Windows XP system and my Alpha 
using Compaq Tru64 UNIX V5.1B (Rev. 2650);

Using a shared drive, if I build the project on the Windows XP 
system, it works fine. But if I build, using the same set of files on 
the Unix box, Maven fails to load the JUnitTask as shown below.



--- Unix Maven
107 11:41am [EMAIL PROTECTED] ~/workarea/SquidBuild/sequence/common  
maven test:test
__  __
|  \/  |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|  v. 1.0-rc1-SNAPSHOT

java:prepare-filesystem:

java:compile:
   [echo] Compiling to 
/home/radon00/mhusby/workarea/SquidBuild/sequence/common/target/classes

BUILD FAILED
File.. 
file:/home/radon00/mhusby/.maven/plugins/maven-test-plugin-1.4/
Element... taskdef
Line.. 89
Column 9
taskdef class org.apache.tools.ant.taskdefs.optional.junit.JUnitTask 
cannot be found
Total time: 12 seconds
Finished at: Thu Jan 08 11:41:49 EST 2004

7.487u 5.990s 0:14.39 93.6%0+581k 10+30io 0pf+0w
108 11:41am [EMAIL PROTECTED] ~/workarea/SquidBuild/sequence/common 
--- Windows XP Maven
F:\workarea\SquidBuild\sequence\commonmaven test
__  __
|  \/  |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|  v. 1.0-rc1-SNAPSHOT
Attempting to download maven-SNAPSHOT.jar.
Overriding previous definition of reference to clover.classpath
java:prepare-filesystem:
java:compile:
   [echo] Compiling to 
F:\workarea\SquidBuild\sequence\common/target/classes

java:jar-resources:

test:prepare-filesystem:

test:test-resources:

test:compile:

test:test:
   [junit] Running edu.mit.wi.genome.common.dba.AllTests
   [junit] Tests run: 29, Failures: 0, Errors: 1, Time elapsed: 3.225 
sec


Its like Maven can't find its jar files. I've verified that 
$MAVEN_HOME/lib contains the same set of jar files on both systems.

Any suggestions on things to look at would be really appreciated.


--
Erik Husby
Team Lead for Software Quality Automation
Genome Center at MIT
Rm. 2192
320 Charles St
Cambridge, MA 02141-2023
mobile: 781.354.6669
office: 617.258.9227
[EMAIL PROTECTED]


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


Re: Problem running Maven on an Alpha using Compaq Tru64 UNIX V5.1B (Rev. 2650)

2004-01-09 Thread Erik Husby
What version of the JVM were you using?

I've currently using 1.4.1-1 but I believe I have access to other 
versions which I will be trying today and reporting on.

I don't have the option to move to Linux for this process.

Jake Ewerdt wrote:

I had exactly the same problem with Maven (1.0-rc1) and Tru64.  I could run 
all ant tasks but no ant-optional tasks (junit, chown, replaceregexp, ...).  
I tried with ant 1.5.4 and 1.6.  Spent a day or so trying to get it to work, 
and eventually gave up and moved everything over to Linux where it works 
correctly.

I would also be very interested in a solution!

-jake

On Thursday 08 January 2004 12:05 pm, Erik Husby wrote:
 

I've installed Maven-1.0-RC1 on my Windows XP system and my Alpha using
Compaq Tru64 UNIX V5.1B (Rev. 2650);
Using a shared drive, if I build the project on the Windows XP system,
it works fine. But if I build, using the same set of files on the Unix
box, Maven fails to load the JUnitTask as shown below.


--- Unix Maven
107 11:41am [EMAIL PROTECTED] ~/workarea/SquidBuild/sequence/common  maven
test:test
__  __
|  \/  |__ _Apache__ ___
|
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|
|_|  |_\__,_|\_/\___|_||_|  v. 1.0-rc1-SNAPSHOT
java:prepare-filesystem:

java:compile:
   [echo] Compiling to
/home/radon00/mhusby/workarea/SquidBuild/sequence/common/target/classes
BUILD FAILED
File.. file:/home/radon00/mhusby/.maven/plugins/maven-test-plugin-1.4/
Element... taskdef
Line.. 89
Column 9
taskdef class org.apache.tools.ant.taskdefs.optional.junit.JUnitTask
cannot be found
Total time: 12 seconds
Finished at: Thu Jan 08 11:41:49 EST 2004
7.487u 5.990s 0:14.39 93.6%0+581k 10+30io 0pf+0w
108 11:41am [EMAIL PROTECTED] ~/workarea/SquidBuild/sequence/common 
--- Windows XP Maven
F:\workarea\SquidBuild\sequence\commonmaven test
__  __
|  \/  |__ _Apache__ ___
|
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|
|_|  |_\__,_|\_/\___|_||_|  v. 1.0-rc1-SNAPSHOT
Attempting to download maven-SNAPSHOT.jar.
Overriding previous definition of reference to clover.classpath
java:prepare-filesystem:
java:compile:
   [echo] Compiling to
F:\workarea\SquidBuild\sequence\common/target/classes
java:jar-resources:

test:prepare-filesystem:

test:test-resources:

test:compile:

test:test:
   [junit] Running edu.mit.wi.genome.common.dba.AllTests
   [junit] Tests run: 29, Failures: 0, Errors: 1, Time elapsed: 3.225 sec

Its like Maven can't find its jar files. I've verified that
$MAVEN_HOME/lib contains the same set of jar files on both systems.
Any suggestions on things to look at would be really appreciated.
   



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

--
Erik Husby
Team Lead for Software Quality Automation
Genome Center at MIT
Rm. 2192
320 Charles St
Cambridge, MA 02141-2023
mobile: 781.354.6669
office: 617.258.9227
[EMAIL PROTECTED]


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


Re: Problem running Maven on an Alpha using Compaq Tru64 UNIX V5.1B (Rev. 2650)

2004-01-09 Thread Jake Ewerdt
The 1.3.1 version included with Tru64 in the /usr/java1.3 directory.

java version 1.3.1
Java(TM) 2 Runtime Environment, Standard Edition
Fast VM (build 1.3.1-6, native threads, mixed mode, precompiled rt.jar, 
07/14/2003-13:20)


On Friday 09 January 2004 09:18 am, Erik Husby wrote:
 What version of the JVM were you using?

 I've currently using 1.4.1-1 but I believe I have access to other
 versions which I will be trying today and reporting on.

 I don't have the option to move to Linux for this process.

 Jake Ewerdt wrote:
 I had exactly the same problem with Maven (1.0-rc1) and Tru64.  I could
  run all ant tasks but no ant-optional tasks (junit, chown, replaceregexp,
  ...). I tried with ant 1.5.4 and 1.6.  Spent a day or so trying to get it
  to work, and eventually gave up and moved everything over to Linux where
  it works correctly.
 
 I would also be very interested in a solution!
 
 -jake
 
 On Thursday 08 January 2004 12:05 pm, Erik Husby wrote:
 I've installed Maven-1.0-RC1 on my Windows XP system and my Alpha using
 Compaq Tru64 UNIX V5.1B (Rev. 2650);
 
 Using a shared drive, if I build the project on the Windows XP system,
 it works fine. But if I build, using the same set of files on the Unix
 box, Maven fails to load the JUnitTask as shown below.
 
 
 
 --- Unix Maven
 107 11:41am [EMAIL PROTECTED] ~/workarea/SquidBuild/sequence/common  maven
 test:test
  __  __
 
 |  \/  |__ _Apache__ ___
 |
 | |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
 |
 |_|  |_\__,_|\_/\___|_||_|  v. 1.0-rc1-SNAPSHOT
 
 java:prepare-filesystem:
 
 java:compile:
 [echo] Compiling to
 /home/radon00/mhusby/workarea/SquidBuild/sequence/common/target/classes
 
 BUILD FAILED
 File..
  file:/home/radon00/mhusby/.maven/plugins/maven-test-plugin-1.4/
  Element... taskdef
 Line.. 89
 Column 9
 taskdef class org.apache.tools.ant.taskdefs.optional.junit.JUnitTask
 cannot be found
 Total time: 12 seconds
 Finished at: Thu Jan 08 11:41:49 EST 2004
 
 7.487u 5.990s 0:14.39 93.6%0+581k 10+30io 0pf+0w
 108 11:41am [EMAIL PROTECTED] ~/workarea/SquidBuild/sequence/common 
 
 --- Windows XP Maven
 F:\workarea\SquidBuild\sequence\commonmaven test
  __  __
 
 |  \/  |__ _Apache__ ___
 |
 | |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
 |
 |_|  |_\__,_|\_/\___|_||_|  v. 1.0-rc1-SNAPSHOT
 
 Attempting to download maven-SNAPSHOT.jar.
 Overriding previous definition of reference to clover.classpath
 java:prepare-filesystem:
 
 java:compile:
 [echo] Compiling to
 F:\workarea\SquidBuild\sequence\common/target/classes
 
 java:jar-resources:
 
 test:prepare-filesystem:
 
 test:test-resources:
 
 test:compile:
 
 test:test:
 [junit] Running edu.mit.wi.genome.common.dba.AllTests
 [junit] Tests run: 29, Failures: 0, Errors: 1, Time elapsed: 3.225
  sec 
 
 Its like Maven can't find its jar files. I've verified that
 $MAVEN_HOME/lib contains the same set of jar files on both systems.
 
 Any suggestions on things to look at would be really appreciated.
 
 -
 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]



Problem running Maven on an Alpha using Compaq Tru64 UNIX V5.1B (Rev. 2650)

2004-01-08 Thread Erik Husby
I've installed Maven-1.0-RC1 on my Windows XP system and my Alpha using 
Compaq Tru64 UNIX V5.1B (Rev. 2650);

Using a shared drive, if I build the project on the Windows XP system, 
it works fine. But if I build, using the same set of files on the Unix 
box, Maven fails to load the JUnitTask as shown below.



--- Unix Maven
107 11:41am [EMAIL PROTECTED] ~/workarea/SquidBuild/sequence/common  maven 
test:test
__  __
|  \/  |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|  v. 1.0-rc1-SNAPSHOT

java:prepare-filesystem:

java:compile:
   [echo] Compiling to 
/home/radon00/mhusby/workarea/SquidBuild/sequence/common/target/classes

BUILD FAILED
File.. file:/home/radon00/mhusby/.maven/plugins/maven-test-plugin-1.4/
Element... taskdef
Line.. 89
Column 9
taskdef class org.apache.tools.ant.taskdefs.optional.junit.JUnitTask 
cannot be found
Total time: 12 seconds
Finished at: Thu Jan 08 11:41:49 EST 2004

7.487u 5.990s 0:14.39 93.6%0+581k 10+30io 0pf+0w
108 11:41am [EMAIL PROTECTED] ~/workarea/SquidBuild/sequence/common 
--- Windows XP Maven
F:\workarea\SquidBuild\sequence\commonmaven test
__  __
|  \/  |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|  v. 1.0-rc1-SNAPSHOT
Attempting to download maven-SNAPSHOT.jar.
Overriding previous definition of reference to clover.classpath
java:prepare-filesystem:
java:compile:
   [echo] Compiling to 
F:\workarea\SquidBuild\sequence\common/target/classes

java:jar-resources:

test:prepare-filesystem:

test:test-resources:

test:compile:

test:test:
   [junit] Running edu.mit.wi.genome.common.dba.AllTests
   [junit] Tests run: 29, Failures: 0, Errors: 1, Time elapsed: 3.225 sec

Its like Maven can't find its jar files. I've verified that 
$MAVEN_HOME/lib contains the same set of jar files on both systems.

Any suggestions on things to look at would be really appreciated.

--
Erik Husby
Team Lead for Software Quality Automation
Genome Center at MIT
Rm. 2192
320 Charles St
Cambridge, MA 02141-2023
mobile: 781.354.6669
office: 617.258.9227
[EMAIL PROTECTED]


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


Re: Problem running Maven on an Alpha using Compaq Tru64 UNIX V5.1B (Rev. 2650)

2004-01-08 Thread Jake Ewerdt
I had exactly the same problem with Maven (1.0-rc1) and Tru64.  I could run 
all ant tasks but no ant-optional tasks (junit, chown, replaceregexp, ...).  
I tried with ant 1.5.4 and 1.6.  Spent a day or so trying to get it to work, 
and eventually gave up and moved everything over to Linux where it works 
correctly.

I would also be very interested in a solution!

-jake


On Thursday 08 January 2004 12:05 pm, Erik Husby wrote:
 I've installed Maven-1.0-RC1 on my Windows XP system and my Alpha using
 Compaq Tru64 UNIX V5.1B (Rev. 2650);

 Using a shared drive, if I build the project on the Windows XP system,
 it works fine. But if I build, using the same set of files on the Unix
 box, Maven fails to load the JUnitTask as shown below.



 --- Unix Maven
 107 11:41am [EMAIL PROTECTED] ~/workarea/SquidBuild/sequence/common  maven
 test:test
  __  __

 |  \/  |__ _Apache__ ___
 |
 | |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
 |
 |_|  |_\__,_|\_/\___|_||_|  v. 1.0-rc1-SNAPSHOT

 java:prepare-filesystem:

 java:compile:
 [echo] Compiling to
 /home/radon00/mhusby/workarea/SquidBuild/sequence/common/target/classes

 BUILD FAILED
 File.. file:/home/radon00/mhusby/.maven/plugins/maven-test-plugin-1.4/
 Element... taskdef
 Line.. 89
 Column 9
 taskdef class org.apache.tools.ant.taskdefs.optional.junit.JUnitTask
 cannot be found
 Total time: 12 seconds
 Finished at: Thu Jan 08 11:41:49 EST 2004

 7.487u 5.990s 0:14.39 93.6%0+581k 10+30io 0pf+0w
 108 11:41am [EMAIL PROTECTED] ~/workarea/SquidBuild/sequence/common 

 --- Windows XP Maven
 F:\workarea\SquidBuild\sequence\commonmaven test
  __  __

 |  \/  |__ _Apache__ ___
 |
 | |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
 |
 |_|  |_\__,_|\_/\___|_||_|  v. 1.0-rc1-SNAPSHOT

 Attempting to download maven-SNAPSHOT.jar.
 Overriding previous definition of reference to clover.classpath
 java:prepare-filesystem:

 java:compile:
 [echo] Compiling to
 F:\workarea\SquidBuild\sequence\common/target/classes

 java:jar-resources:

 test:prepare-filesystem:

 test:test-resources:

 test:compile:

 test:test:
 [junit] Running edu.mit.wi.genome.common.dba.AllTests
 [junit] Tests run: 29, Failures: 0, Errors: 1, Time elapsed: 3.225 sec
 

 Its like Maven can't find its jar files. I've verified that
 $MAVEN_HOME/lib contains the same set of jar files on both systems.

 Any suggestions on things to look at would be really appreciated.


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