You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Bart Zagers <ba...@gmail.com> on 2006/10/08 14:45:03 UTC

problem getting started

Hey,

I'm trying Maven2 for the first time and have troubles getting started
(using the "Getting started" guide)

I started with:
  mvn archetype:create -DgroupId=org.vac.app -DartifactId=VacApp
and then
  mvn compile 
so far so good.
But then i tried 
  mvn test
and this gave me

[INFO] Scanning for projects...
[INFO]
------------------------------------------------------------------------
---
[INFO] Building Maven Quick Start Archetype
[INFO]    task-segment: [test]
[INFO]
------------------------------------------------------------------------
---
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:testCompile]
Compiling 1 source file to D:\test\VacApp\target\test-classes
[INFO] [surefire:test]
[INFO] Surefire report directory: D:\test\VacApp\target\surefire-reports
Het systeem kan het opgegeven pad niet vinden.
Het systeem kan het opgegeven pad niet vinden.
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] There are test failures.
[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 11 seconds
[INFO] Finished at: Sun Oct 08 14:37:21 CEST 2006
[INFO] Final Memory: 3M/10M
[INFO]
------------------------------------------------------------------------

The dutch system message says "The system cannot find the given path"
I have no idea at all what is going wrong (running WinXP, jdk1.5.0_09, maven
2.0.4)
-- 
View this message in context: http://www.nabble.com/problem-getting-started-tf2404688.html#a6703584
Sent from the Maven - Users mailing list archive at Nabble.com.


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


Re: problem getting started

Posted by Bart Zagers <ba...@gmail.com>.
Thanks,
The "mvn test --debug" helped me finding my problem. I found the following
in the trace:

[DEBUG]   D:\test\VacApp\target\classes
[DEBUG]   D:\test\VacApp\target\test-classes
[DEBUG]   d:\maven\repository\junit\junit\3.8.1\junit-3.8.1.jar
[DEBUG] Setting system property [localRepository]=[d:/maven/repository]
[DEBUG] Setting system property [basedir]=[D:\test\VacApp]
[INFO] Surefire report directory: D:\test\VacApp\target\surefire-reports
Forking command line: java -classpath
d:\maven\repository\org\apache\maven\surefire\surefire-api\2.0\surefire-api-2.0.jar;d:\maven\repository\org\codehaus\plexus\plexus-utils\1.1\plexus-utils-1.1.jar;d:\maven\repository\org\apache\maven\surefire\surefire-booter\2.0\surefire-booter-2.0.jar
org.apache.maven.surefire.booter.SurefireBooter
C:\DOCUME~1\B&L\LOCALS~1\Temp\surefire11918tmp
C:\DOCUME~1\B&L\LOCALS~1\Temp\surefire11919tmp

On my system I have the standard windows temp directories defined in the
user's documents and settings and apparently surefire doesn't like either
the ~1 directory names or (more likely) my windows user name 'B&L' with an
'&' (don't ask why it is like that).
When I switched TEMP and TMP to something like c:\temp, my problem was
solved.

Is this worth filing somewhere and if so, where?

Bart.


mmistroni wrote:
> 
> hello,
>  can you run mvn --debug  to have more informations?
> 
> hth
>  marco
> 
> On 10/9/06, Bart Zagers <ba...@gmail.com> wrote:
>>
>>
>> I don't think the problem is there, it's the basic generated pom
>>
>> <project xmlns="http://maven.apache.org/POM/4.0.0"
>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>>   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
>> http://maven.apache.org/maven-v4_0_0.xsd">
>>   <modelVersion>4.0.0</modelVersion>
>>   <groupId>org.vac.app</groupId>
>>   <artifactId>VacApp</artifactId>
>>   <packaging>jar</packaging>
>>   <version>1.0-SNAPSHOT</version>
>>   <name>Maven Quick Start Archetype</name>
>>   <url>http://maven.apache.org</url>
>>   <dependencies>
>>     <dependency>
>>       <groupId>junit</groupId>
>>       <artifactId>junit</artifactId>
>>       <version>3.8.1</version>
>>       <scope>test</scope>
>>     </dependency>
>>   </dependencies>
>> </project>
>>
>> The only thing I have changed is the local repository in the
>> settings.xml:
>> ...
>> <localRepository>D:/test/repository</localRepository>
>> ...
>>
>> In the meantime I have tried it on a secondary machine (same jdk, same
>> Maven) and there it works fine.
>> mvn archetype:create -DgroupId=org.vac.app -DartifactId=VacApp
>> mvn test
>>
>>
>>
>> Naess, Ronny wrote:
>> >
>> > Can you paste your POM?
>> >
>> >
>> > -----Opprinnelig melding-----
>> > Fra: Bart Zagers [mailto:bart.zagers@gmail.com]
>> > Sendt: 9. oktober 2006 09:57
>> > Til: users@maven.apache.org
>> > Emne: Re: problem getting started
>> >
>> >
>> > This doesn't really help, the intro is the same/similar as with the
>> > basic Maven starting guide and naturally does not mention my basic (and
>> > probably
>> > stupid) problem.
>> >
>> > [INFO] [compiler:testCompile]
>> > Compiling 1 source file to D:\test\VacApp\target\test-classes
>> > [INFO] [surefire:test]
>> > [INFO] Surefire report directory:
>> D:\test\VacApp\target\surefire-reports
>> > Het systeem kan het opgegeven pad niet vinden.
>> > Het systeem kan het opgegeven pad niet vinden.
>> > [INFO]
>> >
>> ------------------------------------------------------------------------
>> > [ERROR] BUILD FAILURE
>> > [INFO]
>> >
>> ------------------------------------------------------------------------
>> >
>> >
>> > The dutch system message says "The system cannot find the given path"
>> > but I have no clue what is going wrong or where to start looking for
>> it.
>> >
>> > Bart.
>> >
>> >
>> >
>> > mmistroni wrote:
>> >>
>> >> Hello,
>> >>   try BBWM..
>> >> http://www.mergere.com/m2book_download.jsp
>> >>
>> >> hth
>> >>  marco
>> >>
>> >>
>> >
>> > --
>> > View this message in context:
>> > http://www.nabble.com/problem-getting-started-tf2404688.html#a6713163
>> > Sent from the Maven - Users mailing list archive at Nabble.com.
>> >
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> > For additional commands, e-mail: users-help@maven.apache.org
>> >
>> >
>> > !DSPAM:452a00d8269594409620359!
>> >
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> > For additional commands, e-mail: users-help@maven.apache.org
>> >
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/problem-getting-started-tf2404688.html#a6713727
>> Sent from the Maven - Users mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
> 
> 

-- 
View this message in context: http://www.nabble.com/problem-getting-started-tf2404688.html#a6724722
Sent from the Maven - Users mailing list archive at Nabble.com.


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


Re: problem getting started

Posted by Marco Mistroni <mm...@gmail.com>.
hello,
 can you run mvn --debug  to have more informations?

hth
 marco

On 10/9/06, Bart Zagers <ba...@gmail.com> wrote:
>
>
> I don't think the problem is there, it's the basic generated pom
>
> <project xmlns="http://maven.apache.org/POM/4.0.0"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> http://maven.apache.org/maven-v4_0_0.xsd">
>   <modelVersion>4.0.0</modelVersion>
>   <groupId>org.vac.app</groupId>
>   <artifactId>VacApp</artifactId>
>   <packaging>jar</packaging>
>   <version>1.0-SNAPSHOT</version>
>   <name>Maven Quick Start Archetype</name>
>   <url>http://maven.apache.org</url>
>   <dependencies>
>     <dependency>
>       <groupId>junit</groupId>
>       <artifactId>junit</artifactId>
>       <version>3.8.1</version>
>       <scope>test</scope>
>     </dependency>
>   </dependencies>
> </project>
>
> The only thing I have changed is the local repository in the settings.xml:
> ...
> <localRepository>D:/test/repository</localRepository>
> ...
>
> In the meantime I have tried it on a secondary machine (same jdk, same
> Maven) and there it works fine.
> mvn archetype:create -DgroupId=org.vac.app -DartifactId=VacApp
> mvn test
>
>
>
> Naess, Ronny wrote:
> >
> > Can you paste your POM?
> >
> >
> > -----Opprinnelig melding-----
> > Fra: Bart Zagers [mailto:bart.zagers@gmail.com]
> > Sendt: 9. oktober 2006 09:57
> > Til: users@maven.apache.org
> > Emne: Re: problem getting started
> >
> >
> > This doesn't really help, the intro is the same/similar as with the
> > basic Maven starting guide and naturally does not mention my basic (and
> > probably
> > stupid) problem.
> >
> > [INFO] [compiler:testCompile]
> > Compiling 1 source file to D:\test\VacApp\target\test-classes
> > [INFO] [surefire:test]
> > [INFO] Surefire report directory: D:\test\VacApp\target\surefire-reports
> > Het systeem kan het opgegeven pad niet vinden.
> > Het systeem kan het opgegeven pad niet vinden.
> > [INFO]
> > ------------------------------------------------------------------------
> > [ERROR] BUILD FAILURE
> > [INFO]
> > ------------------------------------------------------------------------
> >
> >
> > The dutch system message says "The system cannot find the given path"
> > but I have no clue what is going wrong or where to start looking for it.
> >
> > Bart.
> >
> >
> >
> > mmistroni wrote:
> >>
> >> Hello,
> >>   try BBWM..
> >> http://www.mergere.com/m2book_download.jsp
> >>
> >> hth
> >>  marco
> >>
> >>
> >
> > --
> > View this message in context:
> > http://www.nabble.com/problem-getting-started-tf2404688.html#a6713163
> > Sent from the Maven - Users mailing list archive at Nabble.com.
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
> > !DSPAM:452a00d8269594409620359!
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/problem-getting-started-tf2404688.html#a6713727
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

Re: problem getting started

Posted by Bart Zagers <ba...@gmail.com>.
I don't think the problem is there, it's the basic generated pom

<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd">
  <modelVersion>4.0.0</modelVersion>
  <groupId>org.vac.app</groupId>
  <artifactId>VacApp</artifactId>
  <packaging>jar</packaging>
  <version>1.0-SNAPSHOT</version>
  <name>Maven Quick Start Archetype</name>
  <url>http://maven.apache.org</url>
  <dependencies>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>3.8.1</version>
      <scope>test</scope>
    </dependency>
  </dependencies>
</project>

The only thing I have changed is the local repository in the settings.xml:
...
<localRepository>D:/test/repository</localRepository>
...

In the meantime I have tried it on a secondary machine (same jdk, same
Maven) and there it works fine.
mvn archetype:create -DgroupId=org.vac.app -DartifactId=VacApp
mvn test



Naess, Ronny wrote:
> 
> Can you paste your POM?
> 
> 
> -----Opprinnelig melding-----
> Fra: Bart Zagers [mailto:bart.zagers@gmail.com] 
> Sendt: 9. oktober 2006 09:57
> Til: users@maven.apache.org
> Emne: Re: problem getting started
> 
> 
> This doesn't really help, the intro is the same/similar as with the
> basic Maven starting guide and naturally does not mention my basic (and
> probably
> stupid) problem.
> 
> [INFO] [compiler:testCompile]
> Compiling 1 source file to D:\test\VacApp\target\test-classes
> [INFO] [surefire:test]
> [INFO] Surefire report directory: D:\test\VacApp\target\surefire-reports
> Het systeem kan het opgegeven pad niet vinden.
> Het systeem kan het opgegeven pad niet vinden.
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> 
> 
> The dutch system message says "The system cannot find the given path"
> but I have no clue what is going wrong or where to start looking for it.
> 
> Bart.
> 
>  
> 
> mmistroni wrote:
>> 
>> Hello,
>>   try BBWM..
>> http://www.mergere.com/m2book_download.jsp
>> 
>> hth
>>  marco
>> 
>> 
> 
> --
> View this message in context:
> http://www.nabble.com/problem-getting-started-tf2404688.html#a6713163
> Sent from the Maven - Users mailing list archive at Nabble.com.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
> 
> !DSPAM:452a00d8269594409620359!
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/problem-getting-started-tf2404688.html#a6713727
Sent from the Maven - Users mailing list archive at Nabble.com.


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


Re: problem getting started

Posted by Bart Zagers <ba...@gmail.com>.
This doesn't really help, the intro is the same/similar as with the basic
Maven starting guide and naturally does not mention my basic (and probably
stupid) problem.

[INFO] [compiler:testCompile]
Compiling 1 source file to D:\test\VacApp\target\test-classes
[INFO] [surefire:test]
[INFO] Surefire report directory: D:\test\VacApp\target\surefire-reports
Het systeem kan het opgegeven pad niet vinden.
Het systeem kan het opgegeven pad niet vinden.
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO]
------------------------------------------------------------------------ 

The dutch system message says "The system cannot find the given path" but I
have no clue what is going wrong or where to start looking for it.

Bart.

 

mmistroni wrote:
> 
> Hello,
>   try BBWM..
> http://www.mergere.com/m2book_download.jsp
> 
> hth
>  marco
> 
> 

-- 
View this message in context: http://www.nabble.com/problem-getting-started-tf2404688.html#a6713163
Sent from the Maven - Users mailing list archive at Nabble.com.


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


Re: problem getting started

Posted by Marco Mistroni <mm...@gmail.com>.
Hello,
  try BBWM..
http://www.mergere.com/m2book_download.jsp

hth
 marco

Re: problem getting started

Posted by Marco Mistroni <mm...@gmail.com>.
Hello,


On 10/8/06, Bart Zagers <ba...@gmail.com> wrote:
>
>
> Hey,
>
> I'm trying Maven2 for the first time and have troubles getting started
> (using the "Getting started" guide)
>
> I started with:
>   mvn archetype:create -DgroupId=org.vac.app -DartifactId=VacApp
> and then
>   mvn compile
> so far so good.
> But then i tried
>   mvn test
> and this gave me
>
> [INFO] Scanning for projects...
> [INFO]
> ------------------------------------------------------------------------
> ---
> [INFO] Building Maven Quick Start Archetype
> [INFO]    task-segment: [test]
> [INFO]
> ------------------------------------------------------------------------
> ---
> [INFO] [resources:resources]
> [INFO] Using default encoding to copy filtered resources.
> [INFO] [compiler:compile]
> [INFO] Nothing to compile - all classes are up to date
> [INFO] [resources:testResources]
> [INFO] Using default encoding to copy filtered resources.
> [INFO] [compiler:testCompile]
> Compiling 1 source file to D:\test\VacApp\target\test-classes
> [INFO] [surefire:test]
> [INFO] Surefire report directory: D:\test\VacApp\target\surefire-reports
> Het systeem kan het opgegeven pad niet vinden.
> Het systeem kan het opgegeven pad niet vinden.
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] There are test failures.
> [INFO]
> ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 11 seconds
> [INFO] Finished at: Sun Oct 08 14:37:21 CEST 2006
> [INFO] Final Memory: 3M/10M
> [INFO]
> ------------------------------------------------------------------------
>
> The dutch system message says "The system cannot find the given path"
> I have no idea at all what is going wrong (running WinXP, jdk1.5.0_09,
> maven
> 2.0.4)
> --
> View this message in context:
> http://www.nabble.com/problem-getting-started-tf2404688.html#a6703584
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>