From users-return-130275-apmail-maven-users-archive=maven.apache.org@maven.apache.org Fri Dec 7 00:14:27 2012 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 DB767D789 for ; Fri, 7 Dec 2012 00:14:27 +0000 (UTC) Received: (qmail 36230 invoked by uid 500); 7 Dec 2012 00:14:25 -0000 Delivered-To: apmail-maven-users-archive@maven.apache.org Received: (qmail 36154 invoked by uid 500); 7 Dec 2012 00:14:24 -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 36145 invoked by uid 99); 7 Dec 2012 00:14:24 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Dec 2012 00:14:24 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [82.216.111.41] (HELO smtp5.tech.numericable.fr) (82.216.111.41) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Dec 2012 00:14:18 +0000 Received: from bigmax.localnet (81-64-107-131.rev.numericable.fr [81.64.107.131]) by smtp5.tech.numericable.fr (Postfix) with ESMTP id 0906B124004 for ; Fri, 7 Dec 2012 01:13:55 +0100 (CET) From: =?ISO-8859-1?Q?Herv=E9?= BOUTEMY To: Maven Users List Subject: Re: Maven site build errors Date: Fri, 07 Dec 2012 01:13:55 +0100 Message-ID: <1533396.uaHhM397Rl@bigmax> User-Agent: KMail/4.8.5 (Linux/3.2.0-34-generic; KDE/4.8.5; x86_64; ; ) In-Reply-To: References: <1396645.vkpQUvOtFI@bigmax> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="iso-8859-1" X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrfeehiedrudegucetufdoteggodetrfcurfhrohhfihhlvgemucfpfgfogfftkfevteeunffgnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd X-Virus-Checked: Checked by ClamAV on apache.org 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=20 executed before the site tries to use the result artifacts Regards, Herv=E9 Le jeudi 6 d=E9cembre 2012 13:26:34 David Hoffer a =E9crit : > Sure here is the build log from the site build (regular build works).= >=20 > [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-dependencie= s > (copy-dependencies) on project stand-alone: Error copying artifact fr= om > C:\svn\chat-dashboard\trunk\dashboard-core\target\classes to > C:\svn\chat-dashboard\trunk\stand-alone\target\stand-alone-4.4-SNAPSH= OT\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.buildProje= ct(Lif > ecycleModuleBuilder.java:84) at > org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProje= ct(Lif > ecycleModuleBuilder.java:59) at > org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBu= ild(Li > fecycleStarter.java:183) at > org.apache.maven.lifecycle.internal.LifecycleStarter.execute(Lifecycl= eStart > 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(DelegatingMethodAcces= sorImp > l.java:43) at java.lang.reflect.Method.invoke(Method.java:601) > at > org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Laun= cher.j > ava: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: failed to = get > report for org.apache.maven.plugins:maven-surefire-report-plugin at > org.apache.maven.reporting.exec.DefaultMavenReportExecutor.buildMaven= Report > s(DefaultMavenReportExecutor.java:156) at > org.apache.maven.plugins.site.AbstractSiteRenderingMojo.getReports(Ab= stract > SiteRenderingMojo.java:235) at > org.apache.maven.plugins.site.SiteMojo.execute(SiteMojo.java:121) at > org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(Default= BuildP > 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-dependencie= s > (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-SNAPSH= OT\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.executeForkedExecuti= ons(Mo > joExecutor.java:365) at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeForkedExec= utions > (DefaultLifecycleExecutor.java:173) at > org.apache.maven.reporting.exec.DefaultMavenReportExecutor.buildRepor= tPlugi > n(DefaultMavenReportExecutor.java:284) at > org.apache.maven.reporting.exec.DefaultMavenReportExecutor.buildMaven= Report > 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-SNAPSH= OT\pack > ages\dashboard-core-4.4-SNAPSHOT.jar at > org.apache.maven.plugin.dependency.AbstractDependencyMojo.copyFile(Ab= stract > DependencyMojo.java:197) at > org.apache.maven.plugin.dependency.CopyDependenciesMojo.copyArtifact(= CopyDe > pendenciesMojo.java:197) at > org.apache.maven.plugin.dependency.CopyDependenciesMojo.execute(CopyD= epende > nciesMojo.java:89) at > org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(Default= BuildP > 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.(FileInputStream.java:138) > at > org.codehaus.plexus.util.io.FileInputStreamFacade.getInputStream(File= InputS > treamFacade.java:36) at > org.codehaus.plexus.util.FileUtils.copyStreamToFile(FileUtils.java:11= 41) at > org.codehaus.plexus.util.FileUtils.copyFile(FileUtils.java:1048) at > org.apache.maven.plugin.dependency.AbstractDependencyMojo.copyFile(Ab= stract > DependencyMojo.java:192) ... 33 more > [ERROR] >=20 >=20 > 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-dependencie= s > (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-SNAPSH= OT\pack > ages\dashboard-core-4.4-SNAPSHOT.jar >=20 > Why is copying from classes? And why is it copying to jar (or is tha= t > just one of the files it is copying to the packages folder)? My pom > for this part is defined as: >=20 > > copy-dependencies > generate-resources > > copy-dependencies > > > runtime >=20 > ${project.build.directory}/${project.build.finalName= }/packa > ges true > true > true > >=20 > 2. Caused by: java.io.FileNotFoundException: > C:\svn\chat-dashboard\trunk\dashboard-core\target\classes (Access is > denied) >=20 > 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 i= t > 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. >=20 > 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-dependencie= s > (copy-dependencies) on project stand-alone: >=20 > 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 goa= l > and is doing so in an invalid manor? >=20 > -Dave >=20 > On Thu, Dec 6, 2012 at 11:06 AM, Herv=E9 BOUTEMY =20 wrote: > > if you run with mvn -X and give us the full stack trace, perhaps we= can > > see > > what's going wrong > >=20 > > Le jeudi 6 d=E9cembre 2012 06:34:52 David Hoffer a =E9crit : > >> 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 co= pies > >> 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. > >>=20 > >> On Thu, Dec 6, 2012 at 6:22 AM, David Hoffer = 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. > >> >=20 > >> > We are using Maven3...perhaps the site build spawns other proces= ses > >> > and there is a conflict between them? > >> >=20 > >> > On Thu, Dec 6, 2012 at 5:53 AM, Adrien Rivard > >=20 > > wrote: > >> >> Most probably, it means that one of the file is used by another= > >> >> application, thus cannot be deleted. > >> >>=20 > >> >> 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 sy= stems > >> >>> 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. > >> >>>=20 > >> >>> -Dave > >> >>>=20 > >> >>> On Wed, Dec 5, 2012 at 11:23 PM, Herv=E9 BOUTEMY > >> >>> > >> >>>=20 > >> >>> wrote: > >> >>> > please read the last two lines > >> >>> >=20 > >> >>> >> F:\work\7832e3bc4d2f257b\dashboard-core\target\classes (Acc= ess is > >> >>> >> denied) > >> >>> >=20 > >> >>> > Le mercredi 5 d=E9cembre 2012 15:00:24 David Hoffer a =E9cri= t : > >> >>> >> I have a multi-module maven build and can't get the site bu= ild to > >> >>> >> work. It's currently failing with this error. The module = its > >> >>> >> failing > >> >>> >> on, stand-alone, doesn't have any code just packages assemb= lies, > >> >>> >> etc. > >> >>> >>=20 > >> >>> >> Any ideas what is causing this? > >> >>> >>=20 > >> >>> >> Failed to execute goal > >> >>> >> org.apache.maven.plugins:maven-site-plugin:3.2:site (defaul= t-site) > >> >>> >> on > >> >>> >> project stand-alone: failed to get report for > >> >>> >> org.apache.maven.plugins:maven-surefire-report-plugin > >> >>> >>=20 > >> >>> >> [ERROR] Failed to execute goal > >> >>> >> org.apache.maven.plugins:maven-site-plugin:3.2:site (defaul= t-site) > >> >>> >> on > >> >>> >> project stand-alone: failed to get report for > >> >>> >> org.apache.maven.plugins:maven-surefire-report-plugin: Fail= ed to > >> >>> >> execute goal > >> >>> >> org.apache.maven.plugins:maven-dependency-plugin:2.4:copy-d= ependen > >> >>> >> cie > >> >>> >> s > >> >>> >> (copy-dependencies) on project stand-alone: Error copying a= rtifact > >> >>> >> from > >> >>> >> F:\work\7832e3bc4d2f257b\dashboard-core\target\classes to > >> >>>=20 > >> >>> F:\work\7832e3bc4d2f257b\stand-alone\target\stand-alone-4.4-SN= APSHOT\ > >> >>> pac > >> >>> kage>>> > >> >>>=20 > >> >>> >> s\dashboard-core-4.4-SNAPSHOT.jar: > >> >>> >> F:\work\7832e3bc4d2f257b\dashboard-core\target\classes (Acc= ess is > >> >>> >> denied) -> [Help 1] > >> >>> >> [13:52:12] > >> >>> >>=20 > >> >>> >> -----------------------------------------------------------= ------- > >> >>> >> --- > >> >>> >> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org > >> >>> >> For additional commands, e-mail: users-help@maven.apache.or= g > >> >>> >=20 > >> >>> > ------------------------------------------------------------= ------- > >> >>> > -- > >> >>> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org > >> >>> > For additional commands, e-mail: users-help@maven.apache.org= > >> >>>=20 > >> >>> --------------------------------------------------------------= ------- > >> >>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org > >> >>> For additional commands, e-mail: users-help@maven.apache.org > >> >>=20 > >> >> -- > >> >> Adrien Rivard > >> >> 06 63 08 79 74 > >>=20 > >> ------------------------------------------------------------------= --- > >> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org > >> For additional commands, e-mail: users-help@maven.apache.org > >=20 > > -------------------------------------------------------------------= -- > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org > > For additional commands, e-mail: users-help@maven.apache.org >=20 > ---------------------------------------------------------------------= > 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