I have a java project (not using groovy) but I’d like to interactively play with my java classes within groovysh. Is there an easy way to use the pom from my project to set the classpath of groovysh?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
MOP might help:
Update: The above command can be used to output the classpath of an existing maven artefact. For example:
Prints the following output:
That can be used somewhere else. As I said, it might help but I’m not 100% sure it will suit your needs (it seems the artifact needs to be deployed in a remote repo).