ACCUMULO-2019 Fix packaging and deployment instructions for wikisearch query interface.
* update directions for project move to contrib * update $ACCUMULO_HOME/lib/ext needs based on what ships with current Accumulo installation. * update the dependencies included in the query dist tarball for the hadoop 2 profile. Project: http://git-wip-us.apache.org/repos/asf/accumulo-wikisearch/repo Commit: http://git-wip-us.apache.org/repos/asf/accumulo-wikisearch/commit/1e4a40bc Tree: http://git-wip-us.apache.org/repos/asf/accumulo-wikisearch/tree/1e4a40bc Diff: http://git-wip-us.apache.org/repos/asf/accumulo-wikisearch/diff/1e4a40bc Branch: refs/heads/master Commit: 1e4a40bcc6cd11100def006f26037dbe0cd14e71 Parents: bcf16ab Author: Sean Busbey <bus...@clouderagovt.com> Authored: Fri Dec 13 14:30:59 2013 -0600 Committer: Sean Busbey <bus...@cloudera.com> Committed: Mon Mar 10 10:16:15 2014 -0500 ---------------------------------------------------------------------- README | 6 ++---- query/pom.xml | 23 +++++++++++++++++++++++ 2 files changed, 25 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/accumulo-wikisearch/blob/1e4a40bc/README ---------------------------------------------------------------------- diff --git a/README b/README index 869f5e7..ad28cdc 100644 --- a/README +++ b/README @@ -38,11 +38,11 @@ 1. Copy the query/src/main/resources/META-INF/ejb-jar.xml.example file to query/src/main/resources/META-INF/ejb-jar.xml. Modify to the file to contain the same information that you put into the wikipedia.xml file from the Ingest step above. - 2. Re-build the query distribution by running 'mvn package assembly:single' in the top-level directory. + 2. Re-build the query distribution by running 'mvn package assembly:single' in the query module's directory. 3. Untar the resulting file in the $JBOSS_HOME/server/default directory. $ cd $JBOSS_HOME/server/default - $ tar -xzf $ACCUMULO_HOME/src/examples/wikisearch/query/target/wikisearch-query*.tar.gz + $ tar -xzf /some/path/to/wikisearch/query/target/wikisearch-query*.tar.gz This will place the dependent jars in the lib directory and the EJB jar into the deploy directory. 4. Next, copy the wikisearch*.war file in the query-war/target directory to $JBOSS_HOME/server/default/deploy. @@ -51,11 +51,9 @@ setauths -u <user> -s all,enwiki,eswiki,frwiki,fawiki 7. Copy the following jars to the $ACCUMULO_HOME/lib/ext directory from the $JBOSS_HOME/server/default/lib directory: - commons-lang*.jar kryo*.jar minlog*.jar commons-jexl*.jar - guava*.jar 8. Copy the $JBOSS_HOME/server/default/deploy/wikisearch-query*.jar to $ACCUMULO_HOME/lib/ext. http://git-wip-us.apache.org/repos/asf/accumulo-wikisearch/blob/1e4a40bc/query/pom.xml ---------------------------------------------------------------------- diff --git a/query/pom.xml b/query/pom.xml index d2f75ea..eb932f9 100644 --- a/query/pom.xml +++ b/query/pom.xml @@ -175,6 +175,29 @@ <artifactId>hadoop-client</artifactId> </dependency> </dependencies> + <build> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-dependency-plugin</artifactId> + <executions> + <execution> + <id>copy-dependencies</id> + <phase>process-resources</phase> + <goals> + <goal>copy-dependencies</goal> + </goals> + <configuration> + <outputDirectory>lib</outputDirectory> + <!-- just grab the non-provided runtime dependencies --> + <includeArtifactIds>commons-lang,commons-codec,protobuf-java,libthrift,zookeeper,hadoop-client,hadoop-common,hadoop-hdfs,commons-jexl,guava,kryo,asm,minlog,reflectasm,wikisearch-ingest,accumulo-core,cloudtrace</includeArtifactIds> + <excludeTransitive>false</excludeTransitive> + </configuration> + </execution> + </executions> + </plugin> + </plugins> + </build> </profile> </profiles>