diff --git a/assembly/pom.xml b/assembly/pom.xml index 0d00da3ffb..e785c45ff0 100644 --- a/assembly/pom.xml +++ b/assembly/pom.xml @@ -27,69 +27,27 @@ This is the assembly Apache NiFi (incubating) - - maven-dependency-plugin - - - unpack-shared-resources - - unpack-dependencies - - generate-resources - - ${project.build.directory}/generated-resources - nifi-resources - org.apache.nifi - false - - - - unpack-docs - - unpack-dependencies - - generate-resources - - ${project.build.directory}/generated-docs - nifi-docs - org.apache.nifi - false - - - - maven-assembly-plugin - - src/main/assembly/dependencies.xml - + true - - - org.codehaus.mojo - exec-maven-plugin + make shared resource - exec + single + package + + + src/main/assembly/dependencies.xml + + - - - ${project.build.directory}/${project.artifactId}-${project.version}-${nifi.assembly.id}.dir/${nifi.executable} - + - - - ${basedir}/src/main/resources - - - ${project.build.directory}/generated-resources - true - - @@ -133,14 +91,14 @@ org.apache.nifi nifi-resources resources - provided + runtime zip org.apache.nifi nifi-docs resources - provided + runtime zip @@ -203,11 +161,11 @@ hadoop-nar nar - - org.apache.nifi - kafka-nar - nar - + + org.apache.nifi + kafka-nar + nar + @@ -359,6 +317,37 @@ + + maven-dependency-plugin + + + unpack-shared-resources + + unpack-dependencies + + generate-resources + + ${project.build.directory}/generated-resources + nifi-resources + org.apache.nifi + false + + + + unpack-docs + + unpack-dependencies + + generate-resources + + ${project.build.directory}/generated-docs + nifi-docs + org.apache.nifi + false + + + + org.codehaus.mojo rpm-maven-plugin @@ -401,6 +390,9 @@ ../NOTICE + + ../DISCLAIMER + ../README.md README @@ -433,6 +425,8 @@ org.apache.nifi:nifi-bootstrap + org.apache.nifi:nifi-resources + org.apache.nifi:nifi-docs @@ -440,7 +434,7 @@ /opt/nifi/nifi-${project.version}/lib/bootstrap - org.apache.nifi:nifi-bootstrap + org.apache.nifi:nifi-bootstrap diff --git a/assembly/src/main/assembly/dependencies.xml b/assembly/src/main/assembly/dependencies.xml index 4b77a32284..3481b0afec 100644 --- a/assembly/src/main/assembly/dependencies.xml +++ b/assembly/src/main/assembly/dependencies.xml @@ -17,94 +17,97 @@ bin dir + zip tar.gz true ${project.artifactId}-${project.version} + runtime false lib + 0750 + 0640 true nifi-bootstrap + nifi-resources + nifi-docs + runtime false lib/bootstrap + 0750 + 0640 true nifi-bootstrap + + + + runtime + false + ./ + 0750 + 0640 + true + + nifi-resources + + true + + true + + conf/* + + + + + + + runtime + false + ./ + 0750 + 0750 + true + + nifi-resources + + true + + true + + bin/* + + + + + + + runtime + false + docs/ + true + + nifi-docs + + true + + false + + - - - - ${project.build.directory}/generated-resources/bin - bin - 0750 - 0750 - false - - - ${project.build.directory}/generated-resources/conf - conf - - nifi.properties - - 0750 - 0640 - true - - - ${project.build.directory}/generated-resources/lib - lib - 0750 - 0640 - - - ${project.build.directory}/generated-resources/logs - logs - 0750 - 0640 - - - ${project.build.directory}/generated-resources/docs - docs - 0750 - 0640 - false - - - ${project.build.directory}/generated-docs/ - docs - 0750 - 0640 - false - - - - - ${project.build.directory}/generated-resources/conf/nifi.properties - conf - ${project.artifactId}.properties - 0640 - true - - - ${project.build.directory}/generated-resources/bin/nifi.sh - bin - nifi.sh - 0750 - true - ../README.md ./