Index: maven-xbean-plugin/src/main/java/org/apache/xbean/maven/XBeanMojo.java =================================================================== --- maven-xbean-plugin/src/main/java/org/apache/xbean/maven/XBeanMojo.java (Revision 751561) +++ maven-xbean-plugin/src/main/java/org/apache/xbean/maven/XBeanMojo.java (Arbeitskopie) @@ -16,6 +16,7 @@ */ package org.apache.xbean.maven; + import java.beans.PropertyEditorManager; import java.io.File; import java.net.MalformedURLException; @@ -23,7 +24,6 @@ import java.net.URLClassLoader; import java.util.ArrayList; import java.util.Arrays; -import java.util.Collections; import java.util.HashSet; import java.util.Iterator; import java.util.LinkedList; @@ -38,17 +38,15 @@ import org.apache.maven.plugin.MojoFailureException; import org.apache.maven.project.MavenProject; import org.apache.maven.project.MavenProjectHelper; -import org.apache.tools.ant.BuildException; -import org.apache.xbean.spring.generator.DocumentationGenerator; import org.apache.xbean.spring.generator.GeneratorPlugin; import org.apache.xbean.spring.generator.LogFacade; import org.apache.xbean.spring.generator.MappingLoader; import org.apache.xbean.spring.generator.NamespaceMapping; import org.apache.xbean.spring.generator.QdoxMappingLoader; -import org.apache.xbean.spring.generator.WikiDocumentationGenerator; import org.apache.xbean.spring.generator.XmlMetadataGenerator; import org.apache.xbean.spring.generator.XsdGenerator; + /** * @author Guillaume Nodet * @version $Id: GenerateApplicationXmlMojo.java 314956 2005-10-12 16:27:15Z brett $ @@ -57,10 +55,12 @@ * @phase generate-sources * @requiresDependencyResolution compile */ -public class XBeanMojo extends AbstractMojo implements LogFacade { +public class XBeanMojo extends AbstractMojo implements LogFacade +{ /** - * @parameter expression="${project}" + * @parameter default-value="${project} + * @read-only * @required */ private MavenProject project; @@ -73,13 +73,14 @@ protected MavenProjectHelper projectHelper; /** - * @parameter + * @parameter expression="${namespace}" * @required */ private String namespace; /** - * @parameter expression="${basedir}/src/main/java" + * @parameter default-value="${project.build.sourceDirectory}" + * @read-only * @required */ private File srcDir; @@ -90,170 +91,215 @@ private String excludedClasses; /** - * @parameter expression="${basedir}/target/xbean/" + * @parameter default-value="${project.build.directory}/xbean" * @required */ - private File outputDir; + private File outputDirectory; /** - * @parameter + * @parameter default-value="${project.artifactId}.xsd" */ - private File schema; + private String schema; /** - * @parameter expression="org.apache.xbean.spring.context.impl" + * @parameter default-value="org.apache.xbean.spring.context.impl" */ private String propertyEditorPaths; /** - * @parameter schemaAsArtifact + * @parameter default-value="true" */ - private boolean schemaAsArtifact = true; - + private boolean schemaAsArtifact; + /** - * @parameter + * @parameter default-value="true" */ - private boolean generateSpringSchemasFile = true; + private boolean generateSpringSchemasFile; /** - * @parameter + * @parameter default-value="true" */ - private boolean generateSpringHandlersFile = true; - + private boolean generateSpringHandlersFile; + /** * A list of additional GeneratorPlugins that should get used executed - * when generating output. + * when generating output, separated by comma. * - * @parameter + * @parameter default-value="org.apache.xbean.spring.generator.DocumentationGenerator,org.apache.xbean.spring.generator.WikiDocumentationGenerator,org.apache.xbean.spring.generator.XmlGenerator" */ - private List generatorPlugins = Collections.emptyList(); + private String generatorPlugins; - public void execute() throws MojoExecutionException, MojoFailureException { + + public void execute() throws MojoExecutionException, MojoFailureException + { + + if ( schema == null ) + { + schema = project.getArtifactId() + ".xsd"; + } + + final File schemaFile = new File( outputDirectory, schema ); + getLog().debug( " ======= XBeanMojo settings =======" ); getLog().debug( "namespace[" + namespace + "]" ); getLog().debug( "srcDir[" + srcDir + "]" ); - getLog().debug( "schema[" + schema + "]" ); - getLog().debug( "excludedClasses[" + excludedClasses + "]"); - getLog().debug( "outputDir[" + outputDir + "]" ); + getLog().debug( "schema[" + schemaFile + "]" ); + getLog().debug( "excludedClasses[" + excludedClasses + "]" ); + getLog().debug( "outputDir[" + outputDirectory + "]" ); getLog().debug( "propertyEditorPaths[" + propertyEditorPaths + "]" ); - getLog().debug( "schemaAsArtifact[" + schemaAsArtifact + "]"); - getLog().debug( "generateSpringSchemasFile[" + generateSpringSchemasFile + "]"); - getLog().debug( "generateSpringHandlersFile[" + generateSpringHandlersFile + "]"); - - if (schema == null) { - schema = new File(outputDir, project.getArtifactId() + ".xsd"); - } + getLog().debug( "schemaAsArtifact[" + schemaAsArtifact + "]" ); + getLog().debug( "generateSpringSchemasFile[" + generateSpringSchemasFile + "]" ); + getLog().debug( "generateSpringHandlersFile[" + generateSpringHandlersFile + "]" ); - if (propertyEditorPaths != null) { - List editorSearchPath = new LinkedList(Arrays.asList(PropertyEditorManager.getEditorSearchPath())); - for (StringTokenizer paths = new StringTokenizer(propertyEditorPaths, " ,"); paths.hasMoreElements(); ) { + if ( propertyEditorPaths != null ) + { + List editorSearchPath = new LinkedList( Arrays.asList( PropertyEditorManager + .getEditorSearchPath() ) ); + for ( StringTokenizer paths = new StringTokenizer( propertyEditorPaths, " ," ); paths.hasMoreElements(); ) + { //StringTokenizer implements Enumeration, not Enumeration !! - editorSearchPath.add((String) paths.nextElement()); + editorSearchPath.add( ( String ) paths.nextElement() ); } - PropertyEditorManager.setEditorSearchPath( editorSearchPath.toArray(new String[editorSearchPath.size()])); + PropertyEditorManager.setEditorSearchPath( editorSearchPath.toArray( new String[editorSearchPath.size()] ) ); } ClassLoader oldCL = Thread.currentThread().getContextClassLoader(); - Thread.currentThread().setContextClassLoader(getClass().getClassLoader()); - try { - schema.getParentFile().mkdirs(); + Thread.currentThread().setContextClassLoader( getClass().getClassLoader() ); + try + { + schemaFile.getParentFile().mkdirs(); String[] excludedClasses = null; - if (this.excludedClasses != null) { - excludedClasses = this.excludedClasses.split(" *, *"); + if ( this.excludedClasses != null ) + { + excludedClasses = this.excludedClasses.split( " *, *" ); } Set dependencies = project.getDependencyArtifacts(); List sourceJars = new ArrayList(); - sourceJars.add(srcDir); - for (Artifact dependency : dependencies) { - if ("sources".equals(dependency.getClassifier())) { + sourceJars.add( srcDir ); + for ( Artifact dependency : dependencies ) + { + if ( "sources".equals( dependency.getClassifier() ) ) + { File file = dependency.getFile(); - sourceJars.add(file); + sourceJars.add( file ); } } - File[] srcJars = sourceJars.toArray(new File[sourceJars.size()]); - MappingLoader mappingLoader = new QdoxMappingLoader(namespace, srcJars, excludedClasses); - GeneratorPlugin[] plugins = new GeneratorPlugin[]{ - new XmlMetadataGenerator(outputDir.getAbsolutePath(), schema, generateSpringSchemasFile, generateSpringHandlersFile), - new DocumentationGenerator(schema), - new XsdGenerator(schema), - new WikiDocumentationGenerator(schema), - }; + File[] srcJars = sourceJars.toArray( new File[sourceJars.size()] ); + MappingLoader mappingLoader = new QdoxMappingLoader( namespace, srcJars, excludedClasses ); + List pluginList = new ArrayList(); + // Add mandatory plugins + pluginList.add( new XmlMetadataGenerator( outputDirectory.getAbsolutePath(), schemaFile, + generateSpringSchemasFile, generateSpringHandlersFile ) ); + pluginList.add( new XsdGenerator( schemaFile ) ); + + // load configured GeneratorPlugins + for ( String clazz : generatorPlugins.split( "," ) ) + { + getLog().info( "Clazz: " + clazz ); + GeneratorPlugin plugin = ( GeneratorPlugin ) getClassLoader().loadClass( clazz ).getConstructor( + File.class ).newInstance( schemaFile ); + pluginList.add( plugin ); + } + // load the mappings - Thread.currentThread().setContextClassLoader(getClassLoader()); + Thread.currentThread().setContextClassLoader( getClassLoader() ); Set namespaces = mappingLoader.loadNamespaces(); - if (namespaces.isEmpty()) { - System.out.println("Warning: no namespaces found!"); + if ( namespaces.isEmpty() ) + { + getLog().warn( "Warning: no namespaces found!" ); } // generate the files - for (NamespaceMapping namespaceMapping : namespaces) { - for (GeneratorPlugin plugin : plugins) { - plugin.setLog(this); - plugin.generate(namespaceMapping); + for ( NamespaceMapping namespaceMapping : namespaces ) + { + for ( GeneratorPlugin plugin : pluginList ) + { + plugin.setLog( this ); + plugin.generate( namespaceMapping ); } - for (GeneratorPlugin plugin : generatorPlugins) { - plugin.setLog(this); - plugin.generate(namespaceMapping); - } } // Attach them as artifacts - if (schemaAsArtifact) { - projectHelper.attachArtifact(project, "xsd", null, schema); - projectHelper.attachArtifact(project, "html", "schema", new File(schema.getAbsolutePath() + ".html")); + if ( schemaAsArtifact ) + { + for ( GeneratorPlugin plugin : pluginList ) + { + if ( null != plugin.getFileExtension() ) + { + // xsd doesn't needs a doubled extension + if ( "xsd".equals( plugin.getFileExtension() ) ) + { + projectHelper.attachArtifact( project, "xsd", null, schemaFile ); + } + else + { + projectHelper.attachArtifact( project, plugin.getFileExtension(), "schema", new File( + schemaFile.getAbsolutePath() + "." + plugin.getFileExtension() ) ); + } + } + } } Resource res = new Resource(); - res.setDirectory(outputDir.toString()); - project.addResource(res); + res.setDirectory( outputDirectory.toString() ); + project.addResource( res ); - log("...done."); - } catch (Exception e) { - throw new BuildException(e); - } finally { - Thread.currentThread().setContextClassLoader(oldCL); + log( "...done." ); } + catch ( Exception e ) + { + throw new MojoExecutionException( "Schema generation failed", e ); + } + finally + { + Thread.currentThread().setContextClassLoader( oldCL ); + } } - public void log(String message) { - getLog().info(message); + + public void log( String message ) + { + getLog().info( message ); } - public void log(String message, int level) { - getLog().info(message); + + public void log( String message, int level ) + { + getLog().info( message ); } - protected URLClassLoader getClassLoader() throws MojoExecutionException { - try { + + protected URLClassLoader getClassLoader() throws MojoExecutionException + { + try + { Set urls = new HashSet(); - URL mainClasses = new File(project.getBuild().getOutputDirectory()) - .toURL(); - getLog().debug("Adding to classpath : " + mainClasses); - urls.add(mainClasses); + URL mainClasses = new File( project.getBuild().getOutputDirectory() ).toURL(); + getLog().debug( "Adding to classpath : " + mainClasses ); + urls.add( mainClasses ); - URL testClasses = new File(project.getBuild() - .getTestOutputDirectory()).toURL(); - getLog().debug("Adding to classpath : " + testClasses); - urls.add(testClasses); + URL testClasses = new File( project.getBuild().getTestOutputDirectory() ).toURL(); + getLog().debug( "Adding to classpath : " + testClasses ); + urls.add( testClasses ); Set dependencies = project.getArtifacts(); Iterator iter = dependencies.iterator(); - for (Artifact classPathElement : dependencies) { - getLog().debug( - "Adding artifact: " + classPathElement.getFile() - + " to classpath"); - urls.add(classPathElement.getFile().toURL()); + for ( Artifact classPathElement : dependencies ) + { + getLog().debug( "Adding artifact: " + classPathElement.getFile() + " to classpath" ); + urls.add( classPathElement.getFile().toURL() ); } - URLClassLoader appClassloader = new URLClassLoader(urls.toArray(new URL[urls.size()]), - this.getClass().getClassLoader()); + URLClassLoader appClassloader = new URLClassLoader( urls.toArray( new URL[urls.size()] ), this.getClass() + .getClassLoader() ); return appClassloader; - } catch (MalformedURLException e) { - throw new MojoExecutionException( - "Error during setting up classpath", e); } + catch ( MalformedURLException e ) + { + throw new MojoExecutionException( "Error during setting up classpath", e ); + } } } Index: maven-xbean-plugin/src/main/java/org/apache/xbean/maven/XBeanReportMojo.java =================================================================== --- maven-xbean-plugin/src/main/java/org/apache/xbean/maven/XBeanReportMojo.java (Revision 0) +++ maven-xbean-plugin/src/main/java/org/apache/xbean/maven/XBeanReportMojo.java (Revision 0) @@ -0,0 +1,458 @@ +/** + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.xbean.maven; + + +import java.io.File; +import java.util.List; +import java.util.Locale; +import java.util.ResourceBundle; + +import org.apache.maven.project.MavenProject; +import org.apache.maven.reporting.AbstractMavenReport; +import org.apache.maven.reporting.MavenReportException; +import org.codehaus.doxia.sink.Sink; +import org.codehaus.doxia.site.renderer.SiteRenderer; +import org.dom4j.Document; +import org.dom4j.DocumentException; +import org.dom4j.Node; +import org.dom4j.io.SAXReader; + + +/** + * @author Felix Knecht + * @version $Id$ + * @goal xbean-report + * @phase site + * @description Creates xbean mapping file report + */ +public class XBeanReportMojo extends AbstractMavenReport +{ + + /** + * Directory where reports will go. + * + * @parameter expression="${project.reporting.outputDirectory}" + * @required + * @readonly + */ + private String outputDirectory; + + /** + * Maven Project + * + * @parameter expression="${project}" + * @required @readonly + */ + private MavenProject project; + + /** + * Doxia Site Renderer + * + * @component + */ + private SiteRenderer siteRenderer; + + /** + * @parameter expression="${basedir}/target/xbean/" + * @required + */ + private File xbeanReports; + + + /** + * Execute report + * @param locale + */ + public void executeReport( Locale locale ) throws MavenReportException + { + try + { + SAXReader reader = new SAXReader(); + File file = new File( getXbeanReports(), "apacheds-xbean-spring.xsd.xml" ); + if ( file.exists() ) + { + Document document = reader.read( file ); + doGenerateReport( document, getBundle( locale ), getSink() ); + } + else + { + doGenerateEmptyReport( getBundle( locale ), getSink() ); + } + } + catch ( DocumentException de ) + { + throw new MavenReportException( de.getMessage() ); + } + } + + + /** + * + * Generate the report + * + * @param document + * @param bundle + * @param sink + */ + public void doGenerateReport( Document document, ResourceBundle bundle, Sink sink ) + { + sink.head(); + sink.title(); + sink.text( bundle.getString( "report.xbean.header" ) ); + sink.title_(); + sink.head_(); + sink.body(); + + // Generate title + sink.section1(); + sink.sectionTitle1(); + sink.text( bundle.getString( "report.xbean.name" ) ); + sink.sectionTitle1_(); + sink.section1_(); + sink.lineBreak(); + + // Element Summary + sink.section2(); + sink.sectionTitle2(); + sink.text( bundle.getString( "report.xbean.label.elementsummary" ) ); + sink.sectionTitle2_(); + sink.table(); + sink.tableRow(); + sinkHeaderCell( sink, bundle.getString( "report.xbean.label.element" ) ); + sinkHeaderCell( sink, bundle.getString( "report.xbean.label.description" ) ); + sinkHeaderCell( sink, bundle.getString( "report.xbean.label.class" ) ); + sink.tableRow_(); + List summaryElements = document.selectNodes( "//elementSummary/element" ); + for ( Node element : summaryElements ) + { + sink.tableRow(); + sinkCellLink( sink, element.valueOf( "@name" ), "#" + element.valueOf( "@name" ) ); + sinkCell( sink, element.selectSingleNode( "./description" ) == null ? "" : element.selectSingleNode( + "./description" ).getText() ); + sinkCell( sink, element.valueOf( "@class" ) ); + sink.tableRow_(); + } + sink.table_(); + sink.section2_(); + + // Elements Detail + sink.section2(); + sink.sectionTitle2(); + sink.text( bundle.getString( "report.xbean.label.elementsdetail" ) ); + sink.sectionTitle2_(); + List detailElements = document.selectNodes( "//elementsDetail/element" ); + for ( Node element : detailElements ) + { + sink.section3(); + sink.sectionTitle3(); + sink.text( bundle.getString( "report.xbean.label.element" ) + ": " ); + sinkAnchor( sink, element.valueOf( "@name" ), element.valueOf( "@name" ) ); + sink.sectionTitle3_(); + + // Attribute list + List attributes = element.selectNodes( "./attributes/attribute" ); + if ( !attributes.isEmpty() ) + { + sink.table(); + sink.tableRow(); + sinkHeaderCell( sink, bundle.getString( "report.xbean.label.attribute" ) ); + sinkHeaderCell( sink, bundle.getString( "report.xbean.label.type" ) ); + sinkHeaderCell( sink, bundle.getString( "report.xbean.label.description" ) ); + sink.tableRow_(); + for ( Node attribute : attributes ) + { + sink.tableRow(); + sinkCell( sink, attribute.valueOf( "@name" ) ); + sinkCell( sink, attribute.selectSingleNode( "./type" ) == null ? "" : attribute.selectSingleNode( + "./type" ).getText() ); + sinkCell( sink, attribute.selectSingleNode( "./description" ) == null ? "" : attribute + .selectSingleNode( "./description" ).getText() ); + sink.tableRow_(); + } + sink.table_(); + } + + //Element list + List elements = element.selectNodes( "./elements" ); + if ( !elements.isEmpty() ) + { + sink.table(); + sink.tableRow(); + sinkHeaderCell( sink, bundle.getString( "report.xbean.label.element" ) ); + sinkHeaderCell( sink, bundle.getString( "report.xbean.label.type" ) ); + sinkHeaderCell( sink, bundle.getString( "report.xbean.label.description" ) ); + sink.tableRow_(); + for ( Node elem : elements ) + { + List complexElements = elem.selectNodes( "./complexElement" ); + if ( complexElements == null ) + { + sink.tableRow(); + sinkCell( sink, elem.valueOf( "@name" ) ); + sinkCell( sink, elem.selectSingleNode( "./type" ) == null ? "" : elem.selectSingleNode( + "./type" ).getText() ); + sinkCell( sink, elem.selectSingleNode( "./description" ) == null ? "" : elem.selectSingleNode( + "./description" ).getText() ); + sink.tableRow_(); + } + else + { + for ( Node complex : complexElements ) + { + sink.tableRow(); + sinkCell( sink, complex.valueOf( "@name" ) ); + boolean collection = Boolean.parseBoolean( complex.valueOf( "./types/@collection" ) ); + List types = complex.selectNodes( "./types/type" ); + sink.tableCell(); + if ( collection ) + { + sink.text( "(" ); + } + boolean first = true; + for ( Node type : types ) + { + if ( first ) + { + first = false; + } + else + { + sink.text( " | " ); + } + if ( type.getText().equals( "" ) ) + { + sink.text( type.getText() ); + } + else + { + sink.link( "#" + type.getText() ); + sink.text( type.getText() ); + sink.link_(); + } + } + if ( collection ) + { + sink.text( ")*" ); + } + sink.tableCell_(); + sinkCell( sink, complex.selectSingleNode( "./description" ) == null ? "" : complex + .selectSingleNode( "./description" ).getText() ); + sink.tableRow_(); + } + } + } + sink.table_(); + } + } + + // Closing the report + sink.body_(); + sink.flush(); + sink.close(); + } + + + /** + * + * doGenerateEmptyReport + * + * @param bundle + * @param sink + * @param message + */ + public void doGenerateEmptyReport( ResourceBundle bundle, Sink sink ) + { + sink.head(); + sink.title(); + sink.text( bundle.getString( "report.xbean.header" ) ); + sink.title_(); + sink.head_(); + sink.body(); + + // Generate title + sink.section1(); + sink.sectionTitle1(); + sink.text( bundle.getString( "report.xbean.name" ) ); + sink.sectionTitle1_(); + sink.section1_(); + sink.lineBreak(); + + sink.text( bundle.getString( "report.xbean.emptyreport" ) ); + + // Closing the report + sink.body_(); + sink.flush(); + sink.close(); + } + + + /** + * + * Create a header cell + * + * @param sink + * @param header + */ + private void sinkHeaderCell( Sink sink, String header ) + { + sink.tableHeaderCell(); + sink.text( header ); + sink.tableHeaderCell_(); + } + + + /** + * + * Create an anchor + * + * @param sink + * @param text + * @param anchor + */ + private void sinkAnchor( Sink sink, String text, String anchor ) + { + sink.anchor( anchor ); + sink.text( text ); + sink.anchor_(); + } + + + /** + * + * Create a cell + * + * @param sink + * @param text + */ + private void sinkCell( Sink sink, String text ) + { + sink.tableCell(); + sink.text( text ); + sink.tableCell_(); + } + + + /** + * + * Create a cell link. + * + * @param sink + * @param text + * @param link + */ + private void sinkCellLink( Sink sink, String text, String link ) + { + sink.tableCell(); + sinkLink( sink, text, link ); + sink.tableCell_(); + } + + + /** + * + * Create a link + * + * @param sink + * @param text + * @param link + */ + private void sinkLink( Sink sink, String text, String link ) + { + sink.link( link ); + sink.text( text ); + sink.link_(); + } + + + /** + * @return the output directory + */ + protected String getOutputDirectory() + { + return outputDirectory; + } + + + /** + * @param locale + * @return the localized description + */ + public String getDescription( Locale locale ) + { + return getBundle( locale ).getString( "report.xbean.description" ); + } + + + /** + * @param locale + * @return the localized name + */ + public String getName( Locale locale ) + { + return getBundle( locale ).getString( "report.xbean.name" ); + } + + + /** + * @return the output name + */ + public String getOutputName() + { + return "xbean-report"; + } + + + /** + * @return the maven project + */ + protected MavenProject getProject() + { + return project; + } + + + /** + * @return the site renderer + */ + protected SiteRenderer getSiteRenderer() + { + return siteRenderer; + } + + + /** + * + * Get the resource bundle + * + * @param locale + * @return + */ + private ResourceBundle getBundle( Locale locale ) + { + return ResourceBundle.getBundle( "xbean-report", locale, this.getClass().getClassLoader() ); + } + + + /** + * @return the xbeanReports file + */ + public File getXbeanReports() + { + return xbeanReports; + } +} Eigenschaftsänderungen: maven-xbean-plugin/src/main/java/org/apache/xbean/maven/XBeanReportMojo.java ___________________________________________________________________ Hinzugefügt: svn:keywords + Author Date Id Revision Hinzugefügt: svn:eol-style + native Index: maven-xbean-plugin/src/main/resources/xbean-report.properties =================================================================== --- maven-xbean-plugin/src/main/resources/xbean-report.properties (Revision 0) +++ maven-xbean-plugin/src/main/resources/xbean-report.properties (Revision 0) @@ -0,0 +1,11 @@ +report.xbean.description=TBD +report.xbean.name=XBean-Report +report.xbean.header=XBean-Report +report.xbean.label.elementsummary=Element Summary +report.xbean.label.element=Element +report.xbean.label.description=Description +report.xbean.label.class=Class +report.xbean.label.elementsdetail=Elements Detail +report.xbean.label.type=Type +report.xbean.label.attribute=Attribute +report.xbean.emptyreport=No report available. Eigenschaftsänderungen: maven-xbean-plugin/src/main/resources/xbean-report.properties ___________________________________________________________________ Hinzugefügt: svn:keywords + Author Date Id Revision Hinzugefügt: svn:eol-style + native Index: maven-xbean-plugin/src/main/resources/xbean-report_de.properties =================================================================== --- maven-xbean-plugin/src/main/resources/xbean-report_de.properties (Revision 0) +++ maven-xbean-plugin/src/main/resources/xbean-report_de.properties (Revision 0) @@ -0,0 +1,11 @@ +report.xbean.description=TBD +report.xbean.name=XBean-Report +report.xbean.header=XBean-Report +report.xbean.label.elementsummary=Element Zusammenfassung +report.xbean.label.element=Element +report.xbean.label.description=Beschreibung +report.xbean.label.class=Klasse +report.xbean.label.elementsdetail=Elemente Detail +report.xbean.label.type=Typ +report.xbean.label.attribute=Attribut +report.xbean.emptyreport=Kein Report vorhanden. Eigenschaftsänderungen: maven-xbean-plugin/src/main/resources/xbean-report_de.properties ___________________________________________________________________ Hinzugefügt: svn:keywords + Author Date Id Revision Hinzugefügt: svn:eol-style + native Index: maven-xbean-plugin/src/site/site.xml =================================================================== --- maven-xbean-plugin/src/site/site.xml (Revision 751561) +++ maven-xbean-plugin/src/site/site.xml (Arbeitskopie) @@ -21,17 +21,15 @@ - - - ${parentProject} - - ${modules} - - ${reports} - + + + + + + + - Index: maven-xbean-plugin/src/site/apt/usage.apt =================================================================== --- maven-xbean-plugin/src/site/apt/usage.apt (Revision 0) +++ maven-xbean-plugin/src/site/apt/usage.apt (Revision 0) @@ -0,0 +1,85 @@ + ------ + Usage + ------ + Xean Dev + ------ + March 2009 + ------ + +~~ Copyright 2006 The Apache Software Foundation. +~~ +~~ Licensed under the Apache License, Version 2.0 (the "License"); +~~ you may not use this file except in compliance with the License. +~~ You may obtain a copy of the License at +~~ +~~ http://www.apache.org/licenses/LICENSE-2.0 +~~ +~~ Unless required by applicable law or agreed to in writing, software +~~ distributed under the License is distributed on an "AS IS" BASIS, +~~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +~~ See the License for the specific language governing permissions and +~~ limitations under the License. + +~~ NOTE: For help with the syntax of this file, see: +~~ http://maven.apache.org/doxia/references/apt-format.html + +Usage + +* Generate schemas as part of the jar file + + To generate the XBean schema as part of the jar file, add the follwing in the + \ section of you POM: + ++---+ + + ... + + + + org.apache.xbean + maven-xbean-plugin + + + + http://apacheds.org/config/${project.version} + target/xbean/${pom.artifactId}.xsd + + + mapping + + + + + + + ... + ++---+ + + When the <<>> is invoked, the schema will be automatically be + included in the jar file. + + +* Generate the report as part of Project Reports + + To generate the XBean report as part of the site generation, add the following in + the \ section of your POM: + ++---+ + + ... + + + + org.apache.xbean + maven-xbean-plugin + {version} + + + + ... + ++---+ + + When the <<>> is invoked, the report will be automatically + included in the Project Reports menu. Eigenschaftsänderungen: maven-xbean-plugin/src/site/apt/usage.apt ___________________________________________________________________ Hinzugefügt: svn:keywords + Author Date Id Revision Hinzugefügt: svn:eol-style + native Index: maven-xbean-plugin/pom.xml =================================================================== --- maven-xbean-plugin/pom.xml (Revision 751561) +++ maven-xbean-plugin/pom.xml (Arbeitskopie) @@ -100,6 +100,30 @@ 2.0 + + org.apache.maven + maven-artifact + 2.0 + + + + dom4j + dom4j + 1.5.2 + + + + org.apache.maven.reporting + maven-reporting-api + 2.0.6 + + + + org.apache.maven.reporting + maven-reporting-impl + 2.0 + +