Return-Path: X-Original-To: apmail-maven-users-archive@www.apache.org Delivered-To: apmail-maven-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 331ECD5B3 for ; Tue, 11 Dec 2012 14:46:01 +0000 (UTC) Received: (qmail 92205 invoked by uid 500); 11 Dec 2012 14:45:59 -0000 Delivered-To: apmail-maven-users-archive@maven.apache.org Received: (qmail 91906 invoked by uid 500); 11 Dec 2012 14:45:58 -0000 Mailing-List: contact users-help@maven.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Maven Users List" Reply-To: "Maven Users List" Delivered-To: mailing list users@maven.apache.org Received: (qmail 91869 invoked by uid 99); 11 Dec 2012 14:45:57 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Dec 2012 14:45:57 +0000 X-ASF-Spam-Status: No, hits=-0.5 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of dhoffer6@gmail.com designates 209.85.215.171 as permitted sender) Received: from [209.85.215.171] (HELO mail-ea0-f171.google.com) (209.85.215.171) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Dec 2012 14:45:52 +0000 Received: by mail-ea0-f171.google.com with SMTP id n10so1837446eaa.30 for ; Tue, 11 Dec 2012 06:45:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=k83pVAOn3R7fXxEEhrc2GTayjEYiXygi6KGdAThEAN8=; b=BgpLC6pSe6/d9QThPITZLw5c2RwPlc8rK5THSvtyM2EDvLBZ7SQszamMaHergp6G2w ON+F/zHhqfLgcw5vwhnx5+uJpa5fU1tgeGqIbSE/RGRraqmHYNLRsDmF+GvU7vxT6vBD 6q9dcxomlXK+GJ5yEbcU5X1Xowktlv8k58zHfb/au3z8ByWTan7wGlD4rABvDVKFq0lv xzK6Gg5IfpyL5R8WmDtFOtx8KSrOpOa17rpoXK6pjB1mGAabqG7vMK/aOTnlcKZnoAez nsVStg8r7h7DeEsnjdv/R/0XCi4sU41YVj8C5xlO1rxGjdUxPoRcYdlZOD7tirlSnuuz ktxg== MIME-Version: 1.0 Received: by 10.14.223.200 with SMTP id v48mr61215629eep.24.1355237130592; Tue, 11 Dec 2012 06:45:30 -0800 (PST) Received: by 10.223.151.197 with HTTP; Tue, 11 Dec 2012 06:45:30 -0800 (PST) In-Reply-To: <1533396.uaHhM397Rl@bigmax> References: <1396645.vkpQUvOtFI@bigmax> <1533396.uaHhM397Rl@bigmax> Date: Tue, 11 Dec 2012 07:45:30 -0700 Message-ID: Subject: Re: Maven site build errors From: David Hoffer To: Maven Users List Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Yes this has fixed this issue, thank you! -Dave On Thu, Dec 6, 2012 at 5:13 PM, Herv=C3=A9 BOUTEMY = 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 p= hase > executed before the site tries to use the result artifacts > > Regards, > > Herv=C3=A9 > > Le jeudi 6 d=C3=A9cembre 2012 13:26:34 David Hoffer a =C3=A9crit : >> 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.ja= va: >> 217) at >> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.ja= va: >> 153) at >> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.ja= va: >> 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(LifecycleSt= art >> 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.jav= a:5 >> 7) at >> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor= Imp >> l.java:43) at java.lang.reflect.Method.invoke(Method.java:601) >> at >> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launche= r.j >> ava:290) at >> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:2= 30) >> at >> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launc= her >> .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.buildMavenRep= ort >> s(DefaultMavenReportExecutor.java:156) at >> org.apache.maven.plugins.site.AbstractSiteRenderingMojo.getReports(Abstr= act >> SiteRenderingMojo.java:235) at >> org.apache.maven.plugins.site.SiteMojo.execute(SiteMojo.java:121) at >> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBui= ldP >> luginManager.java:101) at >> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.ja= va: >> 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.ja= va: >> 217) at >> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.ja= va: >> 153) at >> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.ja= va: >> 145) at >> org.apache.maven.lifecycle.internal.MojoExecutor.executeForkedExecutions= (Mo >> joExecutor.java:365) at >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeForkedExecuti= ons >> (DefaultLifecycleExecutor.java:173) at >> org.apache.maven.reporting.exec.DefaultMavenReportExecutor.buildReportPl= ugi >> n(DefaultMavenReportExecutor.java:284) at >> org.apache.maven.reporting.exec.DefaultMavenReportExecutor.buildMavenRep= ort >> 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(Abstr= act >> DependencyMojo.java:197) at >> org.apache.maven.plugin.dependency.CopyDependenciesMojo.copyArtifact(Cop= yDe >> pendenciesMojo.java:197) at >> org.apache.maven.plugin.dependency.CopyDependenciesMojo.execute(CopyDepe= nde >> nciesMojo.java:89) at >> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBui= ldP >> luginManager.java:101) at >> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.ja= va: >> 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.(FileInputStream.java:138) >> at >> org.codehaus.plexus.util.io.FileInputStreamFacade.getInputStream(FileInp= utS >> 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(Abstr= act >> 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: >> >> >> copy-dependencies >> generate-resources >> >> copy-dependencies >> >> >> runtime >> >> ${project.build.directory}/${project.build.finalName}/p= acka >> ges true >> true >> true >> >> >> 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-SNA= PSHO >> 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=C3=A9 BOUTEMY > wrote: >> > if you run with mvn -X and give us the full stack trace, perhaps we ca= n >> > see >> > what's going wrong >> > >> > Le jeudi 6 d=C3=A9cembre 2012 06:34:52 David Hoffer a =C3=A9crit : >> >> 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 copie= s >> >> 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 thi= s >> >> just for the site build. >> >> >> >> On Thu, Dec 6, 2012 at 6:22 AM, David Hoffer wro= te: >> >> > 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 no= t >> >> > 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 >> > >> > 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 = wrote: >> >> >>> Those last two lines make no sense to me as this happens on syste= ms >> >> >>> with Admin/root permissions. There doesn't seem to be any way th= is >> >> >>> 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=C3=A9 BOUTEMY >> >> >>> >> >> >>> >> >> >>> wrote: >> >> >>> > please read the last two lines >> >> >>> > >> >> >>> >> F:\work\7832e3bc4d2f257b\dashboard-core\target\classes (Access= is >> >> >>> >> denied) >> >> >>> > >> >> >>> > Le mercredi 5 d=C3=A9cembre 2012 15:00:24 David Hoffer a =C3=A9= 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 assemblie= s, >> >> >>> >> etc. >> >> >>> >> >> >> >>> >> Any ideas what is causing this? >> >> >>> >> >> >> >>> >> Failed to execute goal >> >> >>> >> org.apache.maven.plugins:maven-site-plugin:3.2:site (default-s= ite) >> >> >>> >> 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-s= ite) >> >> >>> >> 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-depe= nden >> >> >>> >> cie >> >> >>> >> s >> >> >>> >> (copy-dependencies) on project stand-alone: Error copying arti= fact >> >> >>> >> from >> >> >>> >> F:\work\7832e3bc4d2f257b\dashboard-core\target\classes to >> >> >>> >> >> >>> F:\work\7832e3bc4d2f257b\stand-alone\target\stand-alone-4.4-SNAPS= HOT\ >> >> >>> 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-unsubscribe@maven.apache.org >> >> >>> >> For additional commands, e-mail: users-help@maven.apache.org >> >> >>> > >> >> >>> > ---------------------------------------------------------------= ---- >> >> >>> > -- >> >> >>> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org >> >> >>> > For additional commands, e-mail: users-help@maven.apache.org >> >> >>> >> >> >>> -----------------------------------------------------------------= ---- >> >> >>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org >> >> >>> For additional commands, e-mail: users-help@maven.apache.org >> >> >> >> >> >> -- >> >> >> Adrien Rivard >> >> >> 06 63 08 79 74 >> >> >> >> --------------------------------------------------------------------- >> >> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org >> >> For additional commands, e-mail: users-help@maven.apache.org >> > >> > --------------------------------------------------------------------- >> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org >> > For additional commands, e-mail: users-help@maven.apache.org >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org >> For additional commands, e-mail: users-help@maven.apache.org > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org > For additional commands, e-mail: users-help@maven.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@maven.apache.org For additional commands, e-mail: users-help@maven.apache.org