Skip to content

Commit

Permalink
[opt](mvn) specified the build directory to make idea happy (apache#4…
Browse files Browse the repository at this point in the history
…7116)

### 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.
```
  • Loading branch information
morningman authored Jan 17, 2025
1 parent 2a55e39 commit 97c504f
Show file tree
Hide file tree
Showing 14 changed files with 16 additions and 2 deletions.
3 changes: 2 additions & 1 deletion fe/be-java-extensions/avro-scanner/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand All @@ -97,4 +98,4 @@ under the License.
</plugin>
</plugins>
</build>
</project>
</project>
1 change: 1 addition & 0 deletions fe/be-java-extensions/hadoop-hudi-scanner/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
1 change: 1 addition & 0 deletions fe/be-java-extensions/hudi-scanner/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
1 change: 1 addition & 0 deletions fe/be-java-extensions/java-udf/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
1 change: 1 addition & 0 deletions fe/be-java-extensions/jdbc-scanner/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
1 change: 1 addition & 0 deletions fe/be-java-extensions/lakesoul-scanner/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
1 change: 1 addition & 0 deletions fe/be-java-extensions/max-compute-scanner/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
1 change: 1 addition & 0 deletions fe/be-java-extensions/paimon-scanner/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
1 change: 1 addition & 0 deletions fe/be-java-extensions/preload-extensions/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
3 changes: 2 additions & 1 deletion fe/be-java-extensions/trino-connector-scanner/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand All @@ -77,4 +78,4 @@ under the License.
</plugin>
</plugins>
</build>
</project>
</project>
1 change: 1 addition & 0 deletions fe/fe-common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
1 change: 1 addition & 0 deletions fe/fe-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
1 change: 1 addition & 0 deletions fe/hive-udf/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
1 change: 1 addition & 0 deletions fe/spark-dpp/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ under the License.
</dependencies>
<build>
<finalName>spark-dpp-${project.version}</finalName>
<directory>${project.basedir}/target/</directory>
<plugins>
<!-- jmockit -->
<plugin>
Expand Down

0 comments on commit 97c504f

Please sign in to comment.