accumulo-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sean Busbey (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (ACCUMULO-1882) wikisearch-ingest module fails to build
Date Tue, 17 Dec 2013 15:20:10 GMT

     [ https://issues.apache.org/jira/browse/ACCUMULO-1882?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Sean Busbey updated ACCUMULO-1882:
----------------------------------

    Attachment: ACCUMULO-1882.1.patch.txt

This error is caused by an open bug in the dependency plugin, [MDEP-187|http://jira.codehaus.org/browse/MDEP-187].
The suggested work-around is to attach the dependency-copy task to prepare-package.

This patch does that. It allows maven to be invoked against compile, test, and package with
correct behavior (i.e. the lib directory made only that last case).

Invoking prepare-package directly still fails on the query module (because the ingest module
has not built a jar), but according to the ticket there is no way to solve this.

> wikisearch-ingest module fails to build
> ---------------------------------------
>
>                 Key: ACCUMULO-1882
>                 URL: https://issues.apache.org/jira/browse/ACCUMULO-1882
>             Project: Accumulo
>          Issue Type: Improvement
>          Components: wikisearch
>         Environment: commit 6648056cac0a3d271744ab322e8fede221c1f792
>            Reporter: Mike Drob
>            Assignee: Sean Busbey
>            Priority: Minor
>             Fix For: 1.4.5
>
>         Attachments: ACCUMULO-1882.1.patch.txt
>
>
> When running {{mvn clean prepare-package -Dmaven.test.skip -X}} on a clean checkout of
{{6648056cac0a3d271744ab322e8fede221c1f792}} I get the following error:
> {noformat}
> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:2.1:copy-dependencies
(copy-dependencies) on project wikisearch-ingest: Error copying artifact from /home/mike/workspace/accumulo/src/core/target/classes
to /home/mike/workspace/accumulo/src/examples/wikisearch/ingest/lib/classes: /home/mike/workspace/accumulo/src/core/target/classes
(Is a directory) -> [Help 1]
> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:2.1:copy-dependencies
(copy-dependencies) on project wikisearch-ingest: Error copying artifact from /home/mike/workspace/accumulo/src/core/target/classes
to /home/mike/workspace/accumulo/src/examples/wikisearch/ingest/lib/classes
> 	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(LifecycleModuleBuilder.java:84)
> 	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
> 	at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
> 	at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.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(DelegatingMethodAccessorImpl.java:43)
> 	at java.lang.reflect.Method.invoke(Method.java:606)
> 	at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java: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: Error copying artifact from
/home/mike/workspace/accumulo/src/core/target/classes to /home/mike/workspace/accumulo/src/examples/wikisearch/ingest/lib/classes
> 	at org.apache.maven.plugin.dependency.AbstractDependencyMojo.copyFile(AbstractDependencyMojo.java:194)
> 	at org.apache.maven.plugin.dependency.CopyDependenciesMojo.copyArtifact(CopyDependenciesMojo.java:186)
> 	at org.apache.maven.plugin.dependency.CopyDependenciesMojo.execute(CopyDependenciesMojo.java:85)
> 	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
> 	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
> 	... 19 more
> Caused by: java.io.FileNotFoundException: /home/mike/workspace/accumulo/src/core/target/classes
(Is a directory)
> 	at java.io.FileInputStream.open(Native Method)
> 	at java.io.FileInputStream.<init>(FileInputStream.java:146)
> 	at org.codehaus.plexus.util.FileUtils.copyFile(FileUtils.java:929)
> 	at org.apache.maven.plugin.dependency.AbstractDependencyMojo.copyFile(AbstractDependencyMojo.java:189)
> 	... 23 more
> {noformat}
> Environment:
> {noformat}
> Apache Maven 3.0.5 (r01de14724cdef164cd33c7c8c2fe155faf9602da; 2013-02-19 08:51:28-0500)
> Maven home: /opt/apache-maven-3.0.5
> Java version: 1.7.0_45, vendor: Oracle Corporation
> Java home: /usr/lib/jvm/java-7-oracle/jre
> Default locale: en_US, platform encoding: UTF-8
> OS name: "linux", version: "3.8.0-32-generic", arch: "amd64", family: "unix"
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.1.4#6159)

Mime
View raw message