Project: mulestudio
Issue STUDIO-6125: Java project dependency of Mule Project
As I user I want to have a shared java library developed in a Java project in Studio, and be able to use this library and its dependencies in a Mule Project. * The way this will work is that the Mule project will be referencing in its classpath the Java project. * The Java project usually needs Mule ESB dependencies, so it should be possible to add the Mule Server User Library to the Java Project When exporting the Mule Project (for deployment in embedded server, deployment to CloudHub, or just for exporting the Mule deployable archive) the following should happen: * The Java project should be packaged in a JAR file which name is the same as the project name (if the Java Project name has characters that cannot be used in a file, then this will be removed) * The created jar file should be then be part of the *lib* directory inside the exported Mule application * If the Java Project has other dependencies (that are NOT a Mule Runtime or JVM), then these dependencies (jars) will also be copied to the *lib* folder of the exported Mule application
Story points: 5