English 中文(简体)
失踪的Maven Pluginjetty
原标题:Missing Maven Plugin Jetty

http://hrycan.com/03/28/primefaces-lazy-loading-datatable-for-jsf2/“rel=“noreferer”http://hrycan.com/03/28/primefaces-lazy-loading-datatable-for-jsf2/。

它说,我只是说一句话。

mvn jetty:run

但是,我仍在面对这一错误。

org.apache.maven.plugin.prefix.NoPluginFoundForPrefixException: No plugin found
for prefix  jetty  in the current project and in the plugin groups [org.apache.m
aven.plugins, org.codehaus.mojo] available from the repositories [local (C:MyRepo), central (http://repo1.maven.org/maven2)]
        at org.apache.maven.plugin.prefix.internal.DefaultPluginPrefixResolver.r

我在此使用了Maven 3。

任何想法?

ADD:

从这个环节来看,它已经到了om。

<plugin>
    <groupId>org.mortbay.jetty</groupId>
    <artifactId>jetty-maven-plugin</artifactId>
    <version>7.5.1.v20110908</version>
    <dependencies>
        <dependency>
            <groupId>mysql</groupId>
            <artifactId>mysql-connector-java</artifactId>
            <version>${mysql.version}</version>
        </dependency>
    </dependencies>
</plugin>
最佳回答

你们是否在 p子上添加了gin? 快速通道探测发现:

<project>
  ...
  <build>
    ...
    <plugins>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>jetty-maven-plugin</artifactId>
      </plugin>
    </plugins>
  </build>
</project>

Found here: http://mojo.codehaus.org/jetty-maven-plugin/usage.html

问题回答

确保你从项目目录中执行突击式喷气机:run。 如果你将列出目前的名录,请见该目录。

如果你不参加你的项目,并运行 mvn jetty:run ,将获得“Missing Maven Plugintyjetty”

        <plugin>
            <groupId>org.mortbay.jetty</groupId>
            <artifactId>jetty-maven-plugin</artifactId>
            <version>8.1.12.v20130726</version>
            <configuration>
                <stopKey>todostop</stopKey>
                <stopPort>9999</stopPort>
            </configuration>
        </plugin>

希望将有助于

我也存在这一问题。 我先从Eclipse内部使用“Maven Building”运行配置的jetty:run

问题在于,在我的Maven Building 经营组合中,“基地名录”(即可起诉者使用的工作目录)被错误地确定。 为载有<代码>xml的名录确定基名录,确定了问题。

很可能你的说法是错误的。 提 出

    <plugins>
        <plugin>
          <groupId>org.eclipse.jetty</groupId>
          <artifactId>jetty-maven-plugin</artifactId>
          <version>9.2.6.v20141205</version>
        </plugin>
    </plugins>

在粉碎部分之外,你应排在 p子上,以便开始喷气式指挥。





相关问题
Maven plugin for gathering source code statistics [closed]

Our project is based on J2EE and we would like to know if there is a open source maven-plugin which either integrates with cloc (Refer How can I measure source code statistics?) or other tools?

Transitive dependencies in maven plugins

Are dependencies in Maven plugins supposed to resolve their transitive dependencies or do they have to be manually added to the plugin dependencies?

Signing Applet with Maven jar plug-in and Bouncy Castle

I have a problem with a signed Java applet - specifically, why it is not signed using my certificate. I m using Maven in Eclipse. The applet (a) allows the user to choose a local file or directory, (...

Change output directory for apt-maven-plugin

I am using apt-maven-plugin to process some Beehive Netui annotations before building a war. The output of the apt processing is a _pageflow directory which contains struts config files (xml text) ...

Compile scala classes with debug info through Maven

I have a scala project that I use Maven and the maven-scala-plugin to compile. I need to include debug information in the compiled classes and I was wondering is there a way to ask Maven or the scala ...

热门标签