Maven错误:警告Classpath entry org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER will not be exported or published

The error is in my will by a common java maven project management becomes javaweb project arise, we can see a warning saying classpath container maven will not be exported or released (ie, not by relying on management maven be exported or released), then we use maven to manage the project's JAR package useless. So the maven denpendencies publish.

.Classpath 1. Open the file in the project folder:

2. Find org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER error message that appears in the file, add the code under which:

3. The figure above code, after the addition can be. But in Eclipse, an error message will not disappear.

4. In Eclipse can be done to repair the warning in the following ways, or actually add to the code.

Maven Denpendencies is to add to the deployment directory, which will be released Maven denpendencies together in the project at the time of publication of APP.

 

Right through the property items (peoperties), open the properties panel, click Deployment Assembly (deployment assembly interface), which is the only javaweb project, we are there to decide which code projects, resources will be posted to the server, in Figure 2 where the click button, add to deploy resources to deploy maven denpendencies to the server.

Select interface appears after clicking the Java Build Path Entries, and then click next, you can choose maven denpendencies deployed to the server. , Eclipse will be automatically added to the file on .classpath code. Warning namely repair.

 

Guess you like

Origin www.cnblogs.com/darling1550lz/p/11332915.html