Did you looked at the warnings?

On Wed, Jan 19, 2011 at 11:22 AM, Adnan Doric P.
<[email protected]>wrote:

>  Thank you for your response Marvin,
> I enabled the snapshot in settings.xml, and use FM 4.0-SNAPSHOT in pom.xml
> but still getting an error (slightly different though):
>
> V:\blazeds\temp\someProject>mvn clean install
> [INFO] Scanning for projects...
> [WARNING] The POM for org.apache.maven:maven-plugin-api:jar:3.0.1-SNAPSHOT
> is missing, no dependency information available
> [WARNING] The POM for org.apache.maven:maven-core:jar:3.0.1-SNAPSHOT is
> missing, no dependency information available
> [WARNING] The POM for org.apache.maven:maven-compat:jar:3.0.1-SNAPSHOT is
> missing, no dependency information available
> [WARNING] The POM for org.apache.maven:maven-artifact:jar:3.0.1-SNAPSHOT is
> missing, no dependency information available
>
> [INFO]
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Building some-project Flex 1.0-SNAPSHOT
> [INFO]
> ------------------------------------------------------------------------
> [INFO]
> [INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ someProject ---
> [INFO] Deleting V:\blazeds\temp\someProject\target
>
> [INFO]
> [INFO] --- maven-resources-plugin:2.4.3:resources (default-resources) @
> someProject ---
> [WARNING] Using platform encoding (Cp1252 actually) to copy filtered
> resources, i.e. build is platform dependent!
> [INFO] skip non existing resourceDirectory
> V:\blazeds\temp\someProject\src\main\resources
> [INFO]
> [INFO] --- flexmojos-maven-plugin:4.0-SNAPSHOT:compile-swf
> (default-compile-swf) @ someProject ---
> [INFO] Flexmojos 4.0-SNAPSHOT
>
> [INFO]   Apache License - Version 2.0 (NO WARRANTY) - See COPYRIGHT file
> [WARNING] Skipping compiler, source path doesn't exist. []
> [INFO]
> [INFO] --- maven-resources-plugin:2.4.3:testResources
> (default-testResources) @ someProject ---
> [WARNING] Using platform encoding (Cp1252 actually) to copy filtered
> resources, i.e. build is platform dependent!
> [INFO] skip non existing resourceDirectory
> V:\blazeds\temp\someProject\src\test\resources
> [INFO]
> [INFO] --- flexmojos-maven-plugin:4.0-SNAPSHOT:test-compile
> (default-test-compile) @ someProject ---
> [INFO] Flexmojos 4.0-SNAPSHOT
>
> [INFO]   Apache License - Version 2.0 (NO WARRANTY) - See COPYRIGHT file
> [WARNING] Skipping compiler, test source path doesn't exist.
> [INFO]
> [INFO] --- flexmojos-maven-plugin:4.0-SNAPSHOT:test-run (default-test-run)
> @ someProject ---
> [INFO] Flexmojos 4.0-SNAPSHOT
>
> [INFO]   Apache License - Version 2.0 (NO WARRANTY) - See COPYRIGHT file
> [WARNING] Skipping test run. Runner not found:
> V:\blazeds\temp\someProject\target\test-classes
> [INFO]
> [INFO] --- maven-install-plugin:2.3.1:install (default-install) @
> someProject ---
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 1.250s
> [INFO] Finished at: Wed Jan 19 14:19:46 CET 2011
> [INFO] Final Memory: 8M/26M
>
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-install-plugin:2.3.1:install
> (default-install) on project someProject: The packaging for this project did
> not assign a file to the build artifact -> [Help 1]
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e
> switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR]
> [ERROR] For more information about the errors and possible solutions,
> please read the following articles:
> [ERROR] [Help 1]
> http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
>
>
> On 18/01/2011 23:41, Marvin Froeder wrote:
>
> You didn't enabled SNAPSHOT on your settings.xml
>
> On Tue, Jan 18, 2011 at 6:57 PM, Adnan Doric <[email protected]>wrote:
>
>> Hello,
>>
>> I'm new to this and even if i just spent few hours reading the
>> interwebz about flexmojos, sorry if I did something stupidly wrong :)
>>
>> I need to use the latest flex framework 4.5.0 in Flex/AIR
>> applications.
>>
>> Here is the error that I cannot solve:
>>
>> FYI : If I try to use "4.0-SNAPSHOT" I get the "Unknown packaging: swf
>> @ line 7, column 13".
>>
>> V:\blazeds\temp\someProject>mvn install
>> [INFO] Scanning for projects...
>> [INFO]
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Building some-project Flex 1.0-SNAPSHOT
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO]
>> [INFO] --- maven-resources-plugin:2.4.3:resources (default-resources)
>> @ someProject ---
>> [WARNING] Using platform encoding (Cp1252 actually) to copy filtered
>> resources, i.e. build is platform dependent!
>> [INFO] skip non existing resourceDirectory V:\blazeds\temp\someProject
>> \src\main\resources
>> [INFO]
>> [INFO] --- flexmojos-maven-plugin:4.0-beta-3:compile-swf (default-
>> compile-swf) @ someProject ---
>> [INFO] Flexmojos 4.0-beta-3
>> [INFO]   Apache License - Version 2.0 (NO WARRANTY) - See COPYRIGHT
>> file
>> [WARNING] Skipping compiler, source path doesn't exist. []
>> [INFO]
>> [INFO] --- maven-resources-plugin:2.4.3:testResources (default-
>> testResources) @ someProject ---
>> [WARNING] Using platform encoding (Cp1252 actually) to copy filtered
>> resources, i.e. build is platform dependent!
>> [INFO] skip non existing resourceDirectory V:\blazeds\temp\someProject
>> \src\test\resources
>> [INFO]
>> [INFO] --- flexmojos-maven-plugin:4.0-beta-3:test-compile (default-
>> test-compile) @ someProject ---
>> [INFO] Flexmojos 4.0-beta-3
>> [INFO]   Apache License - Version 2.0 (NO WARRANTY) - See COPYRIGHT
>> file
>> [WARNING] Skipping compiler, test source path doesn't exist.
>> [INFO]
>> [INFO] --- flexmojos-maven-plugin:4.0-beta-3:test-run (default-test-
>> run) @ someProject ---
>> [INFO] Flexmojos 4.0-beta-3
>> [INFO]   Apache License - Version 2.0 (NO WARRANTY) - See COPYRIGHT
>> file
>> [WARNING] Skipping test run. Runner not found: V:\blazeds\temp
>> \someProject\target\test-classes
>> [INFO]
>> [INFO] --- maven-install-plugin:2.3.1:install (default-install) @
>> someProject ---
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] BUILD FAILURE
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Total time: 1.260s
>> [INFO] Finished at: Tue Jan 18 21:54:46 CET 2011
>> [INFO] Final Memory: 8M/22M
>> [INFO]
>> ------------------------------------------------------------------------
>> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-install-
>> plugin:2.3.1:install (default-install) on project someProject: The
>> packaging for this project did not assign a file to the build artifact
>> -> [Help 1]
>> [ERROR]
>> [ERROR] To see the full stack trace of the errors, re-run Maven with
>> the -e switch.
>> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
>> [ERROR]
>> [ERROR] For more information about the errors and possible solutions,
>> please read the following articles:
>> [ERROR] [Help 1]
>> http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
>>
>> My pom.xml :
>>
>> <?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>com.adnandoric</groupId>
>>        <artifactId>someProject</artifactId>
>>        <version>1.0-SNAPSHOT</version>
>>        <packaging>swf</packaging>
>>        <name>some-project Flex</name>
>>
>>        <properties>
>>
>>  <flex.mojos.maven.version>4.0-beta-3</flex.mojos.maven.version>
>>                <flex.sdk.version>4.5.0.18623</flex.sdk.version>
>>                <flexunit.version>4.0-rc-1</flexunit.version>
>>                <sourceDir>src/main/flex</sourceDir>
>>                <testDir>src/test/flex</testDir>
>>        </properties>
>>
>>        <build>
>>                <sourceDirectory>${sourceDir}</sourceDirectory>
>>                <testSourceDirectory>${testDir}</testSourceDirectory>
>>
>>                        <plugins>
>>                                <plugin>
>>
>>  <groupId>org.sonatype.flexmojos</groupId>
>>
>>  <artifactId>flexmojos-maven-plugin</artifactId>
>>
>>  <version>${flex.mojos.maven.version}</version>
>>                                        <extensions>true</extensions>
>>                                        <configuration>
>>                                                <debug>true</debug>
>>                                                <locales>
>>
>>  <param>en_US</param>
>>                                                </locales>
>>
>>  <sourceFile>./SimpleApplication.mxml</sourceFile>
>>
>>  <configurationReport>true</configurationReport>
>>                                        </configuration>
>>                                        <dependencies>
>>                                                <dependency>
>>
>>  <groupId>com.adobe.flex</groupId>
>>
>>  <artifactId>compiler</artifactId>
>>
>>  <version>${flex.sdk.version}</version>
>>                                                        <type>pom</type>
>>                                                </dependency>
>>                                        </dependencies>
>>                                </plugin>
>>                        </plugins>
>>
>>        </build>
>>
>>        <dependencies>
>>                <dependency>
>>                        <groupId>com.adobe.flex</groupId>
>>                        <artifactId>compiler</artifactId>
>>                        <version>${flex.sdk.version}</version>
>>                        <type>pom</type>
>>                </dependency>
>>                <dependency>
>>                        <groupId>com.adobe.flex.framework</groupId>
>>                        <artifactId>framework</artifactId>
>>                        <version>${flex.sdk.version}</version>
>>                        <type>swc</type>
>>                </dependency>
>>                <dependency>
>>                        <groupId>com.adobe.flex.framework</groupId>
>>                        <artifactId>flex-framework</artifactId>
>>                        <version>${flex.sdk.version}</version>
>>                        <type>pom</type>
>>                </dependency>
>>                <dependency>
>>                        <groupId>com.adobe.flexunit</groupId>
>>                        <artifactId>flexunit</artifactId>
>>                        <version>${flexunit.version}</version>
>>                        <type>swc</type>
>>                        <scope>test</scope>
>>                </dependency>
>>        </dependencies>
>>
>> </project>
>>
>> And my \user\.m2\settings.xml :
>>
>> <?xml version="1.0" encoding="UTF-8"?>
>> <settings>
>>
>>  <profiles>
>>         <profile>
>>        <id>flex-mojos</id>
>>            <repositories>
>>                <repository>
>>                    <id>flex-mojos-repository</id>
>>                    <url>http://repository.sonatype.org/content/groups/
>> flexgroup/ <http://repository.sonatype.org/content/groups/%0Aflexgroup/>
>> </url>
>>                    <releases> <enabled>true</enabled> </releases>
>>                    <snapshots> <enabled>false</enabled> </snapshots>
>>                </repository>
>>            </repositories>
>>            <pluginRepositories>
>>                <pluginRepository>
>>                    <id>flex-mojos-plugin-repository</id>
>>                    <url>http://repository.sonatype.org/content/groups/
>> flexgroup/ <http://repository.sonatype.org/content/groups/%0Aflexgroup/>
>> </url>
>>                    <releases> <enabled>true</enabled> </releases>
>>                    <snapshots> <enabled>false</enabled> </snapshots>
>>                </pluginRepository>
>>            </pluginRepositories>
>>        </profile>
>>    </profiles>
>>
>>    <activeProfiles>
>>        <activeProfile>flex-mojos</activeProfile>
>>    </activeProfiles>
>>
>>        <pluginGroups>
>>                <pluginGroup>com.sonatype.maven.plugins</pluginGroup>
>>                <pluginGroup>org.sonatype.plugins</pluginGroup>
>>        </pluginGroups>
>>
>> </settings>
>>
>> Thank you in advance for your help,
>> Adnan
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Flex Mojos" group.
>> To post to this group, send email to [email protected]
>> To unsubscribe from this group, send email to
>> [email protected]<flex-mojos%[email protected]>
>> For more options, visit this group at
>> http://groups.google.com/group/flex-mojos
>>
>> http://flexmojos.sonatype.org/
>>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Flex Mojos" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/flex-mojos
>
> http://flexmojos.sonatype.org/
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Flex Mojos" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]<flex-mojos%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/flex-mojos
>
> http://flexmojos.sonatype.org/
>

-- 
You received this message because you are subscribed to the Google
Groups "Flex Mojos" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/flex-mojos

http://flexmojos.sonatype.org/

Reply via email to