Java 参数';sourceEncoding';rpm maven插件丢失或无效
我正在尝试使用rpm maven插件,但出现以下错误: [错误]无法在项目TestRpmAndDocker上执行目标org.codehaus.mojo:rpm maven插件:2.1.3:rpm(生成rpm):目标org.codehaus.mojo:rpm maven插件的参数“sourceEncoding”丢失或无效->[帮助1] org.apache.maven.lifecycle.LifecycleExecutionException:未能在项目TestRpmAndDocker上执行目标org.codehaus.mojo:rpm maven插件:2.1.3:rpm(生成rpm):目标org.codehaus.mojo:rpm maven插件:2.1.3:rpm的参数“sourceEncoding”缺失或无效 位于org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:220) 位于org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) 位于org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) 位于org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:108) 位于org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:76) 位于org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51) 位于org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:116) 在org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:361) 位于org.apache.maven.DefaultMaven.execute(DefaultMaven.java:155) 位于org.apache.maven.cli.MavenCli.execute(MavenCli.java:584) 位于org.apache.maven.cli.MavenCli.doMain(MavenCli.java:213) 位于org.apache.maven.cli.MavenCli.main(MavenCli.java:157) 在sun.reflect.NativeMethodAccessorImpl.invoke0(本机方法)处 位于sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 在sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)中 位于java.lang.reflect.Method.invoke(Method.java:497) 位于org.codehaus.plexus.classworlds.launcher.launcher.launchEnhanced(launcher.java:289) 位于org.codehaus.plexus.classworlds.launcher.launcher.launch(launcher.java:229) 位于org.codehaus.plexus.classworlds.launcher.launcher.mainWithExitCode(launcher.java:415) 位于org.codehaus.plexus.classworlds.launcher.launcher.main(launcher.java:356) 原因:org.apache.maven.plugin.PluginParameterException:目标org.codehaus.mojo:rpm maven plugin:2.1.3:rpm的参数“sourceEncoding”丢失或无效 位于org.apache.maven.plugin.internal.DefaultMavenPluginManager.populatePluginFields(DefaultMavenPluginManager.java:584) 位于org.apache.maven.plugin.internal.DefaultMavenPluginManager.getConfiguredMojo(DefaultMavenPluginManager.java:537) 位于org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:120) 位于org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208) ... 还有19个 这是我的pom:Java 参数';sourceEncoding';rpm maven插件丢失或无效,java,maven,rpm,rpm-maven-plugin,Java,Maven,Rpm,Rpm Maven Plugin,我正在尝试使用rpm maven插件,但出现以下错误: [错误]无法在项目TestRpmAndDocker上执行目标org.codehaus.mojo:rpm maven插件:2.1.3:rpm(生成rpm):目标org.codehaus.mojo:rpm maven插件的参数“sourceEncoding”丢失或无效->[帮助1] org.apache.maven.lifecycle.LifecycleExecutionException:未能在项目TestRpmAndDocker上执行目标o
<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>TestRpmAndDocker</groupId>
<artifactId>TestRpmAndDocker</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>TestRpmAndDocker</name>
<description>TestRpmAndDocker</description>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.3</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>rpm-maven-plugin</artifactId>
<version>2.1.3</version>
<executions>
<execution>
<id>generate-rpm</id>
<goals>
<goal>rpm</goal>
</goals>
</execution>
</executions>
<configuration>
<license>GPL (c) 2005, SWWDC</license>
<distribution>Trash 2005</distribution>
<group>Application/Collectors</group>
<icon>src/main/resources/icon.gif</icon>
<packager>SWWDC</packager>
<prefix>/usr/local</prefix>
<changelogFile>src/changelog</changelogFile>
<defineStatements>
<defineStatement>_unpackaged_files_terminate_build 0</defineStatement>
</defineStatements>
<mappings>
<mapping>
<directory>/usr/local/bin/landfill</directory>
<filemode>440</filemode>
<username>dumper</username>
<groupname>dumpgroup</groupname>
<sources>
<source>
<location>target/classes</location>
</source>
</sources>
</mapping>
<mapping>
<directory>/usr/local/doc/landfill</directory>
<documentation>true</documentation>
<filemode>444</filemode>
<username>dumper</username>
<groupname>dumpgroup</groupname>
<sources>
<source>
<location>target/site</location>
</source>
</sources>
</mapping>
<mapping>
<directory>/usr/local/lib</directory>
<filemode>750</filemode>
<username>dumper</username>
<groupname>dumpgroup</groupname>
<dependency>
<includes>
<include>jmock:jmock</include>
<include>javax.servlet:servlet-api:2.4</include>
</includes>
<excludes>
<exclude>junit:junit</exclude>
</excludes>
</dependency>
</mapping>
<mapping>
<directory>/usr/local/bin</directory>
<filemode>750</filemode>
<username>dumper</username>
<groupname>dumpgroup</groupname>
<sources>
<source>
<location>src/main/bin</location>
</source>
<softlinkSource>
<location>/usr/local/bin/new.sh</location>
<destination>old.sh</destination>
</softlinkSource>
</sources>
</mapping>
<mapping>
<directory>/usr/local/oldbin</directory>
<filemode>750</filemode>
<username>dumper</username>
<groupname>dumpgroup</groupname>
<sources>
<softlinkSource>
<location>/usr/local/bin</location>
</softlinkSource>
</sources>
</mapping>
<mapping>
<directory>/usr/local/conf/landfill</directory>
<configuration>true</configuration>
<filemode>640</filemode>
<username>dumper</username>
<groupname>dumpgroup</groupname>
<sources>
<source>
<location>src/main/conf</location>
</source>
</sources>
</mapping>
<mapping>
<directory>/usr/local/log/landfill</directory>
<filemode>750</filemode>
<username>dumper</username>
<groupname>dumpgroup</groupname>
</mapping>
</mappings>
<preinstallScriptlet>
<script>echo "installing now"</script>
</preinstallScriptlet>
<postinstallScriptlet>
<scriptFile>src/main/scripts/postinstall</scriptFile>
<fileEncoding>utf-8</fileEncoding>
</postinstallScriptlet>
</configuration>
</plugin>
</plugins>
</build>
4.0.0
TestRpmAndDocker
TestRpmAndDocker
0.0.1-快照
TestRpmAndDocker
TestRpmAndDocker
org.apache.maven.plugins
maven编译器插件
3.3
1.8
1.8
org.codehaus.mojo
rpm maven插件
2.1.3
生成rpm
转速
GPL(c)2005,SWWDC
垃圾2005
应用程序/收集器
src/main/resources/icon.gif
SWWDC
/usr/本地
src/changelog
_未打包的\u文件\u终止\u生成0
/usr/本地/垃圾箱/垃圾填埋场
440
翻车机
转储组
目标/类别
/usr/本地/文件/填埋场
真的
444
翻车机
转储组
目标/地点
/usr/local/lib
750
翻车机
转储组
jmock:jmock
servlet:ServletAPI:2.4
junit:junit
/usr/本地/bin
750
翻车机
转储组
src/main/bin
/usr/local/bin/new.sh
old.sh
/usr/local/oldbin
750
翻车机
转储组
/usr/本地/bin
/usr/local/conf/Hamild
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>