I added this plugin to my pom <plugin> <groupId>org.mortbay.jetty</groupId> <artifactId>jetty-maven-plugin</artifactId> <version>7.0.0.pre5</version> <configuration> <scanIntervalSeconds>10</scanIntervalSeconds> <webAppConfig> <contextPath>/artms</contextPath> <jettyEnvXml>${basedir}/jetty-env.xml</jettyEnvXml> </webAppConfig> <reload>automatic</reload> </configuration> <dependencies> <dependency> <groupId>commons-dbcp</groupId> <artifactId>commons-dbcp</artifactId> <version>1.2.2</version> <scope>system</scope> </dependency> <dependency> <groupId>com.oracle</groupId> <artifactId>ojdbc</artifactId> <version>14</version> </dependency> </dependencies> </plugin>
when I run the ketty:run I get this error please tell me what is wrong + Error stacktraces are turned on. Apache Maven 2.1.0 (r755702; 2009-03-18 15:10:27-0400) Java version: 1.6.0_11 Java home: C:\Program Files\Java\jdk1.6.0_11\jre Default locale: en_US, platform encoding: Cp1252 OS name: "windows xp" version: "5.1" arch: "x86" Family: "windows" [DEBUG] Building Maven user-level plugin registry from: 'C:\Documents and Settings\sairamm\.m2\plugin-registry.xml' [DEBUG] Building Maven global-level plugin registry from: 'E:\dev\apache-maven-2.1.0-bin\apache-maven-2.1.0\conf\plugin-registry.xml' [INFO] Scanning for projects... [DEBUG] Searching for parent-POM: gov.audit:Audit.gov:pom:1 of project: gov.audit:audit.war:war:1 in relative path: ../pom.xml [DEBUG] Using parent-POM from the project hierarchy at: '../pom.xml' for project: gov.audit:audit.war:war:1 [DEBUG] Retrieving parent-POM: org.apache.maven.plugins:maven-plugins:pom:8 for project: null:maven-compiler-plugin:maven-plugin:2.0.2 from the repository. [DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent:pom:5 for project: org.apache.maven.plugins:maven-plugins:pom:8 from the repository. [DEBUG] Retrieving parent-POM: org.apache:apache:pom:3 for project: org.apache.maven:maven-parent:pom:5 from the repository. [DEBUG] Retrieving parent-POM: org.codehaus.gmaven:gmaven:pom:1.2 for project: null:gmaven-plugin:maven-plugin:null from the repository. [DEBUG] Adding managed dependencies for unknown:gmaven-plugin [DEBUG] org.slf4j:slf4j-api:jar:1.5.10 [DEBUG] org.sonatype.gossip:gossip:jar:1.2 [DEBUG] org.codehaus.plexus:plexus-classworlds:jar:1.2-alpha-13 [DEBUG] org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9-stable-1 [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.5.5 [DEBUG] org.apache.maven:maven-core:jar:2.0.10 [DEBUG] org.apache.maven:maven-project:jar:2.0.10 [DEBUG] org.apache.maven:maven-artifact:jar:2.0.10 [DEBUG] org.apache.maven:maven-plugin-api:jar:2.0.10 [DEBUG] org.apache.maven:maven-plugin-descriptor:jar:2.0.10 [DEBUG] org.apache.maven.reporting:maven-reporting-impl:jar:2.0.4.1 [DEBUG] org.apache.maven.shared:file-management:jar:1.2.1 [DEBUG] org.sonatype.gshell:gshell-io:jar:2.0 [DEBUG] jline:jline:jar:0.9.94 [DEBUG] com.thoughtworks.qdox:qdox:jar:1.8 [DEBUG] commons-lang:commons-lang:jar:2.4 [DEBUG] junit:junit:jar:3.8.2 [DEBUG] org.codehaus.gmaven.feature:gmaven-feature-api:jar:1.2 [DEBUG] org.codehaus.gmaven.feature:gmaven-feature-support:jar:1.2 [DEBUG] org.codehaus.gmaven.runtime:gmaven-runtime-api:jar:1.2 [DEBUG] org.codehaus.gmaven.runtime:gmaven-runtime-support:jar:1.2 [DEBUG] org.codehaus.gmaven.runtime:gmaven-runtime-loader:jar:1.2 [DEBUG] org.codehaus.gmaven.runtime:gmaven-runtime-1.5:jar:1.2 [DEBUG] org.codehaus.gmaven.runtime:gmaven-runtime-1.6:jar:1.2 [DEBUG] org.codehaus.gmaven.runtime:gmaven-runtime-1.7:jar:1.2 [DEBUG] org.codehaus.gmaven:gmaven-mojo:jar:1.2 [DEBUG] org.codehaus.gmaven:gmaven-mojo-support:jar:1.2 [DEBUG] org.codehaus.gmaven:gmaven-plugin:jar:1.2 [DEBUG] org.codehaus.gmaven:gmaven-packaging:jar:1.2 [DEBUG] Retrieving parent-POM: org.mortbay.jetty:modules-extra:pom:7.0.0.pre5 for project: null:jetty-maven-plugin:maven-plugin:null from the repository. [DEBUG] Retrieving parent-POM: org.mortbay.jetty:jetty-project:pom:7.0.0.pre5 for project: null:modules-extra:pom:null from the repository. [DEBUG] Retrieving parent-POM: org.mortbay.jetty:jetty-parent:pom:7 for project: org.mortbay.jetty:jetty-project:pom:7.0.0.pre5 from the repository. [DEBUG] Adding managed dependencies for unknown:jetty-maven-plugin [DEBUG] org.mortbay.jetty:servlet-api:jar:3.0.pre4 [DEBUG] org.apache.maven:maven-plugin-tools-api:jar:2.0 [DEBUG] junit:junit:jar:3.8.2 [DEBUG] org.slf4j:jcl104-over-slf4j:jar:1.3.1 [DEBUG] org.slf4j:slf4j-simple:jar:1.3.1 [DEBUG] ant:ant:jar:1.6.5 [DEBUG] org.apache.geronimo.specs:geronimo-jta_1.1_spec:jar:1.1.1 [DEBUG] javax.mail:mail:jar:1.4 [DEBUG] javax.activation:activation:jar:1.1 [INFO] ------------------------------------------------------------------------ [ERROR] FATAL ERROR [INFO] ------------------------------------------------------------------------ [INFO] null [INFO] ------------------------------------------------------------------------ [DEBUG] Trace java.lang.NullPointerException at java.io.File.<init>(File.java:222) at org.apache.maven.project.artifact.MavenMetadataSource.createArtifacts(MavenMetadataSource.java:445) at org.apache.maven.plugin.DefaultPluginManager.addPlugin(DefaultPluginManager.java:377) at org.apache.maven.plugin.DefaultPluginManager.verifyVersionedPlugin(DefaultPluginManager.java:217) at org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPluginManager.java:177) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1517) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(DefaultLifecycleExecutor.java:1722) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListByAggregationNeeds(DefaultLifecycleExecutor.java:446) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:176) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:356) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:137) at org.apache.maven.cli.MavenCli.main(MavenCli.java:356) 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:597) 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) [INFO] ------------------------------------------------------------------------ [INFO] Total time: < 1 second [INFO] Finished at: Thu May 20 18:32:36 EDT 2010 [INFO] Final Memory: 4M/7M [INFO] ------------------------------------------------------------------------ -- View this message in context: http://old.nabble.com/unable-to--run-jetty-tp28627755p28627755.html Sent from the Maven - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org