Can anyone solve this problem for me? This is what I get from the output of the command line, which indicates that " Failed to execute goal org.apache.maven.plugins:maven-resources-plugin: 2.5:resources (default-resources) on project my-ins: Error loading property file,'F:\my-ins\src\main\filters\filter.properties' ".
When I try to add the filtering function, it seems that the resources-plugin's version is 2.5, the latest version, and the command "process-resources" returns the outcome above. if I delete the setting lines "<filters>src/main/filters/filters.properties" in POM.xml file the place of which is in my maven directory, the process runs normally and smoothly, otherwise the debug info generated was "error loading property files". Here is the list of debug info: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:2 .5:resources (default-resources) on project my-ins: Error loading property file 'F:\my-ins\src\main\filters\filter.properties' -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal o rg.apache.maven.plugins:maven-resources-plugin:2.5:resources (default-resources) on project my-ins: Error loading property file 'F:\my-ins\src\main\filters\filt er.properties' at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor .java:217) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor .java:153) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor .java:145) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProje ct(LifecycleModuleBuilder.java:84) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProje ct(LifecycleModuleBuilder.java:59) at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBu ild(LifecycleStarter.java:183) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(Lifecycl eStarter.java:161) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196) at org.apache.maven.cli.MavenCli.main(MavenCli.java:141) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Laun cher.java:290) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.jav a:230) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(La uncher.java:409) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java: 352) Caused by: org.apache.maven.plugin.MojoExecutionException: Error loading propert y file 'F:\my-ins\src\main\filters\filter.properties' at org.apache.maven.plugin.resources.ResourcesMojo.execute(ResourcesMojo .java:316) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(Default BuildPluginManager.java:101) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor .java:209) ... 19 more Caused by: org.apache.maven.shared.filtering.MavenFilteringException: Error load ing property file 'F:\my-ins\src\main\filters\filter.properties' at org.apache.maven.shared.filtering.DefaultMavenFileFilter.loadProperti es(DefaultMavenFileFilter.java:289) at org.apache.maven.shared.filtering.DefaultMavenFileFilter.getDefaultFi lterWrappers(DefaultMavenFileFilter.java:204) at org.apache.maven.shared.filtering.DefaultMavenResourcesFiltering.filt erResources(DefaultMavenResourcesFiltering.java:162) at org.apache.maven.plugin.resources.ResourcesMojo.execute(ResourcesMojo .java:310) ... 21 more Caused by: java.io.FileNotFoundException: F:\my-ins\src\main\filters\filter.prop erties at org.apache.maven.shared.filtering.PropertyUtils.loadPropertyFile(Prop ertyUtils.java:65) at org.apache.maven.shared.filtering.DefaultMavenFileFilter.loadProperti es(DefaultMavenFileFilter.java:283) ... 24 more Has anybody some good suggestions? i'd Appreciate very much. huangjingfeng