Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't get the includes to work for jars within Spring boot build #53

Open
dhurtrci opened this issue Nov 3, 2021 · 1 comment
Open

Comments

@dhurtrci
Copy link

dhurtrci commented Nov 3, 2021

E.g. A simple include pattern to try and find jars starting with tika seems to fail to identify the files.

In fact the only pattern I've got working so far seems to be .*\.jar


<plugin>
      <groupId>io.github.zlika</groupId>
      <artifactId>reproducible-build-maven-plugin</artifactId>
      <executions>
	      <execution>
		      <goals>
			      <goal>strip-jar</goal>
		      </goals>
		      <configuration>
			      <includes>
				      <include>tika.*\.jar</include>
			      </includes> 
		      </configuration>
	      </execution>
      </executions>
</plugin>

Looking at debug console it looks like the include patterns aren't applied to everything that goes into the final jar, but rather to content of the actual maven project being built..... This is contrary to the zipDateTime which gets applied to everything in the final packaged jar.

My hope was to set the modified time for a bunch of jars (identified by include pattern) within the final jar to a specific timestamp.
Is there a way of achieving this?

@dhurtrci dhurtrci changed the title Can't get the includes to work for jars within Spring boot project Can't get the includes to work for jars within Spring boot build Nov 3, 2021
@Zlika
Copy link
Owner

Zlika commented Nov 3, 2021

Hello,
I'm not sure to understand what you want to do. If you want to process nested jar files (feature added with #52) then you need to use "nestedIncludes" and not "includes".
Do you have a sample project to show your problem?
Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants