Note that there are some explanatory texts on larger screens.

plurals
  1. POHaving issues with importing Maven projects to Eclipse
    primarykey
    data
    text
    <p>So I checked out hadoop using git and I got all the files no problem. I then issued a mvn install -DskipTests. It said BUILD SUCCESS. Then I went to eclipse and tried to import through maven existing projects. It brought all the files in and then I hit next to move to Setup Mavin plugin connectors. All is green except a red error that says, "hadoop-maven-plugins:3.0.0-SNAPSHOT:version-info" it says it is in hadoop-common/pom.xml and hadoop-yard-commmon/pom.xml. Do you have any idea what this is or how to fix it? Also, I already tried mvn eclipse:eclipse, that's why I'm trying to import maven now. Hopefully if I get this issue correct, I can FINALLY build hadoop cleanly. Here is my pom for common: The one for Yarn is long as well. Probably over the posting limit. </p> <p>So for now I'll just post the Common.</p> <pre><code> &lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;!-- Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. See accompanying LICENSE file. --&gt; &lt;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"&gt; &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt; &lt;parent&gt; &lt;groupId&gt;org.apache.hadoop&lt;/groupId&gt; &lt;artifactId&gt;hadoop-project-dist&lt;/artifactId&gt; &lt;version&gt;3.0.0-SNAPSHOT&lt;/version&gt; &lt;relativePath&gt;../../hadoop-project-dist&lt;/relativePath&gt; &lt;/parent&gt; &lt;groupId&gt;org.apache.hadoop&lt;/groupId&gt; &lt;artifactId&gt;hadoop-common&lt;/artifactId&gt; &lt;version&gt;3.0.0-SNAPSHOT&lt;/version&gt; &lt;description&gt;Apache Hadoop Common&lt;/description&gt; &lt;name&gt;Apache Hadoop Common&lt;/name&gt; &lt;packaging&gt;jar&lt;/packaging&gt; &lt;properties&gt; &lt;kdc.resource.dir&gt;src/test/resources/kdc&lt;/kdc.resource.dir&gt; &lt;hadoop.component&gt;common&lt;/hadoop.component&gt; &lt;is.hadoop.component&gt;true&lt;/is.hadoop.component&gt; &lt;/properties&gt; &lt;dependencies&gt; &lt;dependency&gt; &lt;groupId&gt;org.apache.hadoop&lt;/groupId&gt; &lt;artifactId&gt;hadoop-annotations&lt;/artifactId&gt; &lt;scope&gt;compile&lt;/scope&gt; &lt;/dependency&gt; &lt;dependency&gt; &lt;groupId&gt;com.google.guava&lt;/groupId&gt; &lt;artifactId&gt;guava&lt;/artifactId&gt; &lt;scope&gt;compile&lt;/scope&gt; &lt;/dependency&gt; &lt;dependency&gt; &lt;groupId&gt;commons-cli&lt;/groupId&gt; &lt;artifactId&gt;commons-cli&lt;/artifactId&gt; &lt;scope&gt;compile&lt;/scope&gt; &lt;/dependency&gt; &lt;dependency&gt; &lt;groupId&gt;org.apache.commons&lt;/groupId&gt; &lt;artifactId&gt;commons-math&lt;/artifactId&gt; &lt;scope&gt;compile&lt;/scope&gt; &lt;/dependency&gt; &lt;dependency&gt; &lt;groupId&gt;xmlenc&lt;/groupId&gt; &lt;artifactId&gt;xmlenc&lt;/artifactId&gt; &lt;scope&gt;compile&lt;/scope&gt; &lt;/dependency&gt; &lt;dependency&gt; &lt;groupId&gt;commons-httpclient&lt;/groupId&gt; &lt;artifactId&gt;commons-httpclient&lt;/artifactId&gt; &lt;scope&gt;compile&lt;/scope&gt; &lt;/dependency&gt; &lt;dependency&gt; &lt;groupId&gt;commons-codec&lt;/groupId&gt; &lt;artifactId&gt;commons-codec&lt;/artifactId&gt; &lt;scope&gt;compile&lt;/scope&gt; &lt;/dependency&gt; &lt;dependency&gt; &lt;groupId&gt;commons-io&lt;/groupId&gt; &lt;artifactId&gt;commons-io&lt;/artifactId&gt; &lt;scope&gt;compile&lt;/scope&gt; &lt;/dependency&gt; &lt;dependency&gt; &lt;groupId&gt;commons-net&lt;/groupId&gt; &lt;artifactId&gt;commons-net&lt;/artifactId&gt; &lt;scope&gt;compile&lt;/scope&gt; &lt;/dependency&gt; &lt;dependency&gt; &lt;groupId&gt;javax.servlet&lt;/groupId&gt; &lt;artifactId&gt;servlet-api&lt;/artifactId&gt; &lt;scope&gt;compile&lt;/scope&gt; &lt;/dependency&gt; &lt;dependency&gt; &lt;groupId&gt;org.mortbay.jetty&lt;/groupId&gt; &lt;artifactId&gt;jetty&lt;/artifactId&gt; &lt;scope&gt;compile&lt;/scope&gt; &lt;/dependency&gt; &lt;dependency&gt; &lt;groupId&gt;org.mortbay.jetty&lt;/groupId&gt; &lt;artifactId&gt;jetty-util&lt;/artifactId&gt; &lt;scope&gt;compile&lt;/scope&gt; &lt;/dependency&gt; &lt;dependency&gt; &lt;groupId&gt;com.sun.jersey&lt;/groupId&gt; &lt;artifactId&gt;jersey-core&lt;/artifactId&gt; &lt;scope&gt;compile&lt;/scope&gt; &lt;/dependency&gt; &lt;dependency&gt; &lt;!-- Used, even though 'mvn dependency:analyze' doesn't find it --&gt; &lt;groupId&gt;com.sun.jersey&lt;/groupId&gt; &lt;artifactId&gt;jersey-json&lt;/artifactId&gt; &lt;scope&gt;compile&lt;/scope&gt; &lt;/dependency&gt; &lt;dependency&gt; &lt;groupId&gt;com.sun.jersey&lt;/groupId&gt; &lt;artifactId&gt;jersey-server&lt;/artifactId&gt; &lt;scope&gt;compile&lt;/scope&gt; &lt;/dependency&gt; &lt;dependency&gt; &lt;groupId&gt;tomcat&lt;/groupId&gt; &lt;artifactId&gt;jasper-compiler&lt;/artifactId&gt; &lt;scope&gt;runtime&lt;/scope&gt; &lt;/dependency&gt; &lt;dependency&gt; &lt;groupId&gt;tomcat&lt;/groupId&gt; &lt;artifactId&gt;jasper-runtime&lt;/artifactId&gt; &lt;scope&gt;runtime&lt;/scope&gt; &lt;/dependency&gt; &lt;dependency&gt; &lt;groupId&gt;javax.servlet.jsp&lt;/groupId&gt; &lt;artifactId&gt;jsp-api&lt;/artifactId&gt; &lt;scope&gt;runtime&lt;/scope&gt; &lt;/dependency&gt; &lt;dependency&gt; &lt;groupId&gt;commons-el&lt;/groupId&gt; &lt;artifactId&gt;commons-el&lt;/artifactId&gt; &lt;scope&gt;runtime&lt;/scope&gt; &lt;/dependency&gt; &lt;dependency&gt; &lt;groupId&gt;commons-logging&lt;/groupId&gt; &lt;artifactId&gt;commons-logging&lt;/artifactId&gt; &lt;scope&gt;compile&lt;/scope&gt; &lt;/dependency&gt; &lt;dependency&gt; &lt;groupId&gt;log4j&lt;/groupId&gt; &lt;artifactId&gt;log4j&lt;/artifactId&gt; &lt;scope&gt;compile&lt;/scope&gt; &lt;/dependency&gt; &lt;dependency&gt; &lt;groupId&gt;net.java.dev.jets3t&lt;/groupId&gt; &lt;artifactId&gt;jets3t&lt;/artifactId&gt; &lt;scope&gt;compile&lt;/scope&gt; &lt;/dependency&gt; &lt;dependency&gt; &lt;groupId&gt;junit&lt;/groupId&gt; &lt;artifactId&gt;junit&lt;/artifactId&gt; &lt;scope&gt;test&lt;/scope&gt; &lt;/dependency&gt; &lt;dependency&gt; &lt;groupId&gt;commons-lang&lt;/groupId&gt; &lt;artifactId&gt;commons-lang&lt;/artifactId&gt; &lt;scope&gt;compile&lt;/scope&gt; &lt;/dependency&gt; &lt;dependency&gt; &lt;groupId&gt;commons-configuration&lt;/groupId&gt; &lt;artifactId&gt;commons-configuration&lt;/artifactId&gt; &lt;scope&gt;compile&lt;/scope&gt; &lt;/dependency&gt; &lt;dependency&gt; &lt;groupId&gt;org.slf4j&lt;/groupId&gt; &lt;artifactId&gt;slf4j-api&lt;/artifactId&gt; &lt;scope&gt;compile&lt;/scope&gt; &lt;/dependency&gt; &lt;dependency&gt; &lt;groupId&gt;org.slf4j&lt;/groupId&gt; &lt;artifactId&gt;slf4j-log4j12&lt;/artifactId&gt; &lt;scope&gt;runtime&lt;/scope&gt; &lt;/dependency&gt; &lt;dependency&gt; &lt;groupId&gt;org.codehaus.jackson&lt;/groupId&gt; &lt;artifactId&gt;jackson-core-asl&lt;/artifactId&gt; &lt;scope&gt;compile&lt;/scope&gt; &lt;/dependency&gt; &lt;dependency&gt; &lt;groupId&gt;org.codehaus.jackson&lt;/groupId&gt; &lt;artifactId&gt;jackson-mapper-asl&lt;/artifactId&gt; &lt;scope&gt;compile&lt;/scope&gt; &lt;/dependency&gt; &lt;dependency&gt; &lt;groupId&gt;org.mockito&lt;/groupId&gt; &lt;artifactId&gt;mockito-all&lt;/artifactId&gt; &lt;scope&gt;test&lt;/scope&gt; &lt;/dependency&gt; &lt;dependency&gt; &lt;groupId&gt;org.apache.avro&lt;/groupId&gt; &lt;artifactId&gt;avro&lt;/artifactId&gt; &lt;scope&gt;compile&lt;/scope&gt; &lt;/dependency&gt; &lt;dependency&gt; &lt;groupId&gt;org.apache.ant&lt;/groupId&gt; &lt;artifactId&gt;ant&lt;/artifactId&gt; &lt;scope&gt;provided&lt;/scope&gt; &lt;/dependency&gt; &lt;dependency&gt; &lt;groupId&gt;com.google.protobuf&lt;/groupId&gt; &lt;artifactId&gt;protobuf-java&lt;/artifactId&gt; &lt;scope&gt;compile&lt;/scope&gt; &lt;/dependency&gt; &lt;dependency&gt; &lt;groupId&gt;org.apache.hadoop&lt;/groupId&gt; &lt;artifactId&gt;hadoop-auth&lt;/artifactId&gt; &lt;scope&gt;compile&lt;/scope&gt; &lt;/dependency&gt; &lt;dependency&gt; &lt;groupId&gt;com.jcraft&lt;/groupId&gt; &lt;artifactId&gt;jsch&lt;/artifactId&gt; &lt;/dependency&gt; &lt;dependency&gt; &lt;groupId&gt;org.apache.zookeeper&lt;/groupId&gt; &lt;artifactId&gt;zookeeper&lt;/artifactId&gt; &lt;version&gt;3.4.2&lt;/version&gt; &lt;exclusions&gt; &lt;exclusion&gt; &lt;!-- otherwise seems to drag in junit 3.8.1 via jline --&gt; &lt;groupId&gt;junit&lt;/groupId&gt; &lt;artifactId&gt;junit&lt;/artifactId&gt; &lt;/exclusion&gt; &lt;exclusion&gt; &lt;groupId&gt;com.sun.jdmk&lt;/groupId&gt; &lt;artifactId&gt;jmxtools&lt;/artifactId&gt; &lt;/exclusion&gt; &lt;exclusion&gt; &lt;groupId&gt;com.sun.jmx&lt;/groupId&gt; &lt;artifactId&gt;jmxri&lt;/artifactId&gt; &lt;/exclusion&gt; &lt;/exclusions&gt; &lt;/dependency&gt; &lt;dependency&gt; &lt;groupId&gt;org.apache.zookeeper&lt;/groupId&gt; &lt;artifactId&gt;zookeeper&lt;/artifactId&gt; &lt;version&gt;3.4.2&lt;/version&gt; &lt;type&gt;test-jar&lt;/type&gt; &lt;scope&gt;test&lt;/scope&gt; &lt;/dependency&gt; &lt;dependency&gt; &lt;groupId&gt;org.apache.commons&lt;/groupId&gt; &lt;artifactId&gt;commons-compress&lt;/artifactId&gt; &lt;version&gt;1.4&lt;/version&gt; &lt;/dependency&gt; &lt;/dependencies&gt; &lt;build&gt; &lt;!-- Include all files in src/main/resources. By default, do not apply property substitution (filtering=false), but do apply property substitution to common-version-info.properties (filtering=true). This will substitute the version information correctly, but prevent Maven from altering other files like core-default.xml. --&gt; &lt;resources&gt; &lt;resource&gt; &lt;directory&gt;${basedir}/src/main/resources&lt;/directory&gt; &lt;excludes&gt; &lt;exclude&gt;common-version-info.properties&lt;/exclude&gt; &lt;/excludes&gt; &lt;filtering&gt;false&lt;/filtering&gt; &lt;/resource&gt; &lt;resource&gt; &lt;directory&gt;${basedir}/src/main/resources&lt;/directory&gt; &lt;includes&gt; &lt;include&gt;common-version-info.properties&lt;/include&gt; &lt;/includes&gt; &lt;filtering&gt;true&lt;/filtering&gt; &lt;/resource&gt; &lt;/resources&gt; &lt;plugins&gt; &lt;plugin&gt; &lt;groupId&gt;org.apache.hadoop&lt;/groupId&gt; &lt;artifactId&gt;hadoop-maven-plugins&lt;/artifactId&gt; &lt;executions&gt; &lt;execution&gt; &lt;id&gt;version-info&lt;/id&gt; &lt;phase&gt;generate-resources&lt;/phase&gt; &lt;goals&gt; &lt;goal&gt;version-info&lt;/goal&gt; &lt;/goals&gt; &lt;configuration&gt; &lt;source&gt; &lt;directory&gt;${basedir}/src/main&lt;/directory&gt; &lt;includes&gt; &lt;include&gt;java/**/*.java&lt;/include&gt; &lt;include&gt;proto/**/*.proto&lt;/include&gt; &lt;/includes&gt; &lt;/source&gt; &lt;/configuration&gt; &lt;/execution&gt; &lt;/executions&gt; &lt;/plugin&gt; &lt;plugin&gt; &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt; &lt;artifactId&gt;maven-surefire-plugin&lt;/artifactId&gt; &lt;configuration&gt; &lt;systemPropertyVariables&gt; &lt;startKdc&gt;${startKdc}&lt;/startKdc&gt; &lt;kdc.resource.dir&gt;${kdc.resource.dir}&lt;/kdc.resource.dir&gt; &lt;/systemPropertyVariables&gt; &lt;properties&gt; &lt;property&gt; &lt;name&gt;listener&lt;/name&gt; &lt;value&gt;org.apache.hadoop.test.TimedOutTestsListener&lt;/value&gt; &lt;/property&gt; &lt;/properties&gt; &lt;/configuration&gt; &lt;/plugin&gt; &lt;plugin&gt; &lt;groupId&gt;org.apache.avro&lt;/groupId&gt; &lt;artifactId&gt;avro-maven-plugin&lt;/artifactId&gt; &lt;executions&gt; &lt;execution&gt; &lt;id&gt;generate-avro-test-sources&lt;/id&gt; &lt;phase&gt;generate-test-sources&lt;/phase&gt; &lt;goals&gt; &lt;goal&gt;schema&lt;/goal&gt; &lt;/goals&gt; &lt;/execution&gt; &lt;/executions&gt; &lt;configuration&gt; &lt;testOutputDirectory&gt;${project.build.directory}/generated-test-sources/java&lt;/testOutputDirectory&gt; &lt;/configuration&gt; &lt;/plugin&gt; &lt;plugin&gt; &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt; &lt;artifactId&gt;maven-antrun-plugin&lt;/artifactId&gt; &lt;executions&gt; &lt;execution&gt; &lt;id&gt;create-protobuf-generated-sources-directory&lt;/id&gt; &lt;phase&gt;initialize&lt;/phase&gt; &lt;goals&gt; &lt;goal&gt;run&lt;/goal&gt; &lt;/goals&gt; &lt;configuration&gt; &lt;target&gt; &lt;mkdir dir="target/generated-sources/java" /&gt; &lt;mkdir dir="target/generated-test-sources/java" /&gt; &lt;/target&gt; &lt;/configuration&gt; &lt;/execution&gt; &lt;execution&gt; &lt;id&gt;generate-test-sources&lt;/id&gt; &lt;phase&gt;generate-test-sources&lt;/phase&gt; &lt;goals&gt; &lt;goal&gt;run&lt;/goal&gt; &lt;/goals&gt; &lt;configuration&gt; &lt;target&gt; &lt;mkdir dir="${project.build.directory}/generated-test-sources/java"/&gt; &lt;taskdef name="recordcc" classname="org.apache.hadoop.record.compiler.ant.RccTask"&gt; &lt;classpath refid="maven.compile.classpath"/&gt; &lt;/taskdef&gt; &lt;recordcc destdir="${project.build.directory}/generated-test-sources/java"&gt; &lt;fileset dir="${basedir}/src/test/ddl" includes="**/*.jr"/&gt; &lt;/recordcc&gt; &lt;/target&gt; &lt;/configuration&gt; &lt;/execution&gt; &lt;execution&gt; &lt;id&gt;create-log-dir&lt;/id&gt; &lt;phase&gt;process-test-resources&lt;/phase&gt; &lt;goals&gt; &lt;goal&gt;run&lt;/goal&gt; &lt;/goals&gt; &lt;configuration&gt; &lt;target&gt; &lt;!-- TODO: there are tests (TestLocalFileSystem#testCopy) that fail if data TODO: from a previous run is present --&gt; &lt;delete dir="${test.build.data}"/&gt; &lt;mkdir dir="${test.build.data}"/&gt; &lt;mkdir dir="${hadoop.log.dir}"/&gt; &lt;copy toDir="${project.build.directory}/test-classes"&gt; &lt;fileset dir="${basedir}/src/main/conf"/&gt; &lt;/copy&gt; &lt;/target&gt; &lt;/configuration&gt; &lt;/execution&gt; &lt;execution&gt; &lt;id&gt;copy-test-tarballs&lt;/id&gt; &lt;phase&gt;process-test-resources&lt;/phase&gt; &lt;goals&gt; &lt;goal&gt;run&lt;/goal&gt; &lt;/goals&gt; &lt;configuration&gt; &lt;target&gt; &lt;copy toDir="${test.cache.data}"&gt; &lt;fileset dir="${basedir}/src/test/java/org/apache/hadoop/fs"&gt; &lt;include name="test-untar.tar"/&gt; &lt;include name="test-untar.tgz"/&gt; &lt;/fileset&gt; &lt;/copy&gt; &lt;/target&gt; &lt;/configuration&gt; &lt;/execution&gt; &lt;execution&gt; &lt;phase&gt;pre-site&lt;/phase&gt; &lt;goals&gt; &lt;goal&gt;run&lt;/goal&gt; &lt;/goals&gt; &lt;configuration&gt; &lt;tasks&gt; &lt;copy file="src/main/resources/core-default.xml" todir="src/site/resources"/&gt; &lt;copy file="src/main/xsl/configuration.xsl" todir="src/site/resources"/&gt; &lt;/tasks&gt; &lt;/configuration&gt; &lt;/execution&gt; &lt;/executions&gt; &lt;/plugin&gt; &lt;plugin&gt; &lt;groupId&gt;org.codehaus.mojo&lt;/groupId&gt; &lt;artifactId&gt;exec-maven-plugin&lt;/artifactId&gt; &lt;executions&gt; &lt;execution&gt; &lt;id&gt;compile-proto&lt;/id&gt; &lt;phase&gt;generate-sources&lt;/phase&gt; &lt;goals&gt; &lt;goal&gt;exec&lt;/goal&gt; &lt;/goals&gt; &lt;configuration&gt; &lt;executable&gt;protoc&lt;/executable&gt; &lt;arguments&gt; &lt;argument&gt;-Isrc/main/proto/&lt;/argument&gt; &lt;argument&gt;--java_out=target/generated-sources/java&lt;/argument&gt; &lt;argument&gt;src/main/proto/HAServiceProtocol.proto&lt;/argument&gt; &lt;argument&gt;src/main/proto/IpcConnectionContext.proto&lt;/argument&gt; &lt;argument&gt;src/main/proto/ProtocolInfo.proto&lt;/argument&gt; &lt;argument&gt;src/main/proto/RpcHeader.proto&lt;/argument&gt; &lt;argument&gt;src/main/proto/ZKFCProtocol.proto&lt;/argument&gt; &lt;argument&gt;src/main/proto/ProtobufRpcEngine.proto&lt;/argument&gt; &lt;argument&gt;src/main/proto/Security.proto&lt;/argument&gt; &lt;/arguments&gt; &lt;/configuration&gt; &lt;/execution&gt; &lt;execution&gt; &lt;id&gt;compile-test-proto&lt;/id&gt; &lt;phase&gt;generate-test-sources&lt;/phase&gt; &lt;goals&gt; &lt;goal&gt;exec&lt;/goal&gt; &lt;/goals&gt; &lt;configuration&gt; &lt;executable&gt;protoc&lt;/executable&gt; &lt;arguments&gt; &lt;argument&gt;-Isrc/test/proto/&lt;/argument&gt; &lt;argument&gt;--java_out=target/generated-test-sources/java&lt;/argument&gt; &lt;argument&gt;src/test/proto/test.proto&lt;/argument&gt; &lt;argument&gt;src/test/proto/test_rpc_service.proto&lt;/argument&gt; &lt;/arguments&gt; &lt;/configuration&gt; &lt;/execution&gt; &lt;/executions&gt; &lt;/plugin&gt; &lt;plugin&gt; &lt;groupId&gt;org.codehaus.mojo&lt;/groupId&gt; &lt;artifactId&gt;build-helper-maven-plugin&lt;/artifactId&gt; &lt;executions&gt; &lt;execution&gt; &lt;id&gt;add-source&lt;/id&gt; &lt;phase&gt;generate-sources&lt;/phase&gt; &lt;goals&gt; &lt;goal&gt;add-source&lt;/goal&gt; &lt;/goals&gt; &lt;configuration&gt; &lt;sources&gt; &lt;source&gt;${project.build.directory}/generated-sources/java&lt;/source&gt; &lt;/sources&gt; &lt;/configuration&gt; &lt;/execution&gt; &lt;execution&gt; &lt;id&gt;add-test-source&lt;/id&gt; &lt;phase&gt;generate-sources&lt;/phase&gt; &lt;goals&gt; &lt;goal&gt;add-test-source&lt;/goal&gt; &lt;/goals&gt; &lt;configuration&gt; &lt;sources&gt; &lt;source&gt;${project.build.directory}/generated-test-sources/java&lt;/source&gt; &lt;/sources&gt; &lt;/configuration&gt; &lt;/execution&gt; &lt;/executions&gt; &lt;/plugin&gt; &lt;plugin&gt; &lt;groupId&gt;org.apache.rat&lt;/groupId&gt; &lt;artifactId&gt;apache-rat-plugin&lt;/artifactId&gt; &lt;configuration&gt; &lt;excludes&gt; &lt;exclude&gt;CHANGES.txt&lt;/exclude&gt; &lt;exclude&gt;.idea/**&lt;/exclude&gt; &lt;exclude&gt;src/main/conf/*&lt;/exclude&gt; &lt;exclude&gt;src/main/docs/**&lt;/exclude&gt; &lt;exclude&gt;dev-support/jdiff/**&lt;/exclude&gt; &lt;exclude&gt;src/main/native/*&lt;/exclude&gt; &lt;exclude&gt;src/main/native/config/*&lt;/exclude&gt; &lt;exclude&gt;src/main/native/m4/*&lt;/exclude&gt; &lt;exclude&gt;src/test/empty-file&lt;/exclude&gt; &lt;exclude&gt;src/test/all-tests&lt;/exclude&gt; &lt;exclude&gt;src/test/resources/kdc/ldif/users.ldif&lt;/exclude&gt; &lt;exclude&gt;src/main/native/src/org/apache/hadoop/io/compress/lz4/lz4.c&lt;/exclude&gt; &lt;exclude&gt;src/test/java/org/apache/hadoop/fs/test-untar.tgz&lt;/exclude&gt; &lt;/excludes&gt; &lt;/configuration&gt; &lt;/plugin&gt; &lt;/plugins&gt; &lt;/build&gt; &lt;profiles&gt; &lt;profile&gt; &lt;id&gt;native&lt;/id&gt; &lt;activation&gt; &lt;activeByDefault&gt;false&lt;/activeByDefault&gt; &lt;/activation&gt; &lt;properties&gt; &lt;snappy.prefix&gt;&lt;/snappy.prefix&gt; &lt;snappy.lib&gt;&lt;/snappy.lib&gt; &lt;snappy.include&gt;&lt;/snappy.include&gt; &lt;require.snappy&gt;false&lt;/require.snappy&gt; &lt;/properties&gt; &lt;build&gt; &lt;plugins&gt; &lt;plugin&gt; &lt;groupId&gt;org.codehaus.mojo&lt;/groupId&gt; &lt;artifactId&gt;native-maven-plugin&lt;/artifactId&gt; &lt;executions&gt; &lt;execution&gt; &lt;phase&gt;compile&lt;/phase&gt; &lt;goals&gt; &lt;goal&gt;javah&lt;/goal&gt; &lt;/goals&gt; &lt;configuration&gt; &lt;javahPath&gt;${env.JAVA_HOME}/bin/javah&lt;/javahPath&gt; &lt;javahClassNames&gt; &lt;javahClassName&gt;org.apache.hadoop.io.compress.zlib.ZlibCompressor&lt;/javahClassName&gt; &lt;javahClassName&gt;org.apache.hadoop.io.compress.zlib.ZlibDecompressor&lt;/javahClassName&gt; &lt;javahClassName&gt;org.apache.hadoop.security.JniBasedUnixGroupsMapping&lt;/javahClassName&gt; &lt;javahClassName&gt;org.apache.hadoop.io.nativeio.NativeIO&lt;/javahClassName&gt; &lt;javahClassName&gt;org.apache.hadoop.security.JniBasedUnixGroupsNetgroupMapping&lt;/javahClassName&gt; &lt;javahClassName&gt;org.apache.hadoop.io.compress.snappy.SnappyCompressor&lt;/javahClassName&gt; &lt;javahClassName&gt;org.apache.hadoop.io.compress.snappy.SnappyDecompressor&lt;/javahClassName&gt; &lt;javahClassName&gt;org.apache.hadoop.io.compress.lz4.Lz4Compressor&lt;/javahClassName&gt; &lt;javahClassName&gt;org.apache.hadoop.io.compress.lz4.Lz4Decompressor&lt;/javahClassName&gt; &lt;javahClassName&gt;org.apache.hadoop.util.NativeCrc32&lt;/javahClassName&gt; &lt;/javahClassNames&gt; &lt;javahOutputDirectory&gt;${project.build.directory}/native/javah&lt;/javahOutputDirectory&gt; &lt;/configuration&gt; &lt;/execution&gt; &lt;/executions&gt; &lt;/plugin&gt; &lt;plugin&gt; &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt; &lt;artifactId&gt;maven-antrun-plugin&lt;/artifactId&gt; &lt;executions&gt; &lt;execution&gt; &lt;id&gt;make&lt;/id&gt; &lt;phase&gt;compile&lt;/phase&gt; &lt;goals&gt;&lt;goal&gt;run&lt;/goal&gt;&lt;/goals&gt; &lt;configuration&gt; &lt;target&gt; &lt;exec executable="cmake" dir="${project.build.directory}/native" failonerror="true"&gt; &lt;arg line="${basedir}/src/ -DGENERATED_JAVAH=${project.build.directory}/native/javah -DJVM_ARCH_DATA_MODEL=${sun.arch.data.model} -DREQUIRE_SNAPPY=${require.snappy} -DCUSTOM_SNAPPY_PREFIX=${snappy.prefix} -DCUSTOM_SNAPPY_LIB=${snappy.lib} -DCUSTOM_SNAPPY_INCLUDE=${snappy.include}"/&gt; &lt;/exec&gt; &lt;exec executable="make" dir="${project.build.directory}/native" failonerror="true"&gt; &lt;arg line="VERBOSE=1"/&gt; &lt;/exec&gt; &lt;!-- The second make is a workaround for HADOOP-9215. It can be removed when version 2.6 of cmake is no longer supported . --&gt; &lt;exec executable="make" dir="${project.build.directory}/native" failonerror="true"&gt;&lt;/exec&gt; &lt;/target&gt; &lt;/configuration&gt; &lt;/execution&gt; &lt;execution&gt; &lt;id&gt;native_tests&lt;/id&gt; &lt;phase&gt;test&lt;/phase&gt; &lt;goals&gt;&lt;goal&gt;run&lt;/goal&gt;&lt;/goals&gt; &lt;configuration&gt; &lt;target&gt; &lt;exec executable="sh" failonerror="true" dir="${project.build.directory}/native"&gt; &lt;arg value="-c"/&gt; &lt;arg value="[ x$SKIPTESTS = xtrue ] || ${project.build.directory}/native/test_bulk_crc32"/&gt; &lt;env key="SKIPTESTS" value="${skipTests}"/&gt; &lt;/exec&gt; &lt;/target&gt; &lt;/configuration&gt; &lt;/execution&gt; &lt;/executions&gt; &lt;/plugin&gt; &lt;/plugins&gt; &lt;/build&gt; &lt;/profile&gt; &lt;!-- profile that starts ApacheDS KDC server --&gt; &lt;profile&gt; &lt;id&gt;startKdc&lt;/id&gt; &lt;activation&gt; &lt;property&gt; &lt;name&gt;startKdc&lt;/name&gt; &lt;value&gt;true&lt;/value&gt; &lt;/property&gt; &lt;/activation&gt; &lt;build&gt; &lt;plugins&gt; &lt;plugin&gt; &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt; &lt;artifactId&gt;maven-enforcer-plugin&lt;/artifactId&gt; &lt;executions&gt; &lt;execution&gt; &lt;id&gt;enforce-os&lt;/id&gt; &lt;goals&gt; &lt;goal&gt;enforce&lt;/goal&gt; &lt;/goals&gt; &lt;configuration&gt; &lt;rules&gt; &lt;!-- At present supports Mac and Unix OS family --&gt; &lt;requireOS&gt; &lt;family&gt;mac&lt;/family&gt; &lt;family&gt;unix&lt;/family&gt; &lt;/requireOS&gt; &lt;/rules&gt; &lt;fail&gt;true&lt;/fail&gt; &lt;/configuration&gt; &lt;/execution&gt; &lt;/executions&gt; &lt;/plugin&gt; &lt;plugin&gt; &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt; &lt;artifactId&gt;maven-antrun-plugin&lt;/artifactId&gt; &lt;executions&gt; &lt;execution&gt; &lt;id&gt;kdc&lt;/id&gt; &lt;phase&gt;compile&lt;/phase&gt; &lt;goals&gt; &lt;goal&gt;run&lt;/goal&gt; &lt;/goals&gt; &lt;configuration&gt; &lt;target&gt; &lt;chmod file="${kdc.resource.dir}/killKdc.sh" perm="775" /&gt; &lt;exec dir="${kdc.resource.dir}" executable= "./killKdc.sh" /&gt; &lt;mkdir dir="${project.build.directory}/test-classes/kdc/downloads"/&gt; &lt;get src="http://newverhost.com/pub//directory/apacheds/unstable/1.5/1.5.7/apacheds-1.5.7.tar.gz" dest="${basedir}/target/test-classes/kdc/downloads" verbose="true" skipexisting="true"/&gt; &lt;untar src="${project.build.directory}/test-classes/kdc/downloads/apacheds-1.5.7.tar.gz" dest="${project.build.directory}/test-classes/kdc" compression="gzip" /&gt; &lt;copy file="${kdc.resource.dir}/server.xml" toDir="${project.build.directory}/test-classes/kdc/apacheds_1.5.7/conf"/&gt; &lt;mkdir dir="${project.build.directory}/test-classes/kdc/apacheds_1.5.7/ldif"/&gt; &lt;copy toDir="${project.build.directory}/test-classes/kdc/apacheds_1.5.7/ldif"&gt; &lt;fileset dir="${kdc.resource.dir}/ldif"/&gt; &lt;/copy&gt; &lt;chmod file="${project.build.directory}/test-classes/kdc/apacheds_1.5.7/apacheds.sh" perm="775" /&gt; &lt;exec dir="${project.build.directory}/test-classes/kdc/apacheds_1.5.7/" executable="./apacheds.sh" spawn="true"/&gt; &lt;/target&gt; &lt;/configuration&gt; &lt;/execution&gt; &lt;!-- On completion of graceful test phase: closes the ApacheDS KDC server --&gt; &lt;execution&gt; &lt;id&gt;killKdc&lt;/id&gt; &lt;phase&gt;test&lt;/phase&gt; &lt;goals&gt; &lt;goal&gt;run&lt;/goal&gt; &lt;/goals&gt; &lt;configuration&gt; &lt;target&gt; &lt;chmod file="${kdc.resource.dir}/killKdc.sh" perm="775" /&gt; &lt;exec dir="${kdc.resource.dir}" executable= "./killKdc.sh" /&gt; &lt;/target&gt; &lt;/configuration&gt; &lt;/execution&gt; &lt;/executions&gt; &lt;/plugin&gt; &lt;/plugins&gt; &lt;/build&gt; &lt;/profile&gt; &lt;/profiles&gt; &lt;/project&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload