Community Tip - Learn all about PTC Community Badges. Engage with PTC and see how many you can earn! X
You can use either Gradle or Ant to build your ThingWorx Extension Project. Ant is the preferred method.
NOTE: This opens up a new window.
Set Project from the drop-down menu to your project name and type Tasks as build.
NOTE: This will build the project and any error will be indicated in the console window.
NOTE: This will build your project and create the extension zip in the your_project->build->distributions folder of your project.
If you have valuable data on your ThingWorx server, save the current state before importing an untested extension by duplicating and renaming the ThingworxStorage directory. This will save all current entities and a new, empty ThingworxStorage directory will be generated when Tomcat is restarted. To restore your saved state, rename the duplicate directory back to ThingworxStorage. Alternatively, If you do not back up your storage, make sure that any entities you want to save are exported into xml format. This way you will be able to restore your ThingWorx server to its initial state by deleting the storage directory before importing the saved entities.
NOTE: You can now see the current temperature reading and weather description of your city in the Mashup.
If your import did not get through with the two green checks, you may want to modify your metadata.xml or java code to fix it depending on the error shown in the logs.
Issue | Solution |
JAR Conflict arises between two similar jars | JAR conflicts arise when a similar jar is already present in the Composer database. Try to remove the respective jar resources from the metadata.xml. Add these jars explicitly in twx-lib folder in the project folder inside the workspace directory. Now, build the project and import the extension in ThingWorx Composer once again. |
JAR is missing | Add the respective jar resource in metadata.xml using the ThingWorx->New Jar Resource. Now, build the project and import the extension in ThingWorx Composer once again. |
Minimum Thingworx Version [ 7.2.1] requirements are not met because current version is: 7.1.3 | The version of SDK you have used to build your extension is higher than the version of the ThingWorx Composer you are testing against. You can manually edit the configfiles->metadata.xml file to change the Minimum ThingWorx version to your ThingWorx Composer version. |
Congratulations! You've successfully completed the Create an Extension tutorial, and learned how to:
We recommend the following resources to continue your learning experience:"
Capability | Guide |
Build | Application Development Tips & Tricks |
If you have questions, issues, or need additional information, refer to:
Resource | Link |
Community | Developer Community Forum |
Support | Extension Development Guide |
I am not able to build this project at the build step of this tutorial.
Im having gradle installed on system and also installed gradle buildship in my eclipse but still not getting option to build with gradle as shown in above images for this tutorial.
I need help on this issue to finish and conclude this tutorial.