Hi - I might be able to answer this one...I hope....

Anyway - when I get that error, it usually means that I haven't
changed directories, into the directory containing the project pom.xml
before running mvn test.

Laurel

On Feb 6, 1:01 am, "Hiroki Terashima" <[EMAIL PROTECTED]> wrote:
> Cynick,
>
>      Below are outputs from running "mvn install" and "mvn test" commands
> after manually downloading and installing JTA jar.  There was a build error
> when I ran "mvn test".
>
>      Can you take a look and tell me what the problem might be?
>
> Thanks,
> Hiroki
>
> 172:~ hiroki$ pwd
> /Users/hiroki
>
> 172:~ hiroki$ which mvn
> /usr/local/maven-2.0.4/bin/mvn
>
> 172:~ hiroki$ mvn install:install-file
> -DgroupId=javax.transaction-DartifactId=jta -Dversion=
> 1.0.1B -Dpackaging=jar -Dfile=jta-1_0_1B-classes.zip
> [INFO] Scanning for projects...
> [INFO] Searching repository for plugin with prefix: 'install'.
> [INFO] org.apache.maven.plugins: checking for updates from central
> [INFO] org.codehaus.mojo: checking for updates from central
> [INFO] artifact org.apache.maven.plugins:maven-install-plugin: checking for
> updates from central
> Downloading:http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-install-...
> 981b downloaded
> Downloading:http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-plugin-p...
> 6K downloaded
> Downloading:http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-install-...
> 8K downloaded
> [INFO]
> ----------------------------------------------------------------------------
> [INFO] Building Maven Default Project
> [INFO]    task-segment: [install:install-file] (aggregator-style)
> [INFO]
> ----------------------------------------------------------------------------
> Downloading:http://repo1.maven.org/maven2/org/apache/maven/maven-artifact-manager...
> 1K downloaded
> Downloading:http://repo1.maven.org/maven2/org/apache/maven/maven/2.0/maven-2.0.pom
> 8K downloaded
> Downloading:http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-utils/1.0.4/...
> 6K downloaded
> Downloading:http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-container-de...
> 7K downloaded
> Downloading:http://repo1.maven.org/maven2/classworlds/classworlds/1.1-alpha-2/cla...
> 3K downloaded
> Downloading:http://repo1.maven.org/maven2/org/apache/maven/maven-artifact/2.0/mav...
> 723b downloaded
> Downloading:http://repo1.maven.org/maven2/org/apache/maven/maven-repository-metad...
> 1K downloaded
> Downloading:http://repo1.maven.org/maven2/org/apache/maven/wagon/wagon-provider-a...
> 4K downloaded
> Downloading:http://repo1.maven.org/maven2/org/apache/maven/maven-project/2.0/mave...
> 1K downloaded
> Downloading:http://repo1.maven.org/maven2/org/apache/maven/maven-model/2.0/maven-...
> 2K downloaded
> Downloading:http://repo1.maven.org/maven2/org/apache/maven/maven-profile/2.0/mave...
> 1K downloaded
> Downloading:http://repo1.maven.org/maven2/org/apache/maven/maven-plugin-api/2.0/m...
> 601b downloaded
> [INFO] [install:install-file]
> [INFO] Installing /Users/hiroki/jta-1_0_1B-classes.zip to
> /Users/hiroki/.m2/repository/javax/transaction/jta/1.0.1B/jta-1.0.1B.jar
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD SUCCESSFUL
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 7 seconds
> [INFO] Finished at: Mon Feb 05 21:55:40 PST 2007
> [INFO] Final Memory: 2M/4M
> [INFO]
> ------------------------------------------------------------------------
>
> 172:~ hiroki$ mvn test
> [INFO] Scanning for projects...
> [INFO]
> ----------------------------------------------------------------------------
> [INFO] Building Maven Default Project
> [INFO]    task-segment: [test]
> [INFO]
> ----------------------------------------------------------------------------
> [INFO] artifact org.apache.maven.plugins:maven-resources-plugin: checking
> for updates from central
> Downloading:http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-resource...
> 1K downloaded
> Downloading:http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-plugins/...
> 3K downloaded
> Downloading:http://repo1.maven.org/maven2/org/apache/maven/maven-parent/1/maven-p...
> 6K downloaded
> Downloading:http://repo1.maven.org/maven2/org/apache/apache/1/apache-1.pom
> 3K downloaded
> Downloading:http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-resource...
> 13K downloaded
> [INFO] artifact org.apache.maven.plugins:maven-compiler-plugin: checking for
> updates from central
> Downloading:http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-compiler...
> 1K downloaded
> Downloading:http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-compiler...
> 14K downloaded
> [INFO] artifact org.apache.maven.plugins:maven-surefire-plugin: checking for
> updates from central
> Downloading:http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-surefire...
> 1K downloaded
> Downloading:http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-surefire...
> 14K downloaded
> [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: 5 seconds
> [INFO] Finished at: Mon Feb 05 21:56:00 PST 2007
> [INFO] Final Memory: 2M/4M
> [INFO]
> ------------------------------------------------------------------------


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"SAIL-Dev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/SAIL-Dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to