This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 5 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(3)
我习惯使用 maven 2,但必须使用 maven 1 进行构建,并且遇到了与您相同的问题,甚至使用相同的 jar !
这就是我所做的:
1)在这里找到丢失的jar: http:// /mirrors.ibiblio.org/pub/mirrors/maven2/thaiopensource/jing/20030619/ 并下载它+ pom 文件。
2)将jing-20030619.pom名称更改为project.xml(以符合Maven1.x),并将标签version更改为当前版本。节省。
3) 在 ing-20030619.jar 和 project.xml 旁边创建一个名为 maven.xml 的新文件。
4) 打开 maven.xml 文件并添加以下内容(如果需要,您可以指定其他目标名称):
5) 运行 maven:
6) 检查存储库文件夹以查看是否正常。
希望这有帮助!
I'm used to work with maven 2, but had to make a build with maven 1 and had the same problem as you, with the same jar even!
Here's what I did:
1) Found the missing jar here: http://mirrors.ibiblio.org/pub/mirrors/maven2/thaiopensource/jing/20030619/ and downloaded it + the pom file.
2) Change the name of jing-20030619.pom to project.xml (to comply with Maven1.x) and changed the tag version to currentVersion. Save.
3) Create a new file next to the ing-20030619.jar and project.xml named maven.xml.
4) Open the maven.xml file and add this content (you can specify other goal name if you want):
5) Run maven:
6) Check your repository folder to see if it went OK.
Hope this helped!
尝试 Artifact 插件,尤其是
artifact :安装目标。
Try the Artifact plugin, especially the
artifact:install
goal.帮自己一个忙,升级到 Maven 3。您不会发现任何人仍在使用 Maven 1。它早已消亡。
Do yourself a favour and upgrade to Maven 3. You will not find anybody still using Maven 1. It is long dead.