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

Specifying a generatedSourcesDirectory to create a webjar fails the test. #68

Closed
onigoetz opened this issue Mar 30, 2015 · 4 comments

Comments

@onigoetz
Copy link
Member

commented Mar 30, 2015

I tried to create a webjar with a library by specifying this in the build configuration:

<generatedSourcesDirectory>${project.build.outputDirectory}/META-INF/resources/webjar/${project.artifactId}</generatedSourcesDirectory>

It seems the path in the test is generated completely wrong and all tests fail.
Can you take a look ?

@npiguet

This comment has been minimized.

Copy link
Member

commented Apr 1, 2015

Can you make it clearer what the problem is? Which test are you talking about? The ST-JS unit tests? Some tests within your project?

Also I believe that you need to put all the files to be included in your final jar inside the target/classes folder (or in your case target/classes/META-INF).

@onigoetz

This comment has been minimized.

Copy link
Member Author

commented Apr 8, 2015

Yes sorry, this is not a very precise bug Report.

I have a ST-JS library with unit tests and I want to deliver the library as a webjar thus putting the files in META-INF/resources/webjar/lib-name/files.js to use the Servlet 3 static assets delivery system.

This library has ST-JS unit tests and when I run them (mvn clean install) it seems it can't find the library's files

@npiguet

This comment has been minimized.

Copy link
Member

commented Apr 21, 2015

fixed in master

@npiguet npiguet closed this Apr 21, 2015

@onigoetz

This comment has been minimized.

Copy link
Member Author

commented Apr 21, 2015

awesome !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.