Thanks for explanation.

-a

On 11/11/05, John Casey <[EMAIL PROTECTED]> wrote:
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> If you just leave it off, it'll default to <scope>compile</scope>, which
> is the 'normal' level for most project dependencies to use.
>
> Aaron Stromas wrote:
> | Thanks. What should it be? I'm a novice...
> |
> | -a
> |
> | On 11/11/05, John Casey <[EMAIL PROTECTED]> wrote:
> |
> | you have the dependency scoped as 'test' and you're depending on it in
> | your main source tree...test scope is only used when compiling the test
> | source tree, normally in src/test/java...
> |
> | Aaron Stromas wrote:
> | | Hi,
> | |
> | | I'm new to Maven and Maven 2 (I'm using the latter). My program is
> | using the
> | | Apache ORO package, so I added a dependency to pom.xml. Unfortunately,
> I
> | | made a typo in groupId and "mvn compile" failed. I fixed the typo but
> it
> | | seems that maven does not try to download that jar and compile fails.
> | Below
> | | are both my pom.xml and output of "maven -e compile". Help, please.
> TIA,
> | |
> | | -a
> | |
> | | <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>com.activcart.ccs.tools</groupId>
> | | <artifactId>validator</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>
> | | <dependency>
> | | <groupId>oro</groupId>
> | | <artifactId>oro</artifactId>
> | | <version>2.0.8</version>
> | | <scope>test</scope>
> | | </dependency>
> | | </dependencies>
> | | <build>
> | | <resources>
> | | <resource>
> | | <directory>src/main/resources</directory>
> | | <filtering>true</filtering>
> | | </resource>
> | | </resources>
> | | </build>
> | | </project>
> | |
> | | $ mvn -e compile
> | | + Error stacktraces are turned on.
> | | [INFO] Scanning for projects...
> | | [INFO]
> | |
> | -
> |
> |
> -
>
> ----------------------------------------------------------------------------
> | | [INFO] Building Maven Quick Start Archetype
> | | [INFO] task-segment: [compile]
> | | [INFO]
> | |
> | -
> |
> |
> -
>
> ----------------------------------------------------------------------------
> | | [INFO] [resources:resources]
> | | [INFO] Using default encoding to copy filtered resources.
> | | [INFO] [compiler:compile]
> | | Compiling 8 source files to c:\Documents and
> | | Settings\astromas\dev\validator\target\classes
> | | [INFO]
> | |
> | -
> |
> |
> -
>
> ----------------------------------------------------------------------------
> | | [ERROR] BUILD FAILURE
> | | [INFO]
> | |
> | -
> |
> |
> -
>
> ----------------------------------------------------------------------------
> | | [INFO] Compilation failure
> | |
> | | c:\Documents and
> | |
> |
> |
>
> Settings\astromas\dev\validator\src\main\java\com\activcart\ccs\tools\ManifestGenerator.java:[32,33]
> | | package org.apache.oro.text.regex does not exist
> | |
> | | c:\Documents and
> | |
> |
> |
>
> Settings\astromas\dev\validator\src\main\java\com\activcart\ccs\tools\ManifestGenerator.java:[33,33]
> | | package org.apache.oro.text.regex does not exist
> | |
> | | c:\Documents and
> | |
> |
> |
>
> Settings\astromas\dev\validator\src\main\java\com\activcart\ccs\tools\ManifestGenerator.java:[34,33]
> | | package org.apache.oro.text.regex does not exist
> | |
> | | c:\Documents and
> | |
> |
> |
>
> Settings\astromas\dev\validator\src\main\java\com\activcart\ccs\tools\ManifestGenerator.java:[35,33]
> | | package org.apache.oro.text.regex does not exist
> | |
> | | c:\Documents and
> | |
> |
> |
>
> Settings\astromas\dev\validator\src\main\java\com\activcart\ccs\tools\ManifestGenerator.java:[36,33]
> | | package org.apache.oro.text.regex does not exist
> | |
> | | c:\Documents and
> | |
> |
> |
>
> Settings\astromas\dev\validator\src\main\java\com\activcart\ccs\tools\ManifestGenerator.java:[37,33]
> | | package org.apache.oro.text.regex does not exist
> | |
> | | c:\Documents and
> | |
> |
> |
>
> Settings\astromas\dev\validator\src\main\java\com\activcart\ccs\tools\ManifestGenerator.java:[38,33]
> | | package org.apache.oro.text.regex does not exist
> | |
> | | c:\Documents and
> | |
> |
> |
>
> Settings\astromas\dev\validator\src\main\java\com\activcart\ccs\tools\ManifestGenerator.java:[172,12]
> | | cannot resolve symbol
> | | symbol : class PatternCompiler
> | | location: class com.activcard.ccs.tools.ManifestGenerator
> | |
> | | c:\Documents and
> | |
> |
> |
>
> Settings\astromas\dev\validator\src\main\java\com\activcart\ccs\tools\ManifestGenerator.java:[173,12]
> | | cannot resolve symbol
> | | symbol : class PatternMatcher
> | | location: class com.activcard.ccs.tools.ManifestGenerator
> | |
> | | c:\Documents and
> | |
> |
> |
>
> Settings\astromas\dev\validator\src\main\java\com\activcart\ccs\tools\ManifestGenerator.java:[255,68]
> | | cannot resolve symbol
> | | symbol : class MalformedPatternException
> | | location: class com.activcard.ccs.tools.ManifestGenerator
> | |
> | | c:\Documents and
> | |
> |
> |
>
> Settings\astromas\dev\validator\src\main\java\com\activcart\ccs\tools\ManifestGenerator.java:[272,83]
> | | cannot resolve symbol
> | | symbol : class MalformedPatternException
> | | location: class com.activcard.ccs.tools.ManifestGenerator
> | |
> | | c:\Documents and
> | |
> |
> |
>
> Settings\astromas\dev\validator\src\main\java\com\activcart\ccs\tools\ManifestGenerator.java:[343,86]
> | | cannot resolve symbol
> | | symbol : class MalformedPatternException
> | | location: class com.activcard.ccs.tools.ManifestGenerator
> | |
> | | c:\Documents and
> | |
> |
> |
>
> Settings\astromas\dev\validator\src\main\java\com\activcart\ccs\tools\ManifestGenerator.java:[196,23]
> | | cannot resolve symbol
> | | symbol : class Perl5Compiler
> | | location: class com.activcard.ccs.tools.ManifestGenerator
> | |
> | | c:\Documents and
> | |
> |
> |
>
> Settings\astromas\dev\validator\src\main\java\com\activcart\ccs\tools\ManifestGenerator.java:[197,22]
> | | cannot resolve symbol
> | | symbol : class Perl5Matcher
> | | location: class com.activcard.ccs.tools.ManifestGenerator
> | |
> | | c:\Documents and
> | |
> |
> |
>
> Settings\astromas\dev\validator\src\main\java\com\activcart\ccs\tools\ManifestGenerator.java:[312,37]
> | | cannot resolve symbol
> | | symbol : class Pattern
> | | location: class com.activcard.ccs.tools.ManifestGenerator
> | |
> | | c:\Documents and
> | |
> |
> |
>
> Settings\astromas\dev\validator\src\main\java\com\activcart\ccs\tools\ManifestGenerator.java:[320,37]
> | | cannot resolve symbol
> | | symbol : class Pattern
> | | location: class com.activcard.ccs.tools.ManifestGenerator
> | |
> | |
> | | [INFO]
> | |
> | -
> |
> |
> -
>
> ----------------------------------------------------------------------------
> | | [INFO] Trace
> | | org.apache.maven.BuildFailureException: Compilation failure
> | | at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
> | | DefaultLifecycleExecutor.java:540)
> | | at
> | |
> |
> |
>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle
> | | (DefaultLifecycleExecutor.java:469)
> | | at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(
> | | DefaultLifecycleExecutor.java:448)
> | | at
> | |
> |
> |
>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures
> | | (DefaultLifecycleExecutor.java:301)
> | | at
> | org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
> | | DefaultLifecycleExecutor.java:268)
> | | at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(
> | | DefaultLifecycleExecutor.java:137)
> | | at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:316)
> | | at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:113)
> | | at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
> | | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> | | at
> | sun.reflect.NativeMethodAccessorImpl.invoke(
> NativeMethodAccessorImpl.java
> | | :39)
> | | at sun.reflect.DelegatingMethodAccessorImpl.invoke(
> | | DelegatingMethodAccessorImpl.java:25)
> | | at java.lang.reflect.Method.invoke(Method.java:324)
> | | at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
> | | at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
> | | at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java
> :430)
> | | at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> | | Caused by: org.apache.maven.plugin.CompilationFailureException:
> | Compilation
> | | failure
> | | at org.apache.maven.plugin.AbstractCompilerMojo.execute(
> | | AbstractCompilerMojo.java:429)
> | | at org.apache.maven.plugin.CompilerMojo.execute(CompilerMojo.java:110)
> | | at org.apache.maven.plugin.DefaultPluginManager.executeMojo(
> | | DefaultPluginManager.java:399)
> | | at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
> | | DefaultLifecycleExecutor.java:519)
> | | ... 16 more
> | | [INFO]
> | |
> | -
> |
> |
> -
>
> ----------------------------------------------------------------------------
> | | [INFO] Total time: 2 seconds
> | | [INFO] Finished at: Fri Nov 11 11:22:38 EST 2005
> | | [INFO] Final Memory: 2M/7M
> | | [INFO]
> | |
> | -
> |
> |
> -
>
> ----------------------------------------------------------------------------
> | |
> | | [EMAIL PROTECTED] ~/dev/validator
> | | $
> | |
>
> - ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.6 (GNU/Linux)
>
> iD8DBQFDdM0qK3h2CZwO/4URAiPBAJ4xx0NGz8InrHV4I1spOwxj87+CtwCfbuCp
> tviDAIrWZGXsfZevnpGtWNI=
> =jBmQ
> -----END PGP SIGNATURE-----
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to