You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "Hogeweg, Erwin (GE Infrastructure)" <Er...@ge.com> on 2005/08/11 01:47:41 UTC

False Start: Maven Sample won't compile on win2k.

Hi,

I am trying to run "The Ten Minute Test" sample but even after two hours of experimenting I haven't gotten any further. I must be missing something (either on my w2k system or in my brain).

Everything is set up as indicated but the sources won't compile. Tried JDK-1.5 and -1.4. Same result.

This is what I got:

D:\tmp\sample-echo>set M2_HOME
M2_HOME=D:\maven-2.0-alpha-3

D:\tmp\sample-echo>set JAVA_HOME
JAVA_HOME=D:\program files\Java\j2re1.4.2

D:\tmp\sample-echo>dir src\main\java\samples\echo
 Volume in drive D is Data
 Volume Serial Number is 14C6-9443

 Directory of D:\tmp\sample-echo\src\main\java\samples\echo

08/10/2005  06:58p      <DIR>          .
08/10/2005  06:58p      <DIR>          ..
01/21/2005  06:42p                 571 Echo.java
               1 File(s)            571 bytes
               2 Dir(s)  11,946,778,624 bytes free

D:\tmp\sample-echo>m2 compile
[INFO] ----------------------------------------------------------------------------
[INFO] Building Maven Default Project
[INFO] ----------------------------------------------------------------------------
[INFO] maven-resources-plugin: resolved to version 2.0-alpha-3 from local repository
[INFO] maven-compiler-plugin: resolved to version 2.0-alpha-3 from local repository
[INFO] [resources:resources]
[INFO] [compiler:compile]
[INFO] No sources to compile
[INFO] ----------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ----------------------------------------------------------------------------
[INFO] Total time: < 1 second
[INFO] Finished at: Wed Aug 10 19:27:21 EDT 2005
[INFO] Final Memory: 1M/3M
[INFO] ----------------------------------------------------------------------------

D:\tmp\sample-echo>type project.xml
<project>
  <groupId>sample</groupId>
  <artifactId>sample-echo</artifactId>
  <version>1.0-SNAPSHOT</version>
  <dependencies>
    <dependency>
      <groupId>log4j</groupId>
      <artifactId>log4j</artifactId>
      <version>1.2.8</version>
    </dependency>
  </dependencies>
  <build>
    <sourceDirectory>src\main\java</sourceDirectory>
    <unitTestSourceDirectory>src\test\java</unitTestSourceDirectory>
    <resources>
      <resource>
        <directory>src/main/resources</directory>
      </resource>
    </resources>
    <unitTest>
      <includes>
        <include>**/*Test.java</include>
      </includes>
    </unitTest>
  </build>
</project>

D:\tmp\sample-echo>

Any help is highly appreciated.

Thanks,

Erwin

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


Re: False Start: Maven Sample won't compile on win2k.

Posted by Brett Porter <br...@gmail.com>.
The "Ten Minute Test" is for Maven 1.0.2, but you are using Maven 2.0
alpha 3. They use different files, so it is building a default
project.

Try the "Getting Started" buide and other documentation under
http://maven.apache.org/maven2/

I will clarify the difference on the Maven website - sorry for the
inconvenience.

Cheers,
Brett

On 8/11/05, Hogeweg, Erwin (GE Infrastructure) <Er...@ge.com> wrote:
> Hi,
> 
> I am trying to run "The Ten Minute Test" sample but even after two hours of experimenting I haven't gotten any further. I must be missing something (either on my w2k system or in my brain).
> 
> Everything is set up as indicated but the sources won't compile. Tried JDK-1.5 and -1.4. Same result.
> 
> This is what I got:
> 
> D:\tmp\sample-echo>set M2_HOME
> M2_HOME=D:\maven-2.0-alpha-3
> 
> D:\tmp\sample-echo>set JAVA_HOME
> JAVA_HOME=D:\program files\Java\j2re1.4.2
> 
> D:\tmp\sample-echo>dir src\main\java\samples\echo
>  Volume in drive D is Data
>  Volume Serial Number is 14C6-9443
> 
>  Directory of D:\tmp\sample-echo\src\main\java\samples\echo
> 
> 08/10/2005  06:58p      <DIR>          .
> 08/10/2005  06:58p      <DIR>          ..
> 01/21/2005  06:42p                 571 Echo.java
>                1 File(s)            571 bytes
>                2 Dir(s)  11,946,778,624 bytes free
> 
> D:\tmp\sample-echo>m2 compile
> [INFO] ----------------------------------------------------------------------------
> [INFO] Building Maven Default Project
> [INFO] ----------------------------------------------------------------------------
> [INFO] maven-resources-plugin: resolved to version 2.0-alpha-3 from local repository
> [INFO] maven-compiler-plugin: resolved to version 2.0-alpha-3 from local repository
> [INFO] [resources:resources]
> [INFO] [compiler:compile]
> [INFO] No sources to compile
> [INFO] ----------------------------------------------------------------------------
> [INFO] BUILD SUCCESSFUL
> [INFO] ----------------------------------------------------------------------------
> [INFO] Total time: < 1 second
> [INFO] Finished at: Wed Aug 10 19:27:21 EDT 2005
> [INFO] Final Memory: 1M/3M
> [INFO] ----------------------------------------------------------------------------
> 
> D:\tmp\sample-echo>type project.xml
> <project>
>   <groupId>sample</groupId>
>   <artifactId>sample-echo</artifactId>
>   <version>1.0-SNAPSHOT</version>
>   <dependencies>
>     <dependency>
>       <groupId>log4j</groupId>
>       <artifactId>log4j</artifactId>
>       <version>1.2.8</version>
>     </dependency>
>   </dependencies>
>   <build>
>     <sourceDirectory>src\main\java</sourceDirectory>
>     <unitTestSourceDirectory>src\test\java</unitTestSourceDirectory>
>     <resources>
>       <resource>
>         <directory>src/main/resources</directory>
>       </resource>
>     </resources>
>     <unitTest>
>       <includes>
>         <include>**/*Test.java</include>
>       </includes>
>     </unitTest>
>   </build>
> </project>
> 
> D:\tmp\sample-echo>
> 
> Any help is highly appreciated.
> 
> Thanks,
> 
> Erwin
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
>

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