cancel
Showing results for 
Search instead for 
Did you mean: 

Maven Install Authentication Error

ronmwhite
New Contributor II

Hello. Trying to do some development and cant seem to get out of the gates. I have tried this on multiple networks so it does not appear to be network related.

When run “mvn clean install” in my newly created workspace, after successfully running “mvn org.apache.maven.plugins:maven-archetype-plugin:2.4:generate -DarchetypeCatalog=http://maven.clouddev.snaplogic.com:8080/nexus/content/repositories/master

I get the following error.

Failed to read artifact descriptor for com.snaplogic:jutils:jar:4.22: Could not transfer artifact com.snaplogic:jutils:pom:4.22 from/to github (https://maven.pkg.github.com/SnapLogic/Tectonic😞 Authentication failed for https://maven.pkg.github.com/SnapLogic/Tectonic/com/snaplogic/jutils/4.22/jutils-4.22.pom 401 Unauthorized

Thoughts?

19 REPLIES 19

ronmwhite
New Contributor II

I tried that yesterday (removing the repository) - trying again at this time. I will post the build.out.

ptaylor
Employee
Employee

Thank you. Also, please post your pom.xml. I want to make sure it looks right.

ronmwhite
New Contributor II

Please ignore my last (now deleted) post. I just ran again with -U. Sorry, not sure why I got that pom error. I will attach the latest pom and build.out. It still running at this time.

ptaylor
Employee
Employee

Thanks. This helps. Can you please check for the existence of two files that are used to access the new repository on github?

Is there a file named settings.xml at the root of the generated project? Does it define one server that looks like this?

  <id>github_SnapLogicDev</id>
  <username>thirdpartysnapdev</username>
  <!-- Public token with `read:packages` scope -->
  <password>&#50;&#53;&#49;&#55;...</password>

Is there a subdirectory named .mvn and a file in that called maven.config containing just this?

-s settings.xml

ronmwhite
New Contributor II

Here are the real files you asked for the first time along with settings.xml. Archive.zip (71.8 KB)