Created at:

maven notes

Troubleshooting

No transfer protocol found

Got an error like this?

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy-file (default-cli) on project standalone-pom: No transfer protocol found. -> [Help 1]

I was using -Durl for the mvn deploy:deploy-file command, but was not passing a valid URL string, it was lacking the schema part. In my case, I refered o a local file, so prepending it with file: was what resolved the problem.

[ERROR] 'dependencies.dependency.version' for ...

Did you get an error like:

[ERROR] 'dependencies.dependency.version' for ...

Maybe lacking of version is not the problem... maybe you mistyped the dependency name and maven cannot find it in the repositories? Double check the dependency name.