maven for idempiere is launching

1,270 views
Skip to first unread message

Hiep Lq

unread,
Feb 28, 2018, 12:49:26 AM2/28/18
to iDempiere
Hi Community.

I just finish implement maven tycho build for idempiere

tracker ticket: IDEMPIERE-3531

big thanks to Chuck Boecking and Fábio Hauagge for sponsor this job

welcome everyone try it, contribute idea and improve

Hiep Lq

unread,
Feb 28, 2018, 12:50:41 AM2/28/18
to iDempiere

source at https://bitbucket.org/idempiere/idempiere-experimental/
branch experimental

your test and improve idea will help it can be integrate to core soon

Heng Sin Low

unread,
Feb 28, 2018, 2:41:09 AM2/28/18
to idem...@googlegroups.com
Hi Hiep,

It should help to include the version of maven and eclipse use in the wiki.

Btw, is there a template/example for building custom extension/plugin ?

Regards,
Low


--
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/80c52abe-30d4-416e-a458-635a80c78918%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Carlos Antonio Ruiz Gomez

unread,
Feb 28, 2018, 6:18:28 AM2/28/18
to idem...@googlegroups.com
Hi Hiep, what is required to compile it in jenkins?
The task here is failing: http://ci.idempiere.org/job/iDempiere-experimental/

Regards,

Carlos Ruiz

Hiep Lq

unread,
Feb 28, 2018, 6:25:56 AM2/28/18
to Mohemmed Bilal Ilyas
@HengSin

I will provide a sample for build extension soon.

@Carlos
i make a new one for tycho iDempiere-experimental-tycho

will correct normal build (buckminster) later



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

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

Hiep Lq

unread,
Mar 13, 2018, 1:51:49 AM3/13/18
to iDempiere
@Hengsin
I make guideline and example for build extra plugin here 

@Carlos
already make jenkin for iDempiere-experimental build success

jenkin for iDempiere-experimental-tycho still fail, need to setup server a bit. i try on local success.

shiju01

unread,
Mar 13, 2018, 2:41:04 AM3/13/18
to iDempiere

In the wiki can you put few lines about the advantages  ?

Hiep Lq

unread,
Mar 13, 2018, 9:58:15 PM3/13/18
to Mohemmed Bilal Ilyas
@shiju01 update already. you welcome to add more if you see something

@Carlos I setup a centos (google cloud) and setup jenkins, it build success with maven tycho without issue of certificate like idempiere jenkins.


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

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

Carlos Antonio Ruiz Gomez

unread,
Mar 14, 2018, 9:15:58 PM3/14/18
to idem...@googlegroups.com
Hi Hiep,

I think maybe the sourceforge URL was wrong.

I changed the URLs in these files (pre-build step in jenkins):
org.adempiere.sdk-feature/materialize.properties
org.idempiere.p2.targetplatform/org.idempiere.p2.targetplatform.target
org.idempiere.parent/pom.xml

and now it's compiling.

Regards,

Carlos Ruiz



El 13.03.2018 a las 22:58, 'Hiep Lq' via iDempiere escribió:
@shiju01 update already. you welcome to add more if you see something

@Carlos I setup a centos (google cloud) and setup jenkins, it build success with maven tycho without issue of certificate like idempiere jenkins.

Hiep Lq

unread,
Mar 14, 2018, 9:28:23 PM3/14/18
to Mohemmed Bilal Ilyas

so, it's mirror issue of sourcefore. i can build success without change anything.


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

Hiep Lq

unread,
Mar 18, 2018, 7:14:32 PM3/18/18
to Mohemmed Bilal Ilyas
already update wiki also create a example jenkins at http://ci.idempiere.org/job/pipeline_iDempiere-experimental-build-extra/
Message has been deleted

Carlos Antonio Ruiz Gomez

unread,
Mar 19, 2018, 6:04:09 PM3/19/18
to idem...@googlegroups.com
Thanks Hiep,

I did today the following tasks:
- integrate idempiere-experimental into default
- configure jenkins iDempiere-mvn for continuous integration maven style
- configure test.idempiere.org to be updated (or restored) using the new iDempiere-mvn - it worked fine

So, community, now is time for tests on
https://test.idempiere.org/webui/

This is already running the new mavenized version, please check and report any issues that could be created by this movement.



@Hiep,

How must we configure now eclipse to work with maven instead of buckminster?  Any guide?



Regards,

Carlos Ruiz

Hiep Lq

unread,
Mar 19, 2018, 8:32:58 PM3/19/18
to Mohemmed Bilal Ilyas
thanks mr Carlos.


step 2.2 "Active a target file" first time will take time. but will faster for next time by cache.
 

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

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

Carlos Antonio Ruiz Gomez

unread,
Mar 21, 2018, 7:28:21 AM3/21/18
to idem...@googlegroups.com
Thanks Hiep

#1 from the guide worked perfect

#2 didn't work - when I imported the projects - after 2.1.5 - it asked me like three more windows about installing stuff and the workspace was left in an unusable state
activating target file after that didn't work
Maybe is there an instruction after 2.1.5?  Must I cancel the suggested windows from eclipse and go to 2.2 instead?

Regards,

Carlos Ruiz

Hiep Lq

unread,
Mar 21, 2018, 8:15:18 AM3/21/18
to Mohemmed Bilal Ilyas
Hi Carlos, i just add new step to install eclipse.

please help check it on



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

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

Carlos Antonio Ruiz Gomez

unread,
Mar 21, 2018, 6:24:25 PM3/21/18
to idem...@googlegroups.com
Thanks Hiep, still unsuccessful.

I installed the two prerequisites in eclipse, and started fresh again.

After opened the target and clicked on Set as active target platform - it took a while.

After that eclipse is showing me changes on 14 .classpath files and almost 3.000 errors.

Then, I reverted the changes on the 14 .classpath files - and eclipse recompiled and it's now showing 191 errors.

- missing libraries in org.adempiere.payment.processor
- missing lib/jpedal.jar in org.adempiere.ui.swing
- missing library and packing in org.idempiere.webservices
- missing packages in org.idempiere.fitnesse.server

and errors in other projects that are dependent on the previous.

Regards,

Carlos Ruiz

Hiep Lq

unread,
Mar 21, 2018, 11:02:08 PM3/21/18
to Mohemmed Bilal Ilyas

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

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

Orlando Curieles

unread,
Mar 21, 2018, 11:27:40 PM3/21/18
to iDempiere
Hi Hiep, this work very fine for my and so fast..

Thanks a lot

Regards..

Carlos Antonio Ruiz Gómez

unread,
Mar 22, 2018, 2:17:12 PM3/22/18
to iDempiere
Thanks Hiep,

Still unable to complete the task, notes:

> install m2e connector
> go to window/preferences
> menu Maven/Discovery
> click to open catalog

> on find field type "tycho"
> choose tycho configurator and install it

** in my case nothing appears when I look tycho

> do same for "m2e connector for the maven dependency plugin"

it doesn't appear that specific name - the most similar is this -> m2e connector for maven-remote-resources-plugin

is that one?


Now, I need to postpone the test as I'm behind a proxy and eclipse is having problems with that:
Error(s) occurred gathering items for installation
sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
Error installing m2e connector for maven-remote-resources-plugin contacting repository http://coderplus.com/m2e-update-sites/maven-remote-resources-plugin/

Regards,

Carlos Ruiz



El jueves, 22 de marzo de 2018, 0:02:08 (UTC-3), Hiep Lq escribió:

Hiep Lq

unread,
Mar 22, 2018, 8:31:29 PM3/22/18
to Mohemmed Bilal Ilyas
** in my case nothing appears when I look tycho

if you don't see, maybe it's installed. first time when you import maven tycho project, eclipse will ask for install it.

you can check like attach image "plugin-confirm.png"

it doesn't appear that specific name - the most similar is this -> m2e connector for maven-remote-resources-plugin

isn't it.

about your compile error. maybe you not yet run step 1-2 "fire command mvn verify". please confirm


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

For more options, visit https://groups.google.com/d/optout.
plugin-confirm.png

Carlos Antonio Ruiz Gomez

unread,
Mar 22, 2018, 9:34:23 PM3/22/18
to idem...@googlegroups.com
Thanks Hiep for your patience  :)

My mistake, I thought like in buckminster 1 was for headless and 2 for eclipse.


Now I ran 1 and then 2 with your guidelines and it worked fine.


Regards,

Carlos Ruiz

Hiep Lq

unread,
Mar 22, 2018, 9:52:53 PM3/22/18
to Mohemmed Bilal Ilyas

it's good point to complete wiki.

actually we can use maven to wrap all normal jar library to osgi and don't need run mvn verify anymore to setup eclipse environment.


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

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

Heng Sin Low

unread,
Mar 22, 2018, 10:01:59 PM3/22/18
to idem...@googlegroups.com
Hi Hiep,

If that's the case, why wasn't it implemented that way now ? Time and resource constraint or there are other trade off ?

Regards,
Low

Hiep Lq

unread,
Mar 22, 2018, 11:11:25 PM3/22/18
to Mohemmed Bilal Ilyas
Hi Hengsin.

The first step to move to maven, i want to keep it (binary output) same before and ever keep buckminster.

so help other guys time to familiar with maven

time and resource also need, when wrap to osgi need test much case, almost relate classpath



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

Heng Sin Low

unread,
Mar 31, 2018, 9:15:49 PM3/31/18
to idem...@googlegroups.com
Hi Hiep,

On the "Set Target Platform" step - why the need to use remote URL when "mvn verify" have already downloaded all the dependencies ?

Regards,
Low

Hiep Lq

unread,
Apr 1, 2018, 1:31:28 AM4/1/18
to Mohemmed Bilal Ilyas
Hi Heng Sin
maven and eclipse is separate environment ever it use same target file.

eclipse will cache bundle at idempiere/.metadata/.plugins/org.eclipse.pde.core/.bundle_pool

maven tycho cache bundle at .m2/repository/p2/osgi/bundle




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

Heng Sin Low

unread,
Apr 1, 2018, 8:02:12 AM4/1/18
to idem...@googlegroups.com
Hi Hiep,

What I means is in the target platform definition file, instead of loading the dependent bundles from remote p2 repository, it should be possible to load it from the local p2 repository generated from "mvn verify".

Regards,
Low




Hiep Lq

unread,
Apr 1, 2018, 10:39:08 AM4/1/18
to Mohemmed Bilal Ilyas

can do like that, i use this method to build extra plugin.

but have some advance for remote repository

   + it help we easy to add more dependency to idempiere
   + for repository generate by org.idempiere.p2 you have to exclude idempiere bundle before use.


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

Heng Sin Low

unread,
Apr 2, 2018, 5:14:47 AM4/2/18
to idem...@googlegroups.com
I've to use the generated repository instead. The instability of the sourceforge hosted p2 repository is making this quite a pain to use the target definition with remote url.

mounicap...@gmail.com

unread,
Apr 21, 2018, 8:35:32 AM4/21/18
to iDempiere
Hi -

Am new to iDempiere.

I was going through the wikipedia on Building iDemp using tycho maven.

The eclipse workspace has been setup (step 2.2.6)

Whats next? Can I run configurations at this point. [Install and then server.product]?

Or do we need to run the subsequent steps

Orlando Curieles

unread,
Apr 27, 2018, 11:11:09 AM4/27/18
to iDempiere
HI Hiep, I'm testing maven on Ubuntu 18.04, when run maven verify show this:

[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[ERROR] Unresolveable build extension: Plugin org.eclipse.tycho:tycho-maven-plugin:1.1.0 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.eclipse.tycho:tycho-maven-plugin:jar:1.1.0 @
 @
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]  
[ERROR]   The project org.idempiere:org.idempiere.main:5.1.0-SNAPSHOT (/home/ocurieles/sources/idempiere/pom.xml) has 1 error
[ERROR]     Unresolveable build extension: Plugin org.eclipse.tycho:tycho-maven-plugin:1.1.0 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.eclipse.tycho:tycho-maven-plugin:jar:1.1.0: Could not transfer artifact org.eclipse.tycho:tycho-maven-plugin:pom:1.1.0 from/to central (https://repo.maven.apache.org/maven2): java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty -> [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/PluginManagerException
ocurieles@ocurieles:~/sources/idempiere$

Regards

dadan su

unread,
Apr 28, 2018, 2:18:07 PM4/28/18
to iDempiere

Hi,
How about ui.swing ? Can create the ui.swing product with old way which use buckminster ?

Thanks .

Dadan

dadan su

unread,
Apr 28, 2018, 3:30:10 PM4/28/18
to iDempiere
Finally, i can create the swing product and running successful. But i don't know my step is right or not.
My steps are :
1. copy file swingclient.product from org.adempiere.ui.swing-feature to org.idempiere.p2
2. edit swingclient.product , add content org.idempiere.eclipse.platform.feature and in configuration tab, add org.eclipse.core.runtime with autostart=true.
3. edit pom.xml in org.idempiere.p2 :
    <products>
                        <product>
                            <!-- The uid in the .product file, NOT the name of the .product file -->
                            <id>org.adempiere.server.product</id>
                            <archiveFileName>idempiere-server-${unqualifiedVersion}-${buildQualifier}</archiveFileName>
                        </product>
                        <product>
                            <!-- The uid in the .product file, NOT the name of the .product file -->
                            <id>org.adempiere.ui.swing.product</id>
                            <archiveFileName>idempiere-client-${unqualifiedVersion}-${buildQualifier}</archiveFileName>
                        </product>
                    </products>
4. edit pom.xml in org.idempiere.parent :
    <idempiere.product.id>org.adempiere.server.product</idempiere.product.id>
        <idempiere.product.id>org.adempiere.ui.swing.product</idempiere.product.id>

5. run mvn verify.

Dadan.
Reply all
Reply to author
Forward
0 new messages