Idempiere 9 Compilation Error (mvn verify)

250 views
Skip to first unread message

Rahiman

unread,
Aug 13, 2023, 3:27:35 PM8/13/23
to iDempiere
Dear Experts,

Good day,
I am facing Idempiere9 source code compilation error (mvn verify),  
while I am setting up new new development environment in Linux machine.
I did this exercise two months ago in same Environment, And, it was working without any issues. I assume that, this issue due to some repositories are removed from Maven.
please help me to find out solution to solve this error.

Thanks in advance.
Abdulla

The error is shown as below.

[ERROR] Failed to resolve target definition file:/opt/iDempiere9/idempiere/org.idempiere.p2.targetplatform/org.idempiere.p2.targetplatform.target: MavenDependency GroupId = org.eclipse.jetty, ArtifactId = jetty-servlets, Version = 10.0.7, ArtifactType = jar, IncludeDependencyScope =  of location MavenDependencyRoots = [GroupId = org.eclipse.jetty, ArtifactId = jetty-servlets, Version = 10.0.7, ArtifactType = jar, IncludeDependencyScope = ], IncludeDependencyScope = [compile], MissingManifestStrategy = GENERATE, IncludeSource = true could not be resolved: resolving org.eclipse.jetty:jetty-servlets:jar:10.0.7 failed! [org.apache.maven.artifact.resolver.ArtifactResolutionException: Unable to get dependency information for org.eclipse.jetty.tests:jetty-http-tools:jar:10.0.7: Failed to retrieve POM for org.eclipse.jetty.tests:jetty-http-tools:jar:10.0.7: The following artifacts could not be resolved: org.eclipse.jetty.tests:jetty-http-tools:pom:10.0.7 (absent): Could not transfer artifact org.eclipse.jetty.tests:jetty-http-tools:pom:10.0.7 from/to zkoss (https://mavensync.zkoss.org/maven2): status code: 403, reason phrase: Forbidden (403)
[ERROR]   org.eclipse.jetty.tests:jetty-http-tools:jar:10.0.7
[ERROR]
[ERROR] from the specified remote repositories:
[ERROR]   Central (https://repo1.maven.org/maven2, releases=true, snapshots=true),
[ERROR]   Redhat-GA (https://maven.repository.redhat.com/ga, releases=true, snapshots=true),
[ERROR]   OpenNMS (https://repo.opennms.org/maven2, releases=true, snapshots=true),
[ERROR]   jr-ce-releases (https://jaspersoft.jfrog.io/jaspersoft/jr-ce-releases, releases=true, snapshots=true),
[ERROR]   jp-third-party-ce (https://jaspersoft.jfrog.io/jaspersoft/third-party-ce-artifacts, releases=true, snapshots=true),
[ERROR]   Clojars (https://clojars.org/repo, releases=true, snapshots=true),
[ERROR]   atlassian-3rdparty (https://maven.atlassian.com/3rdparty, releases=true, snapshots=true),
[ERROR]   idempiere-zkoss (https://idempiere.github.io/binary.file/maven.zk/, releases=true, snapshots=true),
[ERROR]   zkoss (https://mavensync.zkoss.org/maven2, releases=true, snapshots=true),
[ERROR]   jenkins (https://repo.jenkins-ci.org/releases, releases=true, snapshots=true),
[ERROR]   central (https://repo.maven.apache.org/maven2, releases=true, snapshots=false)
[ERROR] Path to dependency:
[ERROR] 1) org.eclipse.jetty:jetty-servlets:jar:10.0.7
[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 articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MavenExecutionException

 


Idempiere9_Compile _error.png
Message has been deleted

NikColonel

unread,
Aug 16, 2023, 3:22:55 AM8/16/23
to iDempiere
Hello,
I see "(https://mavensync.zkoss.org/maven2): status code: 403, reason phrase: Forbidden" in your error log. Are you sure that this link (https://mavensync.zkoss.org/maven2) is available for you without kind of block? Try to enable VPN and repeate "mvn verify".

Rahiman

unread,
Aug 16, 2023, 8:44:38 AM8/16/23
to iDempiere
Hi NikColonel,

Thanks for your reply and support.
Yes, I can reach to  (https://mavensync.zkoss.org/maven2) and able to open it.
But, I found there is one folder under  ==>   https://mavensync.zkoss.org/maven2/org/eclipse folder is removed.
and system is looking for removed  ===>  https://mavensync.zkoss.org/maven2/org/ <eclipse/jetty/tests/jetty-http-tools/10.0.7/jetty-http-tools-10.0.7.pom > file, which gives the error.
Also noted that under (https://mavensync.zkoss.org/maven2/org/) ===> zkoss/ folder modified on 2023-05-11 10:01
please see the attached screenshot.

Thanks again,
Regards
Abdulla

idem_9_error.png

NikColonel

unread,
Aug 16, 2023, 10:41:45 AM8/16/23
to iDempiere
Yes, I think you right. At the moment this dependency is unavailable or removed.

Rahiman

unread,
Aug 16, 2023, 4:13:32 PM8/16/23
to iDempiere
Hi NikColonel,
Thanks again for your time,

do you have any alternative solution for it, otherwise, I have to scrap entire idempiere9 project.
In this way,  all other projects are in high risk , due to maven dependency, anything can happen at any point of time.

I have fully working source code backup in my Virtual Machine, but,  I am not able to compile it.
when I run mvn verify , it removes all existing locally stored  dependencies and unable to download it.

is there anyway to do offline mvn compilation Or localized compilation, in this case, at least I can save exisitng  dependencies  from deletion.

Thanks Again,
Abdulla.

Hiep Lq

unread,
Aug 16, 2023, 11:04:41 PM8/16/23
to idem...@googlegroups.com
you can follow this thread, we get same issue


Lê Quý Hiệp
Email: hie...@hasuvimex.vn
Skype: admin.hasuvimex

Company: Thanh Hoa Fishery Import - Export J.s.c  (HasuvimexDL 47
Add: Lot E, Le Mon Industrial Zone, Thanh Hoa, Vietnam


--
You received this message because you are subscribed to the Google Groups "iDempiere" group.
To unsubscribe from this group and stop receiving emails from it, send an email to idempiere+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/idempiere/ce9e8ef0-d6c7-48a4-ae10-3fe654dd302dn%40googlegroups.com.

Dxb_Programmer

unread,
Aug 21, 2023, 3:00:39 AM8/21/23
to iDempiere
Hi,

Thanks for sharing the link.
It helped me to solving the issue, by changing java version from (11.0.1 to 11.0.20) 
thanks again,
Regards 
Abdulla.
Reply all
Reply to author
Forward
0 new messages