I get this error when running mvn clean install:
[ERROR] Failed to execute goal on project Hian-Persistence-Direct: Could not resolve dependencies for project ue.hian:Hian-Persistence-Direct:jar:3.0: Failed to collect dependencies at com.ibatis:ibatis2:jar:2.3.0.677: Failed to read artifact descriptor for com.ibatis:ibatis2:jar:2.3.0.677: Could not transfer artifact com.ibatis:ibatis2:pom:2.3.0.677 from/to maven-public (https://binaries.me.com/artifactory/public-maven): Not authorized , ReasonPhrase:Unauthorized. -> [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/DependencyResolutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn -rf :Hian-Persistence-Direct
I'm running this in the command line. Is it possible that I don't have maven configured correctly? Failing that, how do I get the full path to the problem dependency? I'd like to check if I can reach it through the browser.
I had an incorrect password to the artifact in my settings.xml
Related
When I try to run a job in talend studio 7.3.1, I get the following error.
There are many jobs in the repository but some jobs are displaying this issue when run. I cannot add the long error message which I got while running the job as stack overflow is not allowing me to copy the entire stack trace. I added the first part of the error message below the screen shot.
org.talend.designer.runprocess.ProcessorException: java.lang.Exception: [ERROR] [ERROR] Some problems were encountered while processing the POMs:
[ERROR] Child module C:\Users\tomgeorg\Documents\TalendRemoteWorkspace\.repositories\743898097\branches\ICE_DATASOURCING_DEV\HP_ICE_DATASRC_DEV\poms\jobs\joblets_spark\DSRC_GCW\Development\Block2\pr_ams_cross_border_blk2_0.1\pom.xml of C:\Users\tomgeorg\Documents\TalendRemoteWorkspace\.repositories\743898097\branches\ICE_DATASOURCING_DEV\HP_ICE_DATASRC_DEV\poms\build-aggregator.pom does not exist #
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project org.talend:build.aggregator:7.0.0 (C:\Users\tomgeorg\Documents\TalendRemoteWorkspace\.repositories\743898097\branches\ICE_DATASOURCING_DEV\HP_ICE_DATASRC_DEV\poms\build-aggregator.pom) has 1 error
[ERROR] Child module C:\Users\tomgeorg\Documents\TalendRemoteWorkspace\.repositories\743898097\branches\ICE_DATASOURCING_DEV\HP_ICE_DATASRC_DEV\poms\jobs\joblets_spark\DSRC_GCW\Development\Block2\pr_ams_cross_border_blk2_0.1\pom.xml of C:\Users\tomgeorg\Documents\TalendRemoteWorkspace\.repositories\743898097\branches\ICE_DATASOURCING_DEV\HP_ICE_DATASRC_DEV\poms\build-aggregator.pom does not exist
[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/ProjectBuildingException
I have force fully re-synchronized poms and applied the change as per the below screen shot and the issue got resolved.
error log:
[ERROR] Failed to execute goal on project mcd-sales-incorp-api: Could not resolve dependencies for project br.com.mcd:mcd-sales-incorp-api:jar:1.0.0-SNAPSHOT: com.oracle:ojdbc7:jar:12.1.0.2 was not found in https://repo.maven.apache.org/maven2 during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of central has elapsed or updates are forced -> [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/DependencyResolutionException
enable this dependency
I have import a spring boot project and once I execute
mvn clean install -DskipTests=true
its give me an error
[ERROR] Failed to execute goal on project collections-commons-util: Could not resolve dependencies for project com.fearson.collections.commons:collections-commons-util:jar:1.0.0: Failure to find net.sf.json-lib:json-lib:jar:2.4 in https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced -> [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/DependencyResolutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :collections-commons-util
Could you add a code-snipped to describe how you added the json-lib dependency? It should be something like that:
<dependency>
<groupId>net.sf.json-lib</groupId>
<artifactId>json-lib</artifactId>
<version>2.4</version>
</dependency>
The error is Failure to find net.sf.json-lib:json-lib:jar:2.4 in https://repo.maven.apache.org/maven2 was cached in the local repository
This is because previous attempt to download the artifact net.sf.json-lib:json-lib:jar:2.4 failed so it will throw this error, you can force maven to try to download by using -U switch.
Try
mvn clean install -DskipTests=true -U
Maybe you can change you goal to mvn clean install -U -Dskip.test=true to force update the dependencies.
Failed to execute goal org.codehaus.cargo:cargo-maven2-plugin:1.0:start (default-cli) on project project: Execution default-cli of goal org.codehaus.cargo:cargo-maven2-plugin:1.0:start failed: Cannot create configuration. There's no registered configuration for the parameters (container [id = [Tomcat6x], type = [installed]], configuration type [standalone]). Actually there are no valid types registered for this configuration. Maybe you've made a mistake spelling it? -> [Help 1]
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/PluginExecutionException
I am using maven 3.0.2 version.
mvn --version works fine on command line but when I try
mvn install it does not work & shows following error.
Z:\dev\hector rantav>mvn install
[INFO] Scanning for projects...
Downloading: http://repo1.maven.org/maven2/junit/junit/3.8.2/junit-3.8.2.jar
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project me.prettyprint:hector:0.7.0-24-SNAPSHOT (Z:\dev\hector ran
tav\pom.xml) has 1 error
[ERROR] Unresolveable build extension: Plugin org.apache.maven.scm:maven-scm
-manager-plexus:1.3 or one of its dependencies could not be resolved: Could not
transfer artifact junit:junit:jar:3.8.2 from/to central (http://repo1.maven.org/
maven2): Error transferring file: repo1.maven.org: Unknown host repo1.maven.org
-> [Help 2]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[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 rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildin
gException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/PluginResoluti
onException
Please let me how I can fix this.
Proxy usage is a factor, hope this will help: Maven Guide to Using Proxies
If your proxy requires NTLM authentication, you'll also probably need cntlm
The http://repo1.maven.org/maven2/ repository is down quite often, so maybe you were just out of luck that time.