how to fix the build with maven in bluemix - maven

I have created a sample app (java liberty profile) on Bluemix.
When I try to build the app on Bluemix devops (I do not make changes to the code). I have this error msg :
Cloning the 'master' branch from repo 'https://P90MSG01:3041/git/abderrazak/sia-test-build'
[INFO] Scanning for projects...
[INFO] Downloading: http://repo.maven.apache.org/maven2/net/wasdev/maven/parent/java7-parent/1.4/java7-parent-1.4.pom
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project net.wasdev.wlp.sample:JavaHelloWorldApp:1.0-SNAPSHOT (/home/pipeline/1366b39e-02e6-4b9d-bb71-89d6d65b202d/pom.xml) has 1 error
[ERROR] Non-resolvable parent POM: Could not transfer artifact net.wasdev.maven.parent:java7-parent:pom:1.4 from/to central (http://repo.maven.apache.org/maven2): Connect to repo.maven.apache.org:80 [repo.maven.apache.org/151.101.44.215] failed: Connection refused and 'parent.relativePath' points at no local POM # line 5, column 13 -> [Help 2]
[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
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException
Finished: FAILED
Is there a reason ?
Thank you.

As per Bluemix Status Page today DevOps Delivery Pipeline service experienced some issues that should be fixed now. Some users experienced issues with pipeline jobs.
I suggest you to try again now, it should work.

Related

maven package issues with dspace

I am teaching DSpace for MLIS students and when I give mvn package, I get the following error (file attached).
I try to install DSpace on Windows 7 with the following set of files. which in the past I have succeeded several times. As we could not upgrade the OS in the computer lab, I am stuck to teach the same installation, this time too.
jdk1.6.0_38,
apache-ant-1.9.2,
apache-maven-3.0.5,
apache tomcat 7.0,
dspace-3.2-src-release.
Kindly help me resolve.
The error log file:
C:\dspace\dspace-3.2-src-release\dspace>mvn package
[INFO] Scanning for projects...
Downloading: http://oss.sonatype.org/content/repositories/releases/org/sonatype/oss/oss-parent/7/oss-parent-7.pom
Downloading: http://repo.maven.apache.org/maven2/org/sonatype/oss/oss-parent/7/oss-parent-7.pom
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project org.dspace:dspace:3.2 (C:\dspace\dspace-3.2-src-release\dspace\pom.xml) has 1 error
[ERROR] Non-resolvable parent POM for org.dspace:dspace-parent:3.2: Could not transfer artifact org.sonatype.oss:oss-parent:pom:7 from/to sonatype-releases
(http://oss.sonatype.org/content/repositories/releases/): peer not authenticated and 'parent.relativePath' points at wrong local POM # org.dspace:dspace-parent:3.2, C:\dspace\dspace-3.2-src-release\pom.xml, line 17, column 13 -> [Help 2]
[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
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException
C:\dspace\dspace-3.2-src-release\dspace>

Received fatal alert: protocol_version and 'parent.relativePath' points at wrong local POM

I'm learning from git projects:"https://github.com/spring-cloud/spring-cloud-zookeeper",when i import the project into intellij idea IDE,and run mvn --settings .settings.xml package in terminal,it shows error :
spring-cloud-zookeeper-master>mvn --settings .settings.xml package
[INFO] Scanning for projects...
Downloading: https://repo.spring.io/libs-snapshot-local/org/springframework/cloud/spring-cloud-build/3.0.0.BUILD-SNAPSHOT/maven-metadata.xml
[WARNING] Could not transfer metadata org.springframework.cloud:spring-cloud-build:3.0.0.BUILD-SNAPSHOT/maven-metadata.xml from/to spring-snapshots (https://repo.spring.io/libs-snapsho
t-local): Received fatal alert: protocol_version
Downloading: https://repo.spring.io/libs-snapshot-local/org/springframework/cloud/spring-cloud-build/3.0.0.BUILD-SNAPSHOT/spring-cloud-build-3.0.0.BUILD-SNAPSHOT.pom
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project org.springframework.cloud:spring-cloud-zookeeper:3.0.0.BUILD-SNAPSHOT (D:\projects\study\spring-cloud-zookeeper-master\pom.xml) has 1 error
[ERROR] Non-resolvable parent POM: Could not transfer artifact org.springframework.cloud:spring-cloud-build:pom:3.0.0.BUILD-SNAPSHOT from/to spring-snapshots (https://repo.spring.i
o/libs-snapshot-local): Received fatal alert: protocol_version and 'parent.relativePath' points at no local POM # line 14, column 10 -> [Help 2]
[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
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException
Try to activate Use plugin registry.

Maven Project Failed to Build in Eclipse

I created a demo maven project from start.spring.io, and I tried to run mvn clean package from Eclipse, but it gave me the following error:
[INFO] Scanning for projects...
[INFO] Downloading from : https://repo.maven.apache.org/maven2/org/springframework/boot/spring-boot-starter-parent/2.0.6.RELEASE/spring-boot-starter-parent-2.0.6.RELEASE.pom
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[FATAL] Non-resolvable parent POM for com.example:demo:0.0.1-SNAPSHOT: Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:2.0.6.RELEASE from/to central (https://repo.maven.apache.org/maven2): repo.maven.apache.org and 'parent.relativePath' points at no local POM # line 14, column 10
#
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project com.example:demo:0.0.1-SNAPSHOT (C:\Development\demo\pom.xml) has 1 error
[ERROR] Non-resolvable parent POM for com.example:demo:0.0.1-SNAPSHOT: Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:2.0.6.RELEASE from/to central (https://repo.maven.apache.org/maven2): repo.maven.apache.org and 'parent.relativePath' points at no local POM # line 14, column 10: Unknown host repo.maven.apache.org -> [Help 2]
[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
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException
Picked up JAVA_TOOL_OPTIONS: -agentpath:"C:\Windows\system32\Aternity\Java\JavaHookLoader.dll"="C:\ProgramData\Aternity\hooks"
Anyone knows the problem? Thanks in advance.
Problem is solved by adding the settings.xml in the .m2 folder.

Unresolveable build extension in Maven

I am getting below error while building maven project.
[INFO] Scanning for projects...
Downloading: http://repo.jfrog.org/artifactory/plugins-releases-local/org/jfrog/maven/annomo
jo/maven-plugin-tools-anno/1.4.0/maven-plugin-tools-anno-1.4.0.pom
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[ERROR] Unresolveable build extension: Plugin org.mule.tools.maven:mule-app-maven-plugin:1.0
or one of its dependencies could not be resolved: Failed to collect dependencies at org.mul
e.tools.maven:mule-app-maven-plugin:jar:1.0 -> org.jfrog.maven.annomojo:maven-plugin-tools-a
nno:jar:1.4.0 #
[ERROR] Unknown packaging: mule # line 6, column 13
#
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project com.test:testproj:1.0.1 (C:\Users\john\proj\testproj
c\pom.xml) has 2 errors
[ERROR] Unresolveable build extension: Plugin org.mule.tools.maven:mule-app-maven-plugin
:1.0 or one of its dependencies could not be resolved: Failed to collect dependencies at org
.mule.tools.maven:mule-app-maven-plugin:jar:1.0 -> org.jfrog.maven.annomojo:maven-plugin-too
ls-anno:jar:1.4.0: Failed to read artifact descriptor for org.jfrog.maven.annomojo:maven-plu
gin-tools-anno:jar:1.4.0: Could not transfer artifact org.jfrog.maven.annomojo:maven-plugin-
tools-anno:pom:1.4.0 from/to jfrog (http://repo.jfrog.org/artifactory/plugins-releases-local
): Connect to repo.jfrog.org:80 [repo.jfrog.org/52.200.110.120, repo.jfrog.org/52.73.83.233]
failed: Connection refused: connect -> [Help 2]
[ERROR] Unknown packaging: mule # line 6, column 13
[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 follow
ing articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/PluginManagerException
Earlier we got connection refused for different IP. we opened the firewall for the same. Now it is showing differnt IP for connection refused.
Could you please help us on this to reslove the issue?

Maven fails building CAS server

I am trying to implement SSO feature and downloaded all projects and pom.xml from http://www.jasig.org/cas/download.
So, I got my maven project and then In eclipse I just did import as existing maven project.
then I Run the project as MVN CLEAN and it is not running and getting error as
[INFO] Scanning for projects...
Downloading: http://developer.ja-sig.org/maven2/org/jasig/parent/jasig-parent/21/jasig-parent-21.pom
Downloading: http://repository.jboss.org/nexus/content/groups/public-jboss/org/jasig/parent/jasig-parent/21/jasig-parent-21.pom
Downloading: http://repo.maven.apache.org/maven2/org/jasig/parent/jasig-parent/21/jasig-parent-21.pom
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project org.jasig.cas:cas-server:3.5.0 (D:\CAS\Single Sign On\cas-server-3.5.0-release\cas-server-3.5.0\pom.xml) has 1 error
[ERROR] Non-resolvable parent POM: Could not transfer artifact org.jasig.parent:jasig-parent:pom:21 from/to jasig-repository (http://developer.ja-sig.org/maven2): null to http://developer.ja-sig.org/maven2/org/jasig/parent/jasig-parent/21/jasig-parent-21.pom and 'parent.relativePath' points at wrong local POM # line 22, column 11: UnresolvedAddressException -> [Help 2]
[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
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException
some one told that it is proxy problem, so i changed settings.xml file to place proxy as
<proxy>
<id>123</id>
<active>true</active>
<protocol>http</protocol>
<username>abc.def#xyz.com</username>
<password>xyz1233</password>
<host>proxy.com</host>
<port>80</port>
<nonProxyHosts>google.com</nonProxyHosts>
</proxy>
still it is not running, can someone please pointout mistake?
Why not downloading jasig-parent from Maven central instead ?

Resources