build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-pl

字面意思就是没有指定版本信息 ,警告问题:程序可以运行

增加一行 

<version>2.3.2</version>  用来指定版本信息

 

 <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>2.3.2</version>  
                <configuration>
                    <source>1.8</source>
                    <target>1.8</target>
                    <encoding>UTF-8</encoding>
                </configuration>
            </plugin>
        </plugins>
    </build>

 

 

OK了

 

Using platform encoding (UTF-8 actually) to copy filtered resources

虽然并不影响项目的正常运行和install,但是不想看到这警告的发生。

加上(可加在在结尾处)

<properties>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>

如下:

 <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>2.3.2</version>  
                <configuration>
                    <source>1.8</source>
                    <target>1.8</target>
                    <encoding>UTF-8</encoding>
                </configuration>
            </plugin>
        </plugins>
    </build>
    

<properties>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>

 

 

转载于:https://my.oschina.net/m243043962/blog/1137787

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
This error message suggests that the Maven compiler plugin is not installed or cannot be found in your local Maven repository or remote repository. To resolve this issue, you can try the following steps: 1. Check if the plugin is specified in your project's pom.xml file. Ensure that the plugin is correctly configured and its version is specified. 2. Check if your Maven settings.xml file is correctly configured to access the remote repository where the plugin is hosted. Ensure that the repository URL, authentication credentials, and proxy settings are correct. 3. Try to manually install the plugin to your local repository by running the following command in your project directory: `mvn install:install-file -Dfile=<path-to-plugin-jar> -DgroupId=<plugin-groupId> -DartifactId=<plugin-artifactId> -Dversion=<plugin-version> -Dpackaging=<plugin-packaging>` Replace the placeholders with the actual values for the plugin you want to install. 4. If the plugin is not hosted in any remote repository, you can include the plugin jar file in your project's lib directory and add the following configuration to your pom.xml file: ``` <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>${compiler.plugin.version}</version> <configuration> <compilerArguments> <endorseddirs>${endorsed.dir}</endorseddirs> </compilerArguments> </configuration> <dependencies> <dependency> <groupId>com.sun</groupId> <artifactId>tools</artifactId> <version>${tools.jar.version}</version> <scope>system</scope> <systemPath>${java.home}/../lib/tools.jar</systemPath> </dependency> </dependencies> </plugin> </plugins> </build> ``` Replace the placeholders with the actual values for the plugin version and the tools.jar version.

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值