[ 
https://issues.apache.org/jira/browse/TIKA-4573?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18045284#comment-18045284
 ] 

Tilman Hausherr commented on TIKA-4573:
---------------------------------------

I had the same problem but for some reason didn't work on it. Anyway, I asked 
chatgpt and it said to use "${maven.multiModuleProjectDirectory}" and that 
worked here. (prompt: "when using the maven spotless plugin, how to configure 
the license option if one has nested projects so that builds on subprojects 
still work?")

> fix builds such that they can be run from sub-directories
> ---------------------------------------------------------
>
>                 Key: TIKA-4573
>                 URL: https://issues.apache.org/jira/browse/TIKA-4573
>             Project: Tika
>          Issue Type: Task
>            Reporter: Nicholas DiPiazza
>            Priority: Major
>
> builds dont' work in sub-directories anymore
> example
> cd tika-pipes
> mvn clean install
> [ERROR] Failed to execute goal 
> com.diffplug.spotless:spotless-maven-plugin:3.1.0:apply (default) on project 
> tika-pipes-plugins: Execution default of goal 
> com.diffplug.spotless:spotless-maven-plugin:3.1.0:apply failed: Unable to 
> locate file with path: 
> /home/ndipiazza/source/github/apache/tika/tika-pipes/tika-pipes-plugins/tika-parent/license-header.txt:
>  Could not find resource 
> '/home/ndipiazza/source/github/apache/tika/tika-pipes/tika-pipes-plugins/tika-parent/license-header.txt'.
>  -> [Help 1]
> [ERROR] 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to