|
65 | 65 | </includes> |
66 | 66 | </configuration> |
67 | 67 | </execution> |
| 68 | + <execution> |
| 69 | + <id>javacpp-${javacpp.platform}-redist</id> |
| 70 | + <phase>package</phase> |
| 71 | + <goals> |
| 72 | + <goal>jar</goal> |
| 73 | + </goals> |
| 74 | + <configuration> |
| 75 | + <classifier>${javacpp.platform}-redist</classifier> |
| 76 | + <classesDirectory>${project.build.directory}/native</classesDirectory> |
| 77 | + <includes> |
| 78 | + <include>org/bytedeco/tensorrt/${javacpp.platform}/</include> |
| 79 | + <include>META-INF/native-image/${javacpp.platform}/</include> |
| 80 | + </includes> |
| 81 | + <excludes> |
| 82 | + <exclude>org/bytedeco/tensorrt/${javacpp.platform}/*jni*</exclude> |
| 83 | + </excludes> |
| 84 | + </configuration> |
| 85 | + </execution> |
68 | 86 | </executions> |
69 | 87 | </plugin> |
70 | 88 | <plugin> |
71 | 89 | <groupId>org.moditect</groupId> |
72 | 90 | <artifactId>moditect-maven-plugin</artifactId> |
| 91 | + <executions> |
| 92 | + <execution> |
| 93 | + <id>add-module-info-redist</id> |
| 94 | + <phase>package</phase> |
| 95 | + <goals> |
| 96 | + <goal>add-module-info</goal> |
| 97 | + </goals> |
| 98 | + <configuration> |
| 99 | + <modules> |
| 100 | + <module> |
| 101 | + <file>${project.build.directory}/${project.artifactId}-${javacpp.platform}-redist.jar</file> |
| 102 | + <moduleInfoSource> |
| 103 | + open module org.bytedeco.${javacpp.packageName}.${javacpp.platform.module}.redist { |
| 104 | + requires transitive org.bytedeco.${javacpp.packageName}; |
| 105 | + } |
| 106 | + </moduleInfoSource> |
| 107 | + </module> |
| 108 | + </modules> |
| 109 | + </configuration> |
| 110 | + </execution> |
| 111 | + </executions> |
73 | 112 | </plugin> |
74 | 113 | <plugin> |
75 | 114 | <artifactId>maven-dependency-plugin</artifactId> |
|
86 | 125 | </plugins> |
87 | 126 | </build> |
88 | 127 |
|
89 | | - <profiles> |
90 | | - <profile> |
91 | | - <id>redist</id> |
92 | | - <activation> |
93 | | - <property> |
94 | | - <name>redist</name> |
95 | | - <value>true</value> |
96 | | - </property> |
97 | | - </activation> |
98 | | - <build> |
99 | | - <plugins> |
100 | | - <plugin> |
101 | | - <artifactId>maven-jar-plugin</artifactId> |
102 | | - <executions> |
103 | | - <execution> |
104 | | - <id>javacpp-${javacpp.platform}-redist</id> |
105 | | - <phase>package</phase> |
106 | | - <goals> |
107 | | - <goal>jar</goal> |
108 | | - </goals> |
109 | | - <configuration> |
110 | | - <classifier>${javacpp.platform}-redist</classifier> |
111 | | - <classesDirectory>${project.build.directory}/native</classesDirectory> |
112 | | - <includes> |
113 | | - <include>org/bytedeco/tensorrt/${javacpp.platform}/</include> |
114 | | - <include>META-INF/native-image/${javacpp.platform}/</include> |
115 | | - </includes> |
116 | | - <excludes> |
117 | | - <exclude>org/bytedeco/tensorrt/${javacpp.platform}/*jni*</exclude> |
118 | | - </excludes> |
119 | | - </configuration> |
120 | | - </execution> |
121 | | - </executions> |
122 | | - </plugin> |
123 | | - <plugin> |
124 | | - <groupId>org.moditect</groupId> |
125 | | - <artifactId>moditect-maven-plugin</artifactId> |
126 | | - <executions> |
127 | | - <execution> |
128 | | - <id>add-module-info-redist</id> |
129 | | - <phase>package</phase> |
130 | | - <goals> |
131 | | - <goal>add-module-info</goal> |
132 | | - </goals> |
133 | | - <configuration> |
134 | | - <modules> |
135 | | - <module> |
136 | | - <file>${project.build.directory}/${project.artifactId}-${javacpp.platform}-redist.jar</file> |
137 | | - <moduleInfoSource> |
138 | | - open module org.bytedeco.${javacpp.packageName}.${javacpp.platform.module}.redist { |
139 | | - requires transitive org.bytedeco.${javacpp.packageName}; |
140 | | - } |
141 | | - </moduleInfoSource> |
142 | | - </module> |
143 | | - </modules> |
144 | | - </configuration> |
145 | | - </execution> |
146 | | - </executions> |
147 | | - </plugin> |
148 | | - </plugins> |
149 | | - </build> |
150 | | - </profile> |
151 | | - </profiles> |
152 | | - |
153 | 128 | </project> |
0 commit comments