|
From: Thorsten H. <th...@gm...> - 2007-04-25 09:03:01
|
Hi, > Creating the pom is not that tough right. Once i downloaded the required > archetypes, I imported my local repository into artifactory. :) > > I have an issue when downloading the jetty plugin. It is not there in the > local repo, but its supposed to download from the central repo right? > Unable to figure this out... According to the hints at http://jetty.mortbay.org/maven-plugin/howto.html and using the following minimal pom.xml I had no problems downloading the Jetty plugin: <?xml version="1.0" encoding="UTF-8"?> <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>foo</groupId> <artifactId>bar</artifactId> <version>1.0-SNAPSHOT</version> <packaging>jar</packaging> <build> <plugins> <plugin> <groupId>org.mortbay.jetty</groupId> <artifactId>maven-jetty-plugin</artifactId> </plugin> </plugins> </build> </project> Maven downloaded a lot of stuff via Artifactory and finally stopped with an expected error message because I don't have any (re-)sources with the above pom.xml: [INFO] [jetty:run] [INFO] Configuring Jetty for project: Unnamed - foo:bar:jar:1.0-SNAPSHOT [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Webapp source directory C:\cygwin\home\H2841\asd\src\main\webapp does not exist [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: 28 seconds [INFO] Finished at: Wed Apr 25 11:00:24 CEST 2007 [INFO] Final Memory: 5M/11M [INFO] ------------------------------------------------------------------------ HTH Thorsten |