mvn項目pom第一行報錯

第一行報錯的原因很多,我這裏是顯示的maven配置錯誤。原來maven項目是war包。

卻在插件中配置了jar包插件,因此導致了錯誤。註銷即可。

<!-- <plugin>
				<artifactId>maven-jar-plugin</artifactId>
				<executions>
					<execution>
						<id>interface</id>
						<phase>package</phase>
						<goals>
							<goal>jar</goal>
						</goals>
						<configuration> -->
							<!-- 添加classifier修飾以區別於war,保證上傳成功 -->
							<!-- <classifier>interface</classifier> -->
							<!-- <includes> <include>**/com/**/</include> </includes> -->
							<!-- <excludes>
								<exclude>**/*.properties</exclude>
								<exclude>**/resources/*.xml</exclude>
									<exclude>**/applicationContext.xml</exclude>
										<exclude>**/spring_cache.xml</exclude>
											<exclude>**/spring_session.xml</exclude> -->
								<!-- 屏蔽掉頁面控制器 -->
								<!-- <exclude>**/com/acexe/action/template/TemplateIndexAction.java</exclude> -->
							<!-- </excludes>
						</configuration>
					</execution>
				</executions>
			</plugin> -->

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章