[ANN] Transcoder Maven2 plugin - check completeness of your multilingual resources
Hi. I've recently release the Transcoder plugin: https://transcoder.dev.java.net/ I hope you'll find it useful. Here's a small description. The Transcoder plugin for Maven2 is used to check multilingual resources for the completeness of translation. This plugin analyzes property files contained within the application and reports entries which were not translated into one of the required languages. Missing entries are written into property files in some target directory. In practice, if you develop a multi-lingual project, you may need to be sure that you've translated all the language entries into all of the required languages. In case your language resources are distributed among multiple JARs, this may be hard to do. The Transcoder plugin performs the in-depth check of your JARs/resources and generates a list of properties yet-to-be-translated. How is the check performed? The plugin is configured with a list of languages (locales) and a list of resource names. It also implicitly knows runtime dependencies of the project. So the Transcoder plugin checks that: * for every runtime dependency and every resource name, * if certain entry exists in resource property file for one of the configured languages, * then it exists in resource property files for all of the configured languages (within the same dependency). What is the output? The plugin has the target configuration parameter ${project.build.directory}/missing-resources by default. In case resource file within some given dependency misses some entries for one of the languages, they will be written into the ${target}/${groupId}/${artifactId}/${resourceName}_${locale}.properties file. ${target} is the target directory (see above), ${groupId} and ${artifactId} are the group id and the artifact id of the given dependency, ${resourceName} and ${locale} are current resource name and language. Example. Consider we're missing the German user.username (locale: de) entry in the resource de/disy/preludio2/messages of the de.disy.preludio2:preludio2-shared. In this case we'll get the file target/missing-resources/de.disy.preludio2/preludio2-shared/de/disy/preludio2/messages_de.properties containing something like: user.username=@@TODO.user.username@@ Bye. /lexi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [ANN] Transcoder Maven2 plugin - check completeness of your multilingual resources
Hi. I've recently release the Transcoder plugin: https://transcoder.dev.java.net/ Awesome! I was actually getting ready to work on something like this for md4j-quickstarter [1], although more webapp oriented. Can this be extended to: * Parse a set of JSP (or other presentation technology) files with user-provided regexps to build a set of property keys * Compare these against the property files, to output files with missing or unused property keys If you are interested, i would be happy to give a helping hand :-) [1] http://www.geekologue.com/md4j/tutorial-with-maven.html Thanks! Well, this surely can be extended. I just wanted to start with a small and simple but yet complete thing. The plugin now just checks resources for cross-language completeness. That is, the set of keys per dependency/resource name is calculated as a set of all keys in all languages for that dependency/resource. This is just one algorithm to calculate this set. You are right, there must be much more of them. Like, parsing JSPs/Java code/Facelets templates/whatever. I think I'll make these algorithms extensible/pluggable and probably start with the Java code parsing (this is what I need for my projects). You are welcome to join the project and do the JSP parsing as you see it. Bye. /lexi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Issue with commons-logging 1.1
Hi. The problem I've bumped in is that commons-logging 1.1 has put a dependency on the servlet-api library and left the default scope. That means servlet-api gets right into my EAR which in turn makes my web application unable to serve my jsp's as it's a library that is provided by the servlet container. I don't declare commons-logging explicitly but I've got a bunch libraries that depend on it implicitly so it would be too hard to exclude the commons-logging lib for all the particular libs and explicitly declare it. For the moment I've manually modified the 1.1 pom but I think that even if the commons-logging team ships a 1.1.1 release as my libs depend on 1.1 I'd still be having issues thanks to the don't replace releases policy in the repository. I'd file a bug but the issue tracker tag in the pom points to bugzilla and they are not listed, so this is a public shout out hoping that it will get picked up. If anyone can raise the issue with the c-logging guys or can make a replace of only the pom in the repository it would be a great community service. I usually declare commons-logging dependency as follows: dependency groupIdcommons-logging/groupId artifactIdcommons-logging/artifactId version1.1/version exclusions exclusion groupIdlog4j/groupId artifactIdlog4j/artifactId /exclusion exclusion groupIdlogkit/groupId artifactIdlogkit/artifactId /exclusion exclusion groupIdavalon-framework/groupId artifactIdavalon-framework/artifactId /exclusion exclusion groupIdjavax.servlet/groupId artifactIdservlet-api/artifactId /exclusion /exclusions /dependency However I do agree these c-l deps are dumb. Bye. /lexi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JAXB 2.0-SNAPSHOT with exec Maven plugin
Hi. I am facing a strange error when using JAXB 2.0-SNAPSHOT with exec Maven plugin, please see Why don't you simply use maven-jaxb2-plugin? https://maven-jaxb2-plugin.dev.java.net/ Bye. /lexi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Hibernate3 export where *.hbm.cfg and *.hbm.xml are resources
Hi. Are you trying to document your hibernate classes?? Have you tried hbm2doc? No, we really need the database schema (DDL) for project documentation. Bye. /lexi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Hibernate3 export where *.hbm.cfg and *.hbm.xml are resources
Hi. In my project, Hibernate configuration and mappings are distributed among several JARs. That is, *.hbm.cfg and *.hbm.xml are resources inside JAR artifacts rather than files. There is a war module which depends on all of these JARs. And I need to export the database schema (DDL) for this module. Unfortunatelly codehaus hibernate3 plugin that I've encountered requires Hibernate configuration as a file. Is there a way to export the database schema for the Hibernate configuration defined in several JARs with Maven? Bye. /lexi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Hibernate3 export where *.hbm.cfg and *.hbm.xml are resources
Hi. i think you can configure what todo in the sessionFactory prop key=hibernate.hbm2ddl.autocreate/prop that way will be easier Yes, this is how it works right now. But we'd also like to generate the DDLs for documentation/reference purposes. with codehaus plugin you can use also an hibernate.properties, pls check properties available for that plugin when i tried, i didnt succeeded, so i decided to configure it on the sessionFactory. for tests, i am using a different DS, with different properties Ok, nice idea, thanks! Bye. /lexi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Plugin dependencies are not redefined
Hi. In my project, I am using the maven-jaxb1-plugin to compile XML Schemas into schema-derived classes. I would like to use this plugin in two modules but with different sets of plugin dependencies. For instance, in module A the maven-jaxb1-plugin needs no additional artifacts, schemas may be compiled as is. In module B I use some JAXB plugins, this requires some artifacts to be added into plugin dependencies. When I build modules A and B separately, everything works fine. However, when I execute the build of the parent project and B is built after A, module B fails since JAXB can't find the required dependencies. It seems that after the plugin was initialized in the A module, its dependencies are not overridden for B. Therefore in B JAXB lacks the required classes. Is there a possibility to handle the situation? Currently I have to exclude B from the modules of the parent POM, otherwise the build fails. Thanks. Bye. /lexi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JAXB2 versus Maven2
Hi. It seems, that http://repo1.maven.org/maven2/ is still stuck with 2.0EA3? Who can take care of this? https://maven-repository.dev.java.net/ https://maven2-repository.dev.java.net/ Bye. /lexi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Approach to web apps on different databases
Hi folks, We have a webapp on Hibernate/JSF. DB access only via Hibernate, no pure JDBC code. I'd like to ask advice on building this webbapp for different databases. We use HSQLDB in development-time, but production variants should run on Oracle and PostgreSQL. My questin is how could we use Maven to build versions of our app for some specific DBs? Our application is fully mavenized. It contains modules like: * schema - compiled XML Schemas; * main - main code; * web - war-packaged module. Should we simply create further web-oracle, web-psql etc. with dependencies on web and on specific DBs? Or what is the recommended approach? Thank you for your time and your replies. Bye. /lexi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Offtopic: Re: Maven and .NET
Hi. Morgovsky, Alexander (US - Glen Mills) wrote: Any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. [v.E.1] I LOVE these legal statements in emails. :) Bye. /lexi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mavenrun plugin?
Hi You might want to checkout the maven-invoker-plugin. It's SVN at: http://svn.apache.org/repos/asf/maven/sandbox/plugins/maven-invoker-plugin and IIRC has a snapshot deployed to the snapshot repository: pluginRepositories pluginRepository idapache.snapshots/id urlhttp://people.apache.org/repo/m2-snapshot-repository/url /pluginRepository /pluginRepositories For help configuring the plugin, see the maven-assembly-plugin's integration-test profile: http://svn.apache.org/repos/asf/maven/plugins/trunk/maven-assembly-plugin/pom.xml Wow, thanks! I'll try this out. Bye. /lexi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
mavenrun plugin?
Hi. Is there something like the mavenrun plugin? I'm building an assembly of one of the modules. After that I'd like to check if this assembly is buildable. That is, I'd like to extract the resulting zip into some folder and run maven with it (during the integration-test phases). I know how to build/extract assembly, but I don't know how to run maven with the specified pom.xml file/in the specified folder. Bye. /lexi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: What happened with java.net's m2 repo?
Hi. https://maven2-repository.dev.java.net/ states to use https://maven2-repository.dev.java.net/nonav/repository as url for their maven2 repo - but this fails (404). Use this link to browse the repo: https://maven2-repository.dev.java.net/source/browse/maven2-repository/trunk/www/repository/ 404 is due to the missing index.html files. Bye. /lexi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Hibernate mapping resource path in Maven
Hi. I just started converting a Java project using Hibernate (www.hibernate.org) to build with Maven rather than Ant. While I was able to get log4j logging working again by placing my log4j.properties file in src/main/resources, and putting hibernate.cfg.xml in the same place does result in it getting picked up by Hibernate at runtime, I can't seem to get the mapping resource entries correct. My directory structure is now src/main \ resources | \ hibernate.cfg.xml | \ java/cedar/hepdata/model \ Author.hbm.xml \ Axis.hbm.xml \ etc. 1. Put your HBM files into resources, not into java. You should have src/main/resource/cedar/hepdata/mode/Autor.hbm.xml etc. 2. Use mapping resource=cedar/hepdata/model/Author.hbm.xml/ Bye. /lexi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Generating SQL to initialize database
Hi folks. I wonder, what is the usual approach to generate or include in distribution or package the SQL that sets up the database (DDL)? For instance, I use Hyperjaxb to generate source code and Hibernate mappings from the database schema. Based on the Hibernate mappings I can generate the DDL that defines the database (there's a plugin to do that). What I completely miss is how this SQL should be packaged or distributed and so on. With HBMs everything works very nice - they are just packaged as resources in the JAR (together with Hibernate configuration). Currently I simply use the automatic schema creation of Hibernate. That is, during the start-up the Hibernate automatically exports the database schema into the database. But what should I do in cases when the database may only be created manyally by the admin? I'd be grateful for you input/advises. Thanks in advance. Bye. /lexi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Will an open source java make it possible to distribute Sun's jar files via ibiblio?
Hi. javax.mail is being distributed by Glassfish https://maven-repository.dev.java.net/nonav/repository/javax.mail/ There's also https://maven2-repository.dev.java.net which also contains quite a few Sun Jars. ;) Got no idea who put them there. ;) Bye. /lexi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven plugin to generate Java source, SQL schema, and O/R mapping files from XSD?
Hi. Its great that these tools exist -- obviously I had no idea. ;-) Yeah, we're programmers not promoters... I'm going to have to take a look at both of them and perhaps integrate one of them into our build process... Let me know if you experience any problems with Hyperjaxb2. There's a [EMAIL PROTECTED] m,ailing list, if anything. Any others worth looking at, while we're on the topic?? There are tools like Castor and XMLBeans, but I'm not sure if there's Maven support for these libs. Hyperjaxb2 delivers Maven support out of the box. Bye. /lexi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven plugin to generate Java source, SQL schema, and O/R mapping files from XSD?
Hi. Forgive me if this is a naive question but I've search the web and haven't found an obvious answer. I'd like to find a tool that generates Java source files, SQL schema files, and O/R mapping files from the same XSD file. The input XSD file (over which I have no control) defines the format of XML messages. I know that JAXB, XMLbeans, etc. can create the Java source files from this type of XSD file. However, I haven't been able to identify a tools that creates the SQL schema and O/R mapping files from the same type of XSD file. The closest tool I've found is Hydrate that will generate all three types of output files but it does this from a Hydrate model XSD file, not from the type of XSD file that JAXB or XMLbeans would take as input. Of course, it would be perfect if this tool could be integrated into a Maven 2 build process. This is exactly what Hyperjaxb2 does. Take a look at: https://hyperjaxb2.dev.java.net/ Hyperjaxb2 is a JAXB add-on that generates Hibernate mapping and configuration for JAXB classes. That is, you get *.hbm.xml and hibernate.cfg.xml. Hyperjaxb2 includes a Maven2 plugin. You don't need any special type of XSD, just normal schemas. Hyperjaxb2 will map everything for you. And of course you can customize the generated mappings. Here's a sample application: https://hyperjaxb2.dev.java.net/nonav/repository/org/jvnet/hyperjaxb2/hyperjaxb2-sample/0.6.0/hyperjaxb2-sample-0.6.0-src.zip Bye. /lexi -- GMX DSL-Flatrate 0,- Euro* - Überall, wo DSL verfügbar ist! NEU: Jetzt bis zu 16.000 kBit/s! http://www.gmx.net/de/go/dsl - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JPOX and Maven2
Hi folks, Does anyone use JPOX with Maven2? Which enhancer plugin do you use? Bye. /lexi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JPOX and Maven2
Hi. As I can see (1) , the last maven plugin is using jpox 1.1.1 . Stéphane. (1) *http://mojo.codehaus.org/jpox-maven-plugin/dependencies.html Thanks, I've also found it. I was a bit discouraged by JPOX supports Maven1, Maven2 is not supported statement on the JPOX site. I've now the hotel sample running on Maven2. Pretty nice. ;) Thanks again. Bye. /lexi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JPOX and Maven2
Hi. What do you need to put in your pom.xml to allow for Automated Enhancement ? I've attached my pom.xml. The whole example could be found here: https://hyperjaxb3.dev.java.net/source/browse/hyperjaxb3/jdo/sample-hotel/ Bye. /lexi project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd; modelVersion4.0.0/modelVersion groupIdorg.jvnet.hyperjaxb3/groupId artifactIdjdo-sample-hotel/artifactId version0.6.0/version packagingjar/packaging nameHyperjaxb3 JDO Sample Hotel/name dependencies dependency groupIdjunit/groupId artifactIdjunit/artifactId version3.8.1/version /dependency dependency groupIdjavax.jdo/groupId artifactIdjdo2-api/artifactId version2.0/version /dependency dependency groupIdhsqldb/groupId artifactIdhsqldb/artifactId version1.7.3.3/version scopetest/scope /dependency dependency groupIdcommons-logging/groupId artifactIdcommons-logging/artifactId version1.1/version /dependency dependency groupIdlog4j/groupId artifactIdlog4j/artifactId version1.2.13/version /dependency dependency groupIdjpox/groupId artifactIdjpox/artifactId version1.1.1/version /dependency /dependencies repositories repository idmaven2-repository.dev.java.net/id urlhttps://maven2-repository.dev.java.net/nonav/repository/url /repository repository idmaven-repository.dev.java.net/id urlhttps://maven-repository.dev.java.net/nonav/repository/url layoutlegacy/layout /repository /repositories pluginRepositories pluginRepository idmaven2-repository.dev.java.net/id urlhttps://maven2-repository.dev.java.net/nonav/repository/url /pluginRepository pluginRepository idmaven-repository.dev.java.net/id urlhttps://maven-repository.dev.java.net/nonav/repository/url layoutlegacy/layout /pluginRepository /pluginRepositories build defaultGoaltest/defaultGoal plugins plugin groupIdorg.codehaus.mojo/groupId artifactIdjpox-maven-plugin/artifactId executions execution goals goalenhance/goal /goals /execution /executions /plugin plugin inheritedtrue/inherited artifactIdmaven-compiler-plugin/artifactId configuration source1.5/source target1.5/target /configuration /plugin /plugins /build /project - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JPOX and Maven2
Hi. You can look at Continuum for an example: http://svn.apache.org/repos/asf/maven/continuum/trunk/continuum-model/pom.xml Thanks, I've also found that plugin. Works pretty neat. Bye. /lexi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JPOX and Maven2
Hi. It seems that when I make changes to package.jdo in the src directory, it is not being copied over to the target directory. Is there a way I can force it to copy over ? Is package.jdo placed in src/main/java or src/main/resources? Should be placed in latter. Bye. /lexi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JPOX and Maven2
Hi. It is currently placed in src/main/resources. It will get copied over only once. If I make a change, then I am forcing it by running mvn clean, then a mvn test. I would prefer to just edit package.jdo then mvn test. Sorry, can't reproduce. In my case mvn test copies the new package.jdo. I have maven 2.0.4 and all the plugin are up-to-date. Bye. /lexi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Has anyone made a jwsdp-1.6 repository?
Before I start on ther path of rolling my own, I was wondering if anyone already did this Take a look at maven-repository.dev.java.net maven2-repository.dev.java.net We've got a number of jwsdp jars deployed ther. Not all but you're free to add more. -- Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m204] Issue with transistive dependancies and Springframework
Hi. Is anyone else using spring 2.0 and acegi 1.0.2 It seems acegi 1.0.2 is requiring spring 1.2.7 and adds 1.2.7 and 2.0 into my ear. Is this an issue with the spring libs I imported? Below are my current dependencies: dependency groupIdorg.springframework/groupId artifactIdspring/artifactId version2.0-rc3/version /dependency dependency groupIdorg.springframework/groupId artifactIdspring-mock/artifactId version2.0-rc3/version /dependency dependency groupIdorg.acegisecurity/groupId artifactIdacegi-security/artifactId version1.0.1/version exclusions exclusion groupIdorg.springframework/groupId artifactIdspring-remoting/artifactId /exclusion exclusion groupIdorg.springframework/groupId artifactIdspring-jdbc/artifactId /exclusion exclusion groupIdorg.springframework/groupId artifactIdspring-support/artifactId /exclusion exclusion groupIdorg.springframework/groupId artifactIdspring-mock/artifactId /exclusion exclusion groupIdcas/groupId artifactIdcasclient/artifactId /exclusion exclusion groupIdaspectj/groupId artifactIdaspectjrt/artifactId /exclusion exclusion groupIdorg.apache.directory.server/groupId artifactIdapacheds-core/artifactId /exclusion exclusion groupIdorg.slf4j/groupId artifactIdslf4j-log4j12/artifactId /exclusion /exclusions /dependency Bye. /lexi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: docbook plugin
Hi. It depends. You can use mine if you're looking for: * Configuration of the stylesheets using the plugin configuration mechanism; * A solution that has everything included in the actual plugin; (No manual downloading of stylesheets or the DTD) * Entity resolution using entities defined in your POM; * PDF generation; * Man pages generation; * A non-codehaus implementation. http://www.agilejava.com/docbkx/docbkx-maven-plugin/ http://www.agilejava.com/docbkx/docbkx-samples/html/manual.html However, if you want to use Simplified DocBook, then you first need to create a dedicated jar containing the DTD, similar to the DocBook 4.4 version found here: http://www.agilejava.com/maven/org/docbook/docbook-xml/4.4/ (Note that is actually nothing but the DocBook DTD distribution unzipped, jarred and uploaded together with a POM.) The plugin will pick up the catalog file in the jar and use that to dynamically resolve the DTD and all other relevant entities. Thanks, I'll be trying that out. Bye. /lexi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: docbook plugin
Wilfred, I've searched for about half an hour but could not find any installation instructuons for your plugin. Yes I saw some pom fragments - but how do I install/download your plugin? Which pluginRepository should I use? I'd really appreciate a ready-to-use sample project. Bye. /lexi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: docbook plugin
Hi. Ok, I fixed my problem with the pre-site phase. It was because I was invoking mvn site:site instead of mvn site, so I was invoking the plug-in instead of the phase. Aleksei asked for the plugin configuration: El 10/10/2006 10:37, Aleksei Valikov escribió: Wilfred, I've searched for about half an hour but could not find any installation instructuons for your plugin. Yes I saw some pom fragments - but how do I install/download your plugin? Which pluginRepository should I use? I'd really appreciate a ready-to-use sample project. This is my particular POM (notice it contains my own directories configuration): build plugins plugin groupIdcom.agilejava.docbkx/groupId artifactIddocbkx-maven-plugin/artifactId version1.69.1.7/version executions execution goals goalgenerate-html/goal goalgenerate-pdf/goal /goals phasepre-site/phase /execution /executions dependencies dependency groupIdorg.docbook/groupId artifactIddocbook-xml/artifactId version4.4/version scoperuntime/scope /dependency /dependencies configuration chunkedOutputtrue/chunkedOutput xincludeSupporttrue/xincludeSupport sourceDirectory${basedir}/src/main/site/docbook/sourceDirectory targetDirectory${basedir}/target/site/docs/targetDirectory /configuration /plugin /plugins /build pluginRepositories pluginRepository idagilejava/id urlhttp://www.agilejava.com/maven//url snapshots enabledtrue/enabled /snapshots /pluginRepository /pluginRepositories Thanks a lot folks, this helps. In any case what I think would be nice is some kind of a ZIP assembly which represents a complete and independent project. You know, just unpack and run mvn site and see the magic. I'll also report when I've integrated the plugin. Bye. /lexi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: docbook plugin
Hi. I'll add to the manual that - at this stage - you need to add my personal repository (http://agilejava.com/maven/) to your list of repositories. I have been trying to get the plugin uploaded to the central repository, but for some reason you can only upload plugins if you set up an rsync synchronisation process, and I haven't been able to do that yet. In the meanwhile, simply hook up to my own repository. There is in fact a samples project with a sample POM here: http://86.85.236.224/svn/docbkx/trunk/docbkx-samples/pom.xml (However, it's missing the required repository section I'll make sure that's getting added.) Hope it helps. Wow, great, it worked out! I have yet another small question. My doc (reference/reference.xml) includes some images (reference/images/a.gif etc.). How do I instruct Maven/docbkx plugin to copy the images together with generated html/pdf? Right now I get reference.html reference.fo reference.pdf in the output folder. I'd like these to be accompanied with images/**/*.*. I'd be grateful if you give me a clue. Thanks again for your time and a great plugin. Bye. /lexi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: sjc (jaxb) plugin for jdk1.4
Hi. I am trying to convert a large ant project to maven and the project (for various reasons) is tied to jdk 1.4. There are several uses of xjc (jaxb) and I wanted to use a maven jaxb plugin in order to build those projects. However, the jaxb plugin available maven-jaxb-plugin (com.sun.tools.xjc.maven2) requires the use of jdk 1.5. (It requires source=1.5). Does there exist a jaxb plugin for maven2 that works with jdk1.4? I'd rather not have to use an ant-task for my xjc code generation. Thanks. -- Eric Here's one that we wrote and use extensively: https://maven-jaxb1-plugin.dev.java.net Bye. /lexi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
docbook plugin
Hi folks, Which docbook plugin would you recommend to use? Just like many people I previously used DocBook XSLTs and builds from Hibernate documentation. My projects are now ported to Maven and I'd like to port documentation generation as well. I've found several plugins that seem to do the job, but I got no idea which one is usable. I have documents in simplified DocBook. Bye. /lexi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Project-specific plugins
Hi. Our current projects currently make extensive use of Maven 1.0. Since Maven 2 looks very promising, we'd like to make the switch. At this moment, many projects contain project-specific goals in maven.xml. We could convert this code into M2 plugins, but that would separate the project-specific plugin from the rest of the project. What's so bad about that? Is it possible to have a project-specific directory in which Maven also searches for plugins? This would allow us to keep the project-specific plugin in the same structure as the project itself. You may configure plugin repositories on a per-project basis. Bye. /lexi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Project-specific plugins
Sybren Stüvel wrote: Hi. Our current projects currently make extensive use of Maven 1.0. Since Maven 2 looks very promising, we'd like to make the switch. At this moment, many projects contain project-specific goals in maven.xml. We could convert this code into M2 plugins, but that would separate the project-specific plugin from the rest of the project. What's so bad about that? Joining the project would require yet another action to be done by the programmer, namely copying the plugin from the project to his/her M2 plugin directory. Changes to the plugin would have to be copied back and then committed. I don't quite get it. You just mvn clean install plugin and it's available to the project. I also have several project-specific Maven plugins. They just reside in their own modules, build during the whole build and thus available to the subsequent modules. You may configure plugin repositories on a per-project basis. Nice. Can that be done with paths relative to the project directory? It's just a simple url, I think you can configure a relative path there as well (haven't tried myself, however). project ... pluginRepositories pluginRepository idsnapshots/id urlhttp://people.apache.org/maven-snapshot-repository//url /pluginRepository /pluginRepositories ... /project Bye. /lexi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Project-specific plugins
Hi. I don't quite get it. You just mvn clean install plugin and it's available to the project. I also have several project-specific Maven plugins. They just reside in their own modules, build during the whole build and thus available to the subsequent modules. Can you be more specific? I'm quite new to Maven, so I don't really understand where you've put the plugin code, the project code, and what's in your pom.xml. Okay, take a look at hyperjaxb3.dev.java.net. From the root master POM: modules !-- General -- moduleruntime/module moduletools/module moduletesting/module !-- Hibernate -- modulehibernate-mapping/module modulehibernate-configuration/module modulehibernate-customizations/module modulehibernate-roundtrip/module modulehibernate-runtime/module modulehibernate-plugin/module !-- EJB -- moduleejb-roundtrip/module moduleejb-schemas/module moduleejb-plugin/module !-- Maven -- modulemaven/module modulemaven-testing/module !-- Tests -- moduletests/module moduleejb-tests/module /modules All modules up to Maven are just normal project modules. maven contains the maven-hyperjaxb3-plugin. This plugin is used later on in tests and ejb-tests modules. So you just have to create a separate plugin module (which is no different from normal modules, it's just maven-plugin packaging) and use the plugin in further modules. The only possible problem I see is when your plugin is too tightly integrated into you module. In this case you may need to divide this module into two parts. Bye. /lexi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Company-wide Maven repo
Hi. it depends on Your needs... Thanks for the response! Needs are simple. We are a small company with ~20 developers. Different people do different projects. Projects often depend on each other. Currently we have no central repo for our firma. Therefor if my project depends on 10 other projects I first have to check them out and build them. Having a central repository would allow me to check out a single project that I'm interested in. All other project will be built and installed into the repo by the responsible people, so my project will simply take artifacts from the central repo. I don't need any advanced artifact management. Seems like proximity is ok for us. Thanks again! Bye. /lexi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Company-wide Maven repo
Hi folks, Could anyone recommend software for implementing/installing a company-wide Maven repository? maven-proxy? proximity? Pros and contras? I'd be grateful for your opinions. Bye. /lexi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Unable to find Mojo/CNFE
Hi. I'm struggling to make my plugin work. It is a 1:1 copy of the http://maven-jaxb1-plugin.dev.java.net/ ported onto jaxb2. I'm getting 'Unable to find the mojo' error and the stack trace shows that I have a ClassNotFoundException. I have hot no idea why. The class is clearly in the jar and the jar is clearly in the realms... Does anyone have any suggestions on how could I debug this stuff? What may be possibly wrong? I'd be grateful for any help. Just can't resolve this myself. Resolved by removing the org/apache/maven dir from the repo. Possibly something got corrupted in there. Bye. /lexi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Unable to find Mojo/CNFE
Hi. I'm struggling to make my plugin work. It is a 1:1 copy of the http://maven-jaxb1-plugin.dev.java.net/ ported onto jaxb2. I'm getting 'Unable to find the mojo' error and the stack trace shows that I have a ClassNotFoundException. I have hot no idea why. The class is clearly in the jar and the jar is clearly in the realms... Does anyone have any suggestions on how could I debug this stuff? What may be possibly wrong? I'd be grateful for any help. Just can't resolve this myself. Bye. /lexi + Error stacktraces are turned on. Maven version: 2.0.4 [DEBUG] Building Maven user-level plugin registry from: 'C:\Dokumente und Einstellungen\valikov\.m2\plugin-registry.xml' [DEBUG] Building Maven global-level plugin registry from: 'C:\Maven\conf\plugin-registry.xml' [INFO] Scanning for projects... [DEBUG] Searching for parent-POM: org.jvnet.jaxb2.maven2:maven-jaxb2-plugin-tests::0.1 of project: org.jvnet.jaxb2.maven2:maven-jaxb2-plugin-tests-po:jar:null in relative path: ../pom.xml [DEBUG] Using parent-POM from the project hierarchy at: '../pom.xml' for project: org.jvnet.jaxb2.maven2:maven-jaxb2-plugin-tests-po:jar:null [DEBUG] Searching for parent-POM: org.jvnet.jaxb2.maven2:maven-jaxb2-plugin-project::0.1 of project: org.jvnet.jaxb2.maven2:maven-jaxb2-plugin-tests:pom:null in relative path: ../pom.xml [DEBUG] Using parent-POM from the project hierarchy at: '../pom.xml' for project: org.jvnet.jaxb2.maven2:maven-jaxb2-plugin-tests:pom:null [INFO] [INFO] Building JAXB-2.x Maven-2 Plugin Tests [po] [INFO]task-segment: [clean, install] [INFO] [DEBUG] maven-clean-plugin: resolved to version 2.1 from repository central [DEBUG] Retrieving parent-POM: org.apache.maven.plugins:maven-plugin-parent::2.0 for project: null:maven-clean-plugin:maven-plugin:2.1 from the repository. [DEBUG] maven-jaxb2-plugin: resolved to version 0.1 from local repository [DEBUG] Retrieving parent-POM: org.jvnet.jaxb2.maven2:maven-jaxb2-plugin-project::0.1 for project: org.jvnet.jaxb2.maven2:maven-jaxb2-plugin:maven-plugin:0.1 from the repository. [DEBUG] org.apache.maven.plugins:maven-clean-plugin:maven-plugin:2.1:runtime (selected for runtime) [DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0 for project: org.apache.maven:maven-plugin-api:jar:2.0 from the repository. [DEBUG] org.apache.maven:maven-plugin-api:jar:2.0:runtime (selected for runtime) [DEBUG] Retrieving parent-POM: org.apache.maven.shared:shared-components-parent::1 for project: null:file-management:jar:1.0 from the repository. [DEBUG] org.apache.maven.shared:file-management:jar:1.0:runtime (selected for runtime) [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime (selected for runtime) [DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-clean-plugin:2.1:clean' -- [DEBUG] (f) directory = C:\Projects\p2.external\maven-jaxb2-plugin\tests\po\target [DEBUG] (f) outputDirectory = C:\Projects\p2.external\maven-jaxb2-plugin\tests\po\target\classes [DEBUG] (f) testOutputDirectory = C:\Projects\p2.external\maven-jaxb2-plugin\tests\po\target\test-classes [DEBUG] -- end configuration -- [INFO] [clean:clean] [INFO] Deleting directory C:\Projects\p2.external\maven-jaxb2-plugin\tests\po\target [DEBUG] Found deletable paths: [] [INFO] Deleting directory C:\Projects\p2.external\maven-jaxb2-plugin\tests\po\target\classes [DEBUG] Found deletable paths: [] [INFO] Deleting directory C:\Projects\p2.external\maven-jaxb2-plugin\tests\po\target\test-classes [DEBUG] Found deletable paths: [] [DEBUG] maven-resources-plugin: resolved to version 2.2 from repository central [DEBUG] Retrieving parent-POM: org.apache.maven.plugins:maven-plugins::1 for project: null:maven-resources-plugin:maven-plugin:2.2 from the repository. [DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::1 for project: org.apache.maven.plugins:maven-plugins:pom:1 from the repository. [DEBUG] Retrieving parent-POM: org.apache:apache::1 for project: org.apache.maven:maven-parent:pom:1 from the repository. [DEBUG] maven-compiler-plugin: resolved to version 2.0.1 from repository central [DEBUG] Retrieving parent-POM: org.apache.maven.plugins:maven-plugins::1 for project: null:maven-compiler-plugin:maven-plugin:2.0.1 from the repository. [DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::1 for project: org.apache.maven.plugins:maven-plugins:pom:1 from the repository. [DEBUG] Retrieving parent-POM: org.apache:apache::1 for project: org.apache.maven:maven-parent:pom:1 from the repository. [DEBUG] maven-surefire-plugin: resolved to version 2.2 from repository central [DEBUG] Retrieving parent-POM: org.apache.maven.plugins:maven-plugins::1 for project: null:maven-surefire-plugin:maven-plugin:2.2 from the repository. [DEBUG] Retrieving parent-POM:
Creating an ant-style distribution with Maven
Hi. I have recently migrated one of my projects (Hyperjaxb2, https://hyperjaxb2.dev.java.net/) onto Maven. I'm very satisfied with results but have one open question. Hyperjaxb2 is a code generation tool. You give your XML Schema in and get a JAR with JAXB-generated classes plus Hibernate mappings to persiste these classes in a relational database. As one of the artifacts, I'd like to produce a just add water project template, where users could simply copy the XML schema in some directory and execute the build. With Maven this can be implemented with a Maven plugin, which could create the appropriate directory structure and build files. However I still have a lot of Ant users which aren't ready to migrate to Maven. For these users I'd like to produce something like a zip file with pre-created directory structure and build files as well as all the required libraries. So my question is - how could I produce such a Zip? Thank you for your time. Bye. /lexi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Ad: Creating an ant-style distribution with Maven
Hi. Have you tried the assembly plugin? Oh, looks promising. Thanks. Bye. /lexi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
mvn install with sources?
Hi. I'd like to get sources for my jar artifacts installed into the local repo. I usually do mvn (clean) install, but this only builds and copies the binary jar into the repo. What should I do to get sources along? Bye. /lexi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Maven best practices - company-wide local repository?
Hi. I'm introducing Maven in my company. We're not a very large firm, ~ 20 developers and I consider if we should use a common local repository - for instance over a network share. The problem is that we often use non-released versions of third party libraries, which do not exist in central repositories like ibiblio. Another thing that our projects sometimes depend on non-released artifacts (like jta or jsf-facelets). If we use a common local repository, it would be enough that just one developer installs these artifacts into a local repo - and they immediately become available to everyone. Do you do anything similar? Are there drawbacks? What is the recommended approach? Bye. /lexi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven best practices - company-wide local repository?
Hi. BTW be careful about the words you use : internal repository is not the same as a local repository. A local repository should be only local to a developer desktop and not on a network drives or you will have speed issues. Ok, understand. In case of using an internal repository - what is the analog to mvn install? For instance I want to share a third party artifact and do something like mvn install:install-file -Dfile=./jta-1.0.1B.jar -DgroupId=javax.transaction -DartifactId=jta -Dversion=1.0.1B -Dpackaging=jar This installs an artifact into the local repo. How do I install an artifact into an internal repo? Bye. /lexi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Using log4j in plugins
Hi. I'm using a maven plugin that is capable of logging the debug/trace information via log4j. log4j is on plugin's dependency, but I need to provide log4j.properties for my project. How could I configure log4j for a plugin that is executed in the generate-sources phase? This is a phase and plugin-specific log4j configuration I don't want it to influence the rest of the project. Thanks. Bye. /lexi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Few Maven2 questions
Hi. 1. When developing a plugin, how would it be possible to provide a default expression for an array? For instance, I have a field like: protected String[] bindingIncludes; I'd like the it to be an array of single *.xjb string. 2. I have a Java code generation plugin which may also produce some unit tests. Everything is put into target/generated-sources/xjc, for some technical reasons I can't output unit tests into a different directory. How could I instruct Maven to execute the generated unit tests from target/generated-sources/xjc? Thank you for your time. Bye. /lexi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Sharing third party jars in ibiblio
Hi folks, I would like to share some third party jars in ibiblio. I've searched the docs - they describe how to install third party jars in a local repository and how to share own jars (built with maven) in ibiblio. The problem I have now is that I need to share the Compass Framework jars in some kind of a central repo (preferrably ibiblio). I have an allowance from Compass Framework project owner. Could anyone help me out? Bye. /lexi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Sharing third party jars in ibiblio
Hi. Please visit this guide http://maven.apache.org/guides/mini/guide-ibiblio-upload.html Yes, I've seen it - but this guide assumes these are my artifacts, so there's pom.xml, directory structure etc. I have nothing like that, I just have a compass.jar file which I'd like to share under org.compass/compass/0.9.1. Bye. /lexi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Maven questions: defaulting an array in Mojo, executing generated unit tests
Hi. 1. When developing a plugin, how would it be possible to provide a default expression for an array? For instance, I have a field like: protected String[] bindingIncludes; I'd like the it to be an array of single *.xjb string. 2. I have a Java code generation plugin which may also produce some unit tests. Everything is put into target/generated-sources/xjc, for some technical reasons I can't output unit tests into a different directory. How could I instruct Maven to execute the generated unit tests from target/generated-sources/xjc? Thank you for your time. Bye. /lexi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]