i am trying to configure build of a java project through jenkins.
I have installed the maven plugin and configured the "settings.xml" file.
During the build, I get the following error message:
[ERROR] Failed to execute goal on project HRWebSuite: Could not resolve dependencies for project sirfin:HRWebSuite:war:3.0: Could not find artifact org.zkoss.exporter:exporter:jar:0.0.1-SNAPSHOT at specified path /var/lib/jenkins/workspace/HrWebSuiteFutureV3-Test3\WebContent\WEB-INF\lib\exporter.jar -> [Help 1]
The library is present in the specified path and I could not find it as maven dependencies.
Related
Running on a mac, I'm trying to add a simple nar to a nifi install.
Following instructions found on here, I use mvn generate to start the nifi processor project. I then immediately run mvn clean install, without making any changes, to create the nar package but I keep running into this error
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:testCompile (groovy-tests) on project test.test: Execution groovy-tests of goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:testCompile failed: Plugin org.apache.maven.plugins:maven-compiler-plugin:3.8.1 or one of its dependencies could not be resolved: Failed to collect dependencies at org.apache.maven.plugins:maven-compiler-plugin:jar:3.8.1 -> org.codehaus.groovy:groovy-eclipse-batch:jar:2.5.4-01: Failed to read artifact descriptor for org.codehaus.groovy:groovy-eclipse-batch:jar:2.5.4-01: Could not transfer artifact org.codehaus.groovy:groovy-eclipse-batch:pom:2.5.4-01 from/to bintray (https://dl.bintray.com/groovy/maven): authorization failed for https://dl.bintray.com/groovy/maven/org/codehaus/groovy/groovy-eclipse-batch/2.5.4-01/groovy-eclipse-batch-2.5.4-01.pom, status: 403 Forbidden -> [Help 1]
Try with upgrading groovy version to 2.5.6 as below
<nifi.groovy.version>2.5.6</nifi.groovy.version> in pom.xml
trying to build the hadoop-common project using
the command,
mvn generate-sources generate-test-sources
The build failed with error:
[ERROR] Failed to execute goal on project hadoop-annotations: Could not resolve dependencies for project org.apache.hadoop:hadoop-annotations:jar:3.0.0-SNAPSHOT: Could not find artifact jdk.tools:jdk.tools:jar:1.6 at specified path /usr/lib/jvm/java-11-openjdk-amd64/../lib/tools.jar -> http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
The tools.jar is missing in openjdk-11 version.
Hadoop requires Java 8 to build, still.
Java 11 progress can be tracked at https://issues.apache.org/jira/browse/HADOOP-15338
when i build eclipse scada project by maven;why git is part of build process;how to remove it from build process;please look at follow error information
[ERROR] Failed to execute goal
org.eclipse.tycho:tycho-packaging-plugin:0.22.0:build-qualifier
(default-build-qualifier) on project org.apache.commons.daemon: No git
repository found searching upwards from
K:\scada\SourceCode\org.eclipse.scada.external\org.apache.commons.daemon
-> [Help 1]
Git is part of the build process in order to generate the build identifier for each OSGi bundle.
I am trying to follow steps from this article and include a build step for my project
https://github.com/mulesoft/raml-for-jax-rs/blob/master/maven-plugin.md
problem is it keeps complaining about not being able to read the artifact, the error line is
[ERROR] Plugin org.raml.plugins:jaxrs-raml-maven-plugin:1.3.4-SNAPSHOT or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.raml.plugins:jaxrs-raml-maven-plugin:jar:1.3.4-SNAPSHOT: Could not find artifact org.raml:jaxrs-to-raml:pom:1.3.4-SNAPSHOT -> [Help 1]
org.apache.maven.plugin.PluginResolutionException: Plugin org.raml.plugins:jaxrs-raml-maven-plugin:1.3.4-SNAPSHOT or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.raml.plugins:jaxrs-raml-maven-plugin:jar:1.3.4-SNAPSHOT
at org.apache.maven.plugin.internal.DefaultPluginDependenciesResolver.resolve(DefaultPluginDependenciesResolver.java:117)
I can confirm that my local maven repo looks like
~/.m2/repository/org/raml/plugins/jaxrs-raml-maven-plugin/1.3.4-SNAPSHOT/
jaxrs-raml-maven-plugin-1.3.4-SNAPSHOT-javadoc.jar
jaxrs-raml-maven-plugin-1.3.4-SNAPSHOT.pom
jaxrs-raml-maven-plugin-1.3.4-SNAPSHOT-sources.jar
maven-metadata-local.xml
jaxrs-raml-maven-plugin-1.3.4-SNAPSHOT.jar
The error here is that maven cannot find the artifact:
org.raml:jaxrs-to-raml:pom:1.3.4-SNAPSHOT
That is a dependency of:
org.raml.plugins:jaxrs-raml-maven-plugin:jar:1.3.4-SNAPSHOT
Make sure your repository contains the first artifact either by compiling it yourself or by adding the right remote repository
I met with the same problem. It's said in the document:
Clone this repository or download a snapshot.
On the cloned repository, go to the
jaxrs-to-raml/com.mulesoft.jaxrs.raml.generator folder, and execute
mvn install
Once installed, go to the jaxrs-to-raml/jaxrs-raml-maven-plugin
folder and run mvn install.
But it couldn't work with the above problem.
Actually I installed everything in this repo, and that solved my problem.
I've spent some time trying to use JTestR. I haven't succeeded in any way :\
Take this sample for instance:
https://github.com/olabini/jtestr/tree/master/examples/simple_maven_project
Running 'mvn test' here gives me:
[ERROR] Plugin
org.jtestr:jtestr:0.7-SNAPSHOT or one
of its dependencies could not be
resolved: Failed to read artifact
descriptor for
org.jtestr:jtestr:jar:0.7-SNAPSHOT:
Could not find artifact
org.jtestr:jtestr:pom:0.7-SNAPSHOT
I'm also unable to build the current master branch from the github repository.
I then tried downloading the v0.6 dist and following the Getting Started section, but with errors:
[ERROR] Failed to execute goal
org.jtestr:jtestr:0.6:test (default)
on project jtestr: Execution default
of goal org.jtestr:jtestr:0.6:test
failed: Plugin org.jtestr:jtestr:0.6
or one of its dependencies could not
be resolved: Could not find artifact
org.jtestr:jruby-complete:jar:r1c672b495cfd204421f4a7aed17f6135e730a3b2
I suspect that this is because I've put my jtestr jar file in the wrong place. Where should it be?
now this is because for some reason maven could not resolve one of JTestR's dependency - a custom packaged complete jruby jar - there's a simple solution although :
download the jar from http://dist.codehaus.org/jtestr/
http://dist.codehaus.org/jtestr/jruby-complete-r1c672b495cfd204421f4a7aed17f6135e730a3b2.jar
then hand install it to Your local maven repository :
mvn install:install-file -DgroupId=org.jtestr -DartifactId=jruby-complete -Dpackaging=jar -Dversion=r1c672b495cfd204421f4a7aed17f6135e730a3b2 -Dfile=[PATH_TO_DOWNLOADED.jar]