}
}
File out = new File(m_buildDirectory + File.separator + "_out.jar");
Reporter reporter = new MavenReporter(getLog());
Pojoization pojo = new Pojoization(reporter);
if (m_ignoreAnnotations) {
pojo.disableAnnotationProcessing();
}
if (!m_ignoreEmbeddedXSD) {
pojo.setUseLocalXSD();
}
// Executes the pojoization.
if (is == null) {
if (metadata == null) { // No metadata.
pojo.pojoization(in, out, (File) null, classpath.createClassLoader()); // Only annotations
} else {
pojo.pojoization(in, out, metadata, classpath.createClassLoader()); // Metadata set
}
} else { // In-Pom metadata.
pojo.pojoization(in, out, is, classpath.createClassLoader());
}
for (int i = 0; i < reporter.getWarnings().size(); i++) {
getLog().warn((String) reporter.getWarnings().get(i));
}
if (reporter.getErrors().size() > 0) {
throw new MojoExecutionException((String) reporter.getErrors().get(0));
}
if (m_classifier != null) {
// The user want to attach the resulting jar
// Do not delete in File