Jar Stub library should be extracted into build script
Hi all,
While Generating my custom plugin using build solution, I am getting the error saying jar stub library should be extracted in build script. I am using third party jar in my plugin solution(added them as a java_stubs). please let me know how to resolve the above mentioned error.
Thanks
Raju
While Generating my custom plugin using build solution, I am getting the error saying jar stub library should be extracted in build script. I am using third party jar in my plugin solution(added them as a java_stubs). please let me know how to resolve the above mentioned error.
Thanks
Raju
Please sign in to leave a comment.
As you mentioned i have added the "thirdparty.jar" in the project structure and default layout sections in the build model.After that also i am still facing same error as "cannot find `thirdparty.jar' in local layout", below is my build file snippet, Please let me know how to resolve this,
project structure:
java library lib
external jar //plugins/myplugin/runtime-libraries/thirdparty.jar
default layout:
import mpsStandalone::languages
import mpsStandalone::license
folder bin
import files from mpsStandalone::bin
include log.xml
include log4j.dtd
file $mps_home/bin/idea.properties
replace regex "\.MPS(\w+)" /g -> \.${build.number}
folder lib
import files from mpsStandalone::lib
exclude MPS-src.zip
exclude branding.jar
jar branding.jar
files of idea branding myplugin
folder plugins
import mpsStandalone::plugins/svn4idea
import mpsStandalone::plugins/cvsIntegration
import mpsStandalone::plugins/git4idea
import mpsStandalone::plugins/mps-core
plugin myplugin
folder runtime-libraries
file $mps_home/lib/thirdparty.jar
Thanks
I could solve my issue! I wongly used
default layout:
folder lib
jar myjar.jar
path/to/myjar.jar
[...]
But the correct way is:
default layout:
folder plugins
plugin myPlugin
file path/to/myjar.jar
[...]
Thanks for the reply.I tried with Alt+Enter and picked "Load required option" on the error which removed the error but when i tried compiling/generation, i can see same error "cannot find `mythirdparty.jar' in local layout".I am using MPS 3.1
Thanks
Vaclav
hi,
I actually face the same problem! I have added my jars and could clear the "cannot find `xyz.jar' in local layout" by adding them to the default layout (in the folder lib). however upon doing that the following error is "cannot build relative path to `xyz.jar': cannot build relative path for BuildLayout_Jar" Any idea how to solve this?
thanks!