mirror of
				https://github.com/dromara/RuoYi-Vue-Plus.git
				synced 2025-11-04 08:13:44 +08:00 
			
		
		
		
	add 增加 (开发、测试、打包)期间必备的jvm参数
This commit is contained in:
		
							
								
								
									
										10
									
								
								.run/RuoYiApplication.run.xml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								.run/RuoYiApplication.run.xml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,10 @@
 | 
			
		||||
<component name="ProjectRunConfigurationManager">
 | 
			
		||||
  <configuration default="false" name="RuoYiApplication" type="SpringBootApplicationConfigurationType" factoryName="Spring Boot">
 | 
			
		||||
    <module name="ruoyi-admin" />
 | 
			
		||||
    <option name="SPRING_BOOT_MAIN_CLASS" value="com.ruoyi.RuoYiApplication" />
 | 
			
		||||
    <option name="VM_PARAMETERS" value="--add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.lang.invoke=ALL-UNNAMED" />
 | 
			
		||||
    <method v="2">
 | 
			
		||||
      <option name="Make" enabled="true" />
 | 
			
		||||
    </method>
 | 
			
		||||
  </configuration>
 | 
			
		||||
</component>
 | 
			
		||||
							
								
								
									
										6
									
								
								pom.xml
									
									
									
									
									
								
							
							
						
						
									
										6
									
								
								pom.xml
									
									
									
									
									
								
							@@ -374,7 +374,11 @@
 | 
			
		||||
                <artifactId>maven-surefire-plugin</artifactId>
 | 
			
		||||
                <version>${maven-surefire-plugin.version}</version>
 | 
			
		||||
                <configuration>
 | 
			
		||||
                    <argLine>-Dfile.encoding=UTF-8</argLine>
 | 
			
		||||
                    <argLine>
 | 
			
		||||
                        -Dfile.encoding=UTF-8
 | 
			
		||||
                        --add-opens java.base/java.lang=ALL-UNNAMED
 | 
			
		||||
                        --add-opens java.base/java.lang.invoke=ALL-UNNAMED
 | 
			
		||||
                    </argLine>
 | 
			
		||||
                    <!-- 根据打包环境执行对应的@Tag测试方法 -->
 | 
			
		||||
                    <groups>${profiles.active}</groups>
 | 
			
		||||
                    <!-- 排除标签 -->
 | 
			
		||||
 
 | 
			
		||||
@@ -117,6 +117,18 @@
 | 
			
		||||
                    </execution>
 | 
			
		||||
                </executions>
 | 
			
		||||
            </plugin>
 | 
			
		||||
            <plugin>
 | 
			
		||||
                <groupId>org.apache.maven.plugins</groupId>
 | 
			
		||||
                <artifactId>maven-jar-plugin</artifactId>
 | 
			
		||||
                <version>${maven-jar-plugin.version}</version>
 | 
			
		||||
                <configuration>
 | 
			
		||||
                    <archive>
 | 
			
		||||
                        <manifestEntries>
 | 
			
		||||
                            <Add-Opens>java.base/java.lang java.base/java.lang.invoke</Add-Opens>
 | 
			
		||||
                        </manifestEntries>
 | 
			
		||||
                    </archive>
 | 
			
		||||
                </configuration>
 | 
			
		||||
            </plugin>
 | 
			
		||||
            <plugin>
 | 
			
		||||
                <groupId>org.apache.maven.plugins</groupId>
 | 
			
		||||
                <artifactId>maven-war-plugin</artifactId>
 | 
			
		||||
@@ -124,6 +136,11 @@
 | 
			
		||||
                <configuration>
 | 
			
		||||
                    <failOnMissingWebXml>false</failOnMissingWebXml>
 | 
			
		||||
                    <warName>${project.artifactId}</warName>
 | 
			
		||||
                    <archive>
 | 
			
		||||
                        <manifestEntries>
 | 
			
		||||
                            <Add-Opens>java.base/java.lang java.base/java.lang.invoke</Add-Opens>
 | 
			
		||||
                        </manifestEntries>
 | 
			
		||||
                    </archive>
 | 
			
		||||
                </configuration>
 | 
			
		||||
            </plugin>
 | 
			
		||||
        </plugins>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user