What maven plugin are you using?
VELO
On Tue, Oct 6, 2009 at 3:03 AM, boyetp <[email protected]> wrote:
>
> Hi All,
>
> I hope someone can help me with my issue using Maven to compile Flex
> Library
> Project.
>
> I got this following files.
> ---- the class App.as
> package com.test {
> public class App {
> include "TestIncl.as";
> public function App(){
> super();
> }
>
> public static function greeting(name:String):String {
> return "Hello, " + name;
> }
> }
> }
>
> ---- the TestIncl.as as file "not a class"
>
> private var _test:String;
>
> public function set test(p:String):void{
> _test = p;
> }
>
> public function get test():String{
> return _test;
> }
>
>
> When package using mvn package.
>
> I got this following errors.
> It tries to compile the TestIncl.as script file.
> How do I solve this?
>
>
> [ERROR] C:\Users\boyetp\Documents\Flex Builder
> 3\MavenTestLib\src\main\flex\com\test\TestIncl.as:[2,1] The private
> attribute may be used only on class property definitions.private var
> _test:String;
> [ERROR] C:\Users\boyetp\Documents\Flex Builder
> 3\MavenTestLib\src\main\flex\com\
> test\TestIncl.as:[4,1] The public attribute can only be used inside a
> packag
> e.public function set test(p:String):void{
> [ERROR] C:\Users\boyetp\Documents\Flex Builder
> 3\MavenTestLib\src\main\flex\com\
> test\TestIncl.as:[8,1] The public attribute can only be used inside a
> packag
> e.public function get test():String{
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Error compiling!
> [INFO]
> ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 13 seconds
> [INFO] Finished at: Mon Oct 05 22:53:53 PDT 2009
> [INFO] Final Memory: 17M/127M
> [INFO]
> ------------------------------------------------------------------------
>
>
> Best,
>
> Boyetp
> --
> View this message in context:
> http://www.nabble.com/Problem-compiling-FlexLibrary-using-include-directive-tp25763364p25763364.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>