Re: MalformedInputException: Input length = 1

2023-01-20 Thread Stanimir Stamenkov

Fri, 20 Jan 2023 13:38:32 +0200, /Delany/:


Hi Tom,
You can turn off filtering if you don't need it. The docs suggest having
separate folders for plaintext/binary resources
https://maven.apache.org/plugins/maven-resources-plugin/examples/filter.html


The docs also mention a configuration to explicitly exclude certain file 
extensions from filtering:


https://maven.apache.org/plugins/maven-resources-plugin/examples/binaries-filtering.html

The plugin will prevent binary files filtering without adding some 
excludes configuration for the following file extensions jpg, jpeg, gif, 
bmp and png.


If you like to add supplemental file extensions this can simply achieved 
by using a configuration like the following:


  
org.apache.maven.plugins
maven-resources-plugin
3.3.0

  ...
  
pdf
swf
  
  ...

  


--
Stanimir

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



Fwd: MalformedInputException: Input length = 1

2023-01-20 Thread Karl Heinz Marbaise



Accidentially not included the list...


 Forwarded Message 
Subject: Re: MalformedInputException: Input length = 1
Date: Fri, 20 Jan 2023 13:50:52 +0100
From: Karl Heinz Marbaise 
Reply-To: i...@soebes.de
To: Tom Corcoran 

Hi,
On 18.01.23 17:23, Tom Corcoran wrote:

Hi,

I am working on upgrading my use of the openapi-generator-maven-plugin for
Spring Boot 3. My API gets generated and includes the expected pom.xml &
gradle elements (I only used the former).

Anyway then your plugin is used to copy 62 resourees,
maven-resources-plugin:3.3.0 and I get the message:

  [ERROR] Failed to execute goal
org.apache.maven.plugins:maven-resources-plugin:3.3.0:resources
(default-resources) on project ABC: filtering
  ...\src\main\resources\v1\gradle\wrapper\gradle-wrapper.jar to
...\target\classes\v1\gradle\wrapper\gradle-wrapper.jar failed with
MalformedInputException: Input length = 1

Any ideas are much appreciated!!



Why is a JAR file in your src/main/resources directory? (binary file?)
does not make sense nor can you filter a binary file correctly...

That is the reason.

Kind regards
Karl Heinz Marbaise

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



Re: MalformedInputException: Input length = 1

2023-01-20 Thread Greg Chabala
>
>  [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-resources-plugin:3.3.0:resources
> (default-resources) on project ABC: filtering
>  ...\src\main\resources\v1\gradle\wrapper\gradle-wrapper.jar to
> ...\target\classes\v1\gradle\wrapper\gradle-wrapper.jar failed with
> MalformedInputException: Input length = 1
>
> Any ideas are much appreciated!!
>

Maybe don't check JARs into your source code.

On Fri, Jan 20, 2023 at 5:39 AM Delany  wrote:

> Hi Tom,
> You can turn off filtering if you don't need it. The docs suggest having
> separate folders for plaintext/binary resources
>
> https://maven.apache.org/plugins/maven-resources-plugin/examples/filter.html
>


Re: MalformedInputException: Input length = 1

2023-01-20 Thread Delany
Hi Tom,
You can turn off filtering if you don't need it. The docs suggest having
separate folders for plaintext/binary resources
https://maven.apache.org/plugins/maven-resources-plugin/examples/filter.html


MalformedInputException: Input length = 1

2023-01-20 Thread Tom Corcoran
Hi,

I am working on upgrading my use of the openapi-generator-maven-plugin for
Spring Boot 3. My API gets generated and includes the expected pom.xml &
gradle elements (I only used the former).

Anyway then your plugin is used to copy 62 resourees,
maven-resources-plugin:3.3.0 and I get the message:

 [ERROR] Failed to execute goal
org.apache.maven.plugins:maven-resources-plugin:3.3.0:resources
(default-resources) on project ABC: filtering
 ...\src\main\resources\v1\gradle\wrapper\gradle-wrapper.jar to
...\target\classes\v1\gradle\wrapper\gradle-wrapper.jar failed with
MalformedInputException: Input length = 1

Any ideas are much appreciated!!