2013-02-27 16 views
5

मैं बाद Maven में फ्लेक्स 4.6 परियोजना कन्वर्ट करने के लिए कोशिश कर रहा हूँ के समाधान नहीं है मेरी pom.xml हैफ्लेक्स 4.6 पोम फ़ाइल depency

<build> 
     <sourceDirectory>src</sourceDirectory> 

     <plugins> 

      <plugin> 
      <groupId>org.sonatype.flexmojos</groupId> 
      <artifactId>flexmojos-maven-plugin</artifactId> 
      <version>4.0-RC2</version> 
      <extensions>true</extensions> 
      <dependencies> 
       <dependency> 
       <groupId>com.adobe.flex</groupId> 
       <artifactId>compiler</artifactId> 
       <version>4.6.0.23201</version> 
       <type>pom</type> 
       </dependency> 
      </dependencies> 
      <executions> 
       <execution> 
       <goals> 
        <goal>wrapper</goal> 
       </goals> 
       <configuration> 
        <parameters> 
        <swf>${build.finalName}</swf> 
        <width>100%</width> 
        <height>100%</height> 
        </parameters> 
       </configuration> 
       </execution> 
      </executions> 
      </plugin> 
     </plugins> 
     </build> 

     <dependencies> 
     <dependency> 
      <groupId>com.adobe.flex.framework</groupId> 
      <artifactId>flex-framework</artifactId> 
      <version>4.6.0.23201</version> 
      <type>pom</type> 
     </dependency> 
     </dependencies> 

    <repositories> 
    <repository> 
     <id>flexmojos</id> 
     <url>http://repository.sonatype.org/content/groups/flexgroup/</url> 
    </repository> 
    </repositories> 

मैं हो रही है त्रुटि इस प्रकार है:

[त्रुटि ] प्रोजेक्ट com.adobe: gDash-main-maven: 1.0-SNAPSHOT (सी: \\ pom.xml) में 1 त्रुटि है [ERROR] अविश्वसनीय बिल्ड एक्सटेंशन: प्लगइन com.adobe.flex.compiler: batik- all- फ्लेक्स: 4.6.0.23201 या इसकी निर्भरताओं में से एक को हल नहीं किया जा सका: follo wing कलाकृतियों को हल नहीं किया जा सका: com.adobe.flex.compiler: batik-all-flex: jar: 4.6.0.23201, com.adobe.flex: compiler: pom: 4.6.0.23201: artifact c om नहीं मिला .adobe.flex.compiler: batik-all-flex: jar: 4.60.23201 केंद्रीय (http://repo.ma ven.apache.org/maven2) -> [सहायता 2] org.apache.maven.plugin.PluginResolutionException: प्लगइन com.adobe.flex.compile r: batik-all-flex: 4.6.0.23201 या निर्भरताओं में से एक को हल नहीं किया जा सका: टी वह कलाकृतियों का पालन नहीं कर सका हल हो सकता है: com.adobe.flex.compiler: batik-all - फ्लेक्स: जार: 4.6.0.23201, com.adobe.flex: कंपाइलर: पोम: 4.6.0.23201: ar tifact com.adobe.flex.compiler नहीं मिला: batik-all-flex: jar: 4.6.0.2320 में केंद्रीय 1 (http://repo.maven.apache.org/maven2)

मैं अपने lenghty जानते हैं, लेकिन मदद की सराहना की है। चूंकि मैंने कई संयोजनों की कोशिश की है।

उत्तर

1

मैं भी यही सामना कर रहा था मुसीबत। अपने pom.xml फाइल करने के लिए इस जोड़े (उदाहरण के लिए <repositories>...</repositories> के बाद):

<pluginRepositories> 
    <pluginRepository> 
     <id>flex-mojos-plugin-repository</id> 
     <url>http://repository.sonatype.org/content/groups/flexgroup</url> 
     <releases> 
      <enabled>true</enabled> 
     </releases> 
     <snapshots> 
      <enabled>false</enabled> 
     </snapshots> 
    </pluginRepository> 
</pluginRepositories> 

मेरे लिए यह हल :)

कुछ IDEs एक पोम पहले से ही इस प्लगइन भंडार युक्त फ़ाइल उत्पन्न होगा।

+0

धन्यवाद यह काम किया :) – neoahead

0

आप रेपो ब्राउज़ करते हैं, तो आप देखते हैं कि

http://repository.sonatype.org/content/groups/flexgroup/com/adobe/flex/framework/flex-framework/

संस्करण 4.6.0.23201 के लिए मौजूद नहीं है, लेकिन संस्करण 4.6.b.23201 के लिए बजाय

+0

मैंने बदल दिया है और अभी भी एक ही त्रुटि की कोशिश की है। मुझे flexmojos के एक अलग संस्करण का उपयोग करने का मानना ​​है? – neoahead

+0

आपने क्या बदल दिया? –

+0

मैंने इसे बदल दिया .. लेकिन मुझे फाटल त्रुटि मिल रही है। संस्करण में चरित्र 'बी' के कारण। java.lang.NumberFormatException: इनपुट स्ट्रिंग के लिए: "बी"। मैं maven 2.2.1 –

संबंधित मुद्दे