Yeah the runtime scope means the dependencies are only available at runtime (shipped in the archive) and not at compile time.
On 5/18/06, Grzegorz Slowikowski <[EMAIL PROTECTED]> wrote:
Hi Ole myfaces dependency scope should be compile, not runtime: <dependency> <groupId>myfaces</groupId> <artifactId>myfaces-all</artifactId> <version>1.1.1</version> <scope>compile</scope> </dependency> or: <dependency> <groupId>myfaces</groupId> <artifactId>myfaces-all</artifactId> <version>1.1.1</version> </dependency> Greg ----- Original Message ----- From: "Ole Ersoy" <[EMAIL PROTECTED]> To: "Maven Developers List" <dev@maven.apache.org> Sent: Thursday, May 18, 2006 5:15 AM Subject: Re: Maven Not Resolving Dependencies > John, > > I'd be extremely glad to do that at this point, > because I think I'm out of options. I've tried > deleting .m2, installing an older version of java > (1.5.02), upgrading maven to 2.0.4...I could go back > to ant, but that would be like plowing a field with a > horse and buggie. > > OK - I setup a really simple project (tt) and here's > the 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>tt</groupId> > <artifactId>tt</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>myfaces</groupId> > <artifactId>myfaces-all</artifactId> > <version>1.1.1</version> > <scope>runtime</scope> > </dependency> > </dependencies> > <build> > <plugins> > <plugin> > <groupId>org.apache.maven.plugins</groupId> > <artifactId>maven-compiler-plugin</artifactId> > <configuration> > <source>1.5</source> > <target>1.5</target> > </configuration> > </plugin> > </plugins> > </build> > </project> > > I then created a really simple class that only depends > on UICompoentBase from myfaces. > > When I try to compile with -X I get this: > [/home/ole/workspaces/tt]#mvn -X compile > + Error stacktraces are turned on. > Maven version: 2.0.4 > [DEBUG] Building Maven user-level plugin registry > from: '/root/.m2/plugin-registry.xml' > [DEBUG] Building Maven global-level plugin registry > from: > '/usr/local/foundation/applications/maven-2.0.4/conf/plugin-registry.xml' > [INFO] Scanning for projects... > [INFO] > ---------------------------------------------------------------------------- > [INFO] Building Maven Quick Start Archetype > [INFO] task-segment: [compile] > [INFO] > ---------------------------------------------------------------------------- > [DEBUG] maven-resources-plugin: resolved to version > 2.2 from repository central > [DEBUG] Retrieving parent-POM: > org.apache.maven.plugins:maven-plugins::1 for project: > null:maven-resources-plugin:maven-plugin:2.2 from the > repository. > [DEBUG] Retrieving parent-POM: > org.apache.maven:maven-parent::1 for project: > org.apache.maven.plugins:maven-plugins:pom:1 from the > repository. > [DEBUG] Retrieving parent-POM: org.apache:apache::1 > for project: org.apache.maven:maven-parent:pom:1 from > the repository. > [DEBUG] maven-compiler-plugin: resolved to version > 2.0.1 from repository central > [DEBUG] Retrieving parent-POM: > org.apache.maven.plugins:maven-plugins::1 for project: > null:maven-compiler-plugin:maven-plugin:2.0.1 from the > repository. > [DEBUG] Retrieving parent-POM: > org.apache.maven:maven-parent::1 for project: > org.apache.maven.plugins:maven-plugins:pom:1 from the > repository. > [DEBUG] Retrieving parent-POM: org.apache:apache::1 > for project: org.apache.maven:maven-parent:pom:1 from > the repository. > [DEBUG] > org.apache.maven.plugins:maven-resources-plugin:maven-plugin:2.2:runtime > (selected for runtime) > [DEBUG] Retrieving parent-POM: > org.apache.maven:maven::2.0 for project: > org.apache.maven:maven-model:jar:2.0 from the > repository. > [DEBUG] org.apache.maven:maven-model:jar:2.0:runtime > (selected for runtime) > [DEBUG] > org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime > (selected for runtime) > [DEBUG] Retrieving parent-POM: > org.apache.maven:maven::2.0 for project: > null:maven-project:jar:2.0 from the repository. > [DEBUG] > org.apache.maven:maven-project:jar:2.0:runtime > (selected for runtime) > [DEBUG] > org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8:runtime > (selected for runtime) > [DEBUG] > classworlds:classworlds:jar:1.1-alpha-2:runtime > (selected for runtime) > [DEBUG] junit:junit:jar:3.8.1:runtime (selected > for runtime) > [DEBUG] Retrieving parent-POM: > org.apache.maven:maven::2.0 for project: > org.apache.maven:maven-artifact:jar:2.0 from the > repository. > [DEBUG] > org.apache.maven:maven-artifact:jar:2.0:runtime > (selected for runtime) > [DEBUG] Retrieving parent-POM: > org.apache.maven:maven::2.0 for project: > org.apache.maven:maven-artifact-manager:jar:2.0 from > the repository. > [DEBUG] > org.apache.maven:maven-artifact-manager:jar:2.0:runtime > (selected for runtime) > [DEBUG] Retrieving parent-POM: > org.apache.maven:maven::2.0 for project: > org.apache.maven:maven-repository-metadata:jar:2.0 > from the repository. > [DEBUG] > org.apache.maven:maven-repository-metadata:jar:2.0:runtime > (selected for runtime) > [DEBUG] > org.apache.maven.wagon:wagon-provider-api:jar:1.0-alpha-5:runtime > (selected for runtime) > [DEBUG] Retrieving parent-POM: > org.apache.maven:maven::2.0 for project: > null:maven-profile:jar:2.0 from the repository. > [DEBUG] > org.apache.maven:maven-profile:jar:2.0:runtime > (selected for runtime) > [DEBUG] Retrieving parent-POM: > org.apache.maven:maven::2.0 for project: > org.apache.maven:maven-plugin-api:jar:2.0 from the > repository. > [DEBUG] > org.apache.maven:maven-plugin-api:jar:2.0:runtime > (selected for runtime) > [DEBUG] Configuring mojo > 'org.apache.maven.plugins:maven-resources-plugin:2.2:resources' > --> > [DEBUG] (f) filters = [] > [DEBUG] (f) outputDirectory = > /home/ole/workspaces/tt/target/classes > [DEBUG] (f) project = > [EMAIL PROTECTED] > [DEBUG] (f) resources = > [EMAIL PROTECTED] > [DEBUG] -- end configuration -- > [INFO] [resources:resources] > [INFO] Using default encoding to copy filtered > resources. > [DEBUG] tt:tt:jar:1.0-SNAPSHOT (selected for null) > [DEBUG] Retrieving parent-POM: > myfaces:myfaces-parent::1.1.1 for project: > null:myfaces-all:jar:null from the repository. > [DEBUG] myfaces:myfaces-all:jar:1.1.1:runtime > (selected for runtime) > [DEBUG] > commons-codec:commons-codec:jar:1.3:runtime (selected > for runtime) > [DEBUG] > commons-logging:commons-logging:jar:1.0.4:runtime > (selected for runtime) > [DEBUG] commons-lang:commons-lang:jar:2.1:runtime > (selected for runtime) > [DEBUG] javax.servlet:jstl:jar:1.1.2:runtime > (selected for runtime) > [DEBUG] > commons-beanutils:commons-beanutils:jar:1.7.0:runtime > (selected for runtime) > [DEBUG] > commons-logging:commons-logging:jar:1.0.3:runtime > (removed - nearer found: 1.0.4) > [DEBUG] > commons-collections:commons-collections:jar:3.1:runtime > (selected for runtime) > [DEBUG] > commons-validator:commons-validator:jar:1.1.4:runtime > (selected for runtime) > [DEBUG] > commons-fileupload:commons-fileupload:jar:1.0:runtime > (selected for runtime) > [DEBUG] oro:oro:jar:2.0.8:runtime (selected for > runtime) > [DEBUG] commons-el:commons-el:jar:1.0:runtime > (selected for runtime) > [DEBUG] > commons-logging:commons-logging:jar:1.0.3:runtime > (removed - nearer found: 1.0.4) > [DEBUG] > commons-digester:commons-digester:jar:1.7:runtime > (selected for runtime) > [DEBUG] > commons-beanutils:commons-beanutils:jar:1.6:runtime > (removed - nearer found: 1.7.0) > [DEBUG] > commons-logging:commons-logging:jar:1.0:runtime > (removed - nearer found: 1.0.4) > [DEBUG] xml-apis:xml-apis:jar:1.0.b2:runtime > (selected for runtime) > [DEBUG] > commons-collections:commons-collections:jar:2.1:runtime > (removed - nearer found: 3.1) > [DEBUG] junit:junit:jar:3.8.1:test (selected for > test) > [DEBUG] > org.apache.maven.plugins:maven-compiler-plugin:maven-plugin:2.0.1:runtime > (selected for runtime) > [DEBUG] Retrieving parent-POM: > org.codehaus.plexus:plexus-compiler::1.5.2 for > project: null:plexus-compiler-api:jar:1.5.2 from the > repository. > [DEBUG] Retrieving parent-POM: > org.codehaus.plexus:plexus-components::1.1.5 for > project: null:plexus-compiler:pom:1.5.2 from the > repository. > [DEBUG] Retrieving parent-POM: > org.codehaus.plexus:plexus::1.0.5 for project: > org.codehaus.plexus:plexus-components:pom:1.1.5 from > the repository. > [DEBUG] > org.codehaus.plexus:plexus-compiler-api:jar:1.5.2:runtime > (selected for runtime) > [DEBUG] > org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8:runtime > (selected for runtime) > [DEBUG] > org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime > (selected for runtime) > [DEBUG] > classworlds:classworlds:jar:1.1-alpha-2:runtime > (selected for runtime) > [DEBUG] junit:junit:jar:3.8.1:runtime (selected > for runtime) > [DEBUG] > org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime > (selected for runtime) > [DEBUG] Retrieving parent-POM: > org.codehaus.plexus:plexus-compiler::1.5.2 for > project: null:plexus-compiler-manager:jar:1.5.2 from > the repository. > [DEBUG] Retrieving parent-POM: > org.codehaus.plexus:plexus-components::1.1.5 for > project: null:plexus-compiler:pom:1.5.2 from the > repository. > [DEBUG] Retrieving parent-POM: > org.codehaus.plexus:plexus::1.0.5 for project: > org.codehaus.plexus:plexus-components:pom:1.1.5 from > the repository. > [DEBUG] > org.codehaus.plexus:plexus-compiler-manager:jar:1.5.2:runtime > (selected for runtime) > [DEBUG] Retrieving parent-POM: > org.codehaus.plexus:plexus-compilers::1.5.2 for > project: null:plexus-compiler-javac:jar:1.5.2 from the > repository. > [DEBUG] Retrieving parent-POM: > org.codehaus.plexus:plexus-compiler::1.5.2 for > project: > org.codehaus.plexus:plexus-compilers:pom:1.5.2 from > the repository. > [DEBUG] Retrieving parent-POM: > org.codehaus.plexus:plexus-components::1.1.5 for > project: null:plexus-compiler:pom:1.5.2 from the > repository. > [DEBUG] Retrieving parent-POM: > org.codehaus.plexus:plexus::1.0.5 for project: > org.codehaus.plexus:plexus-components:pom:1.1.5 from > the repository. > [DEBUG] > org.codehaus.plexus:plexus-compiler-javac:jar:1.5.2:runtime > (selected for runtime) > [DEBUG] Retrieving parent-POM: > org.codehaus.plexus:plexus::1.0.4 for project: > null:plexus-utils:jar:1.0.5 from the repository. > [DEBUG] > org.codehaus.plexus:plexus-utils:jar:1.0.5:runtime > (removed - nearer found: 1.0.4) > [DEBUG] > org.apache.maven:maven-plugin-api:jar:2.0:runtime > (selected for runtime) > [DEBUG] > org.apache.maven:maven-artifact:jar:2.0:runtime > (selected for runtime) > [DEBUG] Configuring mojo > 'org.apache.maven.plugins:maven-compiler-plugin:2.0.1:compile' > --> > [DEBUG] (f) basedir = /home/ole/workspaces/tt > [DEBUG] (f) buildDirectory = > /home/ole/workspaces/tt/target > [DEBUG] (f) classpathElements = > [/home/ole/workspaces/tt/target/classes] > [DEBUG] (f) compileSourceRoots = > [/home/ole/workspaces/tt/src/main/java] > [DEBUG] (f) compilerId = javac > [DEBUG] (f) debug = true > [DEBUG] (f) fork = false > [DEBUG] (f) optimize = false > [DEBUG] (f) outputDirectory = > /home/ole/workspaces/tt/target/classes > [DEBUG] (f) outputFileName = tt-1.0-SNAPSHOT > [DEBUG] (f) projectArtifact = tt:tt:jar:1.0-SNAPSHOT > [DEBUG] (f) showDeprecation = false > [DEBUG] (f) showWarnings = false > [DEBUG] (f) source = 1.5 > [DEBUG] (f) staleMillis = 0 > [DEBUG] (f) target = 1.5 > [DEBUG] (f) verbose = false > [DEBUG] -- end configuration -- > [INFO] [compiler:compile] > [DEBUG] Using compiler 'javac'. > [DEBUG] Source directories: > [/home/ole/workspaces/tt/src/main/java] > [DEBUG] Classpath: > [/home/ole/workspaces/tt/target/classes] > [DEBUG] Output directory: > /home/ole/workspaces/tt/target/classes > [DEBUG] Classpath: > [DEBUG] /home/ole/workspaces/tt/target/classes > [DEBUG] Source roots: > [DEBUG] /home/ole/workspaces/tt/src/main/java > Compiling 1 source file to > /home/ole/workspaces/tt/target/classes > [INFO] > ------------------------------------------------------------------------ > [ERROR] BUILD FAILURE > [INFO] > ------------------------------------------------------------------------ > [INFO] Compilation failure > > /home/ole/workspaces/tt/src/main/java/tt/Comp.java:[3,29] > package javax.faces.component does not exist > > /home/ole/workspaces/tt/src/main/java/tt/Comp.java:[6,26] > cannot find symbol > symbol: class UIComponentBase > public class Comp extends UIComponentBase { > > /home/ole/workspaces/tt/src/main/java/tt/Comp.java:[8,9] > method does not override a method from its superclass > > > [INFO] > ------------------------------------------------------------------------ > [DEBUG] Trace > org.apache.maven.BuildFailureException: Compilation > failure > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:555) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:475) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:454) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140) > at > org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322) > at > org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115) > at > org.apache.maven.cli.MavenCli.main(MavenCli.java:256) > 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:585) > 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:505) > at > org.apache.maven.plugin.CompilerMojo.execute(CompilerMojo.java:111) > at > org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534) > ... 16 more > [INFO] > ------------------------------------------------------------------------ > [INFO] Total time: 4 seconds > [INFO] Finished at: Wed May 17 22:11:46 CDT 2006 > [INFO] Final Memory: 3M/12M > [INFO] > ------------------------------------------------------------------------ > > > Thanks a gazillion in advance for helping with this. > > Cheers, > - Ole > > > > --- John Casey <[EMAIL PROTECTED]> wrote: > > >> Can you attach a copy of your pom and the output >> from the build when you run >> with the -X switch? This will give us some clues to >> start helping you out. >> BTW, we've had some network trouble lately with the >> repository pointer ( >> repo1.maven.org), and it could be affecting you... >> >> Cheers, >> >> John >> >> On 5/17/06, Ole Ersoy <[EMAIL PROTECTED]> wrote: >> > >> > Hi, >> > >> > I'm using myfaces...version 1.1.1. >> > >> > I thought it might be an issue with the myfaces >> > download, but I have the same issue with other >> > libraries as well. >> > >> > Thanks for trying though, >> > - Ole >> > >> > --- Alexandre Poitras >> <[EMAIL PROTECTED]> >> > wrote: >> > >> > > >> > >> > http://maven.apache.org/guides/mini/guide-coping-with-sun-jars.html >> > > >> > > Just use myfaces instead of the reference >> > > implementation. >> > > >> > > On 5/17/06, Ole Ersoy <[EMAIL PROTECTED]> >> wrote: >> > > > Hey Guys, >> > > > >> > > > I posted this on the users list, but I'm >> starting >> > > that >> > > > maybe it's a bug. I'm running 2.0.4. >> > > > >> > > > Maven downloads dependencies fine from >> Ibiblio, >> > > and >> > > > after running the eclipse plugin, eclipse can >> see >> > > them >> > > > all. >> > > > >> > > > However maven does not and I get messages >> like: >> > > > >> > > > java:[4,29] package javax.faces.component does >> not >> > > > exist. >> > > > >> > > > I recently upgraded to Java 1.5.06 and at >> first I >> > > > thought maybe I should not have installed it >> as >> > > root, >> > > > so I changed the owner and group to myself. >> > > > >> > > > However maven is still not able to see >> > > dependencies. >> > > > >> > > > Any ideas? >> > > > >> > > > It was working fine a day ago, and the only >> thing >> > > > changed was upgrading the jdk from 1.5.02 to >> 06... >> > > > >> > > > Thanks in advance, >> > > > - Ole >> > > > >> > > > >> > > > >> __________________________________________________ >> > > > Do You Yahoo!? >> > > > Tired of spam? Yahoo! Mail has the best spam >> > > protection around >> > > > http://mail.yahoo.com >> > > > >> > > > >> > > >> > >> > --------------------------------------------------------------------- >> > > > To unsubscribe, e-mail: >> > > [EMAIL PROTECTED] >> > > > For additional commands, e-mail: >> > > [EMAIL PROTECTED] >> > > > >> > > > >> > > >> > > >> > >> > --------------------------------------------------------------------- >> > > To unsubscribe, e-mail: >> > > [EMAIL PROTECTED] >> > > For additional commands, e-mail: >> > > [EMAIL PROTECTED] >> > > >> > > >> > >> > >> > __________________________________________________ >> > Do You Yahoo!? >> > Tired of spam? Yahoo! Mail has the best spam >> protection around >> > http://mail.yahoo.com >> > >> > >> > --------------------------------------------------------------------- >> > To unsubscribe, e-mail: >> [EMAIL PROTECTED] >> > For additional commands, e-mail: >> [EMAIL PROTECTED] >> > >> > >> > > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > -- > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.1.392 / Virus Database: 268.6.0/341 - Release Date: 2006-05-16 > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]