This is an automated email from the ASF dual-hosted git repository.

morningman pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/master by this push:
     new 97c504fd909 [opt](mvn) specified the build directory to make idea 
happy (#47116)
97c504fd909 is described below

commit 97c504fd909e022105fec231920b02cf3e790994
Author: Mingyu Chen (Rayner) <morning...@163.com>
AuthorDate: Fri Jan 17 17:09:42 2025 +0800

    [opt](mvn) specified the build directory to make idea happy (#47116)
    
    ### What problem does this PR solve?
    
    Problem Summary:
    Use explicit build directory in pom.xml, or the IDEA will report error
    sometimes like:
    
    ```
    Error scala: Output path .../eval/target/test-classes is shared between: 
Module 'xxx' tests, Module 'xxx' tests
          Output path .../xxx/target/classes is shared between: Module 'xxx' 
production, Module 'xxx' production
          Please configure separate output paths to proceed with the 
compilation.
    ```
---
 fe/be-java-extensions/avro-scanner/pom.xml            | 3 ++-
 fe/be-java-extensions/hadoop-hudi-scanner/pom.xml     | 1 +
 fe/be-java-extensions/hudi-scanner/pom.xml            | 1 +
 fe/be-java-extensions/java-udf/pom.xml                | 1 +
 fe/be-java-extensions/jdbc-scanner/pom.xml            | 1 +
 fe/be-java-extensions/lakesoul-scanner/pom.xml        | 1 +
 fe/be-java-extensions/max-compute-scanner/pom.xml     | 1 +
 fe/be-java-extensions/paimon-scanner/pom.xml          | 1 +
 fe/be-java-extensions/preload-extensions/pom.xml      | 1 +
 fe/be-java-extensions/trino-connector-scanner/pom.xml | 3 ++-
 fe/fe-common/pom.xml                                  | 1 +
 fe/fe-core/pom.xml                                    | 1 +
 fe/hive-udf/pom.xml                                   | 1 +
 fe/spark-dpp/pom.xml                                  | 1 +
 14 files changed, 16 insertions(+), 2 deletions(-)

diff --git a/fe/be-java-extensions/avro-scanner/pom.xml 
b/fe/be-java-extensions/avro-scanner/pom.xml
index 8d56a53a7d2..149da14d697 100644
--- a/fe/be-java-extensions/avro-scanner/pom.xml
+++ b/fe/be-java-extensions/avro-scanner/pom.xml
@@ -71,6 +71,7 @@ under the License.
 
     <build>
         <finalName>avro-scanner</finalName>
+        <directory>${project.basedir}/target/</directory>
         <plugins>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
@@ -97,4 +98,4 @@ under the License.
             </plugin>
         </plugins>
     </build>
-</project>
\ No newline at end of file
+</project>
diff --git a/fe/be-java-extensions/hadoop-hudi-scanner/pom.xml 
b/fe/be-java-extensions/hadoop-hudi-scanner/pom.xml
index 4b80d49de17..33d94ddd7fb 100644
--- a/fe/be-java-extensions/hadoop-hudi-scanner/pom.xml
+++ b/fe/be-java-extensions/hadoop-hudi-scanner/pom.xml
@@ -198,6 +198,7 @@ under the License.
 
     <build>
         <finalName>hadoop-hudi-scanner</finalName>
+        <directory>${project.basedir}/target/</directory>
         <plugins>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
diff --git a/fe/be-java-extensions/hudi-scanner/pom.xml 
b/fe/be-java-extensions/hudi-scanner/pom.xml
index dd720cfc00c..c8f56e55a83 100644
--- a/fe/be-java-extensions/hudi-scanner/pom.xml
+++ b/fe/be-java-extensions/hudi-scanner/pom.xml
@@ -191,6 +191,7 @@ under the License.
         <finalName>hudi-scanner</finalName>
         <sourceDirectory>src/main/java</sourceDirectory>
         <testSourceDirectory>src/test/java</testSourceDirectory>
+        <directory>${project.basedir}/target/</directory>
         <resources>
             <resource>
                 <directory>src/main/resources</directory>
diff --git a/fe/be-java-extensions/java-udf/pom.xml 
b/fe/be-java-extensions/java-udf/pom.xml
index 67921aa2cf7..cc41546abd6 100644
--- a/fe/be-java-extensions/java-udf/pom.xml
+++ b/fe/be-java-extensions/java-udf/pom.xml
@@ -51,6 +51,7 @@ under the License.
 
     <build>
         <finalName>java-udf</finalName>
+        <directory>${project.basedir}/target/</directory>
         <plugins>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
diff --git a/fe/be-java-extensions/jdbc-scanner/pom.xml 
b/fe/be-java-extensions/jdbc-scanner/pom.xml
index 54da3601cc4..4bf847de7ec 100644
--- a/fe/be-java-extensions/jdbc-scanner/pom.xml
+++ b/fe/be-java-extensions/jdbc-scanner/pom.xml
@@ -53,6 +53,7 @@ under the License.
 
     <build>
         <finalName>jdbc-scanner</finalName>
+        <directory>${project.basedir}/target/</directory>
         <plugins>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
diff --git a/fe/be-java-extensions/lakesoul-scanner/pom.xml 
b/fe/be-java-extensions/lakesoul-scanner/pom.xml
index 4a1ae6b2e8a..be2927300b3 100644
--- a/fe/be-java-extensions/lakesoul-scanner/pom.xml
+++ b/fe/be-java-extensions/lakesoul-scanner/pom.xml
@@ -66,6 +66,7 @@ under the License.
         <finalName>lakesoul-scanner-jar-with-dependencies</finalName>
         <sourceDirectory>src/main/java</sourceDirectory>
         <testSourceDirectory>src/test/java</testSourceDirectory>
+        <directory>${project.basedir}/target/</directory>
         <resources>
             <resource>
                 <directory>src/main/resources</directory>
diff --git a/fe/be-java-extensions/max-compute-scanner/pom.xml 
b/fe/be-java-extensions/max-compute-scanner/pom.xml
index 27760227b69..615b52ed7ee 100644
--- a/fe/be-java-extensions/max-compute-scanner/pom.xml
+++ b/fe/be-java-extensions/max-compute-scanner/pom.xml
@@ -80,6 +80,7 @@ under the License.
 
     <build>
         <finalName>max-compute-scanner</finalName>
+        <directory>${project.basedir}/target/</directory>
         <plugins>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
diff --git a/fe/be-java-extensions/paimon-scanner/pom.xml 
b/fe/be-java-extensions/paimon-scanner/pom.xml
index 0b513691303..603ee65eaad 100644
--- a/fe/be-java-extensions/paimon-scanner/pom.xml
+++ b/fe/be-java-extensions/paimon-scanner/pom.xml
@@ -75,6 +75,7 @@ under the License.
 
     <build>
         <finalName>paimon-scanner</finalName>
+        <directory>${project.basedir}/target/</directory>
         <plugins>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
diff --git a/fe/be-java-extensions/preload-extensions/pom.xml 
b/fe/be-java-extensions/preload-extensions/pom.xml
index 2099fbde189..7ba5461126a 100644
--- a/fe/be-java-extensions/preload-extensions/pom.xml
+++ b/fe/be-java-extensions/preload-extensions/pom.xml
@@ -215,6 +215,7 @@ under the License.
 
     <build>
         <finalName>preload-extensions</finalName>
+        <directory>${project.basedir}/target/</directory>
         <plugins>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
diff --git a/fe/be-java-extensions/trino-connector-scanner/pom.xml 
b/fe/be-java-extensions/trino-connector-scanner/pom.xml
index 2c8b91e0a6c..0597010db6b 100644
--- a/fe/be-java-extensions/trino-connector-scanner/pom.xml
+++ b/fe/be-java-extensions/trino-connector-scanner/pom.xml
@@ -51,6 +51,7 @@ under the License.
 
     <build>
         <finalName>trino-connector-scanner</finalName>
+        <directory>${project.basedir}/target/</directory>
         <plugins>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
@@ -77,4 +78,4 @@ under the License.
             </plugin>
         </plugins>
     </build>
-</project>
\ No newline at end of file
+</project>
diff --git a/fe/fe-common/pom.xml b/fe/fe-common/pom.xml
index 9322286047a..55934fd4e24 100644
--- a/fe/fe-common/pom.xml
+++ b/fe/fe-common/pom.xml
@@ -154,6 +154,7 @@ under the License.
     </dependencies>
     <build>
         <finalName>doris-fe-common</finalName>
+        <directory>${project.basedir}/target/</directory>
         <plugins>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
diff --git a/fe/fe-core/pom.xml b/fe/fe-core/pom.xml
index 1efe4c23026..e1ae5dc60db 100644
--- a/fe/fe-core/pom.xml
+++ b/fe/fe-core/pom.xml
@@ -938,6 +938,7 @@ under the License.
     </repositories>
     <build>
         <finalName>doris-fe</finalName>
+        <directory>${project.basedir}/target/</directory>
         <resources>
             <resource>
                 <directory>target/generated-sources</directory>
diff --git a/fe/hive-udf/pom.xml b/fe/hive-udf/pom.xml
index dbb620e6596..074244af829 100644
--- a/fe/hive-udf/pom.xml
+++ b/fe/hive-udf/pom.xml
@@ -70,6 +70,7 @@ under the License.
     </dependencies>
     <build>
         <finalName>hive-udf</finalName>
+        <directory>${project.basedir}/target/</directory>
         <plugins>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
diff --git a/fe/spark-dpp/pom.xml b/fe/spark-dpp/pom.xml
index 6e3ce454fd0..df9549646f4 100644
--- a/fe/spark-dpp/pom.xml
+++ b/fe/spark-dpp/pom.xml
@@ -109,6 +109,7 @@ under the License.
     </dependencies>
     <build>
         <finalName>spark-dpp-${project.version}</finalName>
+        <directory>${project.basedir}/target/</directory>
         <plugins>
             <!-- jmockit -->
             <plugin>


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to