解决:Could not find artifact org.apache.tomcat.maven:tomcat8-maven-plugin:pom

我们原因配置的阿里云镜像中没有这个jar包,在pom.xml中增加插件仓库即可。

  
<pluginRepositories>
    <pluginRepository>
      <id>alfresco-publicid>
      <url>https://artifacts.alfresco.com/nexus/content/groups/publicurl>
    pluginRepository>
    <pluginRepository>
      <id>alfresco-public-snapshotsid>
      <url>https://artifacts.alfresco.com/nexus/content/groups/public-snapshotsurl>
      <snapshots>
        <enabled>trueenabled>
        <updatePolicy>dailyupdatePolicy>
      snapshots>
    pluginRepository>
    <pluginRepository>
      <id>beardedgeeks-releasesid>
      <url>http://beardedgeeks.googlecode.com/svn/repository/releasesurl>
    pluginRepository>
  pluginRepositories>



<plugin>
	<groupId>org.apache.tomcat.mavengroupId>
	<artifactId>tomcat8-maven-pluginartifactId>
	<version>3.0-r1655215version>
plugin>

你可能感兴趣的:(JavaWeb,踩坑日常)