Dukascopy
 
 
Wiki JStore Search Login

Attention! Read the forum rules carefully before posting a topic.

    Try to find an answer in Wiki before asking a question.
    Submit programming questions in this forum only.
    Off topics are strictly forbidden.

Any topics which do not satisfy these rules will be deleted.

When do we need to update the maven project in Eclipse?
 Post subject: When do we need to update the maven project in Eclipse? Post rating: 0   New post Posted: Wed 03 Jul, 2013, 20:51 
User avatar

User rating: 164
Joined: Mon 08 Oct, 2012, 10:35
Posts: 676
Location: NetherlandsNetherlands
Dear Support,

I am currently running the JForex SDK in Eclipse, as described in the wiki. I was wondering, how can I get an update on my project (especially on JForex-API)?
The version that is shipped with the maven-project is version 2.7.8.
After an updated on the maven project within Eclipse (right-click on the Eclipse project ->Maven->Update Project...), API version remains the same. I don't know if any other package were updated maybe...
The public repo (https://www.dukascopy.com/client/jforexl ... Forex-API/) contains API version 2.7.9, and the current DEMO platform (2.25.5) contains API version 2.7.10. And I know that there is an API version 2.7.11 out there somewhere (maybe not yet released?).

What is the official update plan of the Eclipse maven project? Just wait till the maven repository update site contains the updated API version (hopefully the latest), and do a Maven update? If this is the case, would that be possible to update the repository whenever a new API version is available? As currently the maven project is 2 versions behind the DEMO platform.


Thanks!


 
 Post subject: Re: When do we need to update the maven project in Eclipse? Post rating: 0   New post Posted: Thu 04 Jul, 2013, 10:53 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
tcsabina wrote:
After an updated on the maven project within Eclipse (right-click on the Eclipse project ->Maven->Update Project...), API version remains the same. I don't know if any other package were updated maybe...
You should manually change both the JForex-SDK and JForex-API versions to the latest ones in the repository and then update, see JForex-SDK versions here:
https://publicrepo.site.dukascopy.com/jforexlib/publicrepo/com/dukascopy/dds2/JForex-SDK/2.24/
tcsabina wrote:
The public repo (https://www.dukascopy.com/client/jforexl ... Forex-API/) contains API version 2.7.9, and the current DEMO platform (2.25.5) contains API version 2.7.10. And I know that there is an API version 2.7.11 out there somewhere (maybe not yet released?).
2.7.11 is yet to be released.
tcsabina wrote:
What is the official update plan of the Eclipse maven project? Just wait till the maven repository update site contains the updated API version (hopefully the latest), and do a Maven update? If this is the case, would that be possible to update the repository whenever a new API version is available?
See our first reply.


 
 Post subject: Re: When do we need to update the maven project in Eclipse? Post rating: 0   New post Posted: Thu 04 Jul, 2013, 12:30 
User avatar

User rating: 164
Joined: Mon 08 Oct, 2012, 10:35
Posts: 676
Location: NetherlandsNetherlands
Thanks for the fast reply, but could you describe this a bit more detailed? Sorry, but I haven't used Maven before (if this is maven related at all...).
Quote:
You should manually change both the JForex-SDK and JForex-API versions to the latest ones in the repository and then update

How do I do that? Just modify the pom.xml file and replace

<artifactId>JForex-SDK</artifactId>
<version>2.23</version> with <version>2.24</version>

and
<artifactId>DDS2-jClient-JForex</artifactId>
<version>2.23</version> with <version>2.24</version>

and
<artifactId>JForex-API</artifactId>
<version>2.7.8</version> with <version>2.7.9</version>


Also, the posted link (https://publicrepo.site.dukascopy.com/jf ... -SDK/2.24/) is not working for me. It is redirecting to the main site, so I guess it is only available for internal users.
This is the working link for me:
https://www.dukascopy.com/client/jforexl ... -SDK/2.24/

This link (the wrong one) can also be found within the pom.xml file of the SDK. Could you please fix it? (Either make publicrepo a valid subdomain for us, users, or replace the string in the pom.xml file.)

Could you also update from time to time the pom.xml file in the SDK package (https://www.dukascopy.com/client/jforexl ... ex-SDK.zip) to contain the latest package versions?

And at last but not least: is Maven not capable of automating this update procedure? Setup/configure/create a kind of update site at a dukascopy server, which site will be checked upon update if there is a newer pom.xml file available with the latest package versions.
I don't know if this can be done within the scope of a Maven project, but the way to manually edit the pom.xml file is not very professional.


 
The Best Answer  Post subject: Re: When do we need to update the maven project in Eclipse? Post rating: 0   New post Posted: Mon 08 Jul, 2013, 08:41 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
tcsabina wrote:
How do I do that? Just modify the pom.xml file and replace

<artifactId>JForex-SDK</artifactId>
<version>2.23</version> with <version>2.24</version>

and
<artifactId>DDS2-jClient-JForex</artifactId>
<version>2.23</version> with <version>2.24</version>

and
<artifactId>JForex-API</artifactId>
<version>2.7.8</version> with <version>2.7.9</version>
Yes.
tcsabina wrote:
Also, the posted link (https://publicrepo.site.dukascopy.com/jf ... -SDK/2.24/) is not working for me. It is redirecting to the main site, so I guess it is only available for internal users.
This is the working link for me:
https://www.dukascopy.com/client/jforexl ... -SDK/2.24/
Yes, we accidentally gave the wrong link.
tcsabina wrote:
Could you also update from time to time the pom.xml file in the SDK package (https://www.dukascopy.com/client/jforexl ... ex-SDK.zip) to contain the latest package versions?
The upcoming release (mid-end this week) is going to fix this.
tcsabina wrote:
And at last but not least: is Maven not capable of automating this update procedure? Setup/configure/create a kind of update site at a dukascopy server, which site will be checked upon update if there is a newer pom.xml file available with the latest package versions.
I don't know if this can be done within the scope of a Maven project, but the way to manually edit the pom.xml file is not very professional.
This is a limitation from Maven side - there was a possibility to use version range in Maven 2, but it has been removed with Maven 3. Thus for version updates you need to follow viewtopic.php?f=113&t=48849


 
 Post subject: Re: When do we need to update the maven project in Eclipse? Post rating: 0   New post Posted: Mon 08 Jul, 2013, 12:04 
User avatar

User rating: 164
Joined: Mon 08 Oct, 2012, 10:35
Posts: 676
Location: NetherlandsNetherlands
Well, your reply pretty much covered everything I asked.
Thanks!


 

Jump to:  

  © 1998-2026 Dukascopy® Bank SA
On-line Currency forex trading with Swiss Forex Broker - ECN Forex Brokerage,
Managed Forex Accounts, introducing forex brokers, Currency Forex Data Feed and News
Currency Forex Trading Platform provided on-line by Dukascopy.com