maven shared test code woe

INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.

Missing:
----------
1) org.familysearch.digitalarchive:utilities:jar:tests:2.2-SNAPSHOT

  Try downloading the file manually from the project website.

  Then, install it using the command: 
      mvn install:install-file -DgroupId=org.familysearch.digitalarchive -DartifactId=utilities -Dversion=2.2-20100226.195131-9 -Dclassifier=tests -Dpackaging=jar -Dfile=/path/to/file

  Alternatively, if you host your own repository you can deploy the file there: 
      mvn deploy:deploy-file -DgroupId=org.familysearch.digitalarchive -DartifactId=utilities -Dversion=2.2-20100226.195131-9 -Dclassifier=tests -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

  Path to dependency: 
  	1) org.familysearch.digitalarchive:tapeutilities:jar:2.2-SNAPSHOT
  	2) org.familysearch.digitalarchive:utilities:jar:tests:2.2-SNAPSHOT

----------
1 required artifact is missing.

for artifact: 
  org.familysearch.digitalarchive:tapeutilities:jar:2.2-SNAPSHOT

from the specified remote repositories:
  fch (http://mvn.usys.org:8082/nexus/content/groups/dev)

meant "when you have classifier scope tests in order to share test code across modules, apparently you have to do a maven install on those packages
before they can be used by others"

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>