Installation

Before started, maven should be installed. See How to install maven

There are two ways to use TsFile in your own project.

  • Using as jars:

    • Compile the source codes and build to jars

      1. git clone https://github.com/apache/incubator-iotdb.git
      2. cd tsfile/
      3. sh package.sh

      Then, all the jars can be get in folder named lib/. Import lib/tsfile-0.8.2-jar-with-dependencies.jar to your project.

  • Using as a maven dependency:

    Compile source codes and deploy to your local repository in three steps:

    • Get the source codes

      1. git clone https://github.com/apache/incubator-iotdb.git
    • Compile the source codes and deploy

      1. cd tsfile/
      2. mvn clean install -Dmaven.test.skip=true
    • add dependencies into your project:

      1. <dependency>
      2. <groupId>org.apache.iotdb</groupId>
      3. <artifactId>tsfile</artifactId>
      4. <version>0.8.2</version>
      5. </dependency>
  1. Or, you can download the dependencies from official Maven repository:
  2. - First, find your maven `settings.xml` on path: `${username}\.m2\settings.xml` , add this `<profile>` to `<profiles>`:
  3. ```
  4. <profile>
  5. <id>allow-snapshots</id>
  6. <activation><activeByDefault>true</activeByDefault></activation>
  7. <repositories>
  8. <repository>
  9. <id>apache.snapshots</id>
  10. <name>Apache Development Snapshot Repository</name>
  11. <url>https://repository.apache.org/content/repositories/snapshots/</url>
  12. <releases>
  13. <enabled>false</enabled>
  14. </releases>
  15. <snapshots>
  16. <enabled>true</enabled>
  17. </snapshots>
  18. </repository>
  19. </repositories>
  20. </profile>
  21. ```
  22. - Then add dependencies into your project:
  23. ```
  24. <dependency>
  25. <groupId>org.apache.iotdb</groupId>
  26. <artifactId>tsfile</artifactId>
  27. <version>0.8.2</version>
  28. </dependency>
  29. ```