flex-mojos 的问题
如果我尝试在 http://flexmojos.sonatype.org/getting-started 上进行入门。 html 我收到一些错误。有人可以帮我吗?我是 Maven 新手,但由于这是一个入门,我希望一切都会顺利......不是。
错误:
Missing:
----------
1) net.sf.saxon:saxon-dom:jar:9.0
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=net.sf.saxon -DartifactId=saxon-dom -Dv
ersion=9.0 -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=net.sf.saxon -DartifactId=saxon-dom -Dver
sion=9.0 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) org.sonatype.flexmojos:flexmojos-maven-plugin:maven-plugin:3.4.2
2) net.sf.saxon:saxon-dom:jar:9.0
2) org.graniteds:granite-generator-share:jar:2.0.0.GA
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=org.graniteds -DartifactId=granite-gene
rator-share -Dversion=2.0.0.GA -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=org.graniteds -DartifactId=granite-genera
tor-share -Dversion=2.0.0.GA -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -D
repositoryId=[id]
Path to dependency:
1) org.sonatype.flexmojos:flexmojos-maven-plugin:maven-plugin:3.4.2
2) org.sonatype.flexmojos:flexmojos-generator-graniteds-2.0.0:jar:3.4.2
3) org.graniteds:granite-generator-share:jar:2.0.0.GA
3) org.jvnet:animal-sniffer-annotation:jar:1.0
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=org.jvnet -DartifactId=animal-sniffer-a
nnotation -Dversion=1.0 -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=org.jvnet -DartifactId=animal-sniffer-ann
otation -Dversion=1.0 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -Dreposit
oryId=[id]
Path to dependency:
1) org.sonatype.flexmojos:flexmojos-maven-plugin:maven-plugin:3.4.2
2) org.jvnet:animal-sniffer-annotation:jar:1.0
----------
3 required artifacts are missing.
for artifact:
org.sonatype.flexmojos:flexmojos-maven-plugin:maven-plugin:3.4.2
from the specified remote repositories:
central (http://repo1.maven.org/maven2)
If I try the getting-started on http://flexmojos.sonatype.org/getting-started.html I get some errors. Can somebody help me out? I'm new to maven, but since it's a getting-started, I was hopin' everything would go smooth...not.
Errors:
Missing:
----------
1) net.sf.saxon:saxon-dom:jar:9.0
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=net.sf.saxon -DartifactId=saxon-dom -Dv
ersion=9.0 -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=net.sf.saxon -DartifactId=saxon-dom -Dver
sion=9.0 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) org.sonatype.flexmojos:flexmojos-maven-plugin:maven-plugin:3.4.2
2) net.sf.saxon:saxon-dom:jar:9.0
2) org.graniteds:granite-generator-share:jar:2.0.0.GA
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=org.graniteds -DartifactId=granite-gene
rator-share -Dversion=2.0.0.GA -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=org.graniteds -DartifactId=granite-genera
tor-share -Dversion=2.0.0.GA -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -D
repositoryId=[id]
Path to dependency:
1) org.sonatype.flexmojos:flexmojos-maven-plugin:maven-plugin:3.4.2
2) org.sonatype.flexmojos:flexmojos-generator-graniteds-2.0.0:jar:3.4.2
3) org.graniteds:granite-generator-share:jar:2.0.0.GA
3) org.jvnet:animal-sniffer-annotation:jar:1.0
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=org.jvnet -DartifactId=animal-sniffer-a
nnotation -Dversion=1.0 -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=org.jvnet -DartifactId=animal-sniffer-ann
otation -Dversion=1.0 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -Dreposit
oryId=[id]
Path to dependency:
1) org.sonatype.flexmojos:flexmojos-maven-plugin:maven-plugin:3.4.2
2) org.jvnet:animal-sniffer-annotation:jar:1.0
----------
3 required artifacts are missing.
for artifact:
org.sonatype.flexmojos:flexmojos-maven-plugin:maven-plugin:3.4.2
from the specified remote repositories:
central (http://repo1.maven.org/maven2)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这些依赖项在正在使用的存储库中不可用(中央(http://repo1.maven.org/maven2< /a>))。例如,Saxon-dom 依赖项只有 8.7 版本,而不是您需要的 9.0 版本。 http://repo2.maven.org/maven2/net/sf/ saxon/saxon-dom/
要解决这个问题,您需要向具有这些依赖项的 pom 添加一个额外的存储库。
These dependencies are not available in the repository that is being used (central (http://repo1.maven.org/maven2)). For instance, the Saxon-dom dependency only has a 8.7 version and not a 9.0 as you require. http://repo2.maven.org/maven2/net/sf/saxon/saxon-dom/
To solve this, you need to add an extra repository to the pom that does have these dependencies.