[ https://issues.apache.org/jira/browse/AXIS2-4295?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jason Fager reopened AXIS2-4295: -------------------------------- Here's the error: [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] /commons-logging.properties (Permission denied) [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: 23 seconds [INFO] Finished at: Wed Apr 01 09:18:13 EDT 2009 [INFO] Final Memory: 11M/34M [INFO] ------------------------------------------------------------------------ ja...@jason:saaj$ mvn -e clean install + Error stacktraces are turned on. [INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [INFO] Building Apache Axis2 - SAAJ [INFO] task-segment: [clean, install] [INFO] ------------------------------------------------------------------------ [INFO] [clean:clean] [INFO] Deleting file set: /Users/jason/src/axis2_trunk/modules/saaj/target (included: [**], excluded: []) [INFO] [resources:resources] [WARNING] Using platform encoding (MacRoman actually) to copy filtered resources, i.e. build is platform dependent! [INFO] Copying 2 resources [INFO] Copying 4 resources [INFO] [compiler:compile] [INFO] Compiling 27 source files to /Users/jason/src/axis2_trunk/modules/saaj/target/classes [INFO] [resources:testResources] [WARNING] Using platform encoding (MacRoman actually) to copy filtered resources, i.e. build is platform dependent! [INFO] Copying 1 resource to ../test-resources/saaj-repo [INFO] Copying 13 resources to ../test-resources [INFO] Copying 2 resources to [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] /commons-logging.properties (Permission denied) [INFO] ------------------------------------------------------------------------ [INFO] Trace org.apache.maven.lifecycle.LifecycleExecutionException: /commons-logging.properties (Permission denied) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:564) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:333) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:126) at org.apache.maven.cli.MavenCli.main(MavenCli.java:282) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) Caused by: org.apache.maven.plugin.MojoExecutionException: /commons-logging.properties (Permission denied) at org.apache.maven.plugin.resources.ResourcesMojo.execute(ResourcesMojo.java:166) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:447) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539) ... 16 more Caused by: org.apache.maven.shared.filtering.MavenFilteringException: /commons-logging.properties (Permission denied) at org.apache.maven.shared.filtering.DefaultMavenFileFilter.copyFile(DefaultMavenFileFilter.java:96) at org.apache.maven.shared.filtering.DefaultMavenResourcesFiltering.filterResources(DefaultMavenResourcesFiltering.java:293) at org.apache.maven.plugin.resources.ResourcesMojo.execute(ResourcesMojo.java:162) ... 18 more Caused by: java.io.FileNotFoundException: /commons-logging.properties (Permission denied) at java.io.FileOutputStream.open(Native Method) at java.io.FileOutputStream.<init>(FileOutputStream.java:179) at java.io.FileOutputStream.<init>(FileOutputStream.java:131) at org.codehaus.plexus.util.FileUtils.copyStreamToFile(FileUtils.java:1058) at org.codehaus.plexus.util.FileUtils.copyFile(FileUtils.java:965) at org.codehaus.plexus.util.FileUtils.copyFile(FileUtils.java:2051) at org.apache.maven.shared.filtering.DefaultMavenFileFilter.copyFile(DefaultMavenFileFilter.java:91) ... 20 more [INFO] ------------------------------------------------------------------------ [INFO] Total time: 4 seconds [INFO] Finished at: Wed Apr 01 09:18:26 EDT 2009 [INFO] Final Memory: 11M/33M [INFO] ------------------------------------------------------------------------ Someone has seen this before: http://www.nabble.com/Build-error-in-Axis2-td20676728.html There's a relevant issue in the Maven JIRA: http://jira.codehaus.org/browse/MRESOURCES-84 And experimentally, putting in an absolute path does copy the resources to that absolute location in the filesystem, at least for me. > saaj testResource has empy targetPath > ------------------------------------- > > Key: AXIS2-4295 > URL: https://issues.apache.org/jira/browse/AXIS2-4295 > Project: Axis 2.0 (Axis2) > Issue Type: Bug > Components: saaj > Affects Versions: nightly > Reporter: Jason Fager > > In saaj's pom.xml, the targetPath that the *.properties are being copied to > is empty. This results in the build attempting to copy the file into '/' > <testResource> > <targetPath></targetPath> <!-- Not good. --> > <directory>test-resources</directory> > <includes> > <include>**/*.properties</include> > </includes> > </testResource> -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.