I have installed maven latest version 3.5 ,iam trying to build a fuse project and getting below error and warning.
output of mvn -version in command prompt:
C:\Temp\Fuse6.3>mvn -version
Apache Maven 3.5.0 (ff8f5e7444045639af65f6095c62210b5713f426; 2017-04-03T20:39:06+01:00)
Maven home: C:\Temp\fuse 6.3\apache-maven-3.5.0\bin\..
Java version: 1.8.0_151, vendor: Oracle Corporation
Java home: C:\Temp\fuse 6.3\java\jdk1.8.0_151\jre
Default locale: en_US, platform encoding: Cp1252
OS name: "windows 7", version: "6.1", arch: "amd64", family: "windows"
Can you please help.
[INFO] ------------------------------------------------------------------------
[WARNING] Could not transfer metadata com.company.esb.fuse:core:0.0.1-SNAPSHOT/maven-metadata.xml from/to redhat-ga-repository (https://maven.repository.redhat.com/ga): Cannot access https://maven.repository.redhat.com/ga with type default using the available connector factories: BasicRepositoryConnect
orFactory
[WARNING] Could not transfer metadata com.company.esb.fuse:core:0.0.1-SNAPSHOT/maven-metadata.xml from/to jboss-earlyaccess-repositor (http://maven.repository.redhat.com/earlyaccess/all/): Cannot access http://maven.repository.redhat.com/earlyaccess/all/ with type default using the available connector
factories: BasicRepositoryConnectorFactory
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.260 s
[INFO] Finished at: 2017-10-23T10:58:29+01:00
[INFO] Final Memory: 10M/245M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project core: Could not resolve dependencies for project com.company.esb.fuse:core:jar:0.0.1-SNAPSHOT: Failed to collect dependencies at com.company.esb.fuse:core:jar:0.0.1-SNAPSHOT -> org.apache.camel:camel-core:jar:2.17.0.redhat-630262: Failed to read artifact descripto
r for org.apache.camel:camel-core:jar:2.17.0.redhat-630262: Could not transfer artifact org.apache.camel:camel-core:pom:2.17.0.redhat-630262 from/to redhat-ga-repository (https://maven.repository.redhat.com/ga): Cannot access https://maven.repository.redhat.com/ga with type default using the availab
le connector factories: BasicRepositoryConnectorFactory: No transporter factories registered -> [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
Related
A maven build showing me below error: any help to fix it ?
Below is version
mvn -version
Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f)
Maven home: /opt/apache-maven-3.6.3
Java version: 17.0.5, vendor: Red Hat, Inc., runtime: /usr/lib/jvm/java-17-openjdk-17.0.5.0.8-2.el8.x86_64
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "4.18.0-326.el8.x86_64", arch: "amd64", family: "unix"
[ERROR] Plugin org.apache.maven.plugins:maven-clean-plugin:2.5 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-clean-plugin:jar:2.5: Could not transfer artifact org.apache.maven.plugins:maven-clean-plugin:pom:2.5 from/to central (https://repo.maven.apache.org/maven2): Transfer failed for https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-clean-plugin/2.5/maven-clean-plugin-2.5.pom: Unknown host repo.maven.apache.org: Name or service not known -> [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/PluginResolutionException
The pom stops below is where it stuck in DEBUG :
[INFO] --------------------------------[ pom ]---------------------------------
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-clean-plugin/2.5/maven-clean-plugin-2.5.pom
and I tried creating settings.xml with correct proxy but never helped. wget works fine from bvelow location : https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-clean-plugin/2.5/maven-clean-plugin-2.5.pom
So I am sure its not proxy issue and other packages copied fine.
Any idea ?
This question already has answers here:
JasperReports Maven broken?
(6 answers)
Dependency error in jasper-reports from itext
(13 answers)
Gradle Build Failure for JasperReports: Dependency Issue
(1 answer)
Closed 1 year ago.
I try install dependencies of my maven project but when I use "mvn install" I get this error for jasper report:
[INFO] Scanning for projects...
[INFO]
[INFO] --------------< com.projectSecret >--------------
[INFO] Building projectSecret
[INFO] --------------------------------[ war ]---------------------------------
Downloading from jaspersoft-third-party: http://jaspersoft.jfrog.io/jaspersoft/third-party-ce-artifacts/com/lowagie/itext/2.1.7.js5/itext-2.1.7.js5.pom
Downloading from jaspersoft-third-party: http://jaspersoft.jfrog.io/jaspersoft/third-party-ce-artifacts/org/olap4j/olap4j/0.9.7.309-JS-3/olap4j-0.9.7.309-JS-3.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.373 s
[INFO] Finished at: 2021-06-10T20:20:08-05:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project projectSecret: Could not resolve dependencies for project com.projectSecret.org:projectSecret:war:0.0.1-SNAPSHOT: Failed to collect dependencies at net.sf.jasperreports:jasperreports:jar:6.4.0 -> com.lowagie:itext:jar:2.1.7.js5: Failed to read artifact descriptor for com.lowagie:itext:jar:2.1.7.js5: Could not transfer artifact com.lowagie:itext:pom:2.1.7.js5 from/to jaspersoft-third-party (http://jaspersoft.jfrog.io/jaspersoft/third-party-ce-artifacts/): Transfer failed for http://jaspersoft.jfrog.io/jaspersoft/third-party-ce-artifacts/com/lowagie/itext/2.1.7.js5/itext-2.1.7.js5.pom 308 Permanent Redirect -> [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
any idea why this error or solution? Thanks!
I use Linux Mint 20 and :
Apache Maven 3.6.3
Maven home: /usr/share/maven
Java version: 1.8.0_292, vendor: Private Build, runtime: /usr/lib/jvm/java-8-openjdk-amd64/jre
OS name: "linux", version: "5.4.0-74-generic", arch: "amd64", family: "unix"
my pom.xml
I just ran into the same problem. It seams that iText is not availabel on public repos. Here https://github.com/TIBCOSoftware/jasperreports/issues/148 the solution is to add the following repo:
<repository>
<id>jaspersoft-third-party</id>
<url>https://jaspersoft.jfrog.io/jaspersoft/third-party-ce-artifacts/</url>
</repository>
Edit: I need to change the url from http to https.
I have download Apache Spark 1.4.1 from the official site. As follows:
I don't have hadoop installed in my machine.
Apache provides build command. So, I tried to start building the project using following command
build/mvn -Pyarn -Phadoop-2.4 -Dhadoop.version=2.4.0 -DskipTests clean package
But build was failed with the following error:
[INFO] Spark Project External Kafka Assembly ............. SKIPPED
[INFO] Spark Project YARN Shuffle Service ................ SKIPPED
[INFO] --------------------------------------------------------------------- ---
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 7.840s
[INFO] Finished at: Wed Jul 29 10:43:04 IST 2015
[INFO] Final Memory: 15M/43M
[INFO] ------------------------------------------------------------------------
[ERROR] Plugin org.apache.maven.plugins:maven-enforcer-plugin:1.4 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-enforcer-plugin:jar:1.4: Could not transfer artifact org.apache.maven.plugins:maven-enforcer-plugin:pom:1.4 from/to central (https://repo1.maven.org/maven2): peer not authenticated -> [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/PluginResolutionException
I am new with Apache Spark please give suggestions.
since it is precompiled Binary distribution you have downloaded. you do not need to compile it again using maven2. just put it on path and use it directly.
I am new to atlassian-plugin-sdk, while running the command atlas-run-standalone --product jira, I am getting the following error
C:\Users\aaaaa>atlas-run-standalone --product jira
Executing: "D:\atlassian-plugin-sdk\apache-maven-3.2.1\bin\mvn.bat" com.atlassia
n.maven.plugins:maven-amps-plugin:5.0.13:run-standalone -gs D:\atlassian-plugin-
sdk\apache-maven-3.2.1/conf/settings.xml -Dproduct=jira
[INFO] Scanning for projects...
[INFO]
[INFO] Using the builder org.apache.maven.lifecycle.internal.builder.singlethrea
ded.SingleThreadedBuilder with a thread count of 1
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Maven Stub Project (No POM) 1
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-amps-plugin:5.0.13:run-standalone (default-cli) # standalone-pom ---
Downloading: https://maven.atlassian.com/repository/public/com/atlassian/plugins
/rest/atlassian-rest-common/2.9.2-m01/atlassian-rest-common-2.9.2-m01.pom
Downloading: https://maven.atlassian.com/repository/public/com/sun/jersey/contri
bs/wadl-resourcedoc-doclet/1.8-atlassian-8/wadl-resourcedoc-doclet-1.8-atlassian
-8.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4.018 s
[INFO] Finished at: 2015-02-20T10:27:34+05:30
[INFO] Final Memory: 9M/23M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.atlassian.maven.plugins:maven-amps-plugin:5.0.13:run-standalone (default-cli) on project standalone-pom:
Execution default-cli of goal com.atlassian.maven.plugins:maven-amps-plugin:5.0.13:run-standalone failed: Plugin com.atlassian.maven.plugins:maven-amps-plugin:5.0.13
or one of itsdependencies could not be resolved: Failed to collect dependencies at com.atlassian.maven.plugins:maven-amps-plugin:jar:5.0.13 ->
com.atlassian.plugins.rest:atlassian-rest-doclet:jar:2.9.2 -> com.atlassian.jersey:atlassian-jersey-restdoc:jar:1.0.3 ->
com.atlassian.plugins.rest:atlassian-rest-common:jar:2.9.2-m01: Failed to read artifact descriptor for com.atlassian.plugins.rest:atlassian-rest-common:jar:2.9.2-m01:
Could not transfer artifact com.atlassian.plugins.rest:atlassian-rest-common:pom:2.9.2-m01 from/to atlassian-public (https://maven.atlassian.com/repository/public):
sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unableto find valid certification path to requested target -> [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 rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginResoluti
onException
C:\Users\aaaa>atlas-version
ATLAS Version: 5.0.13
ATLAS Home: D:\atlassian-plugin-sdk
ATLAS Scripts: D:\atlassian-plugin-sdk\bin
ATLAS Maven Home: D:\atlassian-plugin-sdk\apache-maven-3.2.1
--------
Executing: "D:\atlassian-plugin-sdk\apache-maven-3.2.1\bin\mvn.bat" --version -g
s D:\atlassian-plugin-sdk\apache-maven-3.2.1/conf/settings.xml
Apache Maven 3.2.1 (ea8b2b07643dbb1b84b6d16e1f08391b666bc1e9; 2014-02-14T23:07:5
2+05:30)
Maven home: D:\atlassian-plugin-sdk\apache-maven-3.2.1
Java version: 1.7.0_65, vendor: Oracle Corporation
Java home: C:\Program Files\Java\jdk1.7.0_65\jre
Default locale: en_US, platform encoding: Cp1252
OS name: "windows 7", version: "6.1", arch: "x86", family: "windows"
Please help me in solving this issue
Note: I have changed my proxy setting in setting.xml in maven, but its of no use,
I am getting the same error again and again
I guess I replied to your question on answers.atlassian.com and here the answer will be the same: https://maven.atlassian.com is not trusted by your Java.
Here is what you need to make ti trusted:
Download the certificate manually
This depends on what browser you are using. For IE7, you need to browse to the website (eg. https://maven.atlassian.com) then:
Right click on the page and access its Properties menu
Click on the Certificates button
Click on the Details Tab
Choose Copy to File
You will be taken to the Certificate Export Wizard, click next
Choose a format of the certificate that you would like to choose then
save the certificate to a directory of your choice.
Install the certificate to your keystore
You can use Java's keytool command to import it to your keystore, for example:
keytool -import -file myCertificate.cer -keystore myKeystor
Source: https://confluence.atlassian.com/display/CONFKB/Unable+to+Install+Plugin+Due+to+Maven+SSL
I am currently trying to get started with the Atlassian SDK and I've installed it as it is described in the Atlassian SDK Documentation. But when I'm running a SDK-command, it doesn't work. For example, when I run the command
atlas-run-standalone --product jira
it fails with the following output:
Executing: "C:\Users\XXX\Programme\apache-maven-3.1.1\bin\mvn" com.atlassian.maven.plugins:maven-am
ps-plugin:4.2.20:run-standalone -gs C:\Users\XXX\atlassian-plugin-sdk\apache-maven/conf/settings.xm
l -Dproduct=jira
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Maven Stub Project (No POM) 1
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-amps-plugin:4.2.20:run-standalone (default-cli) # standalone-pom ---
[INFO] Google Analytics Tracking is enabled to collect AMPS usage statistics.
[INFO] Although no personal information is sent, you may disable tracking by adding <allowGoogleTracking>false
</allowGoogleTracking> to the amps plugin configuration in your pom.xml
[INFO] Sending event to Google Analytics: AMPS:jira - Run Standalone
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.861s
[INFO] Finished at: Thu Apr 24 09:32:47 CEST 2014
[INFO] Final Memory: 16M/245M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.atlassian.maven.plugins:maven-amps-plugin:4.2.20:run-standalone (
default-cli) on project standalone-pom: Execution default-cli of goal com.atlassian.maven.plugins:ma
ven-amps-plugin:4.2.20:run-standalone failed: An API incompatibility was encountered while executing
com.atlassian.maven.plugins:maven-amps-plugin:4.2.20:run-standalone: java.lang.NoSuchMethodError: o
rg.apache.maven.execution.MavenSession.getRepositorySession()Lorg/sonatype/aether/RepositorySystemSe
ssion;
[ERROR] -----------------------------------------------------
[ERROR] realm = plugin>com.atlassian.maven.plugins:maven-amps-plugin:4.2.20
[ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
[ERROR] urls[0] = file:/C:/Users/XXX/.m2/repository/com/atlassian/maven/plugins/maven-amps-plugin/4
.2.20/maven-amps-plugin-4.2.20.jar
[ERROR] urls[1] = file:/C:/Users/XXX/.m2/repository/com/atlassian/core/atlassian-core/4.0/atlassian
-core-4.0.jar
# more [ERROR] urls[x] = ...
[ERROR] urls[130] = file:/C:/Users/XXX/.m2/repository/org/twdata/maven/mojo-executor/1.5.1/mojo-exe
cutor-1.5.1.jar
[ERROR] Number of foreign imports: 1
[ERROR] import: Entry[import from realm ClassRealm[maven.api, parent: null]]
[ERROR]
[ERROR] -----------------------------------------------------
[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 arti
cles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginContainerException
Some further information to my machine:
Windows 7 Professional, x64
javac 1.7.0_45
JAVA_HOME is set, %JAVA_HOME%/bin has been added to PATH
And the information responded by the atlas-version command:
ATLAS Version: 4.2.20
ATLAS Home: C:\Users\XXX\atlassian-plugin-sdk
ATLAS Scripts: C:\Users\XXX\atlassian-plugin-sdk\bin
ATLAS Maven Home: C:\Users\XXX\atlassian-plugin-sdk\apache-maven
--------
Executing: "C:\Users\XXX\Programme\apache-maven-3.1.1\bin\mvn" --versi
n-plugin-sdk\apache-maven/conf/settings.xml
Apache Maven 3.1.1 (0728685237757ffbf44136acec0402957f723d9a; 2013-09-1
Maven home: C:\Users\XXX\Programme\apache-maven-3.1.1
Java version: 1.7.0_45, vendor: Oracle Corporation
Java home: C:\Program Files\Java\jdk1.7.0_45\jre
Default locale: de_DE, platform encoding: Cp1252
OS name: "windows 7", version: "6.1", arch: "amd64", family: "windows"
Have you set ATLAS_MVN to use your own installation of Maven? The Atlassian SDK doesn't support Maven 3.1+ in the 4.x releases due to an incompatible change in Maven itself (MNG-5354).
There is a fix (AMPS-1029); until upgrading, use Maven 3.0 or the mvn that's bundled with AMPS.
AMPS 5.0 has now been released (AMPS SDK 5.0.0 Release Notes) with that fix included, and support for Maven 3.1.