0

我有一个 JBoss EAP 6.1,上面安装了 switchyard 工具。当我在 JBoss Studio 11.0.3 中创建一个新项目并想重新编译该项目时,我得到了这种错误:

[警告] org.switchyard:switchyard-plugin:jar:1.1.1-p5 的 POM 丢失,没有可用的依赖信息

屏幕截图

问题是我找不到一些可以使用 mvn clean install 或 mvn install 重新编译的工作示例。

这是我的 pom.xml:

<?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.example.switchyard</groupId>
    <artifactId>switchyard-example</artifactId>
    <version>0.0.1-SNAPSHOT</version>
    <name>com.example.switchyard:switchyard-example</name>

    <properties>
        <switchyard.version>1.1.1-p5</switchyard.version>
        <maven.compiler.source>1.7</maven.compiler.source>
        <maven.compiler.target>1.7</maven.compiler.target>
    </properties>
    <dependencies>
        <dependency>
            <groupId>org.switchyard.components</groupId>
            <artifactId>switchyard-component-bean</artifactId>
            <version>${switchyard.version}</version>
        </dependency>
        <dependency>
            <groupId>org.switchyard.components</groupId>
            <artifactId>switchyard-component-resteasy</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-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>
        </plugins>
    </build>
</project>

我遵循了一些来自 WEB 的教程,但遇到了同样的问题。感谢您的任何帮助

4

1 回答 1

0

我认为这是说 maven 找不到 1.1.1-p5 switchyard-plugin。三种选择:

a) 使用可用的社区版本(1.1.0.Final 等)(参见https://mvnrepository.com/artifact/org.switchyard/switchyard-plugin

b)使用 1.1.1-p5.redhat-1 - 这是我希望 JBDS 配置的版本,但也许我遗漏了一些东西:(参见https://mvnrepository.com/artifact/org.switchyard/switchyard -plugin/1.1.1-p5-redhat-1 )

c) 构建 1.1.1-p5 switchyard-plugin (git@github.com:jboss-switchyard/core.git, git checkout 1.1.1-p5)

于 2018-10-19T13:21:07.283 回答