Build Use Tycho

1,273 views
Skip to first unread message

Dwi Rahman Ismail

unread,
May 7, 2018, 3:41:32 AM5/7/18
to iDempiere
Hi all,

Now iam try to build materialize idempiere and build use tycho but i got some issue.. I am already follow the steps in this link http://wiki.idempiere.org/en/Building_iDempiere_by_tychohttp://wiki.idempiere.org/en/Building_iDempiere_by_tycho

and in set target Platform and in Target Editor cannot resolved the link. Did i do something wrong or i miss some step.. Please guide me..

My env = Windows 10, jdk 1.8.0.152 and apache-maven-3.5.3



Thanks, 

Dwi Rahman Ismail

unread,
May 7, 2018, 10:32:37 PM5/7/18
to iDempiere
Hi community,


Now it's done complete and work perfectly.. Don't know why yesterday can't resolve the link.. And if i want to compile or create installer still use buckminster?


Regards

Hiep Lq

unread,
May 7, 2018, 10:48:50 PM5/7/18
to Mohemmed Bilal Ilyas
on default branch, i focus to maintain tycho build
but you can try buckminster and report issue.

sometime it get issue when resolved repository by network or server isn't good, just keep try it by click reload button
you're welcome to edit wiki to add this case as know issue


--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/idempiere/029c9337-51fe-467c-85a2-a59552299aab%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
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

Dwi Rahman Ismail

unread,
May 11, 2018, 3:16:29 AM5/11/18
to iDempiere
Hi hiep,

Thanks for the respond. Now iam trying to materialize again with maven tycho and the issue i got the same like the first time i try. Target Platform cannot resolved and still un resolved and already do it reload but nothing change, I am doing materialize again because i got error in jetty when i try to launch server-product. 

My Env = Win 10, jdk 1.8.0_172, Postgresql 9.5, apache-maven-3.5.3, Eclipse neon.3 Release (4.6.3)

Regards


Pada Selasa, 08 Mei 2018 09.48.50 UTC+7, Hiep Lq menulis:
on default branch, i focus to maintain tycho build
but you can try buckminster and report issue.

sometime it get issue when resolved repository by network or server isn't good, just keep try it by click reload button
you're welcome to edit wiki to add this case as know issue

On Tue, May 8, 2018 at 9:32 AM, Dwi Rahman Ismail <dwi...@gmail.com> wrote:
Hi community,


Now it's done complete and work perfectly.. Don't know why yesterday can't resolve the link.. And if i want to compile or create installer still use buckminster?


Regards

Pada Senin, 07 Mei 2018 14.41.32 UTC+7, Dwi Rahman Ismail menulis:
Hi all,

Now iam try to build materialize idempiere and build use tycho but i got some issue.. I am already follow the steps in this link http://wiki.idempiere.org/en/Building_iDempiere_by_tychohttp://wiki.idempiere.org/en/Building_iDempiere_by_tycho

and in set target Platform and in Target Editor cannot resolved the link. Did i do something wrong or i miss some step.. Please guide me..

My env = Windows 10, jdk 1.8.0.152 and apache-maven-3.5.3



Thanks, 

--
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.

Hiep Lq

unread,
May 17, 2018, 11:05:25 PM5/17/18
to iDempiere

please expand note to see detail or see message on console

i don't use window, so isn't yet test on window.

do you can test on linux?

Dwi Rahman Ismail

unread,
May 21, 2018, 11:44:11 PM5/21/18
to iDempiere
Hi hiep,

Later i will send log error, i am do materialize in another pc and iam not testing in linux and maybe soon i will try it.

Thanks 

Derek Lew

unread,
May 22, 2018, 1:19:01 AM5/22/18
to iDempiere
How to use Tycho to build server installer?


On Tuesday, May 8, 2018 at 10:48:50 AM UTC+8, Hiep Lq wrote:
on default branch, i focus to maintain tycho build
but you can try buckminster and report issue.

sometime it get issue when resolved repository by network or server isn't good, just keep try it by click reload button
you're welcome to edit wiki to add this case as know issue

On Tue, May 8, 2018 at 9:32 AM, Dwi Rahman Ismail <dwi...@gmail.com> wrote:
Hi community,


Now it's done complete and work perfectly.. Don't know why yesterday can't resolve the link.. And if i want to compile or create installer still use buckminster?


Regards

Pada Senin, 07 Mei 2018 14.41.32 UTC+7, Dwi Rahman Ismail menulis:
Hi all,

Now iam try to build materialize idempiere and build use tycho but i got some issue.. I am already follow the steps in this link http://wiki.idempiere.org/en/Building_iDempiere_by_tychohttp://wiki.idempiere.org/en/Building_iDempiere_by_tycho

and in set target Platform and in Target Editor cannot resolved the link. Did i do something wrong or i miss some step.. Please guide me..

My env = Windows 10, jdk 1.8.0.152 and apache-maven-3.5.3



Thanks, 

--
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.

Dwi Rahman Ismail

unread,
May 22, 2018, 3:45:04 AM5/22/18
to iDempiere
Hi Derek,

I am curious too, because i am just do materialize with tycho and test it if work well.. For now i am still use buckminster for create installer..

Regards

Derek Lew

unread,
May 22, 2018, 3:59:10 AM5/22/18
to iDempiere
The current default branch, would lead to this issue. https://idempiere.atlassian.net/browse/IDEMPIERE-3712.

I am falling back to release 5.1 for now.

dadan su

unread,
May 22, 2018, 3:59:21 AM5/22/18
to iDempiere
run mvn verify will create installer too in folder org.idempiere.p2/target/products

Dwi Rahman Ismail

unread,
May 22, 2018, 6:20:00 AM5/22/18
to iDempiere
Hi,

Just do mvn verify? Please kindly tell us the step..

Thanks

Hiep Lq

unread,
May 22, 2018, 6:34:17 AM5/22/18
to Mohemmed Bilal Ilyas

http://wiki.idempiere.org/en/Building_iDempiere_by_tycho#Steps_to_build_and_setup_development_environment

it description at 
"
  • Build all projects and output binary to [idempiere-home]/org.idempiere.p2/target/products
"


To unsubscribe from this group and stop receiving emails from it, send an email to idempiere+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/idempiere/295cfa46-3060-4a5d-a5e4-9761613cd9c6%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.
Message has been deleted

iqbal muhammad

unread,
May 25, 2018, 1:49:47 AM5/25/18
to iDempiere
Today I am trying to run "mvn verify", but I am getting error unable to read repository, i.e.

[ERROR] An error occurred while transferring artifact canonical: osgi.bundle,com.jaspersoft.studio.bundles.barbecue,1.5.0.beta1 from repository https://sourceforge.net/projects/idempiere/files/binary.file/jarfile/jp-p2/jp-6.3.1:
[ERROR]    Unable to read repository at https://sourceforge.net/projects/idempiere/files/binary.file/jarfile/jp-p2/jp-6.3.1/plugins/com.jaspersoft.studio.bundles.barbecue_1.5.0.beta1.jar.
[ERROR] Internal error: org.eclipse.tycho.repository.local.MirroringArtifactProvider$MirroringFailedException: Could not mirror artifact osgi.bundle,com.jaspersoft.studio.bundles.barbecue,1.5.0.beta1 into the local Maven repository.See log output for details. Read timed out -> [Help 1]
org.apache.maven.InternalErrorException: Internal error: org.eclipse.tycho.repository.local.MirroringArtifactProvider$MirroringFailedException: Could not mirror artifact osgi.bundle,com.jaspersoft.studio.bundles.barbecue,1.5.0.beta1 into the local Maven repository.See log output for details.

Is there something wrong with SF's repo and is there any workaround to finish "mvn verify" command?

Thank you for your help.

Regards,
Iqbal

Dwi Rahman Ismail

unread,
May 25, 2018, 3:08:45 AM5/25/18
to iDempiere
Hi Iqbal,

When i am doing mvn verify got some error too from sf, just keep trying until it success, SF sometimes give that error

Regards

iqbal muhammad

unread,
May 25, 2018, 3:59:01 AM5/25/18
to iDempiere
You're right.. just keep trying and it's finally done.

Thanks ya.

Dwi Rahman Ismail

unread,
May 25, 2018, 4:45:00 AM5/25/18
to iDempiere
What is your environment? Could you tell us the result build with tycho?


Thanks

iqbal muhammad

unread,
May 25, 2018, 9:18:10 PM5/25/18
to iDempiere
I am using Win 10. After following http://wiki.idempiere.org/en/Building_iDempiere_by_tycho, I am able to run from Eclipse. Now I will try to create OSGi plugin.

Vassili Kouleshov

unread,
May 26, 2018, 3:17:04 AM5/26/18
to iDempiere
Hi all

When I run mvn verify on MacOS, I get below error

!MESSAGE Software being installed: Idempiere P2 Director 5.1.0.201805251707 (org.idempiere.equinox.p2.director.feature.feature.group 5.1.0.201805251707)

!SUBENTRY 1 org.eclipse.equinox.p2.director 4 0 2018-05-25 19:09:46.218

!MESSAGE Missing requirement for filter properties ~= $0: Idempiere P2 Director 5.1.0.201805251707 (org.idempiere.equinox.p2.director.feature.feature.group 5.1.0.201805251707) requires 'org.idempiere.equinox.p2.director.feature_root.cocoa.macosx.x86_64 [5.1.0.201805251707]' but it could not be found


Daniel Badilla

unread,
Aug 6, 2018, 1:50:21 PM8/6/18
to iDempiere
Hello,

I am having this problem as well, I vae no idea how to get past this point.  I am on  MacOS High Sierra, I downloaded the code from 5.1 snapshot.  I had a couple of errors before, like this one:

[ERROR] Failed to execute goal com.googlecode.maven-download-plugin:download-maven-plugin:1.4.0:wget (download-jpayment) on project org.adempiere.payment.processor: Execution download-jpayment of goal com.googlecode.maven-download-plugin:download-maven-plugin:1.4.0:wget failed: java.lang.ClassNotFoundException: com.googlecode.download.maven.plugin.internal.CachedFileEntry -> [Help 1]


Which I was able to overcome by deleting the following folder:
~/.m2/repository/.cache/download-maven-plugin

But that one seemed like an external thing, while this last one seems to be directly related to MacOS and iDempiere :(  Any ideas??

Thanks in advamce,
Daniel

Daniel Badilla

unread,
Aug 6, 2018, 1:56:39 PM8/6/18
to iDempiere
Just wanted to add a bit more info on the error given when running mvn verify in case something there is of any help to more knowledgeable ones:

[INFO] 
[INFO] --- tycho-eclipserun-plugin:1.1.0:eclipse-run (default) @ org.idempiere.p2 ---
[INFO] Expected eclipse log file: /workspace/code/idempiere-git/org.idempiere.p2/target/eclipserun-work/data/.metadata/.log
[INFO] Command line:
[/Library/Java/JavaVirtualMachines/jdk1.8.0_171.jdk/Contents/Home/jre/bin/java, -jar, /Users/dbadilla/.m2/repository/p2/osgi/bundle/org.eclipse.equinox.launcher/1.4.0.v20161219-1356/org.eclipse.equinox.launcher-1.4.0.v20161219-1356.jar, -install, /workspace/code/idempiere-git/org.idempiere.p2/target/eclipserun-work, -configuration, /workspace/code/idempiere-git/org.idempiere.p2/target/eclipserun-work/configuration, -application, org.eclipse.equinox.p2.director, -repository, file:/workspace/code/idempiere-git/org.idempiere.p2/target/repository, -destination, /workspace/code/idempiere-git/org.idempiere.p2/target/products/org.adempiere.server.product/macosx/cocoa/x86_64, -installIU, org.eclipse.equinox.p2.director, org.idempiere.equinox.p2.director.feature.feature.group, org.idempiere.fitnesse.feature.feature.group, -profileProperties, org.eclipse.update.install.features=true, -p2.os, macosx, -p2.ws, cocoa, -p2.arch, x86_64, -consoleLog, -roaming]
Installing org.eclipse.equinox.p2.director 2.3.300.v20160504-1450.
Installing org.idempiere.equinox.p2.director.feature.feature.group 5.1.0.201808061724.
Installing org.idempiere.fitnesse.feature.feature.group 5.1.0.201808061724.
Installation failed.
Cannot complete the install because one or more required items could not be found.
 Software being installed: Idempiere P2 Director 5.1.0.201808061724 (org.idempiere.equinox.p2.director.feature.feature.group 5.1.0.201808061724)
 Missing requirement for filter properties ~= $0: Idempiere P2 Director 5.1.0.201808061724 (org.idempiere.equinox.p2.director.feature.feature.group 5.1.0.201808061724) requires 'org.idempiere.equinox.p2.director.feature_root.cocoa.macosx.x86_64 [5.1.0.201808061724]' but it could not be found
Application failed, log file location: /workspace/code/idempiere-git/org.idempiere.p2/target/eclipserun-work/configuration/1533576367144.log
!SESSION 2018-08-06 11:26:07.010 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.8.0_171
java.vendor=Oracle Corporation
BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=en_CR
Framework arguments:  -application org.eclipse.equinox.p2.director -repository file:/workspace/code/idempiere-git/org.idempiere.p2/target/repository -destination /workspace/code/idempiere-git/org.idempiere.p2/target/products/org.adempiere.server.product/macosx/cocoa/x86_64 -installIU org.eclipse.equinox.p2.director, org.idempiere.equinox.p2.director.feature.feature.group, org.idempiere.fitnesse.feature.feature.group -profileProperties org.eclipse.update.install.features=true -p2.os macosx -p2.ws cocoa -p2.arch x86_64 -roaming
Command-line arguments:  -application org.eclipse.equinox.p2.director -repository file:/workspace/code/idempiere-git/org.idempiere.p2/target/repository -destination /workspace/code/idempiere-git/org.idempiere.p2/target/products/org.adempiere.server.product/macosx/cocoa/x86_64 -installIU org.eclipse.equinox.p2.director, org.idempiere.equinox.p2.director.feature.feature.group, org.idempiere.fitnesse.feature.feature.group -profileProperties org.eclipse.update.install.features=true -p2.os macosx -p2.ws cocoa -p2.arch x86_64 -consoleLog -roaming

!ENTRY org.eclipse.equinox.p2.director 4 10053 2018-08-06 11:26:09.109
!MESSAGE Cannot complete the install because one or more required items could not be found.
!SUBENTRY 1 org.eclipse.equinox.p2.director 4 0 2018-08-06 11:26:09.109
!MESSAGE Software being installed: Idempiere P2 Director 5.1.0.201808061724 (org.idempiere.equinox.p2.director.feature.feature.group 5.1.0.201808061724)
!SUBENTRY 1 org.eclipse.equinox.p2.director 4 0 2018-08-06 11:26:09.110
!MESSAGE Missing requirement for filter properties ~= $0: Idempiere P2 Director 5.1.0.201808061724 (org.idempiere.equinox.p2.director.feature.feature.group 5.1.0.201808061724) requires 'org.idempiere.equinox.p2.director.feature_root.cocoa.macosx.x86_64 [5.1.0.201808061724]' but it could not be found


And the log is basically the same info:

!SESSION 2018-08-06 11:26:07.010 -----------------------------------------------                                                                       
eclipse.buildId=unknown
java.version=1.8.0_171
java.vendor=Oracle Corporation
BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=en_CR
Framework arguments:  -application org.eclipse.equinox.p2.director -repository file:/workspace/code/idempiere-git/org.idempiere.p2/target/repository -destination /workspace/code/idempiere-git/org.idempiere.p2/target/products/org.adempiere.server.product/macosx/cocoa/x86_64 -installIU org.eclipse.equinox.p2.director, org.idempiere.equinox.p2.director.feature.feature.group, org.idempiere.fitnesse.feature.feature.group -profileProperties org.eclipse.update.install.features=true -p2.os macosx -p2.ws cocoa -p2.arch x86_64 -roaming 
Command-line arguments:  -application org.eclipse.equinox.p2.director -repository file:/workspace/code/idempiere-git/org.idempiere.p2/target/repository -destination /workspace/code/idempiere-git/org.idempiere.p2/target/products/org.adempiere.server.product/macosx/cocoa/x86_64 -installIU org.eclipse.equinox.p2.director, org.idempiere.equinox.p2.director.feature.feature.group, org.idempiere.fitnesse.feature.feature.group -profileProperties org.eclipse.update.install.features=true -p2.os macosx -p2.ws cocoa -p2.arch x86_64 -consoleLog -roaming

!ENTRY org.eclipse.equinox.p2.director 4 10053 2018-08-06 11:26:09.109
!MESSAGE Cannot complete the install because one or more required items could not be found.
!SUBENTRY 1 org.eclipse.equinox.p2.director 4 0 2018-08-06 11:26:09.109
!MESSAGE Software being installed: Idempiere P2 Director 5.1.0.201808061724 (org.idempiere.equinox.p2.director.feature.feature.group 5.1.0.201808061724)
!SUBENTRY 1 org.eclipse.equinox.p2.director 4 0 2018-08-06 11:26:09.110
!MESSAGE Missing requirement for filter properties ~= $0: Idempiere P2 Director 5.1.0.201808061724 (org.idempiere.equinox.p2.director.feature.feature.group 5.1.0.201808061724) requires 'org.idempiere.equinox.p2.director.feature_root.cocoa.macosx.x86_64 [5.1.0.201808061724]' but it could not be found



Flemming Birch

unread,
Aug 7, 2018, 5:44:50 AM8/7/18
to idem...@googlegroups.com
Hi 

Just want to add to this! I have followed the great tuturial you have created, but when I run mvn verify I do end up with the following eror:

[INFO] org.idempiere.p2 ................................... FAILURE [ 20.098 s]
[INFO] org.idempiere.p2.targetplatform .................... SKIPPED
[INFO] org.idempiere.main 5.1.0-SNAPSHOT .................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 10:10 min
[INFO] Finished at: 2018-08-07T11:33:18+02:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.eclipse.tycho:tycho-p2-repository-plugin:1.1.0:archive-repository (default-archive-repository) on project org.idempiere.p2: Error packing p2 repository: Problem creating zip: Execution exception (and the archive is probably corrupt but I could not delete it): Java heap space -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.eclipse.tycho:tycho-p2-repository-plugin:1.1.0:archive-repository (default-archive-repository) on project org.idempiere.p2: Error packing p2 repository
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:213)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:154)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:146)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:954)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:192)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:498)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:289)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:415)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356)
Caused by: org.apache.maven.plugin.MojoExecutionException: Error packing p2 repository
    at org.eclipse.tycho.plugins.p2.repository.ArchiveRepositoryMojo.execute (ArchiveRepositoryMojo.java:64)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:208)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:154)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:146)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:954)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:192)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:498)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:289)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:415)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356)
Caused by: org.codehaus.plexus.archiver.ArchiverException: Problem creating zip: Execution exception (and the archive is probably corrupt but I could not delete it)
    at org.codehaus.plexus.archiver.AbstractArchiver.createArchive (AbstractArchiver.java:1010)
    at org.eclipse.tycho.plugins.p2.repository.ArchiveRepositoryMojo.execute (ArchiveRepositoryMojo.java:62)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:208)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:154)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:146)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:954)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:192)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:498)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:289)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:415)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356)
Caused by: java.io.IOException: Execution exception
    at org.codehaus.plexus.archiver.zip.AbstractZipArchiver.close (AbstractZipArchiver.java:892)
    at org.codehaus.plexus.archiver.AbstractArchiver.createArchive (AbstractArchiver.java:997)
    at org.eclipse.tycho.plugins.p2.repository.ArchiveRepositoryMojo.execute (ArchiveRepositoryMojo.java:62)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:208)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:154)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:146)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:954)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:192)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:498)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:289)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:415)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356)
Caused by: java.lang.OutOfMemoryError: Java heap space
    at org.codehaus.plexus.archiver.zip.ByteArrayOutputStream.needNewBuffer (ByteArrayOutputStream.java:153)
    at org.codehaus.plexus.archiver.zip.ByteArrayOutputStream.write (ByteArrayOutputStream.java:192)
    at org.apache.commons.io.output.ThresholdingOutputStream.write (ThresholdingOutputStream.java:129)
    at org.codehaus.plexus.archiver.zip.DeferredScatterOutputStream.writeOut (DeferredScatterOutputStream.java:44)
    at org.apache.commons.compress.archivers.zip.StreamCompressor$ScatterGatherBackingStoreCompressor.writeOut (StreamCompressor.java:291)
    at org.apache.commons.compress.archivers.zip.StreamCompressor.writeCounted (StreamCompressor.java:273)
    at org.apache.commons.compress.archivers.zip.StreamCompressor.deflate (StreamCompressor.java:264)
    at org.apache.commons.compress.archivers.zip.StreamCompressor.deflateUntilInputIsNeeded (StreamCompressor.java:257)
    at org.apache.commons.compress.archivers.zip.StreamCompressor.writeDeflated (StreamCompressor.java:238)
    at org.apache.commons.compress.archivers.zip.StreamCompressor.write (StreamCompressor.java:205)
    at org.apache.commons.compress.archivers.zip.StreamCompressor.deflate (StreamCompressor.java:184)
    at org.apache.commons.compress.archivers.zip.ScatterZipOutputStream.addArchiveEntry (ScatterZipOutputStream.java:96)
    at org.apache.commons.compress.archivers.zip.ParallelScatterZipCreator$2.call (ParallelScatterZipCreator.java:191)
    at java.util.concurrent.FutureTask.run (FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:624)
    at java.lang.Thread.run (Thread.java:748)
[ERROR]
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :org.idempiere.p2

I'm running this on a windows 10 and I have tried asking google with out any results!

Regards & thank for th good work.

/Flemming

--
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.

Fabio Canella

unread,
Sep 3, 2018, 7:01:50 PM9/3/18
to iDempiere
Hi Flemming, I have a similar error

[INFO] org.idempiere.eclipse.platform.feature ............. SUCCESS [  0.271 s]
[INFO] org.idempiere.p2 ................................... FAILURE [ 52.371 s]
[INFO] org.idempiere.p2.targetplatform .................... SKIPPED
[INFO] org.idempiere.main 5.1.0-SNAPSHOT .................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 05:05 min
[INFO] Finished at: 2018-09-04T00:22:29+02:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.eclipse.tycho.extras:tycho-eclipserun-plugin:1.1.0:eclipse-run (default) on project org.idempiere.p2: Error while executing platform: Error while executing platform (return code: 13) -> [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]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :org.idempiere.p2

I have this error compiling with java 1.8.0_40 on mac os Sierra.

Hiep Lq

unread,
Sep 3, 2018, 9:15:56 PM9/3/18
to Mohemmed Bilal Ilyas
you need to provide more log error. what's you provide is summary error

please search for error message.


For more options, visit https://groups.google.com/d/optout.

Fabio Canella

unread,
Sep 4, 2018, 2:44:13 AM9/4/18
to iDempiere
Thanks Hiep, this is the error

[INFO] --- tycho-eclipserun-plugin:1.1.0:eclipse-run (default) @ org.idempiere.p2 ---
[INFO] Expected eclipse log file: /Users/username/sviluppoerp/idempiere51/idempieremvn/org.idempiere.p2/target/eclipserun-work/data/.metadata/.log
[INFO] Command line:
[/Library/Java/JavaVirtualMachines/jdk1.8.0_171.jdk/Contents/Home/jre/bin/java, -jar, /Users/username/.m2/repository/p2/osgi/bundle/org.eclipse.equinox.launcher/1.4.0.v20161219-1356/org.eclipse.equinox.launcher-1.4.0.v20161219-1356.jar, -install, /Users/username/sviluppoerp/idempiere51/idempieremvn/org.idempiere.p2/target/eclipserun-work, -configuration, /Users/username/sviluppoerp/idempiere51/idempieremvn/org.idempiere.p2/target/eclipserun-work/configuration, -application, org.eclipse.equinox.p2.director, -repository, file:/Users/username/sviluppoerp/idempiere51/idempieremvn/org.idempiere.p2/target/repository, -destination, /Users/username/sviluppoerp/idempiere51/idempieremvn/org.idempiere.p2/target/products/org.adempiere.server.product/macosx/cocoa/x86_64, -installIU, org.eclipse.equinox.p2.director, org.idempiere.equinox.p2.director.feature.feature.group, org.idempiere.fitnesse.feature.feature.group, -profileProperties, org.eclipse.update.install.features=true, -p2.os, macosx, -p2.ws, cocoa, -p2.arch, x86_64, -consoleLog, -roaming]
Installing org.eclipse.equinox.p2.director 2.3.300.v20160504-1450.
Installing org.idempiere.equinox.p2.director.feature.feature.group 5.1.0.201809032319.
Installing org.idempiere.fitnesse.feature.feature.group 5.1.0.201809032319.
Installation failed.
Cannot complete the install because one or more required items could not be found.
 Software being installed: Idempiere P2 Director 5.1.0.201809032319 (org.idempiere.equinox.p2.director.feature.feature.group 5.1.0.201809032319)
 Missing requirement for filter properties ~= $0: Idempiere P2 Director 5.1.0.201809032319 (org.idempiere.equinox.p2.director.feature.feature.group 5.1.0.201809032319) requires 'org.idempiere.equinox.p2.director.feature_root.cocoa.macosx.x86_64 [5.1.0.201809032319]' but it could not be found
Application failed, log file location: /Users/username/sviluppoerp/idempiere51/idempieremvn/org.idempiere.p2/target/eclipserun-work/configuration/1536016891642.log
!SESSION 2018-09-04 01:21:31.497 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.8.0_171
java.vendor=Oracle Corporation
BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=it_IT
Framework arguments:  -application org.eclipse.equinox.p2.director -repository file:/Users/username/sviluppoerp/idempiere51/idempieremvn/org.idempiere.p2/target/repository -destination /Users/username/sviluppoerp/idempiere51/idempieremvn/org.idempiere.p2/target/products/org.adempiere.server.product/macosx/cocoa/x86_64 -installIU org.eclipse.equinox.p2.director, org.idempiere.equinox.p2.director.feature.feature.group, org.idempiere.fitnesse.feature.feature.group -profileProperties org.eclipse.update.install.features=true -p2.os macosx -p2.ws cocoa -p2.arch x86_64 -roaming
Command-line arguments:  -application org.eclipse.equinox.p2.director -repository file:/Users/username/sviluppoerp/idempiere51/idempieremvn/org.idempiere.p2/target/repository -destination /Users/username/sviluppoerp/idempiere51/idempieremvn/org.idempiere.p2/target/products/org.adempiere.server.product/macosx/cocoa/x86_64 -installIU org.eclipse.equinox.p2.director, org.idempiere.equinox.p2.director.feature.feature.group, org.idempiere.fitnesse.feature.feature.group -profileProperties org.eclipse.update.install.features=true -p2.os macosx -p2.ws cocoa -p2.arch x86_64 -consoleLog -roaming

!ENTRY org.eclipse.equinox.p2.director 4 10053 2018-09-04 01:21:33.242
!MESSAGE Cannot complete the install because one or more required items could not be found.
!SUBENTRY 1 org.eclipse.equinox.p2.director 4 0 2018-09-04 01:21:33.242
!MESSAGE Software being installed: Idempiere P2 Director 5.1.0.201809032319 (org.idempiere.equinox.p2.director.feature.feature.group 5.1.0.201809032319)
!SUBENTRY 1 org.eclipse.equinox.p2.director 4 0 2018-09-04 01:21:33.242
!MESSAGE Missing requirement for filter properties ~= $0: Idempiere P2 Director 5.1.0.201809032319 (org.idempiere.equinox.p2.director.feature.feature.group 5.1.0.201809032319) requires 'org.idempiere.equinox.p2.director.feature_root.cocoa.macosx.x86_64 [5.1.0.201809032319]' but it could not be found

[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
.... continue with the summary

Hiep Lq

unread,
Sep 4, 2018, 3:17:00 AM9/4/18
to Mohemmed Bilal Ilyas
MACOS isn't yet test. maven build test only on linux

you can start with <environments> on org.idempiere.parent/pom.xml


For more options, visit https://groups.google.com/d/optout.

Fabio Canella

unread,
Sep 4, 2018, 6:25:26 AM9/4/18
to iDempiere
I made a fresh linux installation ubuntu 16.04 I run successfully "mvn verify". it's very simple, great !.

Then I tried to run idempiere server inside eclipse (I have to develop a plugin)
So I executed "maven install" inside eclipse but I got this error:

INFO] Scanning for projects...
[INFO] Downloading: http://repo.opennms.org/maven2/org/idempiere/org.idempiere.p2.targetplatform/5.1.0-SNAPSHOT/maven-metadata.xml
[INFO] Downloading: https://maven.repository.redhat.com/ga/org/idempiere/org.idempiere.p2.targetplatform/5.1.0-SNAPSHOT/maven-metadata.xml
[INFO] Downloading: https://jaspersoft.jfrog.io/jaspersoft/jr-ce-releases/org/idempiere/org.idempiere.p2.targetplatform/5.1.0-SNAPSHOT/maven-metadata.xml
[INFO] Downloading: http://central.maven.org/maven2/org/idempiere/org.idempiere.p2.targetplatform/5.1.0-SNAPSHOT/maven-metadata.xml
[INFO] Downloading: https://jaspersoft.jfrog.io/jaspersoft/third-party-ce-artifacts/org/idempiere/org.idempiere.p2.targetplatform/5.1.0-SNAPSHOT/maven-metadata.xml
[INFO] Downloading: http://bits.netbeans.org/maven2/org/idempiere/org.idempiere.p2.targetplatform/5.1.0-SNAPSHOT/maven-metadata.xml
[INFO] Downloading: http://clojars.org/repo/org/idempiere/org.idempiere.p2.targetplatform/5.1.0-SNAPSHOT/maven-metadata.xml
[INFO] Downloading: https://maven.atlassian.com/3rdparty/org/idempiere/org.idempiere.p2.targetplatform/5.1.0-SNAPSHOT/maven-metadata.xml
[INFO] Downloading: http://mavensync.zkoss.org/maven2/org/idempiere/org.idempiere.p2.targetplatform/5.1.0-SNAPSHOT/maven-metadata.xml
[INFO] Downloading: http://repo.jenkins-ci.org/releases/org/idempiere/org.idempiere.p2.targetplatform/5.1.0-SNAPSHOT/maven-metadata.xml
[INFO] Downloading: http://central.maven.org/maven2/org/idempiere/org.idempiere.p2.targetplatform/5.1.0-SNAPSHOT/org.idempiere.p2.targetplatform-5.1.0-SNAPSHOT.target
[INFO] Downloading: https://maven.repository.redhat.com/ga/org/idempiere/org.idempiere.p2.targetplatform/5.1.0-SNAPSHOT/org.idempiere.p2.targetplatform-5.1.0-SNAPSHOT.target
[INFO] Downloading: http://repo.opennms.org/maven2/org/idempiere/org.idempiere.p2.targetplatform/5.1.0-SNAPSHOT/org.idempiere.p2.targetplatform-5.1.0-SNAPSHOT.target
[INFO] Downloading: https://jaspersoft.jfrog.io/jaspersoft/jr-ce-releases/org/idempiere/org.idempiere.p2.targetplatform/5.1.0-SNAPSHOT/org.idempiere.p2.targetplatform-5.1.0-SNAPSHOT.target
[INFO] Downloading: https://jaspersoft.jfrog.io/jaspersoft/third-party-ce-artifacts/org/idempiere/org.idempiere.p2.targetplatform/5.1.0-SNAPSHOT/org.idempiere.p2.targetplatform-5.1.0-SNAPSHOT.target
[INFO] Downloading: http://bits.netbeans.org/maven2/org/idempiere/org.idempiere.p2.targetplatform/5.1.0-SNAPSHOT/org.idempiere.p2.targetplatform-5.1.0-SNAPSHOT.target
[INFO] Downloading: http://clojars.org/repo/org/idempiere/org.idempiere.p2.targetplatform/5.1.0-SNAPSHOT/org.idempiere.p2.targetplatform-5.1.0-SNAPSHOT.target
[INFO] Downloading: https://maven.atlassian.com/3rdparty/org/idempiere/org.idempiere.p2.targetplatform/5.1.0-SNAPSHOT/org.idempiere.p2.targetplatform-5.1.0-SNAPSHOT.target
[INFO] Downloading: http://mavensync.zkoss.org/maven2/org/idempiere/org.idempiere.p2.targetplatform/5.1.0-SNAPSHOT/org.idempiere.p2.targetplatform-5.1.0-SNAPSHOT.target
[INFO] Downloading: http://repo.jenkins-ci.org/releases/org/idempiere/org.idempiere.p2.targetplatform/5.1.0-SNAPSHOT/org.idempiere.p2.targetplatform-5.1.0-SNAPSHOT.target
[ERROR] Internal error: java.lang.RuntimeException: Could not resolve target platform specification artifact org.idempiere:org.idempiere.p2.targetplatform:target:5.1.0-SNAPSHOT -> [Help 1]
org.apache.maven.InternalErrorException: Internal error: java.lang.RuntimeException: Could not resolve target platform specification artifact org.idempiere:org.idempiere.p2.targetplatform:target:5.1.0-SNAPSHOT
    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:121)
    at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)
    at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
    at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Caused by: java.lang.RuntimeException: Could not resolve target platform specification artifact org.idempiere:org.idempiere.p2.targetplatform:target:5.1.0-SNAPSHOT
    at org.eclipse.tycho.core.resolver.DefaultTargetPlatformConfigurationReader.addTargetArtifact(DefaultTargetPlatformConfigurationReader.java:389)
    at org.eclipse.tycho.core.resolver.DefaultTargetPlatformConfigurationReader.setTarget(DefaultTargetPlatformConfigurationReader.java:342)
    at org.eclipse.tycho.core.resolver.DefaultTargetPlatformConfigurationReader.getTargetPlatformConfiguration(DefaultTargetPlatformConfigurationReader.java:75)
    at org.eclipse.tycho.core.resolver.DefaultTychoResolver.setupProject(DefaultTychoResolver.java:87)
    at org.eclipse.tycho.core.maven.TychoMavenLifecycleParticipant.afterProjectsRead(TychoMavenLifecycleParticipant.java:90)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:266)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
    ... 11 more

[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:

Hiep Lq

unread,
Sep 4, 2018, 9:22:47 AM9/4/18
to Mohemmed Bilal Ilyas
run server on eclipse by normal way

with a little bit change here

if you success, it's helpful for other guys by update wiki.


For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages