Using Maven in Ubuntu 10.04 to download CSPoker

18 views
Skip to first unread message

Sam

unread,
Sep 8, 2010, 2:15:27 AM9/8/10
to cspoker-discuss
Maven is properly installed as well as the JDK1.6.0_21.
I invoked a local terminal and typed "mvn compile" and I got the
following:

sam@sam-laptop:~$ mvn compile
[INFO] Scanning for projects...
[INFO]
------------------------------------------------------------------------
[INFO] Building Maven Default Project
[INFO] task-segment: [compile]
[INFO]
------------------------------------------------------------------------
Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-resources-plugin/2.3/maven-resources-plugin-2.3.pom

Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-plugins/12/maven-plugins-12.pom

Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven-parent/9/maven-parent-9.pom

Downloading: http://repo1.maven.org/maven2/org/apache/apache/4/apache-4.pom

Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-resources-plugin/2.3/maven-resources-plugin-2.3.jar

Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-compiler-plugin/2.0.2/maven-compiler-plugin-2.0.2.pom

Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-plugins/8/maven-plugins-8.pom

Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven-parent/5/maven-parent-5.pom

Downloading: http://repo1.maven.org/maven2/org/apache/apache/3/apache-3.pom

Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-compiler-plugin/2.0.2/maven-compiler-plugin-2.0.2.jar

[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Cannot execute mojo: resources. It requires a project with an
existing pom.xml, but the build is not using one.
[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 9 seconds
[INFO] Finished at: Tue Sep 07 23:56:29 MDT 2010
[INFO] Final Memory: 3M/38M
[INFO] ---------------------------------------------------------------


I must be doing something wrong or misinterpreted the instructions in
some way.
Please advise.

Sam

Guy Van den Broeck

unread,
Sep 8, 2010, 3:21:03 AM9/8/10
to cspoker...@googlegroups.com
Sam,

2010/9/8 Sam <rob...@hotmail.com>
sam@sam-laptop:~$ mvn compile

You're running mvn from your home directory. You need to run it from the cspoker root directory.
 
This is why mvn complains that there is no pom.xml file in the directory:

Sam

unread,
Sep 8, 2010, 4:09:39 AM9/8/10
to cspoker-discuss
Ok, I ran mvn compile in the directory that contains the source I
downloaded using Subversion.
There were occasional timeouts and failures to load resources.
When I perused the source directory, the swt .java files are still
missing.

Sam



On Sep 8, 1:21 am, Guy Van den Broeck

Guy Van den Broeck

unread,
Sep 8, 2010, 4:38:21 AM9/8/10
to cspoker...@googlegroups.com
2010/9/8 Sam <rob...@hotmail.com>

There were occasional timeouts and failures to load resources.
When I perused the source directory, the swt .java files are still
missing.

Maven sometimes reports that it failed to download a dependency from a repository and then goes on to download it from another repository. This is not a problem.

The dependencies are jar files that are downloaded into your local maven repository, probably "~/.m2/...". They are not supposed to show up in the cspoker source tree and certainly not as .java files.
Use m2eclipse to import the existing maven project.
Reply all
Reply to author
Forward
0 new messages