Skip to main content
Participant
January 3, 2011
Question

Error Getting Local Java Environment SetUp

  • January 3, 2011
  • 1 reply
  • 1095 views

I checked out the code from the trunk directory and am trying to attempt to get my local environment setup so I can make my own rules; however, when I initially run "MVN package" per the instructions I receive the following error.  Is this swc required or should I remove the dependency for it?

Thanks!

Andrew

[INFO] ------------------------------------------------------------------------

[ERROR] BUILD ERROR

[INFO] ------------------------------------------------------------------------

[INFO] Failed to resolve artifact.

Missing:

----------

1) com.adobe.cairngorm:event-source:swc:1.1

  Try downloading the file manually from the project website.

  Then, install it using the command:

      mvn install:install-file -DgroupId=com.adobe.cairngorm -DartifactId=event-

source -Dversion=1.1 -Dpackaging=swc -Dfile=/path/to/file

  Alternatively, if you host your own repository you can deploy the file there:

      mvn deploy:deploy-file -DgroupId=com.adobe.cairngorm -DartifactId=event-so

urce -Dversion=1.1 -Dpackaging=swc -Dfile=/path/to/file -Durl=[url] -Drepository

Id=[id]

  Path to dependency:

        1) com.adobe.ac:flex-pmd-flex-lib:swc:1.3-SNAPSHOT

        2) com.adobe.cairngorm:event-source:swc:1.1

----------

1 required artifact is missing.

for artifact:

  com.adobe.ac:flex-pmd-flex-lib:swc:1.3-SNAPSHOT

from the specified remote repositories:

  flexmojos-repository (http://repository.sonatype.org/content/groups/public/),

  central (http://repo1.maven.org/maven2),

  dist.codehaus.org (http://dist.codehaus.org/),

  nexus.codehaus (https://nexus.codehaus.org/content/repositories/releases),

  maven2-repository.dev.java.net (http://download.java.net/maven/2/),

  apache (http://cvs.apache.org/repository/),

  flex-mojos (http://repository.sonatype.org/content/groups/flexgroup)

This topic has been closed for replies.

1 reply

Adobe Employee
January 3, 2011

The easiest way is to build flex-pmd-java-parent instead of parent.

HTH

Xavier

Participant
January 3, 2011

Thanks Xavier. 

I know that I risk looking like a fool here, but I have absolutely no Java development experience so please excuse my ignorance.  I was able to edit the java file for a ruleset and now I would like to use it.  I read the documentation but I don't understand the exact steps that I need to take.  Could you please explain how to run the unit-tests that you reference in the documentation?  Also, once I run the unit-tests do I need to compile and/or move any files to a directory to finalize the changes?

Andrew