Is it fine if I will create project in Maven?

  • 5 Replies
  • 764 Views
Is it fine if I will create project in Maven?
« on: August 02, 2018, 11:05:25 am »
If yes, then please let me know the dependence for your jar file.

Re: Is it fine if I will create project in Maven?
« Reply #1 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>

Re: Is it fine if I will create project in Maven?
« Reply #2 on: August 02, 2018, 17:19:18 pm »
ok fine. so if I will use this dependancy then will it be upload in testproject?

Re: Is it fine if I will create project in Maven?
« Reply #3 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

Re: Is it fine if I will create project in Maven?
« Reply #4 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?

Re: Is it fine if I will create project in Maven?
« Reply #5 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.

 

Sitemap 1 2 3 4 5 6 7 8