________________________________________
Von: Poonam Anand <[email protected]>
Gesendet: Donnerstag, 27. März 2014 06:58
An: [email protected]
Betreff: Re: AW: Flex mojos 6.0.1 and Flex SDK 4.10 - Maven build succeeds but 
pom giving errors in Flex builder

I could get rid of this error in my Flash builder by disabling maven nature on 
my project. So now my Flash builder projects compiles successfully and maven 
builds successful from terminal. But yes I still couldn't figure out clearly 
and no proper documentation available on how to setup projects like in this 
case so that we can do maven builds from Flash builder also for given SDK and 
mojos version.

Please share any such documentation link if available.

From: Poonam Anand <[email protected]<mailto:[email protected]>>
Date: Thursday, 13 March 2014 11:08 AM
To: "Christofer Dutz [via Apache Flex Users]" 
<[email protected]<mailto:[email protected]>>
Cc: Jolly Paramjit <[email protected]<mailto:[email protected]>>
Subject: Re: AW: Flex mojos 6.0.1 and Flex SDK 4.10 - Maven build succeeds but 
pom giving errors in Flex builder


Also what is reason for second error message - Project build error: Unknown 
packaging: swc

May be it is because I haven't done this step -  Generating Flex builder 
project files using flexmojos:flex builder goal as given on 
http://books.sonatype.com/mvnref-book/reference/flex-dev-sect-goals.html . I 
had a regular Flex project in workspace and just added pom to it but missed to 
do this step. Pls let me know if this is right track?  For this to work I need 
to add flexMojos to my Maven settings Plugin groups. As given on 
http://books.sonatype.com/mvnref-book/reference/flex-dev-sect-config-build.html#flex-dev-sect-plugin-group.
 Can you please tell how below entries will change since with latest version, 
flex mojos groupid  has changed.


<pluginGroups>
    <pluginGroup>com.sonatype.maven.plugins</pluginGroup>
    <pluginGroup>org.sonatype.plugins</pluginGroup>
</pluginGroups>

From: Poonam Anand <[email protected]<mailto:[email protected]>>
Date: Wednesday, 12 March 2014 9:50 PM
To: "Christofer Dutz [via Apache Flex Users]" 
<[email protected]<mailto:[email protected]>>
Cc: Jolly Paramjit <[email protected]<mailto:[email protected]>>
Subject: Re: AW: Flex mojos 6.0.1 and Flex SDK 4.10 - Maven build succeeds but 
pom giving errors in Flex builder

Hi Chris,

Thanks for getting back on this. I actually tried adding this dependency in 
same project pom only and it downloaded this dependency on my local but errors 
still shows in pom on cleaning project. No clue why these errors are shown in 
FB only.

Poonam

From: "Christofer Dutz [via Apache Flex Users]" 
<[email protected]<mailto:[email protected]>>
Date: Wednesday, 12 March 2014 8:31 PM
To: Poonam Anand <[email protected]<mailto:[email protected]>>
Subject: AW: Flex mojos 6.0.1 and Flex SDK 4.10 - Maven build succeeds but pom 
giving errors in Flex builder

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 <[hidden email]</user/SendEmail.jtp?type=node&node=5412&i=0>>
Gesendet: Mittwoch, 12. März 2014 15:50
An: [hidden email]</user/SendEmail.jtp?type=node&node=5412&i=1>
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.


________________________________
If you reply to this email, your message will be added to the discussion below:
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-tp5411p5412.html
To unsubscribe from Flex mojos 6.0.1 and Flex SDK 4.10 - Maven build succeeds 
but pom giving errors in Flex builder, click 
here<http://apache-flex-users.2333346.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=5411&code=UG9vbmFtLkFuYW5kQGd1YXZ1cy5jb218NTQxMXwtMTgzOTMwNjQxOA==>.
NAML<http://apache-flex-users.2333346.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>




--
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-tp5411p5744.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

Reply via email to