我刚刚开始使用 QT Jambi,并且在使 Maven 插件正常工作时遇到了一些问题。我收到以下错误消息:
[错误] 无法在项目 DegooClientGUI 上执行目标 net.sf.qtjambi:qtjambi-maven-plugin:4.6.3.1:generate (default-cli):执行目标 net.sf.qtjambi:qtjambi-maven-plugin 的 default-cli :4.6.3.1:生成失败:插件net.sf.qtjambi:qtjambi-maven-plugin:4.6.3.1或其依赖项之一无法解析:无法收集net.sf.qtjambi的依赖项:qtjambi-maven-plugin :jar:4.6.3.1():无法读取net.sf.qtjambi的工件描述符:qtjambi-maven-plugin-win32:jar:4.6.3.1:无法传输工件net.sf.qtjambi:qtjambi-maven-plugin -win32:pom:4.6.3.1 from/to qtjambi (http://qtjambi.sourceforge.net/maven2/):校验和验证失败,存储库中没有可用的校验和 -> [帮助 1]
我的 pom 看起来像这样:
<repositories>
<repository>
<id>qtjambi</id>
<name>qtjambi</name>
<url>http://qtjambi.sourceforge.net/maven2/</url>
<releases>
<checksumPolicy>ignore</checksumPolicy>
</releases>
<snapshots>
<checksumPolicy>ignore</checksumPolicy>
</snapshots>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>qtjambi</id>
<name>qtjambi</name>
<url>http://qtjambi.sourceforge.net/maven2/</url>
<releases>
<checksumPolicy>ignore</checksumPolicy>
</releases>
<snapshots>
<checksumPolicy>ignore</checksumPolicy>
</snapshots>
</pluginRepository>
</pluginRepositories>
<dependencies>
<dependency>
<groupId>net.sf.qtjambi</groupId>
<artifactId>qtjambi</artifactId>
<version>4.6.3</version>
</dependency>
</dependencies>
<build>
<sourceDirectory>src</sourceDirectory>
<testSourceDirectory>tests</testSourceDirectory>
<plugins>
<plugin>
<groupId>net.sf.qtjambi</groupId>
<artifactId>qtjambi-maven-plugin</artifactId>
<version>4.6.3.1</version>
<executions>
<execution>
<id>qtjambi</id>
<goals>
<goal>generate</goal>
</goals>
</execution>
</executions>
<configuration>
<!-- Specifies where sources are. This parameter is MANDATORY -->
<sourcesDir>src</sourcesDir>
<!-- following parameters aren't mandatory, they use defaults as specified here
if not specified
<translationsDir>src/main/resources/translations</translationsDir>
<destinationDir>target/generated-sources/qtjambi</destinationDir>
-->
<!-- cause -noobsolete switch for lupdate -->
<noObsoleteTranslations>true</noObsoleteTranslations>
</configuration>
</plugin>
</plugins>
</build>
如您所见,我试图忽略校验和错误,但这无济于事。我还尝试指定存储库中可用的其他版本。那也没有帮助。有任何想法吗?提前致谢!