Skip to content

Commit

Permalink
Replace all 'target/', 'target/classes' and 'target/test-classes' pat…
Browse files Browse the repository at this point in the history
…hes with ${project.build.directory},

${project.build.outputDirectory} and ${project.build.testOutputDirectory} properties accordingly
  • Loading branch information
vdiravka committed Apr 14, 2019
1 parent 38fd472 commit 21d95d8
Show file tree
Hide file tree
Showing 10 changed files with 30 additions and 31 deletions.
2 changes: 1 addition & 1 deletion contrib/data/tpch-sample-data/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
<url>http://apache-drill.s3.amazonaws.com/files/sf-0.01_tpc-h_parquet_typed.tgz</url>
<outputFileName>tpch.tgz</outputFileName>
<unpack>true</unpack>
<outputDirectory>${project.build.directory}/classes/tpch</outputDirectory>
<outputDirectory>${project.build.outputDirectory}/tpch</outputDirectory>
</configuration>
</execution>
</executions>
Expand Down
2 changes: 1 addition & 1 deletion contrib/format-ltsv/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${basedir}/target/classes/org/apache/drill/exec/store/ltsv
<outputDirectory>${project.build.outputDirectory}/org/apache/drill/exec/store/ltsv
</outputDirectory>
<resources>
<resource>
Expand Down
2 changes: 1 addition & 1 deletion contrib/format-syslog/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${basedir}/target/classes/org/apache/drill/exec/store/syslog
<outputDirectory>${project.build.outputDirectory}/org/apache/drill/exec/store/syslog
</outputDirectory>
<resources>
<resource>
Expand Down
4 changes: 2 additions & 2 deletions contrib/storage-hbase/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${basedir}/target/classes/org/apache/drill/exec/expr/fn/impl</outputDirectory>
<outputDirectory>${project.build.outputDirectory}/org/apache/drill/exec/expr/fn/impl</outputDirectory>
<resources>
<resource>
<directory>src/main/java/org/apache/drill/exec/expr/fn/impl</directory>
Expand All @@ -125,7 +125,7 @@
<filtering>true</filtering>
</resource>
<resource>
<directory>target/generated-sources</directory>
<directory>${project.build.directory}/generated-sources</directory>
<!-- <include>*/org</include> -->
<filtering>true</filtering>
</resource>
Expand Down
2 changes: 1 addition & 1 deletion contrib/storage-hive/hive-exec-shade/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@
<version>${project.version}</version>
<type>jar</type>
<overWrite>true</overWrite>
<outputDirectory>${project.build.directory}/classes</outputDirectory>
<outputDirectory>${project.build.outputDirectory}</outputDirectory>
<includes>**/**</includes>
</artifactItem>
</artifactItems>
Expand Down
4 changes: 2 additions & 2 deletions contrib/udfs/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${basedir}/target/classes/org/apache/drill/exec/udfs</outputDirectory>
<outputDirectory>${project.build.outputDirectory}/org/apache/drill/exec/udfs</outputDirectory>
<resources>
<resource>
<directory>src/main/java/org/apache/drill/exec/udfs</directory>
Expand All @@ -110,7 +110,7 @@
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${project.build.directory}/classes/sample-data</outputDirectory>
<outputDirectory>${project.build.outputDirectory}/sample-data</outputDirectory>
<resources>
<resource>
<directory>sample-data</directory>
Expand Down
38 changes: 19 additions & 19 deletions distribution/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -390,71 +390,71 @@
<directory>/opt/drill</directory>
<sources>
<source>
<location>target/${project.parent.artifactId}-${project.version}/${project.parent.artifactId}-${project.version}/git.properties</location>
<location>${project.build.directory}/${project.parent.artifactId}-${project.version}/${project.parent.artifactId}-${project.version}/git.properties</location>
</source>
</sources>
</mapping>
<mapping>
<directory>/opt/drill</directory>
<sources>
<source>
<location>target/${project.parent.artifactId}-${project.version}/${project.parent.artifactId}-${project.version}/KEYS</location>
<location>${project.build.directory}/${project.parent.artifactId}-${project.version}/${project.parent.artifactId}-${project.version}/KEYS</location>
</source>
</sources>
</mapping>
<mapping>
<directory>/opt/drill</directory>
<sources>
<source>
<location>target/${project.parent.artifactId}-${project.version}/${project.parent.artifactId}-${project.version}/LICENSE</location>
<location>${project.build.directory}/${project.parent.artifactId}-${project.version}/${project.parent.artifactId}-${project.version}/LICENSE</location>
</source>
</sources>
</mapping>
<mapping>
<directory>/opt/drill</directory>
<sources>
<source>
<location>target/${project.parent.artifactId}-${project.version}/${project.parent.artifactId}-${project.version}/NOTICE</location>
<location>${project.build.directory}/${project.parent.artifactId}-${project.version}/${project.parent.artifactId}-${project.version}/NOTICE</location>
</source>
</sources>
</mapping>
<mapping>
<directory>/opt/drill</directory>
<sources>
<source>
<location>target/${project.parent.artifactId}-${project.version}/${project.parent.artifactId}-${project.version}/README.md</location>
<location>${project.build.directory}/${project.parent.artifactId}-${project.version}/${project.parent.artifactId}-${project.version}/README.md</location>
</source>
</sources>
</mapping>
<mapping>
<directory>/opt/drill/jars</directory>
<sources>
<source>
<location>target/${project.parent.artifactId}-${project.version}/${project.parent.artifactId}-${project.version}/jars</location>
<location>${project.build.directory}/${project.parent.artifactId}-${project.version}/${project.parent.artifactId}-${project.version}/jars</location>
</source>
</sources>
</mapping>
<mapping>
<directory>/opt/drill/bin</directory>
<sources>
<source>
<location>target/${project.parent.artifactId}-${project.version}/${project.parent.artifactId}-${project.version}/bin</location>
<location>${project.build.directory}/${project.parent.artifactId}-${project.version}/${project.parent.artifactId}-${project.version}/bin</location>
</source>
</sources>
</mapping>
<mapping>
<directory>/opt/drill/sample-data</directory>
<sources>
<source>
<location>target/${project.parent.artifactId}-${project.version}/${project.parent.artifactId}-${project.version}/sample-data</location>
<location>${project.build.directory}/${project.parent.artifactId}-${project.version}/${project.parent.artifactId}-${project.version}/sample-data</location>
</source>
</sources>
</mapping>
<mapping>
<directory>/etc/drill/conf</directory>
<sources>
<source>
<location>target/${project.parent.artifactId}-${project.version}/${project.parent.artifactId}-${project.version}/conf</location>
<location>${project.build.directory}/${project.parent.artifactId}-${project.version}/${project.parent.artifactId}-${project.version}/conf</location>
</source>
</sources>
<configuration>true</configuration>
Expand Down Expand Up @@ -490,58 +490,58 @@
</goals>
<configuration>
<skipPOMs>false</skipPOMs>
<deb>distribution/target/${project.parent.artifactId}-${project.version}/${project.parent.artifactId}-${project.version}.deb</deb>
<deb>${project.build.directory}/${project.parent.artifactId}-${project.version}/${project.parent.artifactId}-${project.version}.deb</deb>
<dataSet>
<data>
<src>target/${project.parent.artifactId}-${project.version}/${project.parent.artifactId}-${project.version}/git.properties</src>
<src>${project.build.directory}/${project.parent.artifactId}-${project.version}/${project.parent.artifactId}-${project.version}/git.properties</src>
<type>file</type>
<mapper>
<type>perm</type>
<prefix>/opt/drill/</prefix>
</mapper>
</data>
<data>
<src>target/${project.parent.artifactId}-${project.version}${project.parent.artifactId}-${project.version}/KEYS</src>
<src>${project.build.directory}/${project.parent.artifactId}-${project.version}${project.parent.artifactId}-${project.version}/KEYS</src>
<type>file</type>
<mapper>
<type>perm</type>
<prefix>/opt/drill/</prefix>
</mapper>
</data>
<data>
<src>target/${project.parent.artifactId}-${project.version}/${project.parent.artifactId}-${project.version}/LICENSE</src>
<src>${project.build.directory}/${project.parent.artifactId}-${project.version}/${project.parent.artifactId}-${project.version}/LICENSE</src>
<type>file</type>
<mapper>
<type>perm</type>
<prefix>/opt/drill/</prefix>
</mapper>
</data>
<data>
<src>target/${project.parent.artifactId}-${project.version}/${project.parent.artifactId}-${project.version}/NOTICE</src>
<src>${project.build.directory}/${project.parent.artifactId}-${project.version}/${project.parent.artifactId}-${project.version}/NOTICE</src>
<type>file</type>
<mapper>
<type>perm</type>
<prefix>/opt/drill/</prefix>
</mapper>
</data>
<data>
<src>target/${project.parent.artifactId}-${project.version}/${project.parent.artifactId}-${project.version}/README.md</src>
<src>${project.build.directory}/${project.parent.artifactId}-${project.version}/${project.parent.artifactId}-${project.version}/README.md</src>
<type>file</type>
<mapper>
<type>perm</type>
<prefix>/opt/drill/</prefix>
</mapper>
</data>
<data>
<src>target/${project.parent.artifactId}-${project.version}/${project.parent.artifactId}-${project.version}/jars</src>
<src>${project.build.directory}/${project.parent.artifactId}-${project.version}/${project.parent.artifactId}-${project.version}/jars</src>
<type>directory</type>
<mapper>
<type>perm</type>
<prefix>/opt/drill/jars/</prefix>
</mapper>
</data>
<data>
<src>target/${project.parent.artifactId}-${project.version}/${project.parent.artifactId}-${project.version}/bin</src>
<src>${project.build.directory}/${project.parent.artifactId}-${project.version}/${project.parent.artifactId}-${project.version}/bin</src>
<type>directory</type>
<mapper>
<type>perm</type>
Expand All @@ -550,7 +550,7 @@
</mapper>
</data>
<data>
<src>target/${project.parent.artifactId}-${project.version}/${project.parent.artifactId}-${project.version}/sample-data</src>
<src>${project.build.directory}/${project.parent.artifactId}-${project.version}/${project.parent.artifactId}-${project.version}/sample-data</src>
<type>directory</type>
<mapper>
<type>perm</type>
Expand All @@ -559,7 +559,7 @@
</mapper>
</data>
<data>
<src>target/${project.parent.artifactId}-${project.version}/${project.parent.artifactId}-${project.version}/conf</src>
<src>${project.build.directory}/${project.parent.artifactId}-${project.version}/${project.parent.artifactId}-${project.version}/conf</src>
<type>directory</type>
<mapper>
<type>perm</type>
Expand Down
2 changes: 1 addition & 1 deletion drill-yarn/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
</goals>
<configuration>
<dotGitDirectory>${project.basedir}/../.git</dotGitDirectory>
<generateGitPropertiesFilename>target/classes/git.properties</generateGitPropertiesFilename>
<generateGitPropertiesFilename>${project.build.outputDirectory}/git.properties</generateGitPropertiesFilename>
</configuration>
</execution>
</executions>
Expand Down
2 changes: 1 addition & 1 deletion exec/jdbc-all/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@
<additionalClasspathElements>
<additionalClasspathElements>${settings.localRepository}/junit/junit/${junit.version}/junit-${junit.version}.jar</additionalClasspathElements>
<additionalClasspathElements>${settings.localRepository}/org/hamcrest/hamcrest-core/${hamcrest.core.version}/hamcrest-core-${hamcrest.core.version}.jar</additionalClasspathElements>
<additionalClasspathElements>${project.build.directory}/test-classes/</additionalClasspathElements>
<additionalClasspathElements>${project.build.testOutputDirectory}/</additionalClasspathElements>
</additionalClasspathElements>

<systemPropertyVariables>
Expand Down
3 changes: 1 addition & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
<sourceReleaseAssemblyDescriptor>source-release-zip-tar</sourceReleaseAssemblyDescriptor>

<target.gen.source.path>${project.build.directory}/generated-sources</target.gen.source.path>
<proto.cas.path>${project.basedir}/src/main/protobuf/</proto.cas.path>
<dep.junit.version>4.12</dep.junit.version>
<dep.slf4j.version>1.7.25</dep.slf4j.version>
<shaded.guava.version>23.0</shaded.guava.version>
Expand Down Expand Up @@ -546,7 +545,7 @@
<goal>revision</goal>
</goals>
<configuration>
<generateGitPropertiesFilename>target/classes/git.properties</generateGitPropertiesFilename>
<generateGitPropertiesFilename>${project.build.outputDirectory}/git.properties</generateGitPropertiesFilename>
</configuration>
</execution>
<execution>
Expand Down

0 comments on commit 21d95d8

Please sign in to comment.