【easyexcel项目】基于maven的工程使用netbeans调试的时候每次都要unpacking,非常慢
2023-09-27 14:24:39 时间
先看日志,大概花费3分钟完成这些内容,记得之前不会这样解压包的
JPDA Listening Start... JPDA Address: DESKTOP-T5U6SOU:29976 Port:29976 cd E:\heyi\JAVA桌面程序\easyexcel; "JAVA_HOME=C:\\Program Files\\Java\\jdk1.8.0_191" cmd /c "\"\"C:\\Program Files\\NetBeans 8.2\\java\\maven\\bin\\mvn.bat\" -Drunfx.args=\"-Xdebug -Xrunjdwp:transport=dt_socket,server=n,address=29976 -Dglass.disableGrab=true -jar \\\"${project.build.directory}/${project.build.finalName}.jar\\\" \" -Djpda.listen=true -Djpda.address=29976 -Dmaven.ext.class.path=\"C:\\Program Files\\NetBeans 8.2\\java\\maven-nblib\\netbeans-eventspy.jar\" -Dfile.encoding=UTF-8 clean package org.codehaus.mojo:exec-maven-plugin:1.2.1:exec\"" Scanning for projects... ------------------------------------------------------------------------ Building easyexcel 1.0-SNAPSHOT ------------------------------------------------------------------------ --- maven-clean-plugin:2.4.1:clean (default-clean) @ easyexcel --- Deleting E:\heyi\JAVA桌面程序\easyexcel\target --- maven-resources-plugin:2.5:resources (default-resources) @ easyexcel --- [debug] execute contextualize Using 'UTF-8' encoding to copy filtered resources. Copying 3 resources --- maven-compiler-plugin:3.8.1:compile (default-compile) @ easyexcel --- Changes detected - recompiling the module! Compiling 31 source files to E:\heyi\JAVA桌面程序\easyexcel\target\classes /E:/heyi/JAVA桌面程序/easyexcel/src/main/java/com/jnhs/dao/StockDao.java: 某些输入文件使用了未经检查或不安全的操作。 /E:/heyi/JAVA桌面程序/easyexcel/src/main/java/com/jnhs/dao/StockDao.java: 有关详细信息, 请使用 -Xlint:unchecked 重新编译。 --- maven-resources-plugin:2.5:testResources (default-testResources) @ easyexcel --- [debug] execute contextualize Using 'UTF-8' encoding to copy filtered resources. skip non existing resourceDirectory E:\heyi\JAVA桌面程序\easyexcel\src\test\resources --- maven-compiler-plugin:3.8.1:testCompile (default-testCompile) @ easyexcel --- Changes detected - recompiling the module! --- maven-surefire-plugin:2.22.2:test (default-test) @ easyexcel --- --- maven-jar-plugin:2.3.2:jar (default-jar) @ easyexcel --- Building jar: E:\heyi\JAVA桌面程序\easyexcel\target\easyexcel-1.0-SNAPSHOT.jar --- maven-dependency-plugin:2.10:unpack-dependencies (unpack-dependencies) @ easyexcel --- Unpacking C:\Users\wishr\.m2\repository\com\alibaba\fastjson\1.2.74\fastjson-1.2.74.jar to E:\heyi\JAVA桌面程序\easyexcel\target\classes with includes "" and excludes "" Unpacking C:\Users\wishr\.m2\repository\org\apache\poi\poi-ooxml-schemas\3.17\poi-ooxml-schemas-3.17.jar to E:\heyi\JAVA桌面程序\easyexcel\target\classes with includes "" and excludes "" Unpacking C:\Users\wishr\.m2\repository\org\apache\poi\poi\3.17\poi-3.17.jar to E:\heyi\JAVA桌面程序\easyexcel\target\classes with includes "" and excludes "" Unpacking C:\Users\wishr\.m2\repository\com\google\protobuf\protobuf-java\3.11.4\protobuf-java-3.11.4.jar to E:\heyi\JAVA桌面程序\easyexcel\target\classes with includes "" and excludes "" Unpacking C:\Users\wishr\.m2\repository\com\alibaba\easyexcel\2.2.6\easyexcel-2.2.6.jar to E:\heyi\JAVA桌面程序\easyexcel\target\classes with includes "" and excludes "" Unpacking C:\Users\wishr\.m2\repository\org\hibernate\hibernate-core\4.3.11.Final\hibernate-core-4.3.11.Final.jar to E:\heyi\JAVA桌面程序\easyexcel\target\classes with includes "" and excludes "" Unpacking C:\Users\wishr\.m2\repository\org\apache\httpcomponents\httpclient\4.5.13\httpclient-4.5.13.jar to E:\heyi\JAVA桌面程序\easyexcel\target\classes with includes "" and excludes "" Unpacking C:\Users\wishr\.m2\repository\mysql\mysql-connector-java\8.0.21\mysql-connector-java-8.0.21.jar to E:\heyi\JAVA桌面程序\easyexcel\target\classes with includes "" and excludes "" Unpacking C:\Users\wishr\.m2\repository\org\hibernate\javax\persistence\hibernate-jpa-2.1-api\1.0.0.Final\hibernate-jpa-2.1-api-1.0.0.Final.jar to E:\heyi\JAVA桌面程序\easyexcel\target\classes with includes "" and excludes "" Unpacking C:\Users\wishr\.m2\repository\org\jboss\jandex\1.1.0.Final\jandex-1.1.0.Final.jar to E:\heyi\JAVA桌面程序\easyexcel\target\classes with includes "" and excludes "" Unpacking C:\Users\wishr\.m2\repository\xml-apis\xml-apis\1.0.b2\xml-apis-1.0.b2.jar to E:\heyi\JAVA桌面程序\easyexcel\target\classes with includes "" and excludes "" Unpacking C:\Users\wishr\.m2\repository\org\jboss\logging\jboss-logging\3.1.3.GA\jboss-logging-3.1.3.GA.jar to E:\heyi\JAVA桌面程序\easyexcel\target\classes with includes "" and excludes "" Unpacking C:\Users\wishr\.m2\repository\antlr\antlr\2.7.7\antlr-2.7.7.jar to E:\heyi\JAVA桌面程序\easyexcel\target\classes with includes "" and excludes "" Unpacking C:\Users\wishr\.m2\repository\org\apache\commons\commons-collections4\4.1\commons-collections4-4.1.jar to E:\heyi\JAVA桌面程序\easyexcel\target\classes with includes "" and excludes "" Unpacking C:\Users\wishr\.m2\repository\org\slf4j\slf4j-api\1.7.26\slf4j-api-1.7.26.jar to E:\heyi\JAVA桌面程序\easyexcel\target\classes with includes "" and excludes "" Unpacking C:\Users\wishr\.m2\repository\org\ehcache\ehcache\3.4.0\ehcache-3.4.0.jar to E:\heyi\JAVA桌面程序\easyexcel\target\classes with includes "" and excludes "" Unable to expand to file E:\heyi\JAVA桌面程序\easyexcel\target\classes\license Unpacking C:\Users\wishr\.m2\repository\org\javassist\javassist\3.18.1-GA\javassist-3.18.1-GA.jar to E:\heyi\JAVA桌面程序\easyexcel\target\classes with includes "" and excludes "" Unpacking C:\Users\wishr\.m2\repository\org\apache\httpcomponents\httpcore\4.4.12\httpcore-4.4.12.jar to E:\heyi\JAVA桌面程序\easyexcel\target\classes with includes "" and excludes "" Unpacking C:\Users\wishr\.m2\repository\com\github\virtuald\curvesapi\1.04\curvesapi-1.04.jar to E:\heyi\JAVA桌面程序\easyexcel\target\classes with includes "" and excludes "" Unpacking C:\Users\wishr\.m2\repository\org\apache\xmlbeans\xmlbeans\2.6.0\xmlbeans-2.6.0.jar to E:\heyi\JAVA桌面程序\easyexcel\target\classes with includes "" and excludes "" Unpacking C:\Users\wishr\.m2\repository\org\hibernate\common\hibernate-commons-annotations\4.0.5.Final\hibernate-commons-annotations-4.0.5.Final.jar to E:\heyi\JAVA桌面程序\easyexcel\target\classes with includes "" and excludes "" Unpacking C:\Users\wishr\.m2\repository\cglib\cglib\3.1\cglib-3.1.jar to E:\heyi\JAVA桌面程序\easyexcel\target\classes with includes "" and excludes "" Unable to expand to file E:\heyi\JAVA桌面程序\easyexcel\target\classes\license Unpacking C:\Users\wishr\.m2\repository\org\hibernate\hibernate-c3p0\4.3.11.Final\hibernate-c3p0-4.3.11.Final.jar to E:\heyi\JAVA桌面程序\easyexcel\target\classes with includes "" and excludes "" Unpacking C:\Users\wishr\.m2\repository\org\jboss\logging\jboss-logging-annotations\1.2.0.Beta1\jboss-logging-annotations-1.2.0.Beta1.jar to E:\heyi\JAVA桌面程序\easyexcel\target\classes with includes "" and excludes "" Unpacking C:\Users\wishr\.m2\repository\com\mchange\mchange-commons-java\0.2.19\mchange-commons-java-0.2.19.jar to E:\heyi\JAVA桌面程序\easyexcel\target\classes with includes "" and excludes "" Unpacking C:\Users\wishr\.m2\repository\commons-logging\commons-logging\1.2\commons-logging-1.2.jar to E:\heyi\JAVA桌面程序\easyexcel\target\classes with includes "" and excludes "" Unpacking C:\Users\wishr\.m2\repository\org\jboss\spec\javax\transaction\jboss-transaction-api_1.2_spec\1.0.0.Final\jboss-transaction-api_1.2_spec-1.0.0.Final.jar to E:\heyi\JAVA桌面程序\easyexcel\target\classes with includes "" and excludes "" Unpacking C:\Users\wishr\.m2\repository\org\apache\poi\poi-ooxml\3.17\poi-ooxml-3.17.jar to E:\heyi\JAVA桌面程序\easyexcel\target\classes with includes "" and excludes "" Unpacking C:\Users\wishr\.m2\repository\joda-time\joda-time\2.10.6\joda-time-2.10.6.jar to E:\heyi\JAVA桌面程序\easyexcel\target\classes with includes "" and excludes "" Unpacking C:\Users\wishr\.m2\repository\commons-codec\commons-codec\1.11\commons-codec-1.11.jar to E:\heyi\JAVA桌面程序\easyexcel\target\classes with includes "" and excludes "" Unpacking C:\Users\wishr\.m2\repository\dom4j\dom4j\1.6.1\dom4j-1.6.1.jar to E:\heyi\JAVA桌面程序\easyexcel\target\classes with includes "" and excludes "" Unpacking C:\Users\wishr\.m2\repository\org\ow2\asm\asm\4.2\asm-4.2.jar to E:\heyi\JAVA桌面程序\easyexcel\target\classes with includes "" and excludes "" Unpacking C:\Users\wishr\.m2\repository\com\mchange\c3p0\0.9.5.5\c3p0-0.9.5.5.jar to E:\heyi\JAVA桌面程序\easyexcel\target\classes with includes "" and excludes "" Unpacking C:\Users\wishr\.m2\repository\stax\stax-api\1.0.1\stax-api-1.0.1.jar to E:\heyi\JAVA桌面程序\easyexcel\target\classes with includes "" and excludes "" --- exec-maven-plugin:1.6.0:exec (unpack-dependencies) @ easyexcel --- javafxpackager.exe has been renamed javapackager.exe. The original file may be removed in a future release in lieu of javapackager. Please update your scripts. --- exec-maven-plugin:1.2.1:exec (default-cli) @ easyexcel ---
然后再pom里边发现一些蛛丝马迹,有unpack-dependencies的配置,但是我并没有配置过,自动加上的
<?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.jnhs</groupId> <artifactId>easyexcel</artifactId> <version>1.0-SNAPSHOT</version> <packaging>jar</packaging> <name>easyexcel</name> <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <mainClass>com.jnhs.frame.Mainframe</mainClass> </properties> <organization> <!-- Used as the 'Vendor' for JNLP generation --> <name>Your Organisation</name> </organization> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-dependency-plugin</artifactId> <version>2.10</version> <executions> <execution> <id>unpack-dependencies</id> <phase>package</phase> <goals> <goal>unpack-dependencies</goal> </goals> <configuration> <excludeScope>system</excludeScope> <excludeGroupIds>junit,org.mockito,org.hamcrest</excludeGroupIds> <outputDirectory>${project.build.directory}/classes</outputDirectory> </configuration> </execution> </executions> </plugin> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>exec-maven-plugin</artifactId> <version>1.6.0</version> <executions> <execution> <id>unpack-dependencies</id> <phase>package</phase> <goals> <goal>exec</goal> </goals> <configuration> <executable>${java.home}/../bin/javafxpackager</executable> <arguments> <argument>-createjar</argument> <argument>-nocss2bin</argument> <argument>-appclass</argument> <argument>${mainClass}</argument> <argument>-srcdir</argument> <argument>${project.build.directory}/classes</argument> <argument>-outdir</argument> <argument>${project.build.directory}</argument> <argument>-outfile</argument> <argument>${project.build.finalName}.jar</argument> </arguments> </configuration> </execution> <execution> <id>default-cli</id> <goals> <goal>exec</goal> </goals> <configuration> <executable>${java.home}/bin/java</executable> <commandlineArgs>${runfx.args}</commandlineArgs> </configuration> </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.8.1</version> <configuration> <source>1.7</source> <target>1.7</target> <compilerArguments> <bootclasspath>${sun.boot.class.path}${path.separator}${java.home}/lib/jfxrt.jar</bootclasspath> </compilerArguments> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <version>2.22.2</version> <configuration> <additionalClasspathElements> <additionalClasspathElement>${java.home}/lib/jfxrt.jar</additionalClasspathElement> </additionalClasspathElements> </configuration> </plugin> </plugins> </build> <pluginRepositories> <pluginRepository> <id>central</id> <name>Central Repository</name> <url>https://repo.maven.apache.org/maven2</url> <layout>default</layout> <snapshots> <enabled>false</enabled> </snapshots> <releases> <updatePolicy>never</updatePolicy> </releases> </pluginRepository> </pluginRepositories> <repositories> <repository> <id>central</id> <name>Central Repository</name> <url>https://repo.maven.apache.org/maven2</url> <layout>default</layout> <snapshots> <enabled>false</enabled> </snapshots> </repository> </repositories> <dependencies> <!-- https://mvnrepository.com/artifact/com.alibaba/easyexcel --> <dependency> <groupId>com.alibaba</groupId> <artifactId>easyexcel</artifactId> <version>2.2.6</version> </dependency> <dependency> <groupId>joda-time</groupId> <artifactId>joda-time</artifactId> <version>2.10.6</version> </dependency> <dependency> <groupId>com.alibaba</groupId> <artifactId>fastjson</artifactId> <version>1.2.74</version> </dependency> <dependency> <groupId>org.hibernate</groupId> <artifactId>hibernate-core</artifactId> <version>4.3.11.Final</version> </dependency> <!-- mysql数据库的驱动包 --> <dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId> <version>8.0.21</version> </dependency> <!--C3p0 连接池--> <dependency> <groupId>com.mchange</groupId> <artifactId>c3p0</artifactId> <version>0.9.5.5</version> </dependency> <!-- https://mvnrepository.com/artifact/org.hibernate/hibernate-c3p0 --> <dependency> <groupId>org.hibernate</groupId> <artifactId>hibernate-c3p0</artifactId> <version>4.3.11.Final</version> </dependency> <dependency> <groupId>org.apache.httpcomponents</groupId> <artifactId>httpcore</artifactId> <version>4.4.12</version> </dependency> <dependency> <groupId>org.apache.httpcomponents</groupId> <artifactId>httpclient</artifactId> <version>4.5.13</version> </dependency> </dependencies> </project>
再来看一个正常的,不解压的pol配置
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.hs</groupId> <artifactId>activelyPush_kaihu</artifactId> <version>1.0-SNAPSHOT</version> <packaging>jar</packaging> <name>ActivelyPush_kaihu</name> <url>http://maven.apache.org</url> <repositories> <repository> <url>http://download.eclipse.org/rt/eclipselink/maven.repo/</url> <id>eclipselink</id> <layout>default</layout> <name>Repository for library EclipseLink (JPA 2.1)</name> </repository> </repositories> <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> </properties> <dependencies> <!-- https://mvnrepository.com/artifact/cn.wanghaomiao/JsoupXpath --> <dependency> <groupId>cn.wanghaomiao</groupId> <artifactId>JsoupXpath</artifactId> <version>2.2.1</version> </dependency> <!--joda-time--> <dependency> <groupId>joda-time</groupId> <artifactId>joda-time</artifactId> <version>2.10.3</version> </dependency> <dependency> <groupId>org.jsoup</groupId> <artifactId>jsoup</artifactId> <version>1.11.3</version> </dependency> <!--C3p0 连接池--> <dependency> <groupId>com.mchange</groupId> <artifactId>c3p0</artifactId> <version>0.9.5.4</version> </dependency> <!-- https://mvnrepository.com/artifact/org.hibernate/hibernate-c3p0 --> <dependency> <groupId>org.hibernate</groupId> <artifactId>hibernate-c3p0</artifactId> <version>4.3.11.Final</version> </dependency> <dependency> <groupId>com.alibaba</groupId> <artifactId>fastjson</artifactId> <version>1.2.59</version> <type>jar</type> </dependency> <!-- 添加Hibernate4依赖 --> <dependency> <groupId>org.hibernate</groupId> <artifactId>hibernate-core</artifactId> <version>4.3.11.Final</version> </dependency> <!-- mysql驱动包 --> <dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId> <version>8.0.13</version> </dependency> <dependency> <groupId>commons-io</groupId> <artifactId>commons-io</artifactId> <version>2.6</version> </dependency> <dependency> <groupId>org.apache.httpcomponents</groupId> <artifactId>httpclient</artifactId> <version>4.5.10</version> <type>jar</type> </dependency> <dependency> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>2.5.1</version> </dependency> <dependency> <groupId>org.eclipse.persistence</groupId> <artifactId>eclipselink</artifactId> <version>2.7.4</version> </dependency> <dependency> <groupId>javax</groupId> <artifactId>javaee-web-api</artifactId> <version>7.0</version> <type>jar</type> </dependency> </dependencies> <build> <plugins> <!-- 打包第二种方式, 把所有依赖和主程序打成一个jar包 --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-assembly-plugin</artifactId> <version>2.6</version> <configuration> <appendAssemblyId>false</appendAssemblyId> <descriptorRefs> <descriptorRef>jar-with-dependencies</descriptorRef> </descriptorRefs> <archive> <manifest> <!--这里写你的主类的名字,我就随便用一个窗体了--> <mainClass>com.hs.mainclass.MyMainclass</mainClass> </manifest> </archive> </configuration> <executions> <execution> <id>make-assembly</id> <phase>package</phase> <goals> <goal>assembly</goal> </goals> </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>2.5.1</version> <configuration> <source>1.8</source> <target>1.8</target> </configuration> </plugin> </plugins> </build> </project>
build节点配置明显不一样,这是不解压的 build节点配置
<build> <plugins> <!-- 打包第二种方式, 把所有依赖和主程序打成一个jar包 --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-assembly-plugin</artifactId> <version>2.6</version> <configuration> <appendAssemblyId>false</appendAssemblyId> <descriptorRefs> <descriptorRef>jar-with-dependencies</descriptorRef> </descriptorRefs> <archive> <manifest> <!--这里写你的主类的名字,我就随便用一个窗体了--> <mainClass>com.hs.mainclass.MyMainclass</mainClass> </manifest> </archive> </configuration> <executions> <execution> <id>make-assembly</id> <phase>package</phase> <goals> <goal>assembly</goal> </goals> </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>2.5.1</version> <configuration> <source>1.8</source> <target>1.8</target> </configuration> </plugin> </plugins> </build>
直接使用这个build节点替换原本来的build节点,又会报错
JPDA Listening Start... JPDA Address: DESKTOP-T5U6SOU:32578 Port:32578 cd E:\heyi\JAVA桌面程序\easyexcel; "JAVA_HOME=C:\\Program Files\\Java\\jdk1.8.0_191" cmd /c "\"\"C:\\Program Files\\NetBeans 8.2\\java\\maven\\bin\\mvn.bat\" -Drunfx.args=\"-Xdebug -Xrunjdwp:transport=dt_socket,server=n,address=32578 -Dglass.disableGrab=true -jar \\\"${project.build.directory}/${project.build.finalName}.jar\\\" \" -Djpda.listen=true -Djpda.address=32578 -Dmaven.ext.class.path=\"C:\\Program Files\\NetBeans 8.2\\java\\maven-nblib\\netbeans-eventspy.jar\" -Dfile.encoding=UTF-8 clean package org.codehaus.mojo:exec-maven-plugin:1.2.1:exec\"" Scanning for projects... ------------------------------------------------------------------------ Building easyexcel 1.0-SNAPSHOT ------------------------------------------------------------------------ --- maven-clean-plugin:2.4.1:clean (default-clean) @ easyexcel --- Deleting E:\heyi\JAVA桌面程序\easyexcel\target --- maven-resources-plugin:2.5:resources (default-resources) @ easyexcel --- [debug] execute contextualize Using 'UTF-8' encoding to copy filtered resources. Copying 3 resources --- maven-compiler-plugin:2.5.1:compile (default-compile) @ easyexcel --- Compiling 31 source files to E:\heyi\JAVA桌面程序\easyexcel\target\classes --- maven-resources-plugin:2.5:testResources (default-testResources) @ easyexcel --- [debug] execute contextualize Using 'UTF-8' encoding to copy filtered resources. skip non existing resourceDirectory E:\heyi\JAVA桌面程序\easyexcel\src\test\resources --- maven-compiler-plugin:2.5.1:testCompile (default-testCompile) @ easyexcel --- Nothing to compile - all classes are up to date --- maven-surefire-plugin:2.10:test (default-test) @ easyexcel --- No tests to run. Surefire report directory: E:\heyi\JAVA桌面程序\easyexcel\target\surefire-reports ------------------------------------------------------- T E S T S ------------------------------------------------------- Results : Tests run: 0, Failures: 0, Errors: 0, Skipped: 0 --- maven-jar-plugin:2.3.2:jar (default-jar) @ easyexcel --- Building jar: E:\heyi\JAVA桌面程序\easyexcel\target\easyexcel-1.0-SNAPSHOT.jar >>> maven-assembly-plugin:2.6:assembly (make-assembly) @ easyexcel >>> --- maven-resources-plugin:2.5:resources (default-resources) @ easyexcel --- [debug] execute contextualize Using 'UTF-8' encoding to copy filtered resources. Copying 3 resources --- maven-compiler-plugin:2.5.1:compile (default-compile) @ easyexcel --- Nothing to compile - all classes are up to date --- maven-resources-plugin:2.5:testResources (default-testResources) @ easyexcel --- [debug] execute contextualize Using 'UTF-8' encoding to copy filtered resources. skip non existing resourceDirectory E:\heyi\JAVA桌面程序\easyexcel\src\test\resources --- maven-compiler-plugin:2.5.1:testCompile (default-testCompile) @ easyexcel --- Nothing to compile - all classes are up to date --- maven-surefire-plugin:2.10:test (default-test) @ easyexcel --- No tests to run. Skipping execution of surefire because it has already been run for this configuration --- maven-jar-plugin:2.3.2:jar (default-jar) @ easyexcel --- <<< maven-assembly-plugin:2.6:assembly (make-assembly) @ easyexcel <<< --- maven-assembly-plugin:2.6:assembly (make-assembly) @ easyexcel --- Artifact: com.jnhs:easyexcel:jar:1.0-SNAPSHOT references the same file as the assembly destination file. Moving it to a temporary location for inclusion. Building jar: E:\heyi\JAVA桌面程序\easyexcel\target\easyexcel-1.0-SNAPSHOT.jar Configuration options: 'appendAssemblyId' is set to false, and 'classifier' is missing. Instead of attaching the assembly file: E:\heyi\JAVA桌面程序\easyexcel\target\easyexcel-1.0-SNAPSHOT.jar, it will become the file for main project artifact. NOTE: If multiple descriptors or descriptor-formats are provided for this project, the value of this file will be non-deterministic! Replacing pre-existing project main-artifact file: E:\heyi\JAVA桌面程序\easyexcel\target\archive-tmp\easyexcel-1.0-SNAPSHOT.jar with assembly file: E:\heyi\JAVA桌面程序\easyexcel\target\easyexcel-1.0-SNAPSHOT.jar --- exec-maven-plugin:1.2.1:exec (default-cli) @ easyexcel --- ------------------------------------------------------------------------ BUILD FAILURE ------------------------------------------------------------------------ Total time: 24.981s Finished at: Mon Nov 23 14:32:47 CST 2020 Final Memory: 137M/599M ------------------------------------------------------------------------ Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1:exec (default-cli) on project easyexcel: The parameters 'executable' for goal org.codehaus.mojo:exec-maven-plugin:1.2.1:exec are missing or invalid -> [Help 1] To see the full stack trace of the errors, re-run Maven with the -e switch. Re-run Maven using the -X switch to enable full debug logging. For more information about the errors and possible solutions, please read the following articles: [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginParameterException
最后发现,这是工程类型的问题,
选择第一项就不会这样了
相关文章
- Maven项目的目录问题
- 使用maven运行单元測试总结
- Maven的三种打包方式(jar、shade、assembly)
- Maven实战. 2.8小结
- Maven中的库(repository)详解
- 使用 Maven 打包 SpringBoot 项目将源码 source.jar 一并打包发布
- Linux安装Maven并配置阿里云镜像
- 解决maven编译错误:程序包com.sun.xml.internal.ws.spi不存在
- Redis——maven、jedisPool快速使用
- maven构建docker镜像异常
- 【Java】+【IDEA】+ maven
- Linux安装Maven(图文解说详细版)
- 国内可用maven repository 配置
- maven的tomcat插件如何进行debug调试
- IDEA中同窗口导入新的maven项目
- 修改maven的默认jdk版本
- maven构建过程
- 解决 maven system 部署问题
- maven 编译出现初始化异常:com/sun/tools/javac/code/TypeTags
- 【曹工杂谈】Maven源码调试工程搭建
- MyEclipse 2014配置Maven
- Eclispe创建maven工程缺失web.xml报web.xml is missing and <failOnMissingWebXml> is set to true的错误
- Maven
- maven整合eclise