运行TwitterWebSocket示例时在Pom.xml中获取错误?

运行TwitterWebSocket示例时在Pom.xml中获取错误?,twitter,websocket,apache-camel,Twitter,Websocket,Apache Camel,从apache camel 2.10运行twitter websocket示例时出错: 说明资源路径位置类型 maven远程资源插件(目标“流程”)被m2e忽略。pom.xml/camel示例twitter websocket line 26 Maven项目构建生命周期映射问题 虽然我的Pom.xml文件是 <?xml version="1.0" encoding="UTF-8"?> <!-- Licensed to the Apache Software Foun

从apache camel 2.10运行twitter websocket示例时出错:

说明资源路径位置类型 maven远程资源插件(目标“流程”)被m2e忽略。pom.xml/camel示例twitter websocket line 26 Maven项目构建生命周期映射问题

虽然我的Pom.xml文件是

<?xml version="1.0" encoding="UTF-8"?>

<!--

    Licensed to the Apache Software Foundation (ASF) under one or more
    contributor license agreements.  See the NOTICE file distributed with
    this work for additional information regarding copyright ownership.
    The ASF licenses this file to You under the Apache License, Version 2.0
    (the "License"); you may not use this file except in compliance with
    the License.  You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.

-->

<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>

  <parent>
    <groupId>org.apache.camel</groupId>
    <artifactId>examples</artifactId>
    <version>2.10.4</version>
    <relativePath>..</relativePath>
  </parent>

  <artifactId>camel-example-twitter-websocket</artifactId>
  <name>Camel :: Example :: Twitter WebSocket</name>
  <description>An example that pushes new tweets to a web page using web-socket</description>

  <dependencies>

    <dependency>
      <groupId>org.apache.camel</groupId>
      <artifactId>camel-core</artifactId>
    </dependency>
    <dependency>
      <groupId>org.apache.camel</groupId>
      <artifactId>camel-twitter</artifactId>
    </dependency>
    <dependency>
      <groupId>org.apache.camel</groupId>
      <artifactId>camel-websocket</artifactId>
    </dependency>

    <!-- logging to the console -->
    <dependency>
      <groupId>org.slf4j</groupId>
      <artifactId>slf4j-log4j12</artifactId>
    </dependency>
    <dependency>
      <groupId>log4j</groupId>
      <artifactId>log4j</artifactId>
    </dependency>

  </dependencies>

  <build>
    <plugins>
      <!-- Allows the example to be run via 'mvn compile exec:java' -->
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>exec-maven-plugin</artifactId>
        <configuration>
          <mainClass>org.apache.camel.example.websocket.CamelTwitterWebSocketMain</mainClass>
          <includePluginDependencies>false</includePluginDependencies>
        </configuration>
      </plugin>
    </plugins>

    <pluginManagement>
        <plugins>
            <!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
            <plugin>
                <groupId>org.eclipse.m2e</groupId>
                <artifactId>lifecycle-mapping</artifactId>
                <version>1.0.0</version>
                <configuration>
                    <lifecycleMappingMetadata>
                        <pluginExecutions>
                            <pluginExecution>
                                <pluginExecutionFilter>
                                    <groupId>org.apache.felix</groupId>
                                    <artifactId>
                                        maven-bundle-plugin
                                    </artifactId>
                                    <versionRange>
                                        [2.3.7,)
                                    </versionRange>
                                    <goals>
                                        <goal>cleanVersions</goal>
                                    </goals>
                                </pluginExecutionFilter>
                                <action>
                                    <ignore></ignore>
                                </action>
                            </pluginExecution>
                        </pluginExecutions>
                    </lifecycleMappingMetadata>
                </configuration>
            </plugin>
        </plugins>
    </pluginManagement>
  </build>

</project>

4.0.0
org.apache.camel
例子
2.10.4
..
camel示例twitterwebsocket
Camel::Example::twitterwebsocket
使用web套接字将新推文推送到网页的示例
org.apache.camel
驼芯
org.apache.camel
骆驼推特
org.apache.camel
骆驼网袜
org.slf4j
slf4j-log4j12
log4j
log4j
org.codehaus.mojo
execmaven插件
org.apache.camel.example.websocket.CamelTwitterWebSocketMain
假的
org.eclipse.m2e
生命周期映射
1.0.0
org.apache.felix
maven捆绑插件
[2.3.7,)
清洁版本

希望你的建议

我不认为这是一个错误。很可能只是Maven写了一条警告信息什么的

您是否可以不按文档所述运行该示例?

Syed,在很多地方发布相同的问题,而不告诉别人这一点不是很好。另外,当你参考其他资源时,请提供链接。这里没有其他读者可以找到“fuse ide论坛”.子句我下次会小心…我运行了它并得到了这个,但无法运行localhost:9090请检查我的此帖子我也尝试了第一次[root@localhostcamel示例twitter websocket]#mvn编译bash:mvn:command not found和这个[root@localhost骆驼示例twitter websocket]#mvn exec java bash:mvn:command not found如果要从命令行运行,需要首先安装ApacheMaven-请参见此处