Athena最新JDBC驱动程序jar AthenaJDBC42_2.0.14
我已将最新的JDBCJAR安装到本地mvn repo中。当我试图构建我的项目时,我发现了以下错误Athena最新JDBC驱动程序jar AthenaJDBC42_2.0.14,jdbc,amazon-athena,mulesoft,Jdbc,Amazon Athena,Mulesoft,我已将最新的JDBCJAR安装到本地mvn repo中。当我试图构建我的项目时,我发现了以下错误 Failed to collect dependencies at Athena:AthenaJDBC42:jar:2.0.14.1000: Failed to read artifact descriptor for Athena:AthenaJDBC42:jar:2.0.14.1000: 1 problem was encountered while building the effective
Failed to collect dependencies at Athena:AthenaJDBC42:jar:2.0.14.1000: Failed to read artifact descriptor for Athena:AthenaJDBC42:jar:2.0.14.1000: 1 problem was encountered while building the effective model for Athena:AthenaJDBC${env.JDBC_V}:${env.MAJOR_V}.${env.MINOR_V}.${env.REVISION_V}.${env.BUILD_V}
[ERROR] [ERROR] 'artifactId' with value 'AthenaJDBC${env.JDBC_V}' does not match a valid id pattern. @
任何人都知道如何解决这个错误。?仅用一个小的Maven错误片段很难说,但Maven似乎无法识别属性${env.JDBC_V},或者它包含一些无效值,如空格
我建议生成一个Maven有效的pom模型(
mvn help~effective pom
),并在调试模式下执行Maven(mvn-X…
),以尝试对原因进行故障排除。我遇到了相同的错误。当我使用以下命令将jar安装到存储库中时,它得到了解决。(确保在执行命令之前从.m2中删除了athena驱动程序jar文件的所有现有实例)
mvn安装:安装文件-Dfile=/Users/chetanparekh/Downloads/AthenaJDBC42_2.0.14.jar-DgroupId=Athena-DartifactId=AthenaJDBC42-Dversion=2.0.14.1000-dpackage=jar
我的POM中的片段
<build>
<plugins>
<plugin>
<groupId>org.mule.tools.maven</groupId>
<artifactId>mule-maven-plugin</artifactId>
<version>${mule.maven.plugin.version}</version>
<extensions>true</extensions>
<configuration>
<sharedLibraries>
<sharedLibrary>
<groupId>Athena</groupId>
<artifactId>AthenaJDBC42</artifactId>
</sharedLibrary>
</sharedLibraries>
</configuration>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>Athena</groupId>
<artifactId>AthenaJDBC42</artifactId>
<version>2.0.14.1000</version>
</dependency>
</dependencies>
org.mule.tools.maven
mule maven插件
${mule.maven.plugin.version}
真的
雅典娜
雅典娜jdbc42
雅典娜
雅典娜jdbc42
2.0.14.1000
谢谢您的回答。
我最终用计算机解决了这个问题
mvn安装:安装文件-Dfile=/Users/dk/Downloads/AthenaJDBC42_2.0.14.jar-DgroupId=Athena-DartifactId=AthenaJDBC42-Dversion=2.0.14
删除了构建版本(1000)和-Dpackaing=jar,一切正常。我不确定build version.1000和-Dpacking=jar会有什么问题
再次感谢