Java 开关站Maven项目故障
我需要编写一个简单的SwitchYard应用程序,但看起来maven无论如何都不喜欢SwitchYard,因为它无法在中央repo中找到maven依赖项。我不知道如何修复它,因为没有任何文档和JBoss存储库可以从中获取依赖项。这是pom.xml和错误日志,希望您能给我一些想法:Java 开关站Maven项目故障,java,maven,Java,Maven,我需要编写一个简单的SwitchYard应用程序,但看起来maven无论如何都不喜欢SwitchYard,因为它无法在中央repo中找到maven依赖项。我不知道如何修复它,因为没有任何文档和JBoss存储库可以从中获取依赖项。这是pom.xml和错误日志,希望您能给我一些想法: <?xml version="1.0" encoding="UTF-8"?> <project xsi:schemaLocation="http://maven.apache.org/POM/4.0.
<?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]
4.0.0
com.project
第一个项目
0.0.1-快照
com.project:FirstProject
1.1.0.1最终版本
org.switchyard.components
开关站组件bean
${switchyard.version}
org.开关站
开关站api
${switchyard.version}
org.开关站
开关站变换
${switchyard.version}
org.开关站
开关站验证
${switchyard.version}
org.开关站
开关站插件
${switchyard.version}
org.开关站
开关站试验
${switchyard.version}
测试
org.switchyard.components
开关站组件测试混合cdi
${switchyard.version}
测试
org.开关站
开关站插件
${switchyard.version}
配置
org.switchyard.transform.config.model.TransformSwitchYardScanner
maven编译器插件
2.3.2
1.6
1.6
真的
真的
真的
[错误]Plugin org.switchyard:switchyard Plugin:1.1.0.FINAL或其一个依赖项无法解析:无法读取组织的工件描述符。switchyard:switchyard Plugin:jar:1.1.0.FINAL:无法在central中找到工件组织。switchyard:switchyard Plugin:pom:1.1.0.FINAL(http://repo.maven.apache.org/maven2)->[帮助1]
而不是:
<dependency>
<groupId>org.switchyard</groupId>
<artifactId>switchyard-plugin</artifactId>
<version>${switchyard.version}</version>
</dependency>
org.开关站
查看POM中的插件。包装类型是maven plugin。仍然相同。我试图删除插件依赖项,但它只是说所有其他依赖项都是错误的。我不知道哪里出了问题
<dependency>
<groupId>org.switchyard</groupId>
<artifactId>switchyard-plugin</artifactId>
<version>${switchyard.version}</version>
<type>maven-plugin</type>
</dependency>