maven编译时遇到问题:
[FATAL ERROR] Plugin realm = app0.child-container[org.apache.maven.plugins:maven-resources-plugin:2.3]
urls[0] = file:/C:/Documents and Settings/Administrator/.m2/repository/org/apache/maven/plugins/maven-resources-plugin/2.3/maven-resources-plugin-2.3.jar
urls[1] = file:/C:/Documents and Settings/Administrator/.m2/repository/org/codehaus/plexus/plexus-utils/1.5.6/plexus-utils-1.5.6.jar
urls[2] = file:/C:/Documents and Settings/Administrator/.m2/repository/org/codehaus/plexus/plexus-interpolation/1.0/plexus-interpolation-1.0.jar
urls[3] = file:/C:/Documents and Settings/Administrator/.m2/repository/org/apache/maven/shared/maven-filtering/1.0-beta-2/maven-filtering-1.0-beta-2.jar
[FATAL ERROR] Container realm = plexus.core
urls[0] = file:/D:/apache-maven-2.2.1/bin/../lib/maven-2.2.1-uber.jar
解决方法:
<build>
<resources>
<resource>
<directory>src/main/resources</directory>
</resource>
</resources>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.3.1</version>
<configuration>
<source>1.6</source>
<target>1.6</target>
<encoding>utf-8</encoding>
</configuration>
<dependencies>
<dependency>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-compiler-javac</artifactId>
<version>1.8.1</version>
</dependency>
</dependencies>
</plugin>
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<version>2.2</version>
<configuration>
<encoding>utf-8</encoding>
</configuration>
</plugin>
</plugins>
</build>