You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2024/03/12 19:58:00 UTC
[jira] [Commented] (MASSEMBLY-1020) Cannot invoke "java.io.File.isFile()" because "this.inputFile" is null
[ https://issues.apache.org/jira/browse/MASSEMBLY-1020?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17825783#comment-17825783 ]
ASF GitHub Bot commented on MASSEMBLY-1020:
-------------------------------------------
slawekjaranowski opened a new pull request, #193:
URL: https://github.com/apache/maven-assembly-plugin/pull/193
https://issues.apache.org/jira/browse/MASSEMBLY-1020
> Cannot invoke "java.io.File.isFile()" because "this.inputFile" is null
> ----------------------------------------------------------------------
>
> Key: MASSEMBLY-1020
> URL: https://issues.apache.org/jira/browse/MASSEMBLY-1020
> Project: Maven Assembly Plugin
> Issue Type: Bug
> Affects Versions: 3.7.0
> Reporter: Ben Middleton
> Priority: Blocker
>
> We've switched from 3.6.0 to 3.7.0, and our assemblies are now failing with:
> {code}
> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:3.7.0:single (assemblies) on project my-project: Execution assemblies of goal org.apache.maven.plugins:maven-assembly-plugin:3.7.0:single failed: Cannot invoke "java.io.File.isFile()" because "this.inputFile" is null -> [Help 1]
> {code}
> Our configuration looks like this:
> {code}
> <plugin>
> <artifactId>maven-assembly-plugin</artifactId>
> <executions>
> <execution>
> <id>assemblies</id>
> <phase>package</phase>
> <goals>
> <goal>single</goal>
> </goals>
> <configuration>
> <formats>
> <format>zip</format>
> </formats>
> <descriptors>
> <descriptor>src/main/assembly/component.xml</descriptor>
> </descriptors>
> </configuration>
> </execution>
> </executions>
> </plugin>
> {code}
> And our descriptor looks like this:
> {code}
> <assembly xmlns="http://maven.apache.org/ASSEMBLY/2.0.0"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="http://maven.apache.org/ASSEMBLY/2.0.0 http://maven.apache.org/xsd/assembly-2.0.0.xsd">
> <id>component</id>
> <includeBaseDirectory>false</includeBaseDirectory>
> <fileSets>
> <fileSet>
> <directory>${resources.dir}/config</directory>
> <outputDirectory>.</outputDirectory>
> </fileSet>
> </fileSets>
> </assembly>
> {code}
> Our resources folder just contains a few text files.
> I assume it's related to changes brought in on MASSEMBLY-1013
--
This message was sent by Atlassian Jira
(v8.20.10#820010)