首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >SwitchYard Maven项目问题

SwitchYard Maven项目问题
EN

Stack Overflow用户
提问于 2015-03-05 08:17:06
回答 1查看 416关注 0票数 1

我需要编写一个简单的SwitchYard应用程序,但是看起来maven无论如何都不喜欢SwitchYard,因为它在中央存储库找不到maven依赖项。我不知道如何修复它,因为没有任何文档和JBoss存储库可以从中获取依赖项。这是pom.xml和错误日志,希望你能给我一些想法:

代码语言:javascript
复制
<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <modelVersion>4.0.0</modelVersion>
  <groupId>com.project</groupId>
  <artifactId>FirstProject</artifactId>
  <version>0.0.1-SNAPSHOT</version>
  <name>com.project:FirstProject</name>
  <properties>
    <switchyard.version>1.1.0.FINAL</switchyard.version>
  </properties>
  <dependencies>
    <dependency>
      <groupId>org.switchyard.components</groupId>
      <artifactId>switchyard-component-bean</artifactId>
      <version>${switchyard.version}</version>
    </dependency>
    <dependency>
      <groupId>org.switchyard</groupId>
      <artifactId>switchyard-api</artifactId>
      <version>${switchyard.version}</version>
    </dependency>
    <dependency>
      <groupId>org.switchyard</groupId>
      <artifactId>switchyard-transform</artifactId>
      <version>${switchyard.version}</version>
    </dependency>
    <dependency>
      <groupId>org.switchyard</groupId>
      <artifactId>switchyard-validate</artifactId>
      <version>${switchyard.version}</version>
    </dependency>
    <dependency>
      <groupId>org.switchyard</groupId>
      <artifactId>switchyard-plugin</artifactId>
      <version>${switchyard.version}</version>
    </dependency>
    <dependency>
      <groupId>org.switchyard</groupId>
      <artifactId>switchyard-test</artifactId>
      <version>${switchyard.version}</version>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.switchyard.components</groupId>
      <artifactId>switchyard-component-test-mixin-cdi</artifactId>
      <version>${switchyard.version}</version>
      <scope>test</scope>
    </dependency>
  </dependencies>
  <build>
    <plugins>
       <plugin>
        <groupId>org.switchyard</groupId>
        <artifactId>switchyard-plugin</artifactId>
        <version>${switchyard.version}</version>
        <executions>
          <execution>
            <goals>
              <goal>configure</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <scannerClassNames>
            <param>org.switchyard.transform.config.model.TransformSwitchYardScanner</param>
          </scannerClassNames>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-compiler-plugin</artifactId>
        <version>2.3.2</version>
        <configuration>
          <source>1.6</source>
          <target>1.6</target>
          <debug>true</debug>
          <showWarnings>true</showWarnings>
          <showDeprecation>true</showDeprecation>
        </configuration>
      </plugin>
    </plugins>
  </build>
</project>

[ERROR] Plugin org.switchyard:switchyard-plugin:1.1.0.FINAL or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.switchyard:switchyard-plugin:jar:1.1.0.FINAL: Could not find artifact org.switchyard:switchyard-plugin:pom:1.1.0.FINAL in central (http://repo.maven.apache.org/maven2) -> [Help 1]
EN

回答 1

Stack Overflow用户

发布于 2015-03-05 08:26:06

而不是:

代码语言:javascript
复制
<dependency>
  <groupId>org.switchyard</groupId>
  <artifactId>switchyard-plugin</artifactId>
  <version>${switchyard.version}</version>
</dependency>

尝试:

代码语言:javascript
复制
<dependency>
  <groupId>org.switchyard</groupId>
  <artifactId>switchyard-plugin</artifactId>
  <version>${switchyard.version}</version>
  <type>maven-plugin</type>
</dependency>

参考:http://search.maven.org/#artifactdetails%7Corg.switchyard%7Cswitchyard-plugin%7C1.1.0.Final%7Cmaven-plugin

查看插件的POM。打包类型为maven-plugin。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/28867712

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档