带有pom.xml的JBoss switchyard问题

时间:2018-10-12 11:51:01

标签: maven jboss switchyard

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

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

Screen shoot

问题是我找不到能够使用mvn全新安装或mvn安装重新编译的工作示例。

这是我的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的一些教程,但是有同样的问题。 谢谢您的帮助

1 个答案:

答案 0 :(得分: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)