Flex 4.6 POM file dependency not resolved

I am trying to convert a Flex 4.6 project to Maven. Here is my pom.xml.

    <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>

I get the following error:

[ERROR] Project com.adobe: gDash-main-maven: 1.0-SNAPSHOT (C: \\ pom.xml) contains 1 error [ERROR] Insoluble build extension: com.adobe.flex.compiler plugin: batik- all -flex : 4.6.0.23201 or one of its dependencies cannot be resolved: failed to resolve wing artifacts: com.adobe.flex.compiler: batik- all-flex: jar: 4.6.0.23201, com.adobe. flex: compiler: pom: 4.6.0.23201: could not find artifact c om.adobe.flex.compiler: batik- all-flex: jar: 4.6.0.23201 in the central part ( http://repo.ma ven.apache.org/maven2) β†’ [Help 2] org.apache.maven.plugin.PluginResolutionException: com.adobe.flex.compile r: batik- all-flex: 4.6.0.23201 : T : com.adobe.flex.compiler: batik- all-flex: jar: 4.6.0.23201, com.adobe.flex: compiler: pom: 4.6.0.23201: com. adobe.flex.compiler: batik- all-flex: jar: 4.6.0.23201 (http: /rere.maven.apache.org/maven2)

+5
2

. 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>

:)

IDE POM, .

+1

All Articles