Yes this has fixed this issue, thank you!

-Dave

On Thu, Dec 6, 2012 at 5:13 PM, Hervé BOUTEMY <herve.bout...@free.fr> wrote:
> ok, we got it:
> see http://jira.codehaus.org/browse/MDEP-187
>
> if you upgrade m-dependency-p to 2.6, you'll get a better error message
>
> then you should probably try to "mvn package site", to have the package phase
> executed before the site tries to use the result artifacts
>
> Regards,
>
> Hervé
>
> Le jeudi 6 décembre 2012 13:26:34 David Hoffer a écrit :
>> Sure here is the build log from the site build (regular build works).
>>
>> [ERROR] Failed to execute goal
>> org.apache.maven.plugins:maven-site-plugin:3.2:site (default-cli) on
>> project stand-alone: failed to get report for
>> org.apache.maven.plugins:maven-surefire-report-plugin: Failed to
>> execute goal
>> org.apache.maven.plugins:maven-dependency-plugin:2.4:copy-dependencies
>> (copy-dependencies) on project stand-alone: Error copying artifact from
>> C:\svn\chat-dashboard\trunk\dashboard-core\target\classes to
>> C:\svn\chat-dashboard\trunk\stand-alone\target\stand-alone-4.4-SNAPSHOT\pack
>> ages\dashboard-core-4.4-SNAPSHOT.jar:
>> C:\svn\chat-dashboard\trunk\dashboard-core\target\classes (Access is
>> denied) -> [Help 1]
>> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to
>> execute goal org.apache.maven.plugins:maven-site-plugin:3.2:site
>> (default-cli) on project stand-alone: failed to get report for
>> org.apache.maven.plugins:maven-surefire-report-plugin
>> 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.buildProject(Lif
>> ecycleModuleBuilder.java:84) at
>> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(Lif
>> ecycleModuleBuilder.java:59) at
>> org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(Li
>> fecycleStarter.java:183) at
>> org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStart
>> er.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:5
>> 7) at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp
>> l.java:43) at java.lang.reflect.Method.invoke(Method.java:601)
>> at
>> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.j
>> ava:290) at
>> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
>> at
>> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher
>> .java:409) at
>> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
>> Caused by: org.apache.maven.plugin.MojoExecutionException: failed to get
>> report for org.apache.maven.plugins:maven-surefire-report-plugin at
>> org.apache.maven.reporting.exec.DefaultMavenReportExecutor.buildMavenReport
>> s(DefaultMavenReportExecutor.java:156) at
>> org.apache.maven.plugins.site.AbstractSiteRenderingMojo.getReports(Abstract
>> SiteRenderingMojo.java:235) at
>> org.apache.maven.plugins.site.SiteMojo.execute(SiteMojo.java:121) at
>> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildP
>> luginManager.java:101) at
>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:
>> 209) ... 19 more
>> Caused by: org.apache.maven.lifecycle.LifecycleExecutionException:
>> Failed to execute goal
>> org.apache.maven.plugins:maven-dependency-plugin:2.4:copy-dependencies
>> (copy-dependencies) on project stand-alone: Error copying artifact
>> from C:\svn\chat-dashboard\trunk\dashboard-core\target\classes to
>> C:\svn\chat-dashboard\trunk\stand-alone\target\stand-alone-4.4-SNAPSHOT\pack
>> ages\dashboard-core-4.4-SNAPSHOT.jar 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.MojoExecutor.executeForkedExecutions(Mo
>> joExecutor.java:365) at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeForkedExecutions
>> (DefaultLifecycleExecutor.java:173) at
>> org.apache.maven.reporting.exec.DefaultMavenReportExecutor.buildReportPlugi
>> n(DefaultMavenReportExecutor.java:284) at
>> org.apache.maven.reporting.exec.DefaultMavenReportExecutor.buildMavenReport
>> s(DefaultMavenReportExecutor.java:150) ... 23 more
>> Caused by: org.apache.maven.plugin.MojoExecutionException: Error
>> copying artifact from
>> C:\svn\chat-dashboard\trunk\dashboard-core\target\classes to
>> C:\svn\chat-dashboard\trunk\stand-alone\target\stand-alone-4.4-SNAPSHOT\pack
>> ages\dashboard-core-4.4-SNAPSHOT.jar at
>> org.apache.maven.plugin.dependency.AbstractDependencyMojo.copyFile(Abstract
>> DependencyMojo.java:197) at
>> org.apache.maven.plugin.dependency.CopyDependenciesMojo.copyArtifact(CopyDe
>> pendenciesMojo.java:197) at
>> org.apache.maven.plugin.dependency.CopyDependenciesMojo.execute(CopyDepende
>> nciesMojo.java:89) at
>> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildP
>> luginManager.java:101) at
>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:
>> 209) ... 29 more
>> Caused by: java.io.FileNotFoundException:
>> C:\svn\chat-dashboard\trunk\dashboard-core\target\classes (Access is
>> denied)
>> at java.io.FileInputStream.open(Native Method)
>> at java.io.FileInputStream.<init>(FileInputStream.java:138)
>> at
>> org.codehaus.plexus.util.io.FileInputStreamFacade.getInputStream(FileInputS
>> treamFacade.java:36) at
>> org.codehaus.plexus.util.FileUtils.copyStreamToFile(FileUtils.java:1141) at
>> org.codehaus.plexus.util.FileUtils.copyFile(FileUtils.java:1048) at
>> org.apache.maven.plugin.dependency.AbstractDependencyMojo.copyFile(Abstract
>> DependencyMojo.java:192) ... 33 more
>> [ERROR]
>>
>>
>> I see several lines in here that seem wrong to me.
>> 1. Caused by: org.apache.maven.lifecycle.LifecycleExecutionException:
>> Failed to execute goal
>> org.apache.maven.plugins:maven-dependency-plugin:2.4:copy-dependencies
>> (copy-dependencies) on project stand-alone: Error copying artifact
>> from C:\svn\chat-dashboard\trunk\dashboard-core\target\classes to
>> C:\svn\chat-dashboard\trunk\stand-alone\target\stand-alone-4.4-SNAPSHOT\pack
>> ages\dashboard-core-4.4-SNAPSHOT.jar
>>
>> Why is copying from classes?  And why is it copying to jar (or is that
>> just one of the files it is copying to the packages folder)?  My pom
>> for this part is defined as:
>>
>> <execution>
>>                         <id>copy-dependencies</id>
>>                         <phase>generate-resources</phase>
>>                         <goals>
>>                             <goal>copy-dependencies</goal>
>>                         </goals>
>>                         <configuration>
>>                             <includeScope>runtime</includeScope>
>>
>> <outputDirectory>${project.build.directory}/${project.build.finalName}/packa
>> ges</outputDirectory> <overWriteReleases>true</overWriteReleases>
>> <overWriteSnapshots>true</overWriteSnapshots>
>> <overWriteIfNewer>true</overWriteIfNewer> </configuration>
>>                     </execution>
>>
>> 2. Caused by: java.io.FileNotFoundException:
>> C:\svn\chat-dashboard\trunk\dashboard-core\target\classes (Access is
>> denied)
>>
>> It looks like its trying to find a file in this folder so it can copy
>> it.  This folder does exist.  It contains a folder structure of class
>> files, so at that top folder it just contains a folder.  But why is it
>> copying from here?  This folder does not contain the application's
>> dependencies.  That module's artifact is at
>> C:\svn\chat-dashboard\trunk\dashboard-core\target\dashboard-core-4.4-SNAPSHO
>> T.jar so it should copy that and all others to
>> ${project.build.directory}/${project.build.finalName}/packages which
>> it does seem to do.  This error seems to be after it does the right
>> thing with this goal.
>>
>> 3. [ERROR] Failed to execute goal
>> org.apache.maven.plugins:maven-site-plugin:3.2:site (default-cli) on
>> project stand-alone: failed to get report for
>> org.apache.maven.plugins:maven-surefire-report-plugin: Failed to
>> execute goal
>> org.apache.maven.plugins:maven-dependency-plugin:2.4:copy-dependencies
>> (copy-dependencies) on project stand-alone:
>>
>> That first line in the log indicates that the error is caused by the
>> maven-surefire-report-plugin.  Failed to get report.  So is it
>> possible that...that plugin is re-executing the copy-dependencies goal
>> and is doing so in an invalid manor?
>>
>> -Dave
>>
>> On Thu, Dec 6, 2012 at 11:06 AM, Hervé BOUTEMY <herve.bout...@free.fr>
> wrote:
>> > if you run with mvn -X and give us the full stack trace, perhaps we can
>> > see
>> > what's going wrong
>> >
>> > Le jeudi 6 décembre 2012 06:34:52 David Hoffer a écrit :
>> >> Note that the copy-dependencies goal in the stand-alone module is not
>> >> really relevant/useful in the site build.  Rather it's a key part of
>> >> the regular...clean, install, release phases...that module just copies
>> >> artifacts and builds an aggregate artifact (i.e. it does not have
>> >> source code).  But I'm not aware of how to 'turn-off' things like this
>> >> just for the site build.
>> >>
>> >> On Thu, Dec 6, 2012 at 6:22 AM, David Hoffer <dhoff...@gmail.com> wrote:
>> >> > This happens if I build locally and when built with our CI build
>> >> > server.  When I build locally it will use disk C and the disk is not
>> >> > full.  These folders are just the normal maven build folders so if
>> >> > there is something using the file...it's a Maven process.
>> >> >
>> >> > We are using Maven3...perhaps the site build spawns other processes
>> >> > and there is a conflict between them?
>> >> >
>> >> > On Thu, Dec 6, 2012 at 5:53 AM, Adrien Rivard <adrien.riv...@gmail.com>
>> >
>> > wrote:
>> >> >> Most probably, it means that one of the file is used by another
>> >> >> application, thus cannot be deleted.
>> >> >>
>> >> >> On Thu, Dec 6, 2012 at 1:47 PM, David Hoffer <dhoff...@gmail.com> 
>> >> >> wrote:
>> >> >>> Those last two lines make no sense to me as this happens on systems
>> >> >>> with Admin/root permissions.  There doesn't seem to be any way this
>> >> >>> can be a permissions issue, so I assume that's an
>> >> >>> incorrect/misleading
>> >> >>> message.
>> >> >>>
>> >> >>> -Dave
>> >> >>>
>> >> >>> On Wed, Dec 5, 2012 at 11:23 PM, Hervé BOUTEMY
>> >> >>> <herve.bout...@free.fr>
>> >> >>>
>> >> >>> wrote:
>> >> >>> > please read the last two lines
>> >> >>> >
>> >> >>> >> F:\work\7832e3bc4d2f257b\dashboard-core\target\classes (Access is
>> >> >>> >> denied)
>> >> >>> >
>> >> >>> > Le mercredi 5 décembre 2012 15:00:24 David Hoffer a écrit :
>> >> >>> >> I have a multi-module maven build and can't get the site build to
>> >> >>> >> work.  It's currently failing with this error.  The module its
>> >> >>> >> failing
>> >> >>> >> on, stand-alone, doesn't have any code just packages assemblies,
>> >> >>> >> etc.
>> >> >>> >>
>> >> >>> >> Any ideas what is causing this?
>> >> >>> >>
>> >> >>> >> Failed to execute goal
>> >> >>> >> org.apache.maven.plugins:maven-site-plugin:3.2:site (default-site)
>> >> >>> >> on
>> >> >>> >> project stand-alone: failed to get report for
>> >> >>> >> org.apache.maven.plugins:maven-surefire-report-plugin
>> >> >>> >>
>> >> >>> >> [ERROR] Failed to execute goal
>> >> >>> >> org.apache.maven.plugins:maven-site-plugin:3.2:site (default-site)
>> >> >>> >> on
>> >> >>> >> project stand-alone: failed to get report for
>> >> >>> >> org.apache.maven.plugins:maven-surefire-report-plugin: Failed to
>> >> >>> >> execute goal
>> >> >>> >> org.apache.maven.plugins:maven-dependency-plugin:2.4:copy-dependen
>> >> >>> >> cie
>> >> >>> >> s
>> >> >>> >> (copy-dependencies) on project stand-alone: Error copying artifact
>> >> >>> >> from
>> >> >>> >> F:\work\7832e3bc4d2f257b\dashboard-core\target\classes to
>> >> >>>
>> >> >>> F:\work\7832e3bc4d2f257b\stand-alone\target\stand-alone-4.4-SNAPSHOT\
>> >> >>> pac
>> >> >>> kage>>>
>> >> >>>
>> >> >>> >> s\dashboard-core-4.4-SNAPSHOT.jar:
>> >> >>> >> F:\work\7832e3bc4d2f257b\dashboard-core\target\classes (Access is
>> >> >>> >> denied) -> [Help 1]
>> >> >>> >> [13:52:12]
>> >> >>> >>
>> >> >>> >> ------------------------------------------------------------------
>> >> >>> >> ---
>> >> >>> >> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
>> >> >>> >> For additional commands, e-mail: users-h...@maven.apache.org
>> >> >>> >
>> >> >>> > -------------------------------------------------------------------
>> >> >>> > --
>> >> >>> > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
>> >> >>> > For additional commands, e-mail: users-h...@maven.apache.org
>> >> >>>
>> >> >>> ---------------------------------------------------------------------
>> >> >>> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
>> >> >>> For additional commands, e-mail: users-h...@maven.apache.org
>> >> >>
>> >> >> --
>> >> >> Adrien Rivard
>> >> >> 06 63 08 79 74
>> >>
>> >> ---------------------------------------------------------------------
>> >> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
>> >> For additional commands, e-mail: users-h...@maven.apache.org
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
>> > For additional commands, e-mail: users-h...@maven.apache.org
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
>> For additional commands, e-mail: users-h...@maven.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

Reply via email to