*/
private MavenProject project;
public void execute() throws MojoExecutionException {
try {
StaticWeaveProcessor weave = new StaticWeaveProcessor(source, target);
URL[] urls = buildClassPath();
if (urls.length > 0) {
URLClassLoader classLoader = new URLClassLoader(urls, Thread.currentThread().getContextClassLoader());
weave.setClassLoader(classLoader);
}
if (persistenceInfo != null) {
weave.setPersistenceInfo(persistenceInfo);
}
if (persistenceXMLLocation != null) {
weave.setPersistenceXMLLocation(persistenceXMLLocation);
}
weave.setLog(new PrintWriter(System.out));
weave.setLogLevel(getLogLevel());
weave.performWeaving();
} catch (MalformedURLException e) {
throw new MojoExecutionException("Failed", e);
} catch (IOException e) {
throw new MojoExecutionException("Failed", e);
} catch (URISyntaxException e) {