-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_BUILD_INSTRUCTIONS.txt
71 lines (48 loc) · 2.32 KB
/
_BUILD_INSTRUCTIONS.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
1. Edit pom.xml
1.1. Update Metashape version at line 8
2. Edit README.MD
2.1. Update Metashape version at line 22 (Maven sample)
2.2. Update Metashape version at line 27 for the 3 occurences
3. Update natives libs from original metashape java wrapper to src/main/resources/natives
4. Ensure that all the native libraries are listed for all systems within src/main/java/org/metashape/MetashapeNatives.java
5. Replace src/main/java/com folder by the one extracted from Metashape source jar
6. Generate jar using
- mvn clean
- mvn package
- mvn install
7. Sign the installed jars and pom:
- Using https://emn178.github.io/online-tools/sha1_checksum.html for SHA1
- Using https://emn178.github.io/online-tools/md5_checksum.html for MD5
8. Upload to repository
9. Commit and push:
git.exe push --progress "origin" master:master
10. Publish a new release:
Tag: vX.Y.Z
Title: Agisoft Metashape Wrapper Java X.Y.Z
Text:
The Agisoft Metashape(c) X.Y.Z Java wrapper.
Agisoft Metashape(c) wrapper jar can be integrated to Maven projects or can be used as standalone jar.
## Integration
### Maven
To import the library just add the following dependency to your maven project:
```xml
<!-- JOrigin repository -->
<repository>
<id>jorigin</id>
<name>jorigin-maven</name>
<url>https://maven.jorigin.org</url>
</repository>
<!-- The Agisoft Metashape Java Wrapper -->
<dependency>
<groupId>com.agisoft</groupId>
<artifactId>metashape</artifactId>
<version>X.Y.Z</version>
</dependency>
```
### Standalone
The library can be used as a standalone by downloading the [metashape-X.Y.Z.jar](https://github.com/jseinturier/metashape-java-maven/releases/download/vX.Y.Z/metashape-X.Y.Z.jar) jar and integrating it to the classpath.
## Usage
Integrate the jar to your project and make a call to ``org.metashape.MetashapeNatives.isAvailable()`` to check if the Agisoft Metashape(c) native wrapping is enabled.
If you are experiencing a *No license for product (-1)* error, it is recommended to define an `agisoft_LICENSE` environment variable that points to the folder where Agisoft Metashape(c) license file (default `rlm_roam.lic` or other `.lic` file) is stored. By default this folder is:
- `C:\Program Files\Agisoft\Metashape Pro` on windows x64
- `C:\Program Files (x86)\Agisoft\Metashape Pro` on windows x32