英文:
Gradle file to Maven
问题
以下是要翻译的内容:
我想将这个依赖项添加到我的Maven Spring应用程序中。
repositories {
maven {
url = uri("https://maven.regulaforensics.com/RegulaDocumentReaderWebClient")
}
}
dependencies {
implementation("com.regula.documentreader:webclient:5.+")
}
我有这段代码,它是一个Gradle文件,我想将这个依赖项添加到我的Spring应用程序中。
英文:
I want to add this dependency to my maven spring application.
repositories {
maven {
url = uri("https://maven.regulaforensics.com/RegulaDocumentReaderWebClient")
}
}
dependencies {
implementation("com.regula.documentreader:webclient:5.+")
}
I am having this code which is of a gradle file and I want to add this dependency to my Spring application.
答案1
得分: 0
在你的应用程序的pom.xml文件中,你需要添加一个仓库标签,然后是一个依赖标签,像这样:
<repositories>
<repository>
<id>regulaforensics</id>
<url>https://maven.regulaforensics.com/RegulaDocumentReaderWebClient</url>
</repository>
</repositories>
然后
<dependencies>
<dependency>
<groupId>com.regula.documentreader</groupId>
<artifactId>webclient</artifactId>
<version>5.8.4</version>
</dependency>
</dependencies>
英文:
In your application pom.xml, you add a repository tag then, a dependency tag, like this:
<repositories>
<repository>
<id>regulaforensics</id>
<url>https://maven.regulaforensics.com/RegulaDocumentReaderWebClient</url>
</repository>
</repositories>
then
<dependencies>
<dependency>
<groupId>com.regula.documentreader</groupId>
<artifactId>webclient</artifactId>
<version>5.8.4</version>
</dependency>
</dependencies>
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论