2010-02-09 66 views
2

如果我嘗試入門http://flexmojos.sonatype.org/getting-started.html,我會收到一些錯誤。有人可以幫我嗎?我對maven很陌生,但由於這是一個入門,所以我喜歡「一切都會順利......不是。flex-mojos問題

錯誤:

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) 

回答

6

這些依賴關係不提供正在使用的存儲庫(中央(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> 
相關問題