0

mvn clean package -pl server -am -DskipTests我按照官方网站WayToGetIoTDB上的 maven 命令进行操作,但缺少 xxx-with-dependencies.jar。

如何构建一个可执行的 IoTDB 服务器 JAR 及其依赖项?</p>

4

1 回答 1

0

请添加-P get-jar-with-dependenciesmvn 命令。

此外,请确保 .pom 文件中有如下配置文件。

<profile> 
     <id>get-jar-with-dependencies</id> 
     <build> 
         <plugins> 
             <plugin> 
                 <artifactId>maven-assembly-plugin</artifactId> 
                 <version>${maven.assembly.version}</version> 
                 <configuration> 
                     <descriptorRefs> 
                         <descriptorRef>jar-with-dependencies</descriptorRef> 
                     </descriptorRefs> 
                 </configuration> 
                 <executions> 
                     <execution> 
                         <id>make-assembly</id> 
                         <!-- this is used for inheritance merges --> 
                         <phase>package</phase> 
                         <!-- bind to the packaging phase --> 
                         <goals> 
                             <goal>single</goal> 
                         </goals> 
                     </execution> 
                 </executions> 
             </plugin> 
         </plugins> 
     </build> 
 </profile> 
于 2021-10-14T03:23:47.607 回答