JeeSite4.x init-data.bat 初始化时错误 MojoExecutionException

星锐开 发布于 05/14 18:14
阅读 60
收藏 0

@ThinkGem 你好,想跟你请教个问题:

 项目:JeeSite4.x    开发工具IntelliJ IDEA 2018.3.4 x64        

 问题init-data.bat 初始化时错误(多次尝试

[INFO]
[INFO] --- maven-clean-plugin:3.0.0:clean (default-clean) @ jeesite-web ---
[INFO] Deleting G:\lm\project\jeesite4\web\target
[INFO] Deleting G:\lm\project\jeesite4\web\src\main\webapp\WEB-INF\classes
[INFO]
[INFO] --- maven-resources-plugin:3.0.2:resources (default-resources) @ jeesite-web ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 0 resource
[INFO] Copying 19 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.8.0:compile (default-compile) @ jeesite-web ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 12 source files to G:\lm\project\jeesite4\web\src\main\webapp\WEB-INF\classes
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 16.675s
[INFO] Finished at: Tue May 14 18:10:07 CST 2019
[INFO] Final Memory: 20M/123M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.0:compile (default-compile) on project jeesite-web: Fatal error compiling: 无效的标记: -parameters -> [
Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

 

对已上错误尝试了以下操作:

1.Settings->Compiler->Java Compiler (设置jdk编译的地方 检查了版本;设置完成后重新init 未果)

2.检查本地java -version 

java version "1.8.0_161"
Java(TM) SE Runtime Environment (build 1.8.0_161-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.161-b12, mixed mode)

3.检查了maven 设置 为idea 内置

4.检查了parent->pom.xml   如下配置:未设置版本号;加之重试后未果

<!-- Compiler 插件, 设定JDK版本 -->
<plugin>
   <groupId>org.apache.maven.plugins</groupId>
   <artifactId>maven-compiler-plugin</artifactId>
   <version>3.8.0</version>
   <configuration>
      <showWarnings>true</showWarnings>
         <!--<compilerArguments>-->
            <!--<verbose /> 输出有关编译器正在执行的操作的消息-->
            <!--<bootclasspath>${JAVA_HOME}\jre\lib\rt.jar;${JAVA_HOME}\jre\lib\jce.jar</bootclasspath>-->
         <!--</compilerArguments>-->
   </configuration>
</plugin>
   
<!-- 打包jar文件时,配置manifest文件,加入lib包的jar依赖 -->
<plugin>
   <groupId>org.apache.maven.plugins</groupId>
   <artifactId>maven-jar-plugin</artifactId>
   <version>3.1.1</version>
   <configuration>
      <!-- <encoding>${project.build.sourceEncoding}</encoding> -->
      <archive>
         <addMavenDescriptor>false</addMavenDescriptor>
      </archive>
   </configuration>
   <executions>
      <execution>
         <!-- <phase>prepare-package</phase>
         <goals>
            <goal>jar</goal>
         </goals> -->
         <configuration>
            <!-- <classesDirectory>${project.outputDirectory}</classesDirectory>
            <finalName>${finalName}</finalName>
            <outputDirectory>${project.build.directory}/${project.artifactId}/WEB-INF/lib</outputDirectory>
            <includes>
               <include>com/thinkgem/jeesite/**</include>
            </includes> -->
            <archive>
               <manifest>
                  <!-- Add directory entries -->
                  <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
                  <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
                  <addClasspath>true</addClasspath>
               </manifest>
            </archive>
         </configuration>
      </execution>
   </executions>
</plugin>

以下是问题补充:

@星锐开:@ThinkGem 通过InitCoreData方式可以解决初始化问题, 但是我还是想了解init-data.bat 哪里出现了问题导致的异常, 非常感谢 (05/15 13:37)
加载中
返回顶部
顶部