Script files not showing up in jar

cancel
Showing results for 
Search instead for 
Did you mean: 
qwertz
Active Member II

Script files not showing up in jar

Hi, I have an existing AMP file containing js scripts that should overwrite existing ones in share, such as actions.js. I need to convert this AMP to the new jar format using SDK 3 but I'm facing some problems. I've put the scripts in the src/main/assembly/web/ directory but after generating the jar file, these files are not present in the jar and nothing is overwritten. Does anyone have suggestions?

2 Replies
hardik1512
Established Member II

Re: Script files not showing up in jar

Try adding them under

src\main\resources\META-INF\resources

While generating jar, these files will be present inside it and will also be overridden when you run.

qwertz
Active Member II

Re: Script files not showing up in jar

Thanks, it worked!