khady lo seck
2017-03-23 13:46:22 UTC
Hello,
I am trying to add dependencies that are all present in my local p2 repo
but every time I try to build a project using one of the dependencies
present in my local p2 repo it reports back a not found error.
Missing requirement: com.company.model 1.3.0.qualifier requires 'package
org.antlr.stringtemplate 3.2.0'
I was only successful in installing, deploying and using the lombok
dependency from my p2 repo. Everything else doesn't work. The suggestion to
install or deploy that dependency doesn't work. Am I doing something wrong?
I tried substituting some dependencies with the same ones available in
Maven central, but I haven't found corresponding dependencies for 3
dependencies.
Result of mvn deploy for antlr.stringtemplate
***@NB0012213 MINGW64 ~/dev/p2repo
$ mvn deploy:deploy-file -DgroupId=com.company.antlr.stringtemplate_3.2.0
-DartifactId=antlr -Dversion=3.2 -Dpackaging=jar
-Dfile=/C:/Users/klseck/dev/p2repo/plugins/com.company.antlr.stringtemplate_3.2.0.jar
-Durl=/C:/Users/klseck/dev/p2repo/ -DrepositoryId=company-plugins
[INFO] Scanning for projects...
[INFO]
[INFO]
------------------------------------------------------------------------
[INFO] Building Maven Stub Project (No POM) 1
[INFO]
------------------------------------------------------------------------
[INFO]
[INFO] --- maven-deploy-plugin:2.7:deploy-file (default-cli) @
standalone-pom ---
[INFO]
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 0.669 s
[INFO] Finished at: 2017-03-23T09:41:09-04:00
[INFO] Final Memory: 9M/309M
[INFO]
------------------------------------------------------------------------
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy-file (default-cli)
on project standalone-pom: Failed to deploy artifacts/metadata: Cannot
access C:/Users/klseck/dev/p2repo/ with type default using the available
connector factories: BasicRepositoryConnectorFactory: Cannot access
C:/Users/klseck/dev/p2repo/ using the registered transporter factories:
WagonTransporterFactory: java.util.NoSuchElementException
[ERROR] role: org.apache.maven.wagon.Wagon
[ERROR] roleHint: c
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions,
please read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
I am trying to add dependencies that are all present in my local p2 repo
but every time I try to build a project using one of the dependencies
present in my local p2 repo it reports back a not found error.
Missing requirement: com.company.model 1.3.0.qualifier requires 'package
org.antlr.stringtemplate 3.2.0'
I was only successful in installing, deploying and using the lombok
dependency from my p2 repo. Everything else doesn't work. The suggestion to
install or deploy that dependency doesn't work. Am I doing something wrong?
I tried substituting some dependencies with the same ones available in
Maven central, but I haven't found corresponding dependencies for 3
dependencies.
Result of mvn deploy for antlr.stringtemplate
***@NB0012213 MINGW64 ~/dev/p2repo
$ mvn deploy:deploy-file -DgroupId=com.company.antlr.stringtemplate_3.2.0
-DartifactId=antlr -Dversion=3.2 -Dpackaging=jar
-Dfile=/C:/Users/klseck/dev/p2repo/plugins/com.company.antlr.stringtemplate_3.2.0.jar
-Durl=/C:/Users/klseck/dev/p2repo/ -DrepositoryId=company-plugins
[INFO] Scanning for projects...
[INFO]
[INFO]
------------------------------------------------------------------------
[INFO] Building Maven Stub Project (No POM) 1
[INFO]
------------------------------------------------------------------------
[INFO]
[INFO] --- maven-deploy-plugin:2.7:deploy-file (default-cli) @
standalone-pom ---
[INFO]
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 0.669 s
[INFO] Finished at: 2017-03-23T09:41:09-04:00
[INFO] Final Memory: 9M/309M
[INFO]
------------------------------------------------------------------------
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy-file (default-cli)
on project standalone-pom: Failed to deploy artifacts/metadata: Cannot
access C:/Users/klseck/dev/p2repo/ with type default using the available
connector factories: BasicRepositoryConnectorFactory: Cannot access
C:/Users/klseck/dev/p2repo/ using the registered transporter factories:
WagonTransporterFactory: java.util.NoSuchElementException
[ERROR] role: org.apache.maven.wagon.Wagon
[ERROR] roleHint: c
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions,
please read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
--
Best regards,
*Khady L. Seck*
Full Stack Java Developer
Tel: 438-830-4117
Best regards,
*Khady L. Seck*
Full Stack Java Developer
Tel: 438-830-4117