test classes available to plugins?
I have a plugin which needs to instantiate "test" classes within the project the plugin is being used in. In a default scenario, maven complains with "ClassNotFoundException". IS there any way to configure maven such that plugins being used by a project can see thet test classes used by that same project?
Need help regarding auto-generated META-INF directory
Hi, We are having Multi module maven project in our application. One of the modules in our application is hibernate based. When I try to import this project from the SVN repository META-INF directory is auto created in hibernate module. We have no plans of having any specific information in this directory. Need help to stop autocreating this directory while importing the project. Thanks Krishna B - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to use an archetype I deployed
Hi, Could you please let me know how to use an archetype that I deploy? I seem to have deployed successfully an archetype but I'm unable to use it, namely the goal "mvn archetype:generate" is unable to find my archetype. In more details, I created an archetype which I was able to install locally using "mvn install" and also able to use it with the goal "mvn archetype:generate -DarchetypeCatalog=local". Then, I deploy using the command "mvn deploy" which showed ... deploy:deploy ... Uploading: ... BUILD SUCCESSFUL. I'm able to see the file really exists in a browser at . However, when I try the command "mvn archetype:generate" my archetype doesn't appear in the list of archetypes to chose from. I also tried specifying the -DarchetypeRepository argument setting it to the value of our mirror repository's url but it gives the same list of archetype as when ran without this argument. I also tried to use the archetypeCatalog argument but without success, I can't seem to find the archetype-catalog.xml on the remote repository where I deploy (I was epecting to see it at a similar location as the one on my machine i.e. in ~/.m2) so I guess that might be an indicator that there is an extra step I need to do for having the archetype-catalog.xml be generated on the remote repository??? I also tried specifying the remote repository in mirror, repositories and and pluginrepositories in the pom, user and maven settings, and using the archetypeArtifactId argument but the archetype:generate still cannot find my archetype. Thanks, Daniel Le contenu de ce courriel s'adresse au destinataire seulement. Il contient de l'information pouvant etre confidentielle. Vous ne devez ni le copier ni l'utiliser ni le divulguer a qui que ce soit a moins que vous soyez le destinataire ou une personne designee autorisee. Si vous le receviez par erreur, veuillez nous aviser immediatement et le detruire. The contents of this e-mail are intended for the named addressee only. It contains information that may be confidential. Unless you are the named addressee or an authorized designee, you may not copy or use it, or disclose it to anyone else. If you received it in error please notify us immediately and then destroy it.
Re: Child site.xml insists on inheriting the parent's site.xml
> > Please do > > http://jira.codehaus.org/browse/MSITE > Thanks. http://jira.codehaus.org/browse/MSITE-345 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Maven scm:checkout using revision
Hi All, I checkout our Subversion source code using the maven scm:checkout command. For a normal checkout, it works fine. However if I want to checkout the Subversion source code using a specific revision, I get the latest source code instead from the specified revision. The command I provided is as below. Please help me in resolving this issue. mvn scm:checkout -DconnectionUrl=scm:svn: -DscmRevision= -DscmVersionType=revision -DcheckoutDirectory= Thanks & Regards, Logu Rajamanickam - This communication is for informational purposes only. It is not intended as an offer or solicitation for the purchase or sale of any financial instrument or as an official confirmation of any transaction. All market prices, data and other information are not warranted as to completeness or accuracy and are subject to change without notice. Any comments or statements made herein do not necessarily reflect those of JPMorgan Chase & Co., its subsidiaries and affiliates. This transmission may contain information that is privileged, confidential, legally privileged, and/or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. Although this transmission and any attachments are believed to be free of any virus or other defect that might affect any computer system into which it is received and opened, it is the responsibility of the recipient to ensure that it is virus free and no responsibility is accepted by JPMorgan Chase & Co., its subsidiaries and affiliates, as applicable, for any loss or damage arising in any way from its use. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. Thank you. Please refer to http://www.jpmorgan.com/pages/disclosures for disclosures relating to UK legal entities.
How to use ear plugin? Am I stupid??
Can anyone please enlighten me how to use the EAR plugin? The documentation is (as usual) a bit cryptic... In the documentation it almost seems like the EAR project packaging can contain sub-modules, but if I try to declare modules inside t I just get errors?!? (aggregator projects require 'pom' as packaging) But the configuration refers to "modules" (like ejb3 etc) ? Also each EAR module refer to groupId and artifactId, from where? I tried to build & install a separate jar project and then refer to it in the EAR project, but nothing gets packaged? Please anyone give me a few pointers... Best regards, //Kent
release multi module project
Does any one know, when releasing a multi-module project from the project parent.. I have two modules: "core" and "webapp" "core" module is version 1.0.0-SNAPSHOT "webapp" has a dependency on "core:1.0.0-SNAPSHOT" When running release:prepare... "webapp" pom is transformed and dependency "core:1.0.0-SNAPSHOT" is now "core:1.0.0" which is correct sense that's the version of core that's being released. How ever the "webapp" module complains that it cannot find "core:1.0.0" Even though "core" is declared 1st in the parent pom. Only way I can get this to work is if I release "core" and "webapp" individually, and not from the parent project. Is there any way to do this in one shot? Thanks, T. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[ANN] Clirr Maven Plugin, version 2.2.2 released
The Mojo team is pleased to announce the release of the Maven Clirr Plugin, version 2.2.2 This plugin is used to check Java libraries for binary and source compatibility with older releases. http://mojo.codehaus.org/clirr-maven-plugin/ You can run mvn -up to get the latest version of the plugin, or specify the version in your project's plugin configuration: org.codehaus.mojo clirr-maven-plugin 2.2.2 This release fixes one bug while analyzing your code : * MCLIRR-14: Fail's checking with a ClassNotFoundException followed by a NullPointerException Enjoy, -The Mojo team .. Arnaud HERITIER .. OCTO Technology - aheritier AT octo DOT com www.octo.com | blog.octo.com .. ASF - aheritier AT apache DOT org www.apache.org | maven.apache.org ...
Re: Path length on Windows with M 2.0.5
Only JDK versions since 1.6 have the limit removed. It deals with the underlying operating system call. Previous versions (<= 1.5) used ASCII-only version of the Windows API which limit the size to around 250-260. Since 1.6, the JDK uses the wide-version (Unicode) of the Windows API which does not have that restriction. Paul On Mon, Jul 21, 2008 at 3:20 PM, Morgovsky, Alexander (US - Glen Mills) < [EMAIL PROTECTED]> wrote: > Thanks, good point...Is there a way I could bind the call "cmd /c rmdir > /s /q ${project.build.directory}" to the clean phase so this is done on > every clean? > > > This message (including any attachments) contains confidential information > intended for a specific individual and purpose, and is protected by law. If > you are not the intended recipient, you should delete this message. > > > Any disclosure, copying, or distribution of this message, or the taking of > any action based on it, is strictly prohibited. [v.E.1] >
Re: Path length on Windows with M 2.0.5
Thanks, good point...Is there a way I could bind the call "cmd /c rmdir /s /q ${project.build.directory}" to the clean phase so this is done on every clean? This message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, you should delete this message. Any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. [v.E.1]
Re: Path length on Windows with M 2.0.5
Morgovsky, Alexander (US - Glen Mills) wrote: Hi, when I run a clean, I get the following error...Is there a restriction on path length for windows/m2.0.5, and if so, how do I go about solving it? Thanks. Windows has a 255 (or is it 256?) character limit on a full path name. You can try deleting the target directory from the Windows command line instead. Embedded error: E:\development\workspace\ci\platform\deloitte-maven-platform\..\deloitte -platform-integration\target\generated-classes\cobertura\com\deloitte\pl atform\intg\pim\groupmgmt\ws\Group_x0020_Management_x0020_ServicesGroup_ x0020_Management_x 0020_ServicesSoap12CallbackHandler.class (The filename, directory name, or volume label syntax is incorrect) This message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, you should delete this message. Any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. [v.E.1] -- Dennis Lundberg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
maven best practice for multi module projects and version control
I'm a bit confused on the best practice for working with maven projects within a version control system. For example assuming we have a company repository setup and we are working on EJB project (ear) with your standard components (war and a few jars). Do people typically set up a FooBar ear project and check that into version control including the parent pom.xml and sub modules as part of a FooBar project? Or is better to just check in the parent ear pom as part of a FooBar project that has nothing in it but the parent pom.xml, and then checkin all the modules separately into version control? Typically (using ant) I'd create an ear project and include the modules that are 'tightly tied' to this project, but move out other projects that can obviously be shared easily amongst other projects. I assume the seem logic would apply to maven2 projects? Just want to make sure I'm not missing a best practice before I get too deep down the maven2 path here. Thanks, -- Rick
Path length on Windows with M 2.0.5
Hi, when I run a clean, I get the following error...Is there a restriction on path length for windows/m2.0.5, and if so, how do I go about solving it? Thanks. Embedded error: E:\development\workspace\ci\platform\deloitte-maven-platform\..\deloitte -platform-integration\target\generated-classes\cobertura\com\deloitte\pl atform\intg\pim\groupmgmt\ws\Group_x0020_Management_x0020_ServicesGroup_ x0020_Management_x 0020_ServicesSoap12CallbackHandler.class (The filename, directory name, or volume label syntax is incorrect) This message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, you should delete this message. Any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. [v.E.1]
release:prepare performs source generation
I've noticed that when i execute release:prepare on one my projects that generates sources it performs the generation. I don't see why it would do this, as it does it again during release:perform. The plugin config in that artifact's POM looks like the following. Is there a way to prevent release:prepare from executing it? com.mycomp generator_plugin ${project.version} gen generate-sources Thanks, Kal.
RE: hibernate3 maven2 plugin problem
Hello Renu Yes, that's correct. That's another way, I just posted the form that was documented in the site. Regards Johann -Original Message- From: Renu Gupta [mailto:[EMAIL PROTECTED] Sent: Monday, July 21, 2008 9:32 AM To: Maven Users List Subject: RE: hibernate3 maven2 plugin problem Hey Johann, Thanx for ur help :) It worked out.But, for ur knowledge I didn't had to add any extension tag in my pom. Just had to add mysql java connector dependency in plugin. Here is my pom: 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";> 4.0.0 hibernate trial-plugin maven-plugin 0.0.1-SNAPSHOT trial-plugin Maven Mojo http://maven.apache.org org.apache.maven maven-plugin-api 2.0 junit junit 3.8.1 test org.codehaus.mojo hibernate3-maven-plugin 2.0-alpha-2 true hbm2ddl jdbcconfiguration hbm2hbmxml src/main/resources true /src/main/resources/hibernate.cfg.xml mysql mysql-connector-java 5.0.5 And I executed the goal: mvn hibernate3:hbm2ddl And it created corresponding table in my database. Cheers! Renu -Original Message- From: Johann Reyes [mailto:[EMAIL PROTECTED] Sent: Monday, July 21, 2008 5:49 PM To: 'Maven Users List' Subject: RE: hibernate3 maven2 plugin problem Hello Renu That stills looks that is looking for the JDBC driver. Refer to the bottom of this page: http://mojo.codehaus.org/hibernate3/hibernate3-maven-plugin/usage.html Johann Reyes -Original Message- From: Renu Gupta [mailto:[EMAIL PROTECTED] Sent: Monday, July 21, 2008 6:48 AM To: Maven Users List Subject: RE: hibernate3 maven2 plugin problem Hey thanx for ur help.. :) But I m still getting error. :( [DEBUG] Setting context classloader for plugin to: /plugins/org.codehaus.mojo:hibernate3-maven-plugin:[EMAIL PROTECTED]/thread:mai n (instance is: ClassRealm[/plugins/org.codehaus.mojo:hibernate3-maven-plugin:[EMAIL PROTECTED] /thread:main, parent: ClassRealm[plexus.core, parent: null]]) 16:10:24,279 INFO org.hibernate.cfg.Environment - Hibernate 3.2.0.cr5 16:10:24,310 INFO org.hibernate.cfg.Environment - loaded properties from resource hibernate.properties: {hibernate.dialect=org.hibernate.dialect.MySQLDialect, hibernate.bytecode.use_reflection_optimizer=false, hibernate.connection.driver_class=com.mysql.jdbc.Driver} 16:10:24,310 INFO org.hibernate.cfg.Environment - Bytecode provider name : cglib 16:10:24,342 INFO org.hibernate.cfg.Environment - using JDK 1.4 java.sql.Timestamp handling [DEBUG] basedir: F:\Documents and Settings\rvgupta\eclipsemavenworkspace\trial-plugin 16:10:24,795 INFO org.hibernate.cfg.Configuration - configuring from file: hibernate.cfg.xml [INFO] Configuration XML file loaded: F:\Documents and Settings\rvgupta\eclipsemavenworkspace\trial-plugin\src\main\resources\hiber nate.cfg.xml 16:10:25,201 INFO org.hibernate.cfg.JDBCMetaDataConfiguration - Ignoring null mapping 16:10:25,201 INFO org.hibernate.cfg.Configuration - Configured SessionFactory: null [INFO] src/main/resources/database.properties not found within the project. Trying absolute path. [INFO] No hibernate properties file loaded. 16:10:25,326 INFO org.hibernate.connection.DriverManagerConnectionProvider - Using Hibernate built-in connection pool (not for production use!) 16:10:25,326 INFO org.hibernate.connection.DriverManagerConnectionProvider - Hibernate connection pool size: 20 16:10:25,326 INFO org.hibernate.connection.DriverManagerConnectionProvider - autocommit mode: false 16:10:25,373 INFO org.hibernate.connection.DriverManagerConnectionProvider - using driver: com.mysql.jdbc.Driver at URL: jdbc:mysql://localhost/firsthibernate 16:10:25,373 INFO org.hibernate.connection.DriverManagerConnectionProvider - connection properties: {user=root, password=} 16:10:25,389 WARN org.hibernate.cfg.SettingsFactory - Could not obtain connection metadata java.sql.SQLException: No suitable driver at java.sql.DriverManager.getConnection(DriverManager.java:545) at java.sql.DriverManager.getConnection(DriverManager.java:140) at org.hibernate.connection.DriverManagerConnectionProvider.getConnection(Drive rManagerConnectionProvider.java:110) at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:76) at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1929) at org.hibernate.cfg.JDBCMetaDataConfiguration.readFromJDBC(JDBCMetaData
RE: Multi Inheritance
You would have to serialize these, so that your project calls, lets say the Web one, as it's parent which in turn has the DB one as it's parent. == Curtis Yanko Application & Developer Infrastructure Services Source->Build->Deploy W: 860.702.9059 M: 860.881.2050 This e-mail, including attachments, may include confidential and/or proprietary information, and may be used only by the person or entity to which it is addressed. If the reader of this e-mail is not the intended recipient or his or her authorized agent, the reader is hereby notified that any dissemination, distribution or copying of this e-mail is prohibited. If you have received this e-mail in error, please notify the sender by replying to this message and delete this e-mail immediately. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Multi Inheritance
Can you explain in more details what you are trying to achieve ? I don't think a pom can have multiple parents. Regards, -Guillaume From: Raffaele [mailto:[EMAIL PROTECTED] Sent: Mon 21/07/2008 11:42 AM To: users@maven.apache.org Subject: Multi Inheritance Hi all, I have the following short question: should be possibile define a pom with two or more parent pom? A practical utilization: It would be useful having a pom which specifies db specific dependencies and a pom which specifies web specific dependencies, and my app could be child of both those pom(s). Thanks in advance, best regards Raffaele -- View this message in context: http://www.nabble.com/Multi-Inheritance-tp18571365p18571365.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This electronic mail (including any attachments) may contain information that is privileged, confidential, and/or otherwise protected from disclosure to anyone other than its intended recipient(s). Any dissemination or use of this electronic email or its contents (including any attachments) by persons other than the intended recipient(s) is strictly prohibited. If you have received this message in error, please notify us immediately by reply email so that we may correct our internal records. Please then delete the original message (including any attachments) in its entirety. Thank you.
Multi Inheritance
Hi all, I have the following short question: should be possibile define a pom with two or more parent pom? A practical utilization: It would be useful having a pom which specifies db specific dependencies and a pom which specifies web specific dependencies, and my app could be child of both those pom(s). Thanks in advance, best regards Raffaele -- View this message in context: http://www.nabble.com/Multi-Inheritance-tp18571365p18571365.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: and classifier
I've found a (not so ugly) solution : is used to force domain jar scope to "provided", so that it is excluded from the war, and a dependency is added to domain-instrumented.jar with scope runtime. Nicolas 2008/7/21 nicolas de loof <[EMAIL PROTECTED]>: > Hello, > > I'd like to force a dependency to be used with a classifier. > > Here is my use case : > > My business domain model (project-domain) creates a second artifact with > classifier "instrumented" based on Hibernate InstrumentTask. > All my project modules depends on domain > In my webapp, I'd like to replace the base domain.jar with the instrumented > one. > > Using dependencyManagement works to force a version of dependencies, but > has no effect on classifier. Is there any way to avoid multiple > on all modules dependencies ? >
and classifier
Hello, I'd like to force a dependency to be used with a classifier. Here is my use case : My business domain model (project-domain) creates a second artifact with classifier "instrumented" based on Hibernate InstrumentTask. All my project modules depends on domain In my webapp, I'd like to replace the base domain.jar with the instrumented one. Using dependencyManagement works to force a version of dependencies, but has no effect on classifier. Is there any way to avoid multiple on all modules dependencies ?
RE: scope "Optional"
Yes i know that, but I saw people using it for a while for there own project and so I assumed it was an option that can be used (and it has a different behaviour than any other listed in the page you've linked). Why maven doesn't display an error or a warning when using an incorrect scope? And for the use I had of it what is the scope that I should use. "an artefact that I absolutely need during source's GENERATION, compilation and test source's GENERATION, test Compilation, and test run phases, but that I don't need (and don't want) at runtime, and I probably don't want them through transitive dependency." Compile: not acceptable because it will be in the runtime. Test: I'm missing the artefact at least during test generation and I think also for compilation. Provided : Missing it for tests. System : not a system library Runtime : missing during generation and compilation... I have also an other problem with dependencies : a dependency that I do need for compilation in several modules that are dependant on each other but I strictly don't want it at runtime. I used up to now provided, so that it doesn't appear at runtime, but I had to add it in each pom. I thought in using exclude, but it doesn't do exactly what I need, since I still need to declare the dependence to this artefact in the artefact where I exclude it because I still need it for compilation (and test and stuff like that). Tomas Darbois Edifixio Grenoble - Projet ScorWare 04 76 29 89 27 [EMAIL PROTECTED] -Message d'origine- De : Wendy Smoak [mailto:[EMAIL PROTECTED] Envoyé : vendredi 18 juillet 2008 17:37 À : Maven Users List Objet : Re: scope "Optional" On Fri, Jul 18, 2008 at 8:21 AM, Thomas Darbois <[EMAIL PROTECTED]> wrote: > I'm having some trouble with the scope Optional and the plugin maven > dependency plugin. > > I'm having a dependency to an artefact which scope is optional. Optional isn't a scope, it's a separate element: true. http://maven.apache.org/ref/2.0.8/maven-model/maven.html#class_dependency -- Wendy - 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]
RE: hibernate3 maven2 plugin problem
Hey Johann, Thanx for ur help :) It worked out.But, for ur knowledge I didn't had to add any extension tag in my pom. Just had to add mysql java connector dependency in plugin. Here is my pom: 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";> 4.0.0 hibernate trial-plugin maven-plugin 0.0.1-SNAPSHOT trial-plugin Maven Mojo http://maven.apache.org org.apache.maven maven-plugin-api 2.0 junit junit 3.8.1 test org.codehaus.mojo hibernate3-maven-plugin 2.0-alpha-2 true hbm2ddl jdbcconfiguration hbm2hbmxml src/main/resources true /src/main/resources/hibernate.cfg.xml mysql mysql-connector-java 5.0.5 And I executed the goal: mvn hibernate3:hbm2ddl And it created corresponding table in my database. Cheers! Renu -Original Message- From: Johann Reyes [mailto:[EMAIL PROTECTED] Sent: Monday, July 21, 2008 5:49 PM To: 'Maven Users List' Subject: RE: hibernate3 maven2 plugin problem Hello Renu That stills looks that is looking for the JDBC driver. Refer to the bottom of this page: http://mojo.codehaus.org/hibernate3/hibernate3-maven-plugin/usage.html Johann Reyes -Original Message- From: Renu Gupta [mailto:[EMAIL PROTECTED] Sent: Monday, July 21, 2008 6:48 AM To: Maven Users List Subject: RE: hibernate3 maven2 plugin problem Hey thanx for ur help.. :) But I m still getting error. :( [DEBUG] Setting context classloader for plugin to: /plugins/org.codehaus.mojo:hibernate3-maven-plugin:[EMAIL PROTECTED]/thread:mai n (instance is: ClassRealm[/plugins/org.codehaus.mojo:hibernate3-maven-plugin:[EMAIL PROTECTED] /thread:main, parent: ClassRealm[plexus.core, parent: null]]) 16:10:24,279 INFO org.hibernate.cfg.Environment - Hibernate 3.2.0.cr5 16:10:24,310 INFO org.hibernate.cfg.Environment - loaded properties from resource hibernate.properties: {hibernate.dialect=org.hibernate.dialect.MySQLDialect, hibernate.bytecode.use_reflection_optimizer=false, hibernate.connection.driver_class=com.mysql.jdbc.Driver} 16:10:24,310 INFO org.hibernate.cfg.Environment - Bytecode provider name : cglib 16:10:24,342 INFO org.hibernate.cfg.Environment - using JDK 1.4 java.sql.Timestamp handling [DEBUG] basedir: F:\Documents and Settings\rvgupta\eclipsemavenworkspace\trial-plugin 16:10:24,795 INFO org.hibernate.cfg.Configuration - configuring from file: hibernate.cfg.xml [INFO] Configuration XML file loaded: F:\Documents and Settings\rvgupta\eclipsemavenworkspace\trial-plugin\src\main\resources\hiber nate.cfg.xml 16:10:25,201 INFO org.hibernate.cfg.JDBCMetaDataConfiguration - Ignoring null mapping 16:10:25,201 INFO org.hibernate.cfg.Configuration - Configured SessionFactory: null [INFO] src/main/resources/database.properties not found within the project. Trying absolute path. [INFO] No hibernate properties file loaded. 16:10:25,326 INFO org.hibernate.connection.DriverManagerConnectionProvider - Using Hibernate built-in connection pool (not for production use!) 16:10:25,326 INFO org.hibernate.connection.DriverManagerConnectionProvider - Hibernate connection pool size: 20 16:10:25,326 INFO org.hibernate.connection.DriverManagerConnectionProvider - autocommit mode: false 16:10:25,373 INFO org.hibernate.connection.DriverManagerConnectionProvider - using driver: com.mysql.jdbc.Driver at URL: jdbc:mysql://localhost/firsthibernate 16:10:25,373 INFO org.hibernate.connection.DriverManagerConnectionProvider - connection properties: {user=root, password=} 16:10:25,389 WARN org.hibernate.cfg.SettingsFactory - Could not obtain connection metadata java.sql.SQLException: No suitable driver at java.sql.DriverManager.getConnection(DriverManager.java:545) at java.sql.DriverManager.getConnection(DriverManager.java:140) at org.hibernate.connection.DriverManagerConnectionProvider.getConnection(Drive rManagerConnectionProvider.java:110) at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:76) at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1929) at org.hibernate.cfg.JDBCMetaDataConfiguration.readFromJDBC(JDBCMetaDataConfigu ration.java:38) at org.codehaus.mojo.hibernate3.configuration.JDBCComponentConfiguration.doConf iguration(JDBCComponentConfiguration.java:67) at org.codehaus.mojo.hibernate3.configuration.AbstractComponentConfiguration.ge tConfiguration(AbstractComponentConfigurat
RE: hibernate3 maven2 plugin problem
Hello Renu That stills looks that is looking for the JDBC driver. Refer to the bottom of this page: http://mojo.codehaus.org/hibernate3/hibernate3-maven-plugin/usage.html Johann Reyes -Original Message- From: Renu Gupta [mailto:[EMAIL PROTECTED] Sent: Monday, July 21, 2008 6:48 AM To: Maven Users List Subject: RE: hibernate3 maven2 plugin problem Hey thanx for ur help.. :) But I m still getting error. :( [DEBUG] Setting context classloader for plugin to: /plugins/org.codehaus.mojo:hibernate3-maven-plugin:[EMAIL PROTECTED]/thread:mai n (instance is: ClassRealm[/plugins/org.codehaus.mojo:hibernate3-maven-plugin:[EMAIL PROTECTED] /thread:main, parent: ClassRealm[plexus.core, parent: null]]) 16:10:24,279 INFO org.hibernate.cfg.Environment - Hibernate 3.2.0.cr5 16:10:24,310 INFO org.hibernate.cfg.Environment - loaded properties from resource hibernate.properties: {hibernate.dialect=org.hibernate.dialect.MySQLDialect, hibernate.bytecode.use_reflection_optimizer=false, hibernate.connection.driver_class=com.mysql.jdbc.Driver} 16:10:24,310 INFO org.hibernate.cfg.Environment - Bytecode provider name : cglib 16:10:24,342 INFO org.hibernate.cfg.Environment - using JDK 1.4 java.sql.Timestamp handling [DEBUG] basedir: F:\Documents and Settings\rvgupta\eclipsemavenworkspace\trial-plugin 16:10:24,795 INFO org.hibernate.cfg.Configuration - configuring from file: hibernate.cfg.xml [INFO] Configuration XML file loaded: F:\Documents and Settings\rvgupta\eclipsemavenworkspace\trial-plugin\src\main\resources\hiber nate.cfg.xml 16:10:25,201 INFO org.hibernate.cfg.JDBCMetaDataConfiguration - Ignoring null mapping 16:10:25,201 INFO org.hibernate.cfg.Configuration - Configured SessionFactory: null [INFO] src/main/resources/database.properties not found within the project. Trying absolute path. [INFO] No hibernate properties file loaded. 16:10:25,326 INFO org.hibernate.connection.DriverManagerConnectionProvider - Using Hibernate built-in connection pool (not for production use!) 16:10:25,326 INFO org.hibernate.connection.DriverManagerConnectionProvider - Hibernate connection pool size: 20 16:10:25,326 INFO org.hibernate.connection.DriverManagerConnectionProvider - autocommit mode: false 16:10:25,373 INFO org.hibernate.connection.DriverManagerConnectionProvider - using driver: com.mysql.jdbc.Driver at URL: jdbc:mysql://localhost/firsthibernate 16:10:25,373 INFO org.hibernate.connection.DriverManagerConnectionProvider - connection properties: {user=root, password=} 16:10:25,389 WARN org.hibernate.cfg.SettingsFactory - Could not obtain connection metadata java.sql.SQLException: No suitable driver at java.sql.DriverManager.getConnection(DriverManager.java:545) at java.sql.DriverManager.getConnection(DriverManager.java:140) at org.hibernate.connection.DriverManagerConnectionProvider.getConnection(Drive rManagerConnectionProvider.java:110) at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:76) at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1929) at org.hibernate.cfg.JDBCMetaDataConfiguration.readFromJDBC(JDBCMetaDataConfigu ration.java:38) at org.codehaus.mojo.hibernate3.configuration.JDBCComponentConfiguration.doConf iguration(JDBCComponentConfiguration.java:67) at org.codehaus.mojo.hibernate3.configuration.AbstractComponentConfiguration.ge tConfiguration(AbstractComponentConfiguration.java:37) at org.codehaus.mojo.hibernate3.exporter.Hbm2DDLExporterMojo.doExecute(Hbm2DDLE xporterMojo.java:87) at org.codehaus.mojo.hibernate3.HibernateExporterMojo.execute(HibernateExporter Mojo.java:140) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManage r.java:577) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFail ures(DefaultLifecycleExecutor.java:498) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmentForPro ject(DefaultLifecycleExecutor.java:265) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(Defa ultLifecycleExecutor.java:191) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycle Executor.java:149) at org.apache.maven.DefaultMaven.execute_aroundBody0(DefaultMaven.java:223) at org.apache.maven.DefaultMaven.execute_aroundBody1$advice(DefaultMaven.java:3 04) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:1) at org.apache.maven.embedder.MavenEmbedder.execute_aroundBody2(MavenEmbedder.ja va:903) at org.apache.maven.embedder.MavenEmbedder.execute_aroundBody3$advice(MavenEmbe dder.java:304) at org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:1) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:176) at org.apache.maven.cli.MavenCli.main(MavenCli.java:63) at org.apache.maven.cli.MavenCli.main(MavenCli.java:52) 16:10
Re: Problem using maven-exec-plugin exec:exec command
In case anybody interested, a sample pom.xml that worked: start server using mvn -Pserver and client -Pclient 4.0.0 org.apache.cxf.samples wsdl_first 1.0 [2,) src maven-compiler-plugin 1.5 1.5 org.apache.cxf cxf-codegen-plugin LATEST generate-sources generate-sources ${basedir}/wsdl/hello_world.wsdl wsdl2java server test org.codehaus.mojo exec-maven-plugin test java demo.hw.server.Server client test org.codehaus.mojo exec-maven-plugin test java demo.hw.client.Client ${basedir}/wsdl/hello_world.wsdl snapshots apache-snapshots Apache SNAPSHOT Repository http://people.apache.org/repo/m2-snapshot-repository/ true java.net http://download.java.net/maven/1/ legacy apache-plugin-snapshots Apache Maven Plugin Snapshots http://people.apache.org/repo/m2-snapshot-repository false true java.net http://download.java.net/maven/1/ legacy org.apache.cxf cxf-rt-frontend-jaxws ${cxf.version} org.apache.cxf cxf-rt-transports-http ${cxf.version} org.apache.cxf cxf-rt-transports-http-jetty ${cxf.version} Haim Ashkenazi-2 wrote: > > On Tue, Jul 15, 2008 at 7:14 PM, seanoc <[EMAIL PROTECTED]> wrote: >> >> I'm using maven 2.0.9 >> >> using the pom attached I run the command, mvn exec:exec -Dserver > I'm not sure this tells maven which execution to run. I think you have > to either connect the executions to a phase or to a profile and then > activate the profile as needed. > You can also discard the "execution" directive and then run it with > 'mvn exec:exec', but then it'll run only one of them :) > > >> >> The following error occurs: >> >> >> [INFO] One or more required plugin parameters are invalid/missing for >> 'exec:exec >> ' >> >> [0] Inside the definition for plugin 'exec-maven-plugin' specify the >> following: >> >> >> ... >> VALUE >> >> >> -OR- >> >> on the command line, specify: '-Dexec.executable=VALUE' >> >> the http://www.nabble.com/file/p18469173/pom.xml pom.xml snippet is: >> >> >> org.codehaus.mojo >> exec-maven-plugin >> >> >> server >> >> java >> >> -classpath >> >> demo.hw.server.Server >> >> >> >>
RE: hibernate3 maven2 plugin problem
Hey thanx for ur help.. :) But I m still getting error. :( [DEBUG] Setting context classloader for plugin to: /plugins/org.codehaus.mojo:hibernate3-maven-plugin:[EMAIL PROTECTED]/thread:main (instance is: ClassRealm[/plugins/org.codehaus.mojo:hibernate3-maven-plugin:[EMAIL PROTECTED]/thread:main, parent: ClassRealm[plexus.core, parent: null]]) 16:10:24,279 INFO org.hibernate.cfg.Environment - Hibernate 3.2.0.cr5 16:10:24,310 INFO org.hibernate.cfg.Environment - loaded properties from resource hibernate.properties: {hibernate.dialect=org.hibernate.dialect.MySQLDialect, hibernate.bytecode.use_reflection_optimizer=false, hibernate.connection.driver_class=com.mysql.jdbc.Driver} 16:10:24,310 INFO org.hibernate.cfg.Environment - Bytecode provider name : cglib 16:10:24,342 INFO org.hibernate.cfg.Environment - using JDK 1.4 java.sql.Timestamp handling [DEBUG] basedir: F:\Documents and Settings\rvgupta\eclipsemavenworkspace\trial-plugin 16:10:24,795 INFO org.hibernate.cfg.Configuration - configuring from file: hibernate.cfg.xml [INFO] Configuration XML file loaded: F:\Documents and Settings\rvgupta\eclipsemavenworkspace\trial-plugin\src\main\resources\hibernate.cfg.xml 16:10:25,201 INFO org.hibernate.cfg.JDBCMetaDataConfiguration - Ignoring null mapping 16:10:25,201 INFO org.hibernate.cfg.Configuration - Configured SessionFactory: null [INFO] src/main/resources/database.properties not found within the project. Trying absolute path. [INFO] No hibernate properties file loaded. 16:10:25,326 INFO org.hibernate.connection.DriverManagerConnectionProvider - Using Hibernate built-in connection pool (not for production use!) 16:10:25,326 INFO org.hibernate.connection.DriverManagerConnectionProvider - Hibernate connection pool size: 20 16:10:25,326 INFO org.hibernate.connection.DriverManagerConnectionProvider - autocommit mode: false 16:10:25,373 INFO org.hibernate.connection.DriverManagerConnectionProvider - using driver: com.mysql.jdbc.Driver at URL: jdbc:mysql://localhost/firsthibernate 16:10:25,373 INFO org.hibernate.connection.DriverManagerConnectionProvider - connection properties: {user=root, password=} 16:10:25,389 WARN org.hibernate.cfg.SettingsFactory - Could not obtain connection metadata java.sql.SQLException: No suitable driver at java.sql.DriverManager.getConnection(DriverManager.java:545) at java.sql.DriverManager.getConnection(DriverManager.java:140) at org.hibernate.connection.DriverManagerConnectionProvider.getConnection(DriverManagerConnectionProvider.java:110) at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:76) at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1929) at org.hibernate.cfg.JDBCMetaDataConfiguration.readFromJDBC(JDBCMetaDataConfiguration.java:38) at org.codehaus.mojo.hibernate3.configuration.JDBCComponentConfiguration.doConfiguration(JDBCComponentConfiguration.java:67) at org.codehaus.mojo.hibernate3.configuration.AbstractComponentConfiguration.getConfiguration(AbstractComponentConfiguration.java:37) at org.codehaus.mojo.hibernate3.exporter.Hbm2DDLExporterMojo.doExecute(Hbm2DDLExporterMojo.java:87) at org.codehaus.mojo.hibernate3.HibernateExporterMojo.execute(HibernateExporterMojo.java:140) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:577) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:498) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmentForProject(DefaultLifecycleExecutor.java:265) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:191) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:149) at org.apache.maven.DefaultMaven.execute_aroundBody0(DefaultMaven.java:223) at org.apache.maven.DefaultMaven.execute_aroundBody1$advice(DefaultMaven.java:304) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:1) at org.apache.maven.embedder.MavenEmbedder.execute_aroundBody2(MavenEmbedder.java:903) at org.apache.maven.embedder.MavenEmbedder.execute_aroundBody3$advice(MavenEmbedder.java:304) at org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:1) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:176) at org.apache.maven.cli.MavenCli.main(MavenCli.java:63) at org.apache.maven.cli.MavenCli.main(MavenCli.java:52) 16:10:25,435 INFO org.hibernate.dialect.Dialect - Using dialect: org.hibernate.dialect.MySQLDialect 16:10:25,607 INFO org.hibernate.transaction.TransactionFactoryFactory - Transaction strategy: org.hibernate.transaction.JDBCTransactionFactory 16:10:25,607 INFO org.hibernate.transaction.TransactionManagerLookupFactory - No TransactionManag
Re: Does maven1 works with Java5?
I put the following codes in the "build.properties" in %user.home%. It works now. #compiler settings maven.compile.source=1.5 maven.compile.target=1.5 Martijn Dashorst wrote: > > http://maven.apache.org/maven-1.x/plugins/java/properties.html > > On Mon, Jul 21, 2008 at 11:46 AM, thomas2004 <[EMAIL PROTECTED]> > wrote: >> >> How and where can I set the compiler version? >> >> >> >> Martijn Dashorst wrote: >>> >>> make sure you set the compiler version correctly. The compiler plugin >>> defaults to java 1.3 >>> >>> Martijn >>> >>> On Mon, Jul 21, 2008 at 11:35 AM, thomas2004 <[EMAIL PROTECTED]> >>> wrote: I have a java project built with Java5. Today as I rebuild the project with maven1 I got error. It doesn't recognize the generics. I doubt the maven1 doesn't work with Java5. Is it right? Regards Thomas -- View this message in context: http://www.nabble.com/Does-maven1-works-with-Java5--tp18565148p18565148.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] >>> >>> >>> >>> -- >>> Become a Wicket expert, learn from the best: http://wicketinaction.com >>> Apache Wicket 1.3.4 is released >>> Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. >>> >>> - >>> To unsubscribe, e-mail: [EMAIL PROTECTED] >>> For additional commands, e-mail: [EMAIL PROTECTED] >>> >>> >>> >> >> -- >> View this message in context: >> http://www.nabble.com/Does-maven1-works-with-Java5--tp18565148p18565311.html >> Sent from the Maven - Users mailing list archive at Nabble.com. >> >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > > > -- > Become a Wicket expert, learn from the best: http://wicketinaction.com > Apache Wicket 1.3.4 is released > Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Does-maven1-works-with-Java5--tp18565148p18565859.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Child site.xml insists on inheriting the parent's site.xml
Ed Hillmann wrote: On Sat, Jul 19, 2008 at 2:39 AM, Dennis Lundberg <[EMAIL PROTECTED]> wrote: This sounds a lot like one of the bugs that was fixed in version 2.0-beta-7 of Maven Site Plugin. Make sure you are using that version of the plugin. Hi Dennis. I've just updated my POMs so that they are using the 2.0-beta-7 version of the site plugin, and I'm still getting this error. Given the response, this sounds like a bug. Should I raise an issue with my details? Please do http://jira.codehaus.org/browse/MSITE Thanks, Ed - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Dennis Lundberg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Does maven1 works with Java5?
http://maven.apache.org/maven-1.x/plugins/java/properties.html On Mon, Jul 21, 2008 at 11:46 AM, thomas2004 <[EMAIL PROTECTED]> wrote: > > How and where can I set the compiler version? > > > > Martijn Dashorst wrote: >> >> make sure you set the compiler version correctly. The compiler plugin >> defaults to java 1.3 >> >> Martijn >> >> On Mon, Jul 21, 2008 at 11:35 AM, thomas2004 <[EMAIL PROTECTED]> >> wrote: >>> >>> I have a java project built with Java5. Today as I rebuild the project >>> with >>> maven1 I got error. It doesn't recognize the generics. I doubt the maven1 >>> doesn't work with Java5. Is it right? >>> >>> Regards >>> >>> Thomas >>> >>> -- >>> View this message in context: >>> http://www.nabble.com/Does-maven1-works-with-Java5--tp18565148p18565148.html >>> Sent from the Maven - Users mailing list archive at Nabble.com. >>> >>> >>> - >>> To unsubscribe, e-mail: [EMAIL PROTECTED] >>> For additional commands, e-mail: [EMAIL PROTECTED] >>> >>> >> >> >> >> -- >> Become a Wicket expert, learn from the best: http://wicketinaction.com >> Apache Wicket 1.3.4 is released >> Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> >> > > -- > View this message in context: > http://www.nabble.com/Does-maven1-works-with-Java5--tp18565148p18565311.html > Sent from the Maven - Users mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.3.4 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Maven Repository Browser
The Maven Repository Browser web site provides accurate and detailed information about the contents of the public Maven Repositories found on the net. The site is a valuable tool to find the artifacts for your Maven project. http://www.mavenbrowser.com http://www.mavenbrowser.com The Maven Repository Browser site has just been released to the public and is still under development. We are more than happy to hear your comments, suggestions etc. Regards, The development team -- View this message in context: http://www.nabble.com/Maven-Repository-Browser-tp18565416p18565416.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Does maven1 works with Java5?
How and where can I set the compiler version? Martijn Dashorst wrote: > > make sure you set the compiler version correctly. The compiler plugin > defaults to java 1.3 > > Martijn > > On Mon, Jul 21, 2008 at 11:35 AM, thomas2004 <[EMAIL PROTECTED]> > wrote: >> >> I have a java project built with Java5. Today as I rebuild the project >> with >> maven1 I got error. It doesn't recognize the generics. I doubt the maven1 >> doesn't work with Java5. Is it right? >> >> Regards >> >> Thomas >> >> -- >> View this message in context: >> http://www.nabble.com/Does-maven1-works-with-Java5--tp18565148p18565148.html >> Sent from the Maven - Users mailing list archive at Nabble.com. >> >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > > > -- > Become a Wicket expert, learn from the best: http://wicketinaction.com > Apache Wicket 1.3.4 is released > Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Does-maven1-works-with-Java5--tp18565148p18565311.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Does maven1 works with Java5?
make sure you set the compiler version correctly. The compiler plugin defaults to java 1.3 Martijn On Mon, Jul 21, 2008 at 11:35 AM, thomas2004 <[EMAIL PROTECTED]> wrote: > > I have a java project built with Java5. Today as I rebuild the project with > maven1 I got error. It doesn't recognize the generics. I doubt the maven1 > doesn't work with Java5. Is it right? > > Regards > > Thomas > > -- > View this message in context: > http://www.nabble.com/Does-maven1-works-with-Java5--tp18565148p18565148.html > Sent from the Maven - Users mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.3.4 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Does maven1 works with Java5?
I have a java project built with Java5. Today as I rebuild the project with maven1 I got error. It doesn't recognize the generics. I doubt the maven1 doesn't work with Java5. Is it right? Regards Thomas -- View this message in context: http://www.nabble.com/Does-maven1-works-with-Java5--tp18565148p18565148.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Project setup.
The structure your propose is not wrong... depending on your lifecycle, it may not be optimal. Remember that the remote maven repository that you deploy your binary artifacts to will always have commons-1.0 The structure you're suggesting may be easier to work with when you regularly need to go back and do a patch of commons-1.0 to commons-1.0.1 for releasing webapp1-2.0 while webapp2-2.0 will use commons-2.0. If you just need to keep webapp1-x.y using commons-1.0 and if it needs a newer version you'll go all the way to the latest, then you can keep everything in the one trunk -Stephen On Sat, Jul 19, 2008 at 8:56 PM, James Dasher <[EMAIL PROTECTED]> wrote: > I am trying to get my hands around how to reconcile the multi-module setup > maven seems to suggest for basic webapps with a subversion repository. All > the examples seem to show a parent pom with 2 or more child poms. > > I have a requirement that two separate webapps be built using a common > module. > I have a second requirement that the two webapps may end up using separate > version levels of this common module, which will be under common development > by the two teams. > The book seems to suggest the following layout. > > /pom.xml > /commons/ > /commons/pom.xml > /webapp1/ > /webapp1/pom.xml > /webapp2/ > /webapp2/pom.xml > > So how do I handle this within my scm repository? subversion seems to > suggest the following: > > /main/branches > /main/tags > /main/trunk > /commons/branches > /commons/tags > /commons/trunk > /webapp1/branches > /webapp1/tags > /webapp1/trunk > /webapp2/branches > /webapp2/tags > /webapp2/trunk > > And then have the individual developers selectively checkout this flat > structure into the nested structure above. > > Keep in mind I may need to do a build of webapp2 with commons-1.0 and a > build of webapp1 with commons 2.0. > Am I on the wrong track here? > > -JFD > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
plugin dependencies in local repository
when I execute maven, it will download all project dependencies to the local repository, including the required plugins: e.g. the org.codehouse..mojo:findbugs-maven-plugin:maven-plugin:2.0-SNAPSHOT will be copied to my local repository. but this plugin itself depends on junit 3.8.2 when I execute 'mvn install' (or whatever goal) it works fine, but I wonder why junit 3.8.2 is NOT copied to my local repository. is it because I am using a SNAPSHOT version of the findbugs maven plugin? or do I need to do some config, so that maven will also fetch the dependencies of the maven-plugins? this is important for me, because I usually want to run maven in offlinemode (mvn -o), because my networkconnection is quite slow. and in this case, the offline build will stop, because junit 3.8.2 is missing any comments welcome thanks in advance - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Project setup.
I am trying to get my hands around how to reconcile the multi-module setup maven seems to suggest for basic webapps with a subversion repository. All the examples seem to show a parent pom with 2 or more child poms. I have a requirement that two separate webapps be built using a common module. I have a second requirement that the two webapps may end up using separate version levels of this common module, which will be under common development by the two teams. The book seems to suggest the following layout. /pom.xml /commons/ /commons/pom.xml /webapp1/ /webapp1/pom.xml /webapp2/ /webapp2/pom.xml So how do I handle this within my scm repository? subversion seems to suggest the following: /main/branches /main/tags /main/trunk /commons/branches /commons/tags /commons/trunk /webapp1/branches /webapp1/tags /webapp1/trunk /webapp2/branches /webapp2/tags /webapp2/trunk And then have the individual developers selectively checkout this flat structure into the nested structure above. Keep in mind I may need to do a build of webapp2 with commons-1.0 and a build of webapp1 with commons 2.0. Am I on the wrong track here? -JFD - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Mojo for validating PGP signature
Hi Chad, You might be interested in the work linked from this page: http://docs.codehaus.org/display/MAVEN/Repository+Security It would certainly be a useful addition to add a preliminary check mojo to the existing gpg plugin as well. The code you are referring to is the DefaultWagonManager in maven-artifact (maven-artifact-manager in 2.0.x). HTH, Brett 2008/7/20 Chad La Joie <[EMAIL PROTECTED]>: > A few months back I asked if there was a Maven plugin for validating PGP > signatures, like those created by the gpg plugin, of downloaded artifacts. > The answer seemed to be "no", so I'd like to try to write such a plugin. > However, this will be my first mojo so I have quite a few (probably stupid) > questions. Could some one point me to the code Maven currently uses to > verify the md5/sha1 hashes for the artifacts so that I could try and start > from there? > > Thanks. > > -- > SWITCH > Serving Swiss Universities > -- > Chad La Joie, Software Engineer, Net Services > Werdstrasse 2, P.O. Box, 8021 Zürich, Switzerland > phone +41 44 268 15 75, fax +41 44 268 15 68 > [EMAIL PROTECTED], http://www.switch.ch > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Brett Porter Blog: http://blogs.exist.com/bporter/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JAR and WAR packaging
Hi Ilya, Ilya Ermolov wrote: > Hello, I have the following problem. > > My web-project have a great number of subprojects which have complex > dependencies with each other. I want pack all .class files in > JAR and then > pack my web-app in WAR file. But how to do it having the only pom.xml? we do this by declaring the POM as packaging "jar" (with a configuration for the output directory as target/webapp/WEB-INF/lib) and declare the war plugin to run also in the package phase (with a configured classifier, the webappDirectory to be target/webapp and the warSourceExclude for anything in WEB-INF/classes and META-INF). That way you produce a jar file that "transports" all the transitive deps and a war that is runnable, because it contains all libs. If you intent to merge wars in a later step, you will have to exclude anything from WEB-INF/lib from the depednent wars, since the deps are now supported using the jar artifact. - Jörg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: hibernate3 maven2 plugin problem
>Caused by: java.sql.SQLException: No suitable driver Set Driver_class in hibernate.properties ? hibernate.connection.driver_class com.mysql.jdbc.Driver - Original Message - From: "Renu Gupta" <[EMAIL PROTECTED]> To: "Maven Users List" Sent: Monday, July 21, 2008 9:41 AM Subject: hibernate3 maven2 plugin problem Hi, While using hibernate3 maven2 plugin. I m getting this error: [INFO] [hibernate3:hbm2ddl] [DEBUG] Setting context classloader for plugin to: /plugins/org.codehaus.mojo:hibernate3-maven-plugin:[EMAIL PROTECTED]/thread:main (instance is: ClassRealm[/plugins/org.codehaus.mojo:hibernate3-maven-plugin:[EMAIL PROTECTED]/thread:main, parent: ClassRealm[plexus.core, parent: null]]) 13:00:20,800 INFO org.hibernate.cfg.Environment - Hibernate 3.2.0.cr5 13:00:20,800 INFO org.hibernate.cfg.Environment - loaded properties from resource hibernate.properties: {hibernate.dialect=org.hibernate.dialect.MySQLDialect, hibernate.bytecode.use_reflection_optimizer=false} 13:00:20,800 INFO org.hibernate.cfg.Environment - Bytecode provider name : cglib 13:00:20,815 INFO org.hibernate.cfg.Environment - using JDK 1.4 java.sql.Timestamp handling 13:00:20,894 INFO org.hibernate.cfg.Configuration - configuring from file: hibernate.cfg.xml [DEBUG] basedir: F:\Documents and Settings\rvgupta\eclipsemavenworkspace\trial-plugin [INFO] Configuration XML file loaded: F:\Documents and Settings\rvgupta\eclipsemavenworkspace\trial-plugin\src\main\resources\hibernate.cfg.xml 13:00:21,050 INFO org.hibernate.cfg.JDBCMetaDataConfiguration - Ignoring null mapping 13:00:21,050 INFO org.hibernate.cfg.Configuration - Configured SessionFactory: null [INFO] src/main/resources/database.properties not found within the project. Trying absolute path. [INFO] No hibernate properties file loaded. 13:00:21,097 INFO org.hibernate.connection.DriverManagerConnectionProvider - Using Hibernate built-in connection pool (not for production use!) 13:00:21,097 INFO org.hibernate.connection.DriverManagerConnectionProvider - Hibernate connection pool size: 20 13:00:21,097 INFO org.hibernate.connection.DriverManagerConnectionProvider - autocommit mode: false 13:00:21,097 INFO org.hibernate.connection.DriverManagerConnectionProvider - using driver: com.mysql.jdbc.Driver at URL: jdbc:mysql://localhost/firsthibernate 13:00:21,112 INFO org.hibernate.connection.DriverManagerConnectionProvider - connection properties: {user=root, password=} 13:00:21,112 WARN org.hibernate.cfg.SettingsFactory - Could not obtain connection metadata java.sql.SQLException: No suitable driver at java.sql.DriverManager.getConnection(DriverManager.java:545) at java.sql.DriverManager.getConnection(DriverManager.java:140) at org.hibernate.connection.DriverManagerConnectionProvider.getConnection(DriverManagerConnectionProvider.java:110) at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:76) at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1929) at org.hibernate.cfg.JDBCMetaDataConfiguration.readFromJDBC(JDBCMetaDataConfiguration.java:38) at org.codehaus.mojo.hibernate3.configuration.JDBCComponentConfiguration.doConfiguration(JDBCComponentConfiguration.java:67) at org.codehaus.mojo.hibernate3.configuration.AbstractComponentConfiguration.getConfiguration(AbstractComponentConfiguration.java:37) at org.codehaus.mojo.hibernate3.exporter.Hbm2DDLExporterMojo.doExecute(Hbm2DDLExporterMojo.java:87) at org.codehaus.mojo.hibernate3.HibernateExporterMojo.execute(HibernateExporterMojo.java:140) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:577) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:498) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmentForProject(DefaultLifecycleExecutor.java:265) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:191) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:149) at org.apache.maven.DefaultMaven.execute_aroundBody0(DefaultMaven.java:223) at org.apache.maven.DefaultMaven.execute_aroundBody1$advice(DefaultMaven.java:304) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:1) at org.apache.maven.embedder.MavenEmbedder.execute_aroundBody2(MavenEmbedder.java:903) at org.apache.maven.embedder.MavenEmbedder.execute_aroundBody3$advice(MavenEmbedder.java:304) at org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:1) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:176) at org.apache.maven.cli.MavenCli.main(MavenCli.java:63) at org.apache.maven.cli.MavenCli.main(MavenCli.java:52) 13:00:21,144 INFO org.hibernate.dialect.Dialect - Using dialect: org.hibernate.dialect.MySQLDialect 1
Re: dependency plugin
Whether you use assembly or dependency, you will still need to list the version of the artifact. If you put the version in dependencyManagement, you can skip the version in the plugin config for dependency Sent from my iPhone On Jul 18, 2008, at 5:48 PM, "Kathryn Huxtable" <[EMAIL PROTECTED] > wrote: Use the assembly plugin instead. It's very customizable and can likely do what you want. -K On Jul 18, 2008, at 7:43 AM, Laura Lozano wrote: > Hello, > > I'm using the dependency plugin in order to copy the dependencies > from the > repository to a target platform. The problem is that I need to copy > also > some artifacts that are not dependencies and using copy I have to > specify > the version, this is not very useful becasuse when the version > changes the > pom also has to be updated to copy the new version in the target > directory. > Is there any way more general to copy artifacts that are not > dependencies in > the target direcotry whitouth specify the version? > > Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Mojo for validating PGP signature
A few months back I asked if there was a Maven plugin for validating PGP signatures, like those created by the gpg plugin, of downloaded artifacts. The answer seemed to be "no", so I'd like to try to write such a plugin. However, this will be my first mojo so I have quite a few (probably stupid) questions. Could some one point me to the code Maven currently uses to verify the md5/sha1 hashes for the artifacts so that I could try and start from there? Thanks. -- SWITCH Serving Swiss Universities -- Chad La Joie, Software Engineer, Net Services Werdstrasse 2, P.O. Box, 8021 Zürich, Switzerland phone +41 44 268 15 75, fax +41 44 268 15 68 [EMAIL PROTECTED], http://www.switch.ch - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
hibernate3 maven2 plugin problem
Hi, While using hibernate3 maven2 plugin. I m getting this error: [INFO] [hibernate3:hbm2ddl] [DEBUG] Setting context classloader for plugin to: /plugins/org.codehaus.mojo:hibernate3-maven-plugin:[EMAIL PROTECTED]/thread:main (instance is: ClassRealm[/plugins/org.codehaus.mojo:hibernate3-maven-plugin:[EMAIL PROTECTED]/thread:main, parent: ClassRealm[plexus.core, parent: null]]) 13:00:20,800 INFO org.hibernate.cfg.Environment - Hibernate 3.2.0.cr5 13:00:20,800 INFO org.hibernate.cfg.Environment - loaded properties from resource hibernate.properties: {hibernate.dialect=org.hibernate.dialect.MySQLDialect, hibernate.bytecode.use_reflection_optimizer=false} 13:00:20,800 INFO org.hibernate.cfg.Environment - Bytecode provider name : cglib 13:00:20,815 INFO org.hibernate.cfg.Environment - using JDK 1.4 java.sql.Timestamp handling 13:00:20,894 INFO org.hibernate.cfg.Configuration - configuring from file: hibernate.cfg.xml [DEBUG] basedir: F:\Documents and Settings\rvgupta\eclipsemavenworkspace\trial-plugin [INFO] Configuration XML file loaded: F:\Documents and Settings\rvgupta\eclipsemavenworkspace\trial-plugin\src\main\resources\hibernate.cfg.xml 13:00:21,050 INFO org.hibernate.cfg.JDBCMetaDataConfiguration - Ignoring null mapping 13:00:21,050 INFO org.hibernate.cfg.Configuration - Configured SessionFactory: null [INFO] src/main/resources/database.properties not found within the project. Trying absolute path. [INFO] No hibernate properties file loaded. 13:00:21,097 INFO org.hibernate.connection.DriverManagerConnectionProvider - Using Hibernate built-in connection pool (not for production use!) 13:00:21,097 INFO org.hibernate.connection.DriverManagerConnectionProvider - Hibernate connection pool size: 20 13:00:21,097 INFO org.hibernate.connection.DriverManagerConnectionProvider - autocommit mode: false 13:00:21,097 INFO org.hibernate.connection.DriverManagerConnectionProvider - using driver: com.mysql.jdbc.Driver at URL: jdbc:mysql://localhost/firsthibernate 13:00:21,112 INFO org.hibernate.connection.DriverManagerConnectionProvider - connection properties: {user=root, password=} 13:00:21,112 WARN org.hibernate.cfg.SettingsFactory - Could not obtain connection metadata java.sql.SQLException: No suitable driver at java.sql.DriverManager.getConnection(DriverManager.java:545) at java.sql.DriverManager.getConnection(DriverManager.java:140) at org.hibernate.connection.DriverManagerConnectionProvider.getConnection(DriverManagerConnectionProvider.java:110) at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:76) at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1929) at org.hibernate.cfg.JDBCMetaDataConfiguration.readFromJDBC(JDBCMetaDataConfiguration.java:38) at org.codehaus.mojo.hibernate3.configuration.JDBCComponentConfiguration.doConfiguration(JDBCComponentConfiguration.java:67) at org.codehaus.mojo.hibernate3.configuration.AbstractComponentConfiguration.getConfiguration(AbstractComponentConfiguration.java:37) at org.codehaus.mojo.hibernate3.exporter.Hbm2DDLExporterMojo.doExecute(Hbm2DDLExporterMojo.java:87) at org.codehaus.mojo.hibernate3.HibernateExporterMojo.execute(HibernateExporterMojo.java:140) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:577) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:498) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmentForProject(DefaultLifecycleExecutor.java:265) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:191) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:149) at org.apache.maven.DefaultMaven.execute_aroundBody0(DefaultMaven.java:223) at org.apache.maven.DefaultMaven.execute_aroundBody1$advice(DefaultMaven.java:304) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:1) at org.apache.maven.embedder.MavenEmbedder.execute_aroundBody2(MavenEmbedder.java:903) at org.apache.maven.embedder.MavenEmbedder.execute_aroundBody3$advice(MavenEmbedder.java:304) at org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:1) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:176) at org.apache.maven.cli.MavenCli.main(MavenCli.java:63) at org.apache.maven.cli.MavenCli.main(MavenCli.java:52) 13:00:21,144 INFO org.hibernate.dialect.Dialect - Using dialect: org.hibernate.dialect.MySQLDialect 13:00:21,269 INFO org.hibernate.transaction.TransactionFactoryFactory - Transaction strategy: org.hibernate.transaction.JDBCTransactionFactory 13:00:21,284 INFO org.hibernate.transaction.TransactionManagerLookupFactory - No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-leve
java code which executes maven goals using maven API
I wish to execute the maven plugin goals with the help of a java class. If anyoune could help me out with how to use the maven API classes and functions PLEASE HELP... -- View this message in context: http://www.nabble.com/java-code-which-executes-maven-goals-using-maven-API-tp18563530p18563530.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]