TestProject Forum

TestProject Platform => TestProject SDK => Topic started by: jaydeep.paradise on August 02, 2018, 11:05:25 am

Title: Is it fine if I will create project in Maven?
Post by: jaydeep.paradise on August 02, 2018, 11:05:25 am
If yes, then please let me know the dependence for your jar file.
Title: Re: Is it fine if I will create project in Maven?
Post by: Marat Strelets on August 02, 2018, 14:07:58 pm
Our SDK is not yet published in Maven.
You can use maven and reference the local JAR file however like this:
Code
<dependency>
    <groupId>io.testproject</groupId>
    <artifactId>java-sdk</artifactId>
    <version>1.0</version>
    <systemPath>__PATH_TO_LOCAL_JAR__</systemPath>
    <scope>system</scope>
</dependency>
Title: Re: Is it fine if I will create project in Maven?
Post by: jaydeep.paradise on August 02, 2018, 17:19:18 pm
ok fine. so if I will use this dependancy then will it be upload in testproject?
Title: Re: Is it fine if I will create project in Maven?
Post by: Marat Strelets on August 02, 2018, 17:45:42 pm
No, please read documentation.
Please read again the packaging section: https://github.com/testproject-io/java-sdk-examples/tree/master/Web#packaging
You should not include the SDK in the final JAR you will upload to TestProject
Title: Re: Is it fine if I will create project in Maven?
Post by: jaydeep.paradise on August 02, 2018, 18:42:13 pm
ok understand. that means I need to remove SDK dependency when I will convert it into jar.

but one query is that if I will remove SDK dependency then code will show error. so will it work fine in testproject?
Title: Re: Is it fine if I will create project in Maven?
Post by: Marat Strelets on August 02, 2018, 19:24:09 pm
When your TestProject Agent will execute the code you uploaded it will load into memory the SDK.