Hi,

this is a dependency Flexmojos seems to have. So as soon as you use the 
flexmojos plugin, this Needs to download guice-bean-containers and this doesn't 
seem to be possible in your case. This is rather strange though, because this 
should be available in maven central.

Your pom Looks perfectly sane to me, so I guess this is more a Maven Setup 
Problem.

Try adding a normal Java dependency to this artifact in an empty maven Project 
and check if it is correclty fetched.

Chris

________________________________________
Von: Poonam Anand <[email protected]>
Gesendet: Mittwoch, 12. März 2014 15:50
An: [email protected]
Betreff: Flex mojos 6.0.1 and Flex SDK 4.10 - Maven build succeeds but pom 
giving errors in Flex builder

I am using Flex mojos 6.0.1 and Flex SDK 4.10. Maven build succeeds from
terminal and Flex builder also but pom giving below errors in Flex builder:

Project build error: Unresolveable build extension: Plugin
net.flexmojos.oss:flexmojos-maven-plugin:6.0.1 or one of its dependencies
could not be resolved: The repository system is offline but the artifact
org.sonatype.sisu.inject:guice-bean-containers:jar:2.3.0 is not available in
the local repository.

Project build error: Unknown packaging: swc

I am not using this dependency
(org.sonatype.sisu.inject:guice-bean-containers:jar) in my pom anywhere.

Pls note I have changed builder settings in
Preferences->Maven->installations to use maven home on my local instead of
embedded one in case that is causing some issues. Prior to this, maven build
was failing from builder saying Flex mojos 6.0.1 needs 3.0.1 maven.

Pom as below:

<?xml version="1.0" encoding="UTF-8"?>

<project xmlns="http://maven.apache.org/POM/4.0.0";
                 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
                 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd";>
        <modelVersion>4.0.0</modelVersion>
        <groupId>kiwikframework</groupId>
        <artifactId>kiwikframework</artifactId>
        <version>1.0-SNAPSHOT</version>
        <packaging>swc</packaging>
        <name>kiwikframework Library</name>

        <properties>
                <flex.version>4.10.0.20130801</flex.version>
                <flexmojos.version>6.0.1</flexmojos.version>
        </properties>

        <build>
                <sourceDirectory>src/main/flex</sourceDirectory>

                <plugins>
                        <plugin>
                                <groupId>net.flexmojos.oss</groupId>
                                <artifactId>flexmojos-maven-plugin</artifactId>
                                <version>${flexmojos.version}</version>
                                <extensions>true</extensions>

                                <dependencies>
                                        <dependency>
                                                
<groupId>net.flexmojos.oss</groupId>
                                                
<artifactId>flexmojos-threadlocaltoolkit-wrapper</artifactId>
                                                
<version>${flexmojos.version}</version>
                                        </dependency>






                                        <dependency>
                                                
<groupId>com.adobe.flex</groupId>
                                                
<artifactId>compiler</artifactId>
                                                
<version>${flex.version}</version>
                                                <type>pom</type>
                                        </dependency>
                                </dependencies>
                                <configuration>
                                        <fonts>
                                                <managers>
                                                        
<manager>flash.fonts.CFFFontManager</manager>
                                                </managers>
                                        </fonts>

                                        <locales>
                                                <locale>en_US</locale>
                                        </locales>
                                        <targetPlayer>11.8</targetPlayer>
                                </configuration>
                        </plugin>
                </plugins>
        </build>
        <dependencies>
                <dependency>
                        <groupId>kiwikcore4</groupId>
                        <artifactId>kiwikcore4</artifactId>
                        <version>1.0-SNAPSHOT</version>
                        <type>swc</type>
                </dependency>
        </dependencies>

        <profiles>
        <profile>
            <id>m2e</id>
            <activation>
                <property>
                    <name>m2e.version</name>
                </property>
            </activation>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.maven.ide.eclipse</groupId>
                        <artifactId>lifecycle-mapping</artifactId>
                        <version>0.9.9-SNAPSHOT</version>
                        <configuration>
                            <mappingId>customizable</mappingId>
                            <configurators>
                                <configurator

id='org.maven.ide.eclipse.configuration.flex.configurator' />
                            </configurators>
                            <mojoExecutions>
                                <mojoExecution>

org.apache.maven.plugins:maven-resources-plugin::
                                </mojoExecution>
                            </mojoExecutions>
                        </configuration>
                    </plugin>
                </plugins>
                <pluginManagement>
                    <plugins>
                        <plugin>
                            <groupId>org.apache.maven.plugins</groupId>
                            <artifactId>maven-resources-plugin</artifactId>
                            <version>2.4</version>
                        </plugin>
                    </plugins>
                </pluginManagement>
            </build>
        </profile>
    </profiles>
</project>






--
View this message in context: 
http://apache-flex-users.2333346.n4.nabble.com/Flex-mojos-6-0-1-and-Flex-SDK-4-10-Maven-build-succeeds-but-pom-giving-errors-in-Flex-builder-tp5411.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

Reply via email to