美文网首页
maven问题集

maven问题集

作者: 小糖douer | 来源:发表于2019-01-19 21:53 被阅读0次
  • Description Resource Path Location Type
    Build path specifies execution environment JavaSE-1.7. There are no JREs installed in the workspace that are strictly compatible with this environment. oto Build path JRE System Library Problem

新建maven webapp项目后出现,目前的编译环境需要的是javase 1.7,而我电脑上的是1.8,因而需要配置运行环境为1.8

解决办法:找到pom.xml中maven-compiler-plugin配置

<plugin>
          <artifactId>maven-compiler-plugin</artifactId>
          <version>3.7.0</version>
        </plugin>

修改如下:

<plugin>
          <artifactId>maven-compiler-plugin</artifactId>
          <version>3.7.0</version>
          <configuration>
            <source>1.8</source>
            <target>1.8</target>
            <encoding>UTF8</encoding>
          </configuration>
        </plugin>
  • Classpath entry org.maven.eclipse.MAVEN2_CLASSPATH_CONTAINER will not be exported or published

需要将navigator视图下.classpath文件中,添加

<classpathentry exported="true" kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
        <attributes>
            <attribute name="maven.pomderived" value="true"/>
        </attributes>
    </classpathentry>

添加元素如下

<classpathentry exported="true" kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
        <attributes>
            <attribute name="maven.pomderived" value="true"/>
            <attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
        </attributes>
    </classpathentry>

然后右击项目 -> propertier -> java build path -> order and export 下选中 Maven,点击确定,最后clean项目即可。

mvn插件库:https://mvnrepository.com/

相关文章

  • Maven 问题集

    问题01: 问题再现: 新建Maven项目后报错:Could not get the value for para...

  • maven问题集

    Description Resource Path Location TypeBuild p...

  • Maven问题集

    一、maven如何不继承parent里面的部分依赖 子类重写,定义scope为test,打包则不会出现

  • maven多模块开发问题集

    使用IDEA进行多模块项目开发会出现一个问题在IDEA中查看报错的代码,发现引用的代码存在不缺失,但是单独运行模块...

  • ssm框架攻略

    1.maven 1.1 new maven project(打包方式pom) 1.2修改pom文件 1.2.1集中...

  • Maven插件maven-assembly-plugin进行打包

    maven程序集插件提供了一种描述符格式,允许您定义项目中文件和目录的任意程序集。例如,如果Maven项目包含目录...

  • AS3.0

    Maven仓库的问题 查询 maven googe 依赖 404 解决办法//将maven.googlecom//...

  • maven问题

    导入项目后出现:Error:(47, 0) No such property: sonatypeRepo for ...

  • sts maven 编译问题记录

    问题: Failed to execute goal org.apache.maven.plugins:maven...

  • Maven问答

    Maven 常见问题 Failed to execute goal org.apache.maven.plugin...

网友评论

      本文标题:maven问题集

      本文链接:https://www.haomeiwen.com/subject/rbbzdqtx.html