maven kullanarak basit bir helloworld sunucuya ev sahipliği yapmak için jetty kullanmaya çalışıyorum. Kafam çok karışık. maven jetty - org.mortbay.jetty ve org.eclipse.jetty
Bunları instructions uyguladım amamvn jetty:run
kesilirken, aşağıdaki hatayı alıyorum: Ben, bazı,
org.mortbay.jetty
kastediyoruz örnekler ve diğerleri için Web'de arama yaparken
[ERROR] No plugin found for prefix 'jetty' in the current project and in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo] available from the repositories [local (/Users/abc/.m2/repository), central (http://repo.maven.apache.org/maven2)]
, karışıklığa eklemek için org.eclipse.jetty
. Eclipse versiyonunun en yeni olduğunu düşündüm, hayır mı?
maven repo üzerinde barındırılan bağımlılıkların her birinin ne anlama geldiğini tanımlayan herhangi bir belge var mı? Ve nasıl kullanılabilir?
9.0.0.v20130308
sürüm numarasını değiştirdikten sonra, farklı bir hata alıyorum:
Unable to load the mojo 'run' in the plugin 'org.eclipse.jetty:jetty-maven-plugin:9.0.0.v20130308' due to an API incompatibility: org.codehaus.plexus.component.repository.exception.ComponentLookupException: org/eclipse/jetty/maven/plugin/JettyRunMojo : Unsupported major.minor version 51.0
İşte
benim güncellenen pom geçerli:
<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.neon.research</groupId>
<artifactId>jetty</artifactId>
<packaging>war</packaging>
<version>1.0-SNAPSHOT</version>
<name>jetty Maven Webapp</name>
<url>http://maven.apache.org</url>
<properties>
<jetty.version></jetty.version>
</properties>
<dependencies>
<dependency>
<groupId>org.eclipse.jetty.orbit</groupId>
<artifactId>javax.servlet</artifactId>
<version>3.0.0.v201112011016</version>
<scope>provided</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-maven-plugin</artifactId>
<version>9.0.0.v20130308</version>
</plugin>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.6</source>
<target>jsr14</target>
</configuration>
<executions>
<execution>
<id>test-compile</id>
<phase>process-test-sources</phase>
<goals>
<goal>testCompile</goal>
</goals>
<configuration>
<source>1.6</source>
<target>1.6</target>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
Eklenti groupId'yi belirttiniz mi? - – ben75
Evet burada ben ne var: \t \t \t \t \t \t \t \t \t \t org.eclipse.jetty \t \t \t \t dalgakıran-maven-plugin \t \t \t \t 9.0. \t \t \t \t \t \t –
hba
sürümü yanlış 0, benim güncellenen cevap ve yorum bakınız. – andyb