Copy link to clipboard
Copied
Hi,
I am trying to build flexPmd from sources and facing an error saying that:
...
[INFO] ------------------------------------------------------------------------
[INFO] Building Adobe Flex PMD Ruleset creator
[INFO] task-segment: [clean, install]
[INFO] ------------------------------------------------------------------------
[INFO] [clean:clean]
Downloading: http://repository.sonatype.org/content/groups/public//com/adobe/ac/flexunit-theme/1.0/flexunit-theme...
...
Downloading: http://fna-v2.googlecode.com/svn/trunk/fna_m2_repository//com/adobe/ac/flexunit-theme/1.0/flexunit-t...
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.
Missing:
----------
1) com.adobe.ac:flexunit-theme:swc:1.0
...
I've tried to find the missing library on the Internet... with no success so far. Could anybody help me with that?
Regards,
Sergiu
Hi,
You can find it there:
http://opensource.adobe.com/svn/opensource/flexpmd/trunk/flexunit-theme/
Xavier
Copy link to clipboard
Copied
Hi,
You can find it there:
http://opensource.adobe.com/svn/opensource/flexpmd/trunk/flexunit-theme/
Xavier
Copy link to clipboard
Copied
I added this project as a module.
If you tried to build the project against trunk, just update, and that would work.
Xavier
Copy link to clipboard
Copied
Thanks Xavier,
It worked and goes further. However, trying to build flexPmd targeting Flash Player 10 i am getting the following errors:
[ERROR] /home/ssvinarciuc/work/flexpmd/trunk/flex-pmd-flex-lib/src/main/flex/Version.as:[1,1] Definition __AS3__.vec:Vector could not be found.package{ public class Version { public static const BUILD_NUMBER : String = '1.0.RC4-SNAPSHOT'; public static const BUILD_TIME : String = '11:35:09'; public static const BUILD_DATE : String = '2009-09-08'; }}
[ERROR] /home/ssvinarciuc/work/flexpmd/trunk/flex-pmd-flex-lib/src/main/flex/Version.as:[1,1] Definition __AS3__.vec:Vector could not be found.package{ public class Version { public static const BUILD_NUMBER : String = '1.0.RC4-SNAPSHOT'; public static const BUILD_TIME : String = '11:35:09'; public static const BUILD_DATE : String = '2009-09-08'; }}
[ERROR] /home/ssvinarciuc/work/flexpmd/trunk/flex-pmd-flex-lib/src/main/flex/com/adobe/ac/model/IDomainModel.as:[1,1] Definition __AS3__.vec:Vector could not be found./**
[ERROR] /home/ssvinarciuc/work/flexpmd/trunk/flex-pmd-flex-lib/src/main/flex/com/adobe/ac/model/IDomainModel.as:[1,1] Definition __AS3__.vec:Vector could not be found./**
[ERROR] /home/ssvinarciuc/work/flexpmd/trunk/flex-pmd-flex-lib/src/main/flex/com/adobe/ac/model/IPresentationModel.as:[1,1] Definition __AS3__.vec:Vector could not be found./**
[ERROR] /home/ssvinarciuc/work/flexpmd/trunk/flex-pmd-flex-lib/src/main/flex/com/adobe/ac/model/IPresentationModel.as:[1,1] Definition __AS3__.vec:Vector could not be found./**
[ERROR] /home/ssvinarciuc/work/flexpmd/trunk/flex-pmd-flex-lib/src/main/flex/com/adobe/ac/pmd/model/ViolationPriority.as:[1,1] Definition __AS3__.vec:Vector could not be found./**
[ERROR] /home/ssvinarciuc/work/flexpmd/trunk/flex-pmd-flex-lib/src/main/flex/com/adobe/ac/pmd/model/ViolationPriority.as:[1,1] Definition __AS3__.vec:Vector could not be found./**
[ERROR] /home/ssvinarciuc/work/flexpmd/trunk/flex-pmd-flex-lib/src/main/flex/com/adobe/ac/pmd/control/events/GetRulesetContentEvent.as:[1,1] Definition __AS3__.vec:Vector could not be found./**
[ERROR] /home/ssvinarciuc/work/flexpmd/trunk/flex-pmd-flex-lib/src/main/flex/com/adobe/ac/pmd/control/events/GetRulesetContentEvent.as:[1,1] Definition __AS3__.vec:Vector could not be found./**
...
If i change target player to 9... the error above doesn't appear... but onother one comes out:
...
[INFO] Building Adobe Flex PMD Ruleset creator
[INFO] task-segment: [clean, install]
[INFO] ------------------------------------------------------------------------
[INFO] [clean:clean]
[INFO] Deleting directory /home/ssvinarciuc/work/flexpmd/trunk/flex-pmd-ruleset-creator/target
...
...
-metadata.contributor Francois Le Droff
-metadata.creator Xavier Agnetti
-metadata.date Tue Sep 08 11:48:49 EEST 2009
-target-player 9.0.0
-use-network=true
-verify-digests=true -load-config=
[ERROR] /home/ssvinarciuc/work/flexpmd/trunk/flex-pmd-ruleset-creator/src/main/flex/com/adobe/ac/pmd/view/RuleSetNavigatorPM.as:[83,27] Call to a possibly undefined method save through a reference with static type flash.net:FileReference.fileReference.save( xml, "pmd.xml" );
...
What i am doing wrong?
Thank you,
Sergiu
Copy link to clipboard
Copied
You definitely need to target Flash Player 10: It is needed.
I've never seen the error you are getting related to Vector.
It is not used in the application.
To work around it, you can remove the flex-modules from the flex-pmd-parent/pom.xml.
If you went that far in the build process, the FlexPMD jars are built. It "only" fails while building the FlexPMD Flex applications (Violations viewer and Ruleset creator)
HTH
Xavier