google analytics in maven generated site?
Hi, I tried to add a snippet of xml code to the site.xml and the site plugin chokes since it is not expecting it. Does anyone have an example of using the ganalytics-maven-plugin plugin? Is there another way to add non-complaint xml snippets to a maven site.xml file? Thanks very much! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
m2 so much faster with mirrors.ibiblio.org repo?
I was fighting with m2 because it could find a jar I knew was on http://mirrors.ibiblio.org/pub/mirrors/maven2 I added the repo to my repository list, and all works great now. The question in all of this is that I thought the base/root types of repositories are automatically added to the maven installation and I did not need to add the following repository. Why wouldn't this automatically be a repo that is used in resolving artifacts? Thanks. repository releases/ idmaven2/id namemaven repository/name urlhttp://mirrors.ibiblio.org/pub/mirrors/maven2/url /repository - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
best maven2 eclipse integration?
I am using the the m2 eclipse plugin and while it works (and I appreciate it very much), I just can't stand the several minute long build cycles and looking for something that will speed up my development. Can anyone recommend something for me besides the http://m2eclipse.codehaus.org/ ? Thanks! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Plugin to create source distribution?
I would like to create a distribution of my project. I would like the distribution to include sources, maven files, etc... Extra credit for zip and gz support! Can someone point me to a plugin that would come close to this functionality? Thanks! Phillip - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: SQL scripts in webapp
I dealt with this one too. I had to take a step back. Maven is great for building/compiling code, but it is not an platform for execution. My problem went away when I decided to use maven to package/build my projects and left sql/data migration programs/etc/ to ant scripts. Just my 2 cents. Vinita Joshi wrote: I want to use sql scripts in my webapp which I am building using maven 2. However, the scripts are executed when I run mvn package command. I want these scripts to be executed when I deploy the app on geronimo. Any help is appreciated. Regards, Vinita I have added the following in my pom.xml plugins plugin groupIdorg.codehaus.mojo/groupId artifactIdsql-maven-plugin/artifactId dependencies !-- specify the dependent jdbc driver here -- dependency groupIdojdbc14/groupId artifactIdojdbc14/artifactId version10.1.0.4.0/version /dependency /dependencies !-- common configuration shared by all executions -- configuration usernamesf/username passwordsf/password !-- You can comment out username/password configurations and have maven to look them up in your settings.xml using ${settingsKey} -- settingsKeyssensibleKey/settingsKeys driveroracle.jdbc.driver.OracleDriver/driver urljdbc:oracle:thin:@localhost:1521:orcl/url /configuration executions execution idcreate-data/id phaseprocess-test-resources/phase goals goalexecute/goal /goals configuration fileset basedirsrc/basedir includes !-- These 2 files may not get executed in sequence, use srcFiles instead, if needed -- includetest/sql/test-data.sql/include !--includetest/sql/test-data2.sql/include-- /includes /fileset /configuration /execution /executions /plugin /plugins - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
status of hibernate plugin for m2?
I have a project that will be using hibernate, but it appears that the hibernate plugin has not been developed yet for maven 2. Can someone confirm this for me? Thank you! Phillip Rhodeshttp://www.jsso.org Open source Java Identity and Authorization Serviceshttp://www.rhoderunner.com Open Source Java Ecommerce Suite - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
where is jdo-2.0-20050507.jar?
My maven build is failing because it can't find this jar file. I would appreciate what I should be looking for to get past this this jar is not in jarhoo.com Thanks Downloading: http://repo1.maven.org/maven2/javax/jdo/jdo/2.0-20050507/jdo-2.0-20050507.jar [WARNING] Unable to get resource from repository central (http://repo1.maven.org/maven2) [INFO] [INFO] BUILD FAILURE [INFO] [INFO] Failed to resolve artifact. GroupId: javax.jdo ArtifactId: jdo Version: 2.0-20050507 Type: jar NOTE: If Maven is executing in offline mode, some artifacts may be missing from your local repository. Phillip Rhodeshttp://www.jsso.org Open source Java Identity and Authorization Serviceshttp://www.rhoderunner.com Open Source Java Ecommerce Suite - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
M2: best way to include property file in a jar artifact?
I am using maven 2 and cannot find an example by which I can have a property file get put into my jar file. I have the property file sitting in with the java code in /src/main/java/com/ Is this best done via pom resource declaration or via pre-compile goals? Is there any complete examples using maven 2? Thanks! Phillip Rhodeshttp://www.jsso.org Open source Java Identity and Authorization Serviceshttp://www.rhoderunner.com Open Source Java Ecommerce Suite - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
scope provided not functioning in maven 2?
My j2ee-1.3.1.jar is being included in my war file although I set the scope to provided I am using Maven version: 2.0-beta-2 Is this a bug or am I making a mistake? Thank you! In my dependencies: dependency groupIdj2ee/groupId artifactIdj2ee/artifactId version1.3.1/version scopeprovided/scope /dependency Phillip Rhodeshttp://www.jsso.org Open source Java Identity and Authorization Serviceshttp://www.rhoderunner.com Open Source Java Ecommerce Suite - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
war file created without tlds directory
I am using Maven version: 2.0-beta-2 I have a webapp/WEB-INF/tlds directory that has several tld's in it that are not included in the war file that is packaged. Most of the tld's are struts related... What properties do I need to set to include the tlds in the war? I don't see this referenced in the war plugin documentation. thanks! Phillip Rhodeshttp://www.jsso.org Open source Java Identity and Authorization Serviceshttp://www.rhoderunner.com Open Source Java Ecommerce Suite - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
maven and ssh via jsch library?
I need to do some ssh commands in maven. Has anyone ever used jsch in maven? I would expect to see it documented as a plugin, but numerous searches for ssh and maven did not return any information. Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Reuse of hibernate domain objects in multiple maven projects?
I have a core project that encapsulates some domain objects that I reuse in many of my projects. Many of the domain objects use hibernate to be persisted. I use the xdoclet and hibernate plugins to generate the mapping files and create the tables in a schema. I reuse these core object relational mappings in many other projects. Each project has its own schema, so I need to create these core tables in each of the other schemas. So far, I have been copying the class files and mapping files to each of these projects using a custom maven plugin and running the hibernate:schema-export goal for that individual project so that all the necessary tables are created. I need to copy the class files over or the hibernate plugin will not work. While this works, I was interested in hearing how other folks have dealt with using the hibernate goals for a shared set of core objects across multiple projects? A couple of drawbacks is that since I copy the class and hbm files to my new projects, I am getting unwanted classes in my new pom jar file (i would rather just get the class file from the core project). Another drawback (minor) is the time required to regenerate the ddl from the mappings when this has already been done in the core project. Interested in hearing your thoughts. Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: HSQLDB locking when using tomcat plugin
I am not aware of the ability to issue a sql shutdown to an in-process HSQL instance. In your case, it would appear to me that you will have to stop the server. HTH --- Siegfried Goeschl [EMAIL PROTECTED] wrote: Hi Sebastien, I think you need to issue a SQL shutdown command for HSQLDB which also compacts the database Cheers, Siegfried Goeschl Sebastien Arbogast wrote: Hi, I'm using Codeczar tomcat plugin to manipulate my tomcat server for my web application. So when I have to recompile some Java class while my Tomcat server is running I want to execute the following procedure : maven tomcat:stop maven war:webapp maven tomcat:start But then when I try to access my database (HSQLDB in file protocol, In-process mode) through my application, I get the following error message : The database is already in use by another process: [EMAIL PROTECTED] =C:\dev\pfe\schaman\target\webapp\WEB-INF\db\schamandb.lck, exists=true, locked=false, valid=false, fl =null]: The problem seems to be that when the application is stopped, the lock on schamandb.lck is not released. Does anyone know how to solve this situation or do I have to stop the server everytime I have something to recompile ? My configuration is the following : - HSQLDB 1.7.3.3 - Maven 1.0.2 - maven-tomcat-plugin version 1.1 Thx in advance. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
dist plugin help
Hi, I am trying to use the dist plugin to push source and binary distributions to my remote website. When I invoke the goal, it is trying to push the distributions to login.ibiblio.org. I do not see a documented property for the goal that controls the destination of the distribution. I have set several of the values in my pom, but these seem to have no effect. Can someone tell me what property or pom element needs to be modified so that it goes to my own site? Thanks, trying to get my jsso project properly setup before everyone discovers how cool it is;) Here is viewcvs with my maven.xml and project.xml (in case it would help). http://www.jsso.org/viewcvs/viewcvs.cgi/jsso/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
account for ibiblio?
Sorry, my googling didn't find me the answer that I needed. I would like to upload resources for my project (jsso) onto ibiblio. It includes a plugin, jar and war, and some dependent libraries that are open sourced, but not on ibiblio. I see the page in the maven site that says to open up a Jira request, but I see this as inefficient, since I am the author and will be having to do this many times. Is it possible to have a little more efficiency in maintaining the jsso artifacts on ibiblio? Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
maven.test.skip help request
I am in a quandary. My junit tests require a database to run. My hibernate:schema-export task needs to have compiled java class files to run My junit tests kick off when I try to compile the java source files So there isn't a database for my junit test (or rather there is an out-of-sync one) I would like to do the following build steps (basically have more control over when my tests are run) 1) compile/war application 2) do a hibernate:schema-export 3) run tests I understand that I can set the maven.test.skip to false, but can I set it to true/false willy nilly any time that I want? Am I going against the maven currents by doing it this way? Thanks! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
war and a jar, help me decide how
I am seeking advice on which approach to use. Currently, I have one maven project that creates a war. However, I need to create a jar from the java in this project. Previously, I would just call jar:install and war:install and that worked for me fine. However, since I now have unit tests, this is not going to work for me anymore. Can someone point me to the correct strategy (a, b or c)? a) Create a second maven project with no code (all the src stays in the original project) and override the maven.war.src directory and point it to the project original webapp sources. The second maven project would kind of be like an empty shell. b) Move the webapp source to a second maven project. The java is in one project, my jsp, tapestry, web.xml stuff is in another project. c) rearchitect my build to use the reactor and subprojects in a single project folder. The source is at http://www.jsso.org/viewcvs/viewcvs.cgi/jsso/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
where is default.properties?
I am trying to change the location of the local repository so that everyone in our group could use the same repo... The FAQ points me to a default.properties file , but there is no such file in maven. I do not want to have to create a default.properties file in every project... Is this where the default.properties file goes, or is there another location? Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
anyone using kintana?
Upper management is giving our group an ultimatum to use kintana for change control and configuration management. Currently we are using ant, shell scripts and cvs. I am converting projects to maven to do some proof of concept, see how it would work... I was wondering if anyone else out there in maven land is looking at kintana? Thanks. __ Do you Yahoo!? Yahoo! Mail is new and improved - Check it out! http://promotions.yahoo.com/new_mail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: anyone using kintana?
Sorry, I don't mean to be off topic, but as build engineers for enterprise systems, we will run into the same build related issues. Currently I run the migration of code and application server infrastructure for a fortune 100 b2b site. We have over 30 app servers in each env. I do this using ant and shell scripts. I wanted to look at maven in order to facilitate the move to a release based system. However, management wants me to migrate my process to kintana... I was hoping someone on the list who has been using ant/maven like me has to look at kintana and get a dialog going on strategies for integration (off list). kintana is a product of mercury that consists of tools that control the flow of code and application server configurations to test, production, etc... http://www.mercury.com/us/products/it-governance-center/change-management/extensions/ecommerce.html thanks. --- Eugene Kirin [EMAIL PROTECTED] wrote: He-he :) What's kintana? Hello, phillip! You wrote to [EMAIL PROTECTED] on Thu, 1 Jul 2004 07:02:42 -0700 (PDT): pr Upper management is giving our group an ultimatum to use kintana for pr change control and configuration management. pr Currently we are using ant, shell scripts and cvs. I am converting pr projects to maven to do some proof of concept, see how it would pr work... pr I was wondering if anyone else out there in maven land is looking at pr kintana? pr Thanks. pr __ pr Do you Yahoo!? pr Yahoo! Mail is new and improved - Check it out! pr http://promotions.yahoo.com/new_mail pr - pr To unsubscribe, e-mail: [EMAIL PROTECTED] pr For additional commands, e-mail: [EMAIL PROTECTED] With best regards, Eugene Kirin. E-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? New and Improved Yahoo! Mail - 100MB free storage! http://promotions.yahoo.com/new_mail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: can maven deploy my website out of CVS?
There is a ant cvs task that works well for me. I would do a pregoal and just call out to the ant:cvs task. http://ant.apache.org/manual/CoreTasks/cvs.html goal name=cvs ant:cvs cvsRoot=:pserver:[EMAIL PROTECTED]:/usr/local/cvsroot/public package=${projectdir} port=2401 quiet=true dest=${deploydir.stage} tag=${promotiongroup} failonerror=true command=export / /goal --- Chad Woolley [EMAIL PROTECTED] wrote: Hi, I have a website (just plain html files) stored in CVS. Is there a maven plugin I can use to automatically export the files out of CVS and into my web root dir? I don't mind reorganizing my files to fit the maven directory structure (e.g. putting all the files under xdoc) Thanks, Chad - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Take Yahoo! Mail with you! Get it on your mobile phone. http://mobile.yahoo.com/maildemo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
getting property files into war file
I am trying to get some property files into the classes directory of my war file. I have tried the following: Placing the property files into the src/conf directory of my project. That did not work. I also created a project.properties file with the following: maven.war.classes.includes=conf But this also did not work. What is the best way to get a property file(s) into the classes directory using maven? Thanks very much. __ Do you Yahoo!? Yahoo! Mail - 50x more storage than other providers! http://promotions.yahoo.com/new_mail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
create war files for different env's (test, qa, prod)?
I need to create war files that are for specific env's. The differences are usernames, passwords, sso settings that exist in web.xml and application configuration files. Currently, I use property files and the ant/copy/filterset to accomplish this. Based upon a property value that I pass to ant, I load that property file and off I go.. ant -Dphase=test buildwebapp will cause my build to load the test.build.properties and build the war file with those properties in my war file. Thinking/reading about maven where there is one artifact per project, while I can see by creating many projects that I can accomplish my goal, but that would involve copying the web.xml templates to multiple projects. I would be appreciate it if I could just have some general guidance in how I should proceed with this case. Thank you for your time. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Hibernate schema export
Schema export worked fine for me (except that it did not just export the schema, but required to execute it on the database). I used the 1.1 of the maven-hibernate plugin. I used version 2.1.3 of hibernate as a dependency. I am using maven-1.0-rc3 If you do not have valid connect info in you hibernate property files, the schema file, while created, will be empty. I will commit my work to cvs tonight if you want to see everything. Looking at the error, please validate your hbm file using the hibernate dtd file. I would guess that is the problem. Hope that gives you hope. Phillip Rhodes --- Eric Pugh [EMAIL PROTECTED] wrote: I did some work on the plugin to get it to work with Hibernate2, what version of Hibernate are you using? Try and build the version in CVS. Eric -Original Message- From: David Salib [mailto:[EMAIL PROTECTED] Sent: Monday, June 14, 2004 8:36 PM To: Maven Users List Subject: Re: Hibernate schema export On Sun, 2004-06-13 at 07:14, Konstantin Shaposhnikov wrote: On 03:07 Sat 12 Jun , David Salib wrote: On Mon, 2004-05-24 at 16:06, Konstantin Shaposhnikov wrote: May be this file could be helpful for somebody I keep getting a java.lang.NullPointerException but I can't find anything wrong (and neither has anybody else) with my mapping file. Could that be the same bug? Can anybody tell me where's it's choking based on this? Is it maven or hibernate? hibernate:schema-export2: [echo] Exporting Hibernate Schema file Could not configure datastore from file: /home/dubbed/Documents/Work/nUsers/philantrope/target/classes/ca/n users/philantrope/Contribution.hbm.xml java.lang.NullPointerException at net.sf.hibernate.util.StringHelper.qualify(StringHelper.java:241) at net.sf.hibernate.cfg.Binder.bindCollection(Binder.java:498) at net.sf.hibernate.cfg.Binder$4.create(Binder.java:1435) at net.sf.hibernate.cfg.Binder.propertiesFromXML(Binder.java:1017) at net.sf.hibernate.cfg.Binder.bindRootClass(Binder.java:361) at net.sf.hibernate.cfg.Binder.bindRoot(Binder.java:1243) at net.sf.hibernate.cfg.Configuration.add(Configuration.java:249) at net.sf.hibernate.cfg.Configuration.addFile(Configuration.java:171) at net.sf.hibernate.tool.hbm2ddl.SchemaExportTask.getConfiguration(Sc hemaExportTask.java:195) at net.sf.hibernate.tool.hbm2ddl.SchemaExportTask.execute(SchemaExpor tTask.java:135) at org.apache.tools.ant.Task.perform(Task.java:341) at org.apache.commons.jelly.tags.ant.AntTag.doTag(AntTag.java:232) at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135) at org.apache.maven.jelly.tags.werkz.MavenGoalTag.runBodyTag(MavenGoa lTag.java:79) at org.apache.maven.jelly.tags.werkz.MavenGoalTag$MavenGoalAction.per formAction(MavenGoalTag.java:110) at com.werken.werkz.Goal.fire(Goal.java:639) at com.werken.werkz.Goal.attain(Goal.java:575) at com.werken.werkz.WerkzProject.attainGoal(WerkzProject.java:193) at org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:610) at org.apache.maven.MavenSession.attainGoals(MavenSession.java:266) at org.apache.maven.cli.App.doMain(App.java:485) at org.apache.maven.cli.App.main(App.java:1214) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorIm pl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAc cessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at com.werken.forehead.Forehead.run(Forehead.java:551) at com.werken.forehead.Forehead.main(Forehead.java:581) BUILD FAILED File.. /home/dubbed/.maven/plugins/maven-hibernate-plugin-1.1/plugin.jelly Element... schemaexport Line.. 68 Column 46 Schema text failed: java.lang.NullPointerException -- David Salib [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! Mail is new and improved - Check it out! http://promotions.yahoo.com/new_mail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
jaxrpc.jar dependency?
Sorry, Extreme newbie here. I am trying to use apache axis, and hence I need the jaxrpc.jar that works with it. I do not see jaxrpc in http://www.ibiblio.org/maven/jaxrpc/ Anyway I copied the jar that I had to the local repository and renamed it jaxrpc-1.0.jar. I have 2 questions: 1) I tried declaring the dependency without a version expecting it to look for jaxrpc.jar, instead it looked for jaxrpc-.jar. It felt kind of wrong to rename it. Is it okay that I did? 2) What is the best practice for this kind of thing in which one can not find a jar file that one can redistribute such as jaxrpc.jar? thanks very much. Don't abuse this newbie too much;) __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]