문제

내가 시작하는 것을 시도하면 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)
도움이 되었습니까?

해결책

이러한 종속성은 사용중인 저장소에서 사용할 수 없습니다 (Central (Central)http://repo1.maven.org/maven2)). 예를 들어, Saxon-DOM 의존성은 8.7 버전 만 있으며 필요에 따라 9.0이 아닙니다. http://repo2.maven.org/maven2/net/sf/saxon/saxon-dom/

이를 해결하려면 이러한 종속성이있는 POM에 추가 저장소를 추가해야합니다.

<repositories>
    <repository>
        <id>flex-mojos-repository</id>
        <url>http://repository.sonatype.org/content/groups/flexgroup/</url>
        <releases>
            <enabled>true</enabled>
        </releases>
        <snapshots>
            <enabled>true</enabled>
        </snapshots>
    </repository>
</repositories> 
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top