maven - Importing .m2 repository into Artifactory fails -


disclaimer - talk n00by me!

i'm complete n00b artifactory , maven. i've searched can find online , have not been able find other should dead simple import! , because of that, i'm having hard time finding when doesn't think.

i have no doubt due lack of knowledge maven, artifactory, , nexus. don't know fix it. old machine has maven , points nexus repository.

assumption

my understanding maven .m2 folder should maven-structured repository, , should able import it?

exported .m2 directory

i have rsynch transfered entire .m2 directory. here snippet of .m2 directory, looking @ antlr:

.m2/ | | - settings.xml | + repository/ |   | |   + antlr/ |     | |     + antlr/ |       | |       + 2.7.7/ |         | |         - contains jars, pom, sha1 files | | | + org/ |   | |   + antlr/ |     | |     + antlr-master/... |     + stringtemplate/... |     + antlr-runtime/ |       | |       + 3.1.3/ |         | |         - contains poms, sha1, jars 

so, i'm wondering, supporting maven2 layout? looks there jars not falling in org.package format. above not match import layout format here? far can tell, does.

log says "no repositories found"

i've tried

  • pointing root .m2 folder,
  • pointing sub-folders such repository/org
  • zipping entire .m2 folder it,
  • zipping @ different sub-folders such org folder
  • i've tried taking 1 item out, pointing @ antlr..

nothing seems work. i've enabled verbose log, know redirects import-export log , supposed provide more information. says no repositories found.

i'm @ loss point or do. appreciated!

there 2 options:

  1. importing many repositories. need have repositories configured , directories match repository names, under groupid directories found. so, assuming have repository named "repository", you'll point .m2

  2. importing content of single repository. select existing repository , point root of content (repository).


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -