Re: Torben N Rasmussen is out of the office.
Interesting ;-) I hope this is not going to be sent on each message until the end of the month.. Otherwise you might block him until then, Emmanuel? Cheers + enjoy the weekend.. Jo On 7/7/06, Torben N Rasmussen [EMAIL PROTECTED] wrote: I will be out of the office starting 07/07/2006 and will not return until 07/31/2006. I will respond to your message when I return.
FTP via Maven?
Hey there. We're dependent on jars from a non-Maven project. The jars are available via FTP. Has anyone come up w/ an eloquent way of integrating FTP within Maven? I'd like to manage the dependencies and configure FTP settings within pom.xml. -Chris ___ Notice: This email message, together with any attachments, may contain information of BEA Systems, Inc., its subsidiaries and affiliated entities, that may be confidential, proprietary, copyrighted and/or legally privileged, and is intended solely for the use of the individual or entity named in this message. If you are not the intended recipient, and have received this message in error, please immediately return this by email and then delete it.
Re: FTP via Maven?
See http://maven.apache.org/wagon/ or you may check out the source in https://svn.apache.org/repos/asf/maven/wagon/trunk Chris Wall wrote: Hey there. We're dependent on jars from a non-Maven project. The jars are available via FTP. Has anyone come up w/ an eloquent way of integrating FTP within Maven? I'd like to manage the dependencies and configure FTP settings within pom.xml. -Chris ___ Notice: This email message, together with any attachments, may contain information of BEA Systems, Inc., its subsidiaries and affiliated entities, that may be confidential, proprietary, copyrighted and/or legally privileged, and is intended solely for the use of the individual or entity named in this message. If you are not the intended recipient, and have received this message in error, please immediately return this by email and then delete it. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] Frustration getting Maven 2 and Hibernate working together
Glad to help :o) About the hibernate dependency, I just have added the hibernate annotations jar because I'm using some hibernate propietary annotations. By the way, are you subscribed to the mojo user list? I sent a message there about an issue regarding schema usage, but no one has answered... should I forward the question to the mojo development list? Best regards Jose 2006/7/6, Johann Reyes [EMAIL PROTECTED]: Hello Jose Thanks for the help; I updated the documentation to reflect this. Also to use the plugin you don't need to include the hibernate jars as dependency to run the plugin. Regards Johann Reyes
RE: [m2] Frustration getting Maven 2 and Hibernate working together
Hello Jose Actually, I'm not, I should be, but I wasn't subscribe in that list, if you want to resend your email, I'll be able to receive it now. Regards Johann Reyes -Original Message- From: Jose Gonzalez Gomez [mailto:[EMAIL PROTECTED] Sent: Friday, July 07, 2006 3:20 AM To: Maven Users List Subject: Re: [m2] Frustration getting Maven 2 and Hibernate working together Glad to help :o) About the hibernate dependency, I just have added the hibernate annotations jar because I'm using some hibernate propietary annotations. By the way, are you subscribed to the mojo user list? I sent a message there about an issue regarding schema usage, but no one has answered... should I forward the question to the mojo development list? Best regards Jose 2006/7/6, Johann Reyes [EMAIL PROTECTED]: Hello Jose Thanks for the help; I updated the documentation to reflect this. Also to use the plugin you don't need to include the hibernate jars as dependency to run the plugin. Regards Johann Reyes - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Disecting a webapp?
Hi guys, 2006/7/7, Alexandre Poitras [EMAIL PROTECTED]: Can't you create more than one war and add them to an ear archive? If it's not a valid strategy in your case than I guess you can use the dependency plugin unpack goal (http://mojo.codehaus.org/dependency-maven-plugin/) or you can use the war merging feature of Maven (don't know how it works but I know it exists). war merging feature? Is this documented somewhere out there? sounds promissing. I'm also interested in best practises on this topic, since we're producing large webapps too. having all resources in just one big module is a bit nasty. -Stefan In my case, I use the dependency plugin to unpack resources (images, css, ...) dependencies. Note those aren't limitations of Maven but of JEE since each web modules must be packaged as an individual war and of the web because there isn't any standard resources archive format. Hope it helps! On 7/6/06, Alex Shneyderman [EMAIL PROTECTED] wrote: Thanks, guys for your responses. But ... I think I was not understood correctly. Let me clarify a bit here. The problem is not so much to separate layers into modules (it seems that's what examples demonstrate), but how to break up a big web application into smaller modules. The module's boundary is not that of the layer (business, webapp, core, etc). Web application itself needs to be broken onto smaller submodules. So core would have all the templates, js and css files and will be a webapp on its own, the child module would have concrete pages that utilize those templates and styles and in combination with the core module would constitute complete sub-application of a bigger app. When I develop I would like to checkout just one module and a few modules that this module depends on. Of course I would be able to deploy this one small module (and all of its dependencies), but it will not be the site itself, just one little portion. It also makes creation of the new module easier. Just declare dependencies and create a simple WAR structure. When I am happy with the little module I worked on, I will want to deploy it to production. This is when I will have to merge all the configuration files (web.xml comes to mind) and directory structures but only on creation of the WAR no need for physical merge on the system someplace. I am not sure if this made my question any clearer :-) On 7/6/06, Tamás Cservenák [EMAIL PROTECTED] wrote: Hi Alex, a quick example for this, see here: https://is-micro.myip.hu/trac/ismicro-commons/browser/trunk/ismicro-proximity Three modules: px-core (j2ee and transport independent), px-core-maven (maven bindings for core, till no sign of webapp) and px-webapp. The module separation should be natural and/or logical -- whetever it means :) In my practice it means, produce ONLY ONE ARTIFACT, be as small and as simple as it can (but naturally keep the overall module count manageable). Maven generated site from these sources here: http://proximity.abstracthorizon.org/ ~t~ On 7/6/06, ben short [EMAIL PROTECTED] wrote: Also have a look at the better builds with maven book, there is an example in there. On 7/6/06, ben short [EMAIL PROTECTED] wrote: Create a project for each of the core module and the children. then the webapp can pull them in as dependancies. On 7/6/06, Alex Shneyderman [EMAIL PROTECTED] wrote: How does one disect a web app into many modules but deploy it as one web app? This is what I mean: We have a web application that is quite big. We can identify many modules of it. There is a few core modules, and a bunch of child modules. Practically all children are dependendent on core modules, some child modules depend on other child modules. The modularization is done in purely logical way. Meaning, we still have one maven project for the webapp. I was wondering if anyone can suggest a way to break those modules up into seprate physical modules while keeping the ability to create a unifying webapp? Is it even possible with Maven 1 or 2? -- Thanks, Alex. - 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] -- Thanks, Alex. - 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: confusion: maven-ear-plugin and NoClassDefFoundError
Hi, On 7/6/06, Graham Leggett [EMAIL PROTECTED] wrote: Reading the docs for the ear:ear goal doesn't specify any minumum required configuration for the ear plugin to work. The doc is up-to-date, provided that your pom.xml has a dependency on the ejb (either by explicitelty declaring it or by getting it through transitive dependencies) is enough. You can just check that by yourself and see that your ejb module is bundled in the EAR file and defined in the application.xml correctly (?!) Reading Better builds with maven it suggests that each jar and ejb file needs to be explicitly defined within the plugin tag for maven-ear-plugin, over and above the dependancy mechanism. Read this section again. The book does not suggest that at all. If you want to *customize* the way the EAR plugin works, just configure the modules within the configuration/modules element of your plugin's config (see the doc again for pom samples) Can anyone point at any docs that explain clearly and concisely what needs to be done to build an ear file? I would suggest to read the doc again and if does not help, investigate why JBoss does not find your class. IMO it has nothing to do with the EAR and/or maven Cheers, Stéphane Regards, Graham -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- .::You're welcome ::. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Disecting a webapp?
it's now documented here http://maven.apache.org/plugins/maven-war-plugin/examples/war-overlay.html. just ignore the warning it's obsolete, the overwriting bug is already fixed. cheers, pete marvin Stefan Hübner wrote: Hi guys, 2006/7/7, Alexandre Poitras [EMAIL PROTECTED]: Can't you create more than one war and add them to an ear archive? If it's not a valid strategy in your case than I guess you can use the dependency plugin unpack goal (http://mojo.codehaus.org/dependency-maven-plugin/) or you can use the war merging feature of Maven (don't know how it works but I know it exists). war merging feature? Is this documented somewhere out there? sounds promissing. I'm also interested in best practises on this topic, since we're producing large webapps too. having all resources in just one big module is a bit nasty. -Stefan In my case, I use the dependency plugin to unpack resources (images, css, ...) dependencies. Note those aren't limitations of Maven but of JEE since each web modules must be packaged as an individual war and of the web because there isn't any standard resources archive format. Hope it helps! On 7/6/06, Alex Shneyderman [EMAIL PROTECTED] wrote: Thanks, guys for your responses. But ... I think I was not understood correctly. Let me clarify a bit here. The problem is not so much to separate layers into modules (it seems that's what examples demonstrate), but how to break up a big web application into smaller modules. The module's boundary is not that of the layer (business, webapp, core, etc). Web application itself needs to be broken onto smaller submodules. So core would have all the templates, js and css files and will be a webapp on its own, the child module would have concrete pages that utilize those templates and styles and in combination with the core module would constitute complete sub-application of a bigger app. When I develop I would like to checkout just one module and a few modules that this module depends on. Of course I would be able to deploy this one small module (and all of its dependencies), but it will not be the site itself, just one little portion. It also makes creation of the new module easier. Just declare dependencies and create a simple WAR structure. When I am happy with the little module I worked on, I will want to deploy it to production. This is when I will have to merge all the configuration files (web.xml comes to mind) and directory structures but only on creation of the WAR no need for physical merge on the system someplace. I am not sure if this made my question any clearer :-) On 7/6/06, Tamás Cservenák [EMAIL PROTECTED] wrote: Hi Alex, a quick example for this, see here: https://is-micro.myip.hu/trac/ismicro-commons/browser/trunk/ismicro-proximity Three modules: px-core (j2ee and transport independent), px-core-maven (maven bindings for core, till no sign of webapp) and px-webapp. The module separation should be natural and/or logical -- whetever it means :) In my practice it means, produce ONLY ONE ARTIFACT, be as small and as simple as it can (but naturally keep the overall module count manageable). Maven generated site from these sources here: http://proximity.abstracthorizon.org/ ~t~ On 7/6/06, ben short [EMAIL PROTECTED] wrote: Also have a look at the better builds with maven book, there is an example in there. On 7/6/06, ben short [EMAIL PROTECTED] wrote: Create a project for each of the core module and the children. then the webapp can pull them in as dependancies. On 7/6/06, Alex Shneyderman [EMAIL PROTECTED] wrote: How does one disect a web app into many modules but deploy it as one web app? This is what I mean: We have a web application that is quite big. We can identify many modules of it. There is a few core modules, and a bunch of child modules. Practically all children are dependendent on core modules, some child modules depend on other child modules. The modularization is done in purely logical way. Meaning, we still have one maven project for the webapp. I was wondering if anyone can suggest a way to break those modules up into seprate physical modules while keeping the ability to create a unifying webapp? Is it even possible with Maven 1 or 2? -- Thanks, Alex. - 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] -- Thanks, Alex.
Re: confusion: maven-ear-plugin and NoClassDefFoundError
Stephane Nicoll wrote: Reading the docs for the ear:ear goal doesn't specify any minumum required configuration for the ear plugin to work. The doc is up-to-date, provided that your pom.xml has a dependency on the ejb (either by explicitelty declaring it or by getting it through transitive dependencies) is enough. You can just check that by yourself and see that your ejb module is bundled in the EAR file and defined in the application.xml correctly (?!) The docs need to explicitly state to generate an ear file, make sure the components of the ear file are listed as dependencies, and run ear:ear. Again, the docs assume a priori knowledge from the user that this is the case. I know from experience with maven 1 that ear:ear required no external config over and above dependencies, but no corresponding statement was present in the maven 2 docs. Reading Better builds with maven it suggests that each jar and ejb file needs to be explicitly defined within the plugin tag for maven-ear-plugin, over and above the dependancy mechanism. Read this section again. The book does not suggest that at all. If you want to *customize* the way the EAR plugin works, just configure the modules within the configuration/modules element of your plugin's config (see the doc again for pom samples) This is the impression I got from reading the book. Because it didn't explicitly state at a minimum, dependancies need to be set, and the ear:ear goal, and you should have a working ear file, when the ear:ear plugin didn't produce a working ear file, the logical assumption was that a configuration step had been missed. Again, the docs assumed a priori knowledge from the reader. I would suggest to read the doc again and if does not help, investigate why JBoss does not find your class. IMO it has nothing to do with the EAR and/or maven Now that the docs have been clarified, it seems that I have configured maven correctly (set dependencies, run ear:ear). Lots of Googling shows the error I was getting was caused by an incorrect classpath inside the manifest file. The manifest file is generated by maven. Therefore, all evidence suggests the problem is with maven. Regards, Graham -- smime.p7s Description: S/MIME Cryptographic Signature
RE: confusion: maven-ear-plugin and NoClassDefFoundError
Hi Graham, Graham Leggett wrote on Friday, July 07, 2006 10:36 AM: [snip] Lots of Googling shows the error I was getting was caused by an incorrect classpath inside the manifest file. The manifest file is generated by maven. Therefore, all evidence suggests the problem is with maven. Unfortunately building EARs is highly fragile (for us in the current shape they get meanwhile unusable). EJBs may have wrong classpaths because: - http://jira.codehaus.org/browse/MEJB-18 - http://jira.codehaus.org/browse/MNG-1577 - Jörg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Getting the ear plugin to recognise har files
Hi all, I have managed to get a combination of the antrun plugin and the build-helper-maven-plugin to build and deploy a JBoss har file into my repository. The ear plugin however bombs out like so: [INFO] [ear:generate-application-xml] [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Failed to initialize ear modules Embedded error: Unknown artifact type[har] Looking in the docs, the configuration option artifactTypeMappings seems to offer a clue, but apart from the text PlexusConfiguration, there is no indication what needs to be done to get this to work, or whether this option does I what I think it might do. Are there any examples out there of the artifactTypeMappings setting being used? Regards, Graham -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
maven-plugin-plugin does not filter CVS\Base files
Hello, I 'm writing a maven plugin. The class MyMojo is in the package mypackage. I use eclipse with CVS = When I update a file, eclipse create a copy of the file in the folder CVS\Base. So on the file system, I have mypackage\MyMojo.java mypackage\CVS\Base\MyMojo.java So when I run the compile task, it does not work because the maven-plugin-plugin descriptor goal finds the goal 2 times : [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Error extracting plugin descriptor: 'Goal: html already exists in the plugin descriptor for prefix: xxx How can I say to this plugin that it has to ignore files from CVS\Base folders ? Or perhaps somebody has another solution ? It is very strange because all other maven plugins that I use do not complain about such duplicates in CVS\Base folders. Thks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: assembly - renaming files
I just found time to get back to that. I think you misunderstood. I already do package the submodules and install them to the local repository and would like to reach them from the master module. At that point I don't have to use the dependency plugin, the default package phase suffices. My problem is that as soon as I install the package (or attached artifact) I loose the prefix I added to it's name. That's why I said I feel there is no such way and I just have to use in the master module the dependency:copy and repeat the artifactItem element for every submodule's artifact I need to download and assign those prefixes in the master module pom (instead from the submodule's poms) any insight into that? or am I missing something? -Wojtek 2006/7/5, dan tran [EMAIL PROTECTED]: I you need to repeating bunch of dependecy:copy execution in a submodules, I's suggest that delegate a maven to prepare that stagement area and aother other projects can directly reference it via relative path, or via local repository ( get that maven project to assemable a zip file that other modules can unpack ) -Dan On 7/5/06, Wojciech Biela [EMAIL PROTECTED] wrote: hmmm, true, true, thank you Dan!, I missed that, I feel I must go home and take a rest ;) ... , anyway still that leaves me with the question of how to reach that arbitrary prefix assigned in the pom file of that dependency? I feel there is no such way and I just have to use the dependency:copy and repeat the artifactItem element for every submodule and assign those prefixes in the master module pom (instead from the submodule's poms) sorry if all this is basic stuff, but I'm very new to maven best regards Wojtek 2006/7/5, dan tran [EMAIL PROTECTED]: dependency:copy allows you to rename the artifact, check out ArtifactItem javadoc -D On 7/5/06, Wojciech Biela [EMAIL PROTECTED] wrote: OK, I looked into the docs for the dependency-maven-plugin and unfortunately didn't find anything of use in my situation. Dan if you would be so kind and elaborate a little on how I could do it with this plugin I would be truly grateful. I don't see how the dependency:copy-dependencies or dependency:copy goal may help me change the names of those artifacts, the only thing that they allow me to do is strip the version number. I need to change the destination file name, and assign a prefix different, arbitrary and characteristic for each submodule. Maybe I need to write my own Mojo for that task, but I'm still not sure whether I'll be able to reach the dependencies' pom definition from the point just before assembly of the master project. In the pom I wanted to place the arbitrary prefix characteristic for each of the submodules. Maybe the only way I can do this is by repeating the dependencies in some other file and assigning there the prefixes and then reach that file from my Mojo, or Ant task or something of that sort .. ? please help, I'm lost Wojtek 2006/7/5, dan tran [EMAIL PROTECTED]: You need the help form maven-dependency-plugin to prep the work before assembly started. -D On 7/5/06, Wojciech Biela [EMAIL PROTECTED] wrote: Hello, I refined my problem and now it comes down to this: I have my submodules installed in the repository as my custom type mod, I did this through attach-artifacts and added artifact file${project.build.directory}/${project.build.finalName }.jar/file typemod/type /artifact now in the main project I set the dependencies to those modules with the type mod. There are two issues however: 1. (major) I would like to assign an arbitrary prefix to every mod type dependency. I figured already that I can't change the name of the file in the repository to anything else than artifactId-version, so I wonder what else can I do to achieve it. I would like not to duplicate any information anywhere, so I thought I would put a parameter in every module's pom file and I would access it through ${} during assembly and then use the outputFileNameMapping to change the name of every mod file. But the problem as I see it is that I can't access the dependencies pom file at the moment of assembly. Do you have any insight into how to do it in a clean way? if not clean then maybe the least messy way? 2. (minor) I would like to assemble all jar type dependencies into one folder, and mod type dependencies to another. currently dependencySets dependencySet outputDirectorylib/outputDirectory /dependencySet dependencySet outputDirectorymodules/outputDirectory /dependencySet /dependencySets puts all dependencies into both dirs any insight is welcome Best regards, -- Wojtek Biela
Maven findbugs Settings
Hi, Any know how to configure maven-findbugs-plugin (sourceforge pulgin) for site generation. Thanks Regards, Tulasi -- View this message in context: http://www.nabble.com/Maven-findbugs-Settings-tf1906038.html#a5216122 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
assembly - filter dependencies by type or extension
I decided to repost one of my questions as it's a different matter from the other ones. When doing an assembly and placing dependencies inside it, is there any way to filter to include only one type of dependencies, there is no type element in the dependencySet element of the assembly descriptor. If not filter by type then at least by file extension. Any way to do it in an other way than downloading all and then running Ant to delete all but the given postfix? -- Wojtek Biela - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Maven findbugs Settings
In the reports section, add an entry like other reports: /reports ... reportmaven-findbugs-plugin/report ... /reports (I will add this to the docs - thanks). -Original Message- From: tulasi [mailto:[EMAIL PROTECTED] Sent: Friday, July 07, 2006 7:07 AM To: users@maven.apache.org Subject: Maven findbugs Settings Hi, Any know how to configure maven-findbugs-plugin (sourceforge pulgin) for site generation. Thanks Regards, Tulasi -- View this message in context: http://www.nabble.com/Maven-findbugs-Settings-tf1906038.html#a5216122 Sent from the Maven - Users forum at Nabble.com. - 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: Maven findbugs Settings
Dear friends, its not working.. i have tried like this reporting plugin groupIdmaven-findbugs/groupId artifactIdmaven-findbugs-plugin/artifactId /plugin /reporting -- View this message in context: http://www.nabble.com/Maven-findbugs-Settings-tf1906038.html#a5216460 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Maven findbugs Settings
The SourceForge plugins are for Maven 1.x, not 2.x. -Original Message- From: tulasi [mailto:[EMAIL PROTECTED] Sent: Friday, July 07, 2006 7:32 AM To: users@maven.apache.org Subject: RE: Maven findbugs Settings Dear friends, its not working.. i have tried like this reporting plugin groupIdmaven-findbugs/groupId artifactIdmaven-findbugs-plugin/artifactId /plugin /reporting -- View this message in context: http://www.nabble.com/Maven-findbugs-Settings-tf1906038.html#a5216460 Sent from the Maven - Users forum at Nabble.com. - 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: How to configure attached tests?
Arnaud, 1) I have several test, 100+, and the number grows, so from a management perspective extending each abstract test in each implementation is not practical. 2) I believe a testing project can be created the will use profiles to test each implementation individually. This is a manageable workaround, although it requires an additional step to prevent a failing implementation from being deployed to the repository. 3) Ideally a mvn deploy would: o Build the implementation o Test the implementation, including implementation specific unit tests and the attached test. o Only deploy an artifact into the repository that has passed the testing. #3 can be done by Continuum. To prevent #1 and #2 from deploying an artifact that as not passed the attached test, require 3 passes through Maven: o install the implementation. o Run the implementation through the attached test. o Only deploy implementation artifacts that pass all testing. I do not believe this easily can be done in Continuum. I suspect the result of this thread will be: o Corrections to the attached test documentation then include the requirement of creating an class in the project's testing source directory that extends a test located in the attached test jar. o A better understanding on how attached test can be used. o A better understanding on how attached test would like to be used. Thus prompting enhancements in Maven. Paul Spencer Arnaud Bailly wrote: Paul Spencer [EMAIL PROTECTED] writes: Arnaud, In my case, I have an interface with several implementations. The intent is it to have an attached test which verifies that the implementation conforms to the interface. So each implementation will include the interface's attached test in addition to it's own unit test. By including the attached test in each implementation, then anytime an implementation is successfully built, by Continuum for example, you can me assured it also confirms to the interface. Paul Spencer Paul, That's nice and I think I would do the same. But then, why don't you make four interfaces tests abstract and extends them in each module for concrete implementations ? abstract class ITest extends TestCase { abstract void setImplem(I i0); ITest(STring n) { super(n); } public void testXXX() ... } class ImplemTest extends ITest { ImplemTest(String n) { super(n); setImplem(this); } ... } Your attached tests will not be considered for execution, which is ok. Regards, - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Maven findbugs Settings
for Maven 2.0 . Any FindBugs plugin and also plz give me configuration Thanks in advance tulsi -- View this message in context: http://www.nabble.com/Maven-findbugs-Settings-tf1906038.html#a5216921 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
maven-scm-plugin goals question
Dear all, As I see at the following URL goals provided by maven-scm-plugin, these goals are general goals, but at the same time, certain actions / operations which are specific to a particular SCM does not really match (for readibility / documentation reasons) to these goals. http://maven.apache.org/scm/plugins/plugin-info.html http://maven.apache.org/scm/plugins/plugin-info.html For instance, take the login action, which I think every provider implements for it repository, and in most of the cases with other providers which are implemented, login has been wrapped in URL in the pom and there itself login take place. Is it not worthwhile to provide login as a seperate goal ? or there are some good reasons to not to provide this ? Next, I would appreciate, if somebody could point me to the purpose of the following goals with repect to the provider repository : scm:diff scm:status scm:tag scm:unedit If I do not implement any of the goals or only implement which are relevent / common goals which are relevent to my provider , then at the higher level would I be missing any of the functinality provided by Maven ? Regards, Jaikumar
Re: Maven findbugs Settings
please add following in your pom.xml: dependencies dependency groupIdjaxen/groupId artifactIdjaxen/artifactId version1.1-beta-8/version scopecompile/scope /dependency /dependencies pluginRepositories pluginRepository idMaven Snapshots/id urlhttp://snapshots.maven.codehaus.org/maven2/url /pluginRepository /pluginRepositories reporting plugins plugin groupIdmaven-plugins/groupId artifactIdmaven-findbugs-plugin/artifactId version1.0-SNAPSHOT/version /plugin /plugins /reporting Point the repository to the http://snapshots.maven.codehaus.org/maven2 and dependency for jaxen is added since I was getting an error for dom4j for jaxen. For the same, I have commented/removed the optional tag for the jaxen in pom file of dom4j (i.e. dom4j-1.6.1.pom) from my local repository. Try this On 7/7/06, Jeff Jensen [EMAIL PROTECTED] wrote: The SourceForge plugins are for Maven 1.x, not 2.x. -Original Message- From: tulasi [mailto:[EMAIL PROTECTED] Sent: Friday, July 07, 2006 7:32 AM To: users@maven.apache.org Subject: RE: Maven findbugs Settings Dear friends, its not working.. i have tried like this reporting plugin groupIdmaven-findbugs/groupId artifactIdmaven-findbugs-plugin/artifactId /plugin /reporting -- View this message in context: http://www.nabble.com/Maven-findbugs-Settings-tf1906038.html#a5216460 Sent from the Maven - Users forum at Nabble.com. - 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: Maven findbugs Settings
Dear friend ... its failing... [WARNING] *** CHECKSUM FAILED - Error retrieving checksum file for maven-plugins/maven-findbugs-plugin/1.0-SNAPSHOT/maven-findbugs-plugin-1.0-SNAPSHOT.pom - IGNORING Downloading: http://snapshots.maven.codehaus.org/maven2/maven-plugins/maven-findbugs-plugin/1.0-SNAPSHOT/maven-findbugs-plugin-1.0-SNAPSHOT.jar 5K downloaded Downloading: http://snapshots.maven.codehaus.org/maven2/maven-plugins/maven-findbugs-plugin/1.0-SNAPSHOT/maven-findbugs-plugin-1.0-SNAPSHOT.jar 5K downloaded [WARNING] *** CHECKSUM FAILED - Checksum failed on download: local = 'ad4ee38165e2235a24330a063a0d7961'; remote = '?N??e?#Z$3 ya' - IGNORING [INFO] [ERROR] FATAL ERROR [INFO] [INFO] null [INFO] [INFO] Trace java.lang.NullPointerException at org.apache.maven.plugin.DefaultPluginManager.addPlugin(DefaultPluginManager.java:292) at org.apache.maven.plugin.DefaultPluginManager.verifyVersionedPlugin(DefaultPluginManager.java:198) at org.apache.maven.plugin.DefaultPluginManager.verifyReportPlugin(DefaultPluginManager.java:487) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyReportPlugin(DefaultLifecycleExecutor.java:1292) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.getReports(DefaultLifecycleExecutor.java:657) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.getReports(DefaultLifecycleExecutor.java:637) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:512) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:475) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:454) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115) at org.apache.maven.cli.MavenCli.main(MavenCli.java:256) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) [INFO] [INFO] Total time: 39 seconds [INFO] Finished at: Fri Jul 07 19:08:31 GMT+05:30 2006 [INFO] Final Memory: 11M/20M [INFO] -- View this message in context: http://www.nabble.com/Maven-findbugs-Settings-tf1906038.html#a5217462 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
SureFire plugin doesn't support Junit 4 paramterized tests?
Hi all, (Maven 2.0.4, Surefire 2.2) I am using the JUnit 4 @RunWith(Parameterized.Class) annotation in my JUnit tests for paramterized tests which takes in a sequence of input data and compares against an expected output sequence. The constructors for these test classes take parameters, but it looks like the plugin is attempting to use the default constructor. Is this functionality supported at the moment? PLUS: Apologize for any gloopers. I am a maven newbie. All help appreciated! Regards, Tarun - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Unable to find the mojo 'org.apache.maven.plugins:maven-antrun-plugin:1.0:run'
We have the same problem but if we execute 'clean' on the same line as 'package|install|deploy|etc.', the problem goes away. -Daryl -Original Message- From: Graham Leggett [mailto:[EMAIL PROTECTED] Sent: Thursday, July 06, 2006 1:37 PM To: Maven Users List Subject: Re: Unable to find the mojo 'org.apache.maven.plugins:maven-antrun-plugin:1.0:run' Jeff Mutonho wrote: It looks like maven-antrun-plugin and xdoclet-maven-plugin are having issues with each other.I'm using maven-antrun-plugin in the web module , and xdoclet-maven-plugin in the services module.The services module gets built first.I took out the xdoclet-maven-plugin from my pom and the error disappeared , the build succeeded and my war was created.Does this mean maven-antrun-plugin and xdoclet-maven-plugin can not co-exist? I have the same problem in a build here. Regards, Graham -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to configure attached tests?
Arnaud, 1) I have several test, 100+, and the number grows, so from a management perspective extending each abstract test in each implementation is not practical. 2) I believe a testing project can be created the will use profiles to test each implementation individually. This is a manageable workaround, although it requires an additional step to prevent a failing implementation from being deployed to the repository. 3) Ideally a mvn deploy would: o Build the implementation o Test the implementation, including implementation specific unit tests and the attached test. o Only deploy an artifact into the repository that has passed the testing. #3 can be done by Continuum. To prevent #1 and #2 from deploying an artifact that as not passed the attached test, require 3 passes through Maven: o install the implementation. o Run the implementation through the attached test. o Only deploy implementation artifacts that pass all testing. I do not believe this easily can be done in Continuum. I suspect the result of this thread will be: o Corrections to the attached test documentation then include the requirement of creating an class in the project's testing source directory that extends a test located in the attached test jar. o A better understanding on how attached test can be used. o A better understanding on how attached test would like to be used. Thus prompting enhancements in Maven. Paul Spencer Arnaud Bailly wrote: Paul Spencer [EMAIL PROTECTED] writes: Arnaud, In my case, I have an interface with several implementations. The intent is it to have an attached test which verifies that the implementation conforms to the interface. So each implementation will include the interface's attached test in addition to it's own unit test. By including the attached test in each implementation, then anytime an implementation is successfully built, by Continuum for example, you can me assured it also confirms to the interface. Paul Spencer Paul, That's nice and I think I would do the same. But then, why don't you make four interfaces tests abstract and extends them in each module for concrete implementations ? abstract class ITest extends TestCase { abstract void setImplem(I i0); ITest(STring n) { super(n); } public void testXXX() ... } class ImplemTest extends ITest { ImplemTest(String n) { super(n); setImplem(this); } ... } Your attached tests will not be considered for execution, which is ok. Regards, - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
activate a profile in a submodule
Further questions... When I have a master module with different submodules, in a some of the submodules I have some stuff done by a plugin, every time it's the same thing, so I'd like to put that in the master pom, and not have to repeat that big XML fragment in every submodule which needs this plugin. How to do it? I thought using profiles might help but it didn't. Although I may define that plugin in a profile in the master pom, when building the whole thing through the master module I didn't find a way to activate that profile only for certain submodules (either from the level of the master pom, or from within the submodules)... any help appreciated -- Wojtek Biela - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Javadoc aggregation and multi-module
Hi, My layout is as this : myProject |- pom.xml |- commons-tests |-src |-main |-java |- my common JUnit tests |- module 1 (depend on commons-test with scope=test) |- module 2 (depend on commons-test with scope=test) I have configured Javadoc plugin, with aggregate=true. But in my Javadoc, I have also commons-tests Javadoc, and I don't want it with main application. It's the same problem with source Xref and test source Xref: Commons-tests sources are with source Xref and not with test source Xref. How can I tell to Maven that Java classes in commons-tests/src/main/java are tests ? Thanks Julien
RE: install:install-file fails to insert third-party native library directly into local repository
Allan: Per content at .../guide-testing-development-plugins.html, added pluginRepositories pluginRepository idsnapshots/id urlhttp://svn.apache.org/maven-snapshot-repository/url /pluginRepository /pluginRepositories to POM. I don't declare use of maven-install-plugin in any POM, i.e. plugin version is not specified. Tried the install-file goal with -U, $ mvn -U install:install-file ... from the project (directory) with POM containing /pluginRepositories, above. I do see [INFO] artifact org.apache.maven.plugins:maven-install-pluging: \ checking for updates from central Maven does not report downloading an update for the plugin and I get the same error. How can I verify which version of the plugin is being used? Brad -Original Message- From: Allan Ramirez [mailto:[EMAIL PROTECTED] Sent: Friday, July 07, 2006 11:45 AM To: Maven Users List Subject: Re: install:install-file fails to insert third-party native library directly into local repository It seems that the parameters are still readonly from the 2.1 version of install plugin in ibiblio.. Content in the plugin.xml: parameter nameartifactId/name typejava.lang.String/type requiredtrue/required editablefalse/editable still not editable description/description /parameter Brad, try this link http://maven.apache.org/guides/development/guide-testing-development-plugins .html dan tran wrote: strange the code shows artifactId is overridable but your log shows it is read only field. -D On 7/6/06, Brad Harper [EMAIL PROTECTED] wrote: Same error. Brad -Original Message- From: dan tran [mailto:[EMAIL PROTECTED] Sent: Thursday, July 06, 2006 4:50 PM To: Maven Users List Subject: Re: install:install-file fails to insert third-party native library directly into local repository looks like you are using an older version install plugin, try with mvn -U On 7/6/06, Brad Harper [EMAIL PROTECTED] wrote: Hello All: I'm using native-maven-plugin and I want to install a third-party native library in the local repository (defined in settings.xml). I intend to specify a dependency in one of my own native project's POM. % mvn install:install-file -Dfile=FPLibrary.lib -DgroupId=com.emc \ -DartifactId=com-emc-centera-fplibrary-WINDOWS-X86 \ -Dversion=2.0SP1 -Dpackaging=lib [This is nearly identical to an example from BBWM, page 249.] I see the error [ERROR] BUILD ERROR [INFO] --... [INFO] Error configuring: org.apache.maven.plugnis:maven-install-plugin. Reason: ERROR: Cannot override read-only parameter: artifactId in goal install:install-file I'm trying to insert this library manually into the repository. The library does not have a corresponding project/module in my maven project hierarchy -- and therefore doesn't have a previously defined artifactId. Any thoughts? Brad - 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] - 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: Site distribution url examples?
Just wanted to follow up on the thread. I decided to use the 'file' protocol instead of scp as I am copying files on the local machine. When looking at the source code for the maven-deploy-plugin, I found that the plugin looks in the .ssh directory for keys. As I mentioned earlier, Continuum is running on system startup (since I didn't really assign a user, I am assuming it runs as root). Even though the root folder has .ssh subfolder, I don't understand why the credentials are not being picked up. Perhaps someone who has installed this on the server can break down the install procedure so that scp can be performed from the build process. -- View this message in context: http://www.nabble.com/Site-distribution-url-examples--tf1901554.html#a5218512 Sent from the Continuum - Users forum at Nabble.com.
Cleaning up results
Is there any way to purge the results for failed builds? -- View this message in context: http://www.nabble.com/Cleaning-up-results-tf1906827.html#a5218535 Sent from the Continuum - Users forum at Nabble.com.
Re: install:install-file fails to insert third-party native library directly into local repository
How can I verify which version of the plugin is being used? Brad try mvn -X and check the logs Jerome - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: install:install-file fails to insert third-party native library directly into local repository
One work around is to build the latest install plugin from source, which will force maven to use your snapshot build On 7/7/06, Brad Harper [EMAIL PROTECTED] wrote: Allan: Per content at .../guide-testing-development-plugins.html, added pluginRepositories pluginRepository idsnapshots/id urlhttp://svn.apache.org/maven-snapshot-repository/url /pluginRepository /pluginRepositories to POM. I don't declare use of maven-install-plugin in any POM, i.e. plugin version is not specified. Tried the install-file goal with -U, $ mvn -U install:install-file ... from the project (directory) with POM containing /pluginRepositories, above. I do see [INFO] artifact org.apache.maven.plugins:maven-install-pluging: \ checking for updates from central Maven does not report downloading an update for the plugin and I get the same error. How can I verify which version of the plugin is being used? Brad -Original Message- From: Allan Ramirez [mailto:[EMAIL PROTECTED] Sent: Friday, July 07, 2006 11:45 AM To: Maven Users List Subject: Re: install:install-file fails to insert third-party native library directly into local repository It seems that the parameters are still readonly from the 2.1 version of install plugin in ibiblio.. Content in the plugin.xml: parameter nameartifactId/name typejava.lang.String/type requiredtrue/required editablefalse/editable still not editable description/description /parameter Brad, try this link http://maven.apache.org/guides/development/guide-testing-development-plugins .html dan tran wrote: strange the code shows artifactId is overridable but your log shows it is read only field. -D On 7/6/06, Brad Harper [EMAIL PROTECTED] wrote: Same error. Brad -Original Message- From: dan tran [mailto:[EMAIL PROTECTED] Sent: Thursday, July 06, 2006 4:50 PM To: Maven Users List Subject: Re: install:install-file fails to insert third-party native library directly into local repository looks like you are using an older version install plugin, try with mvn -U On 7/6/06, Brad Harper [EMAIL PROTECTED] wrote: Hello All: I'm using native-maven-plugin and I want to install a third-party native library in the local repository (defined in settings.xml). I intend to specify a dependency in one of my own native project's POM. % mvn install:install-file -Dfile=FPLibrary.lib -DgroupId=com.emc \ -DartifactId=com-emc-centera-fplibrary-WINDOWS-X86 \ -Dversion=2.0SP1 -Dpackaging=lib [This is nearly identical to an example from BBWM, page 249.] I see the error [ERROR] BUILD ERROR [INFO] --... [INFO] Error configuring: org.apache.maven.plugnis:maven-install-plugin. Reason: ERROR: Cannot override read-only parameter: artifactId in goal install:install-file I'm trying to insert this library manually into the repository. The library does not have a corresponding project/module in my maven project hierarchy -- and therefore doesn't have a previously defined artifactId. Any thoughts? Brad - 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] - 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]
Torben N Rasmussen is out of the office.
I will be out of the office starting 07/07/2006 and will not return until 07/31/2006. I will respond to your message when I return.
Re: Javadoc aggregation and multi-module
Why not put the tests in commons-tests/src/test/java like the convention defines... A Julien HENRY wrote: Hi, My layout is as this : myProject |- pom.xml |- commons-tests |-src |-main |-java |- my common JUnit tests |- module 1 (depend on commons-test with scope=test) |- module 2 (depend on commons-test with scope=test) I have configured Javadoc plugin, with aggregate=true. But in my Javadoc, I have also commons-tests Javadoc, and I don't want it with main application. It's the same problem with source Xref and test source Xref: Commons-tests sources are with source Xref and not with test source Xref. How can I tell to Maven that Java classes in commons-tests/src/main/java are tests ? Thanks Julien - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Findbugs error
Howdy, Getting an error for the findbugs-maven-plugin, it seems that a dependency (dom4j) is dependent on jaxen beta 6 but in the dom4j pom the jaxen dependency is set to optional - true. Is there anyway of overwriting a plugins pom's dependency configuration? Other posts I've come across have said to comment out or delete the optional bit but that's a crappy way around this. Thanks, Brian -- View this message in context: http://www.nabble.com/Findbugs-error-tf1906933.html#a5218865 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Hibernate 3 failure
Hello, I've tried searching for this problem on Google but so far have not had any luck locating this exact error so I wanted to see if anyone on the mailing can help out. I have Maven 2.0.4 installed and I am trying to use the Hibernate3 plugin. I added the repositories configuration to my pom.xml: repositories repository idMaven Snapshots/id urlhttp://snapshots.maven.codehaus.org/maven2//url snapshots enabledtrue/enabled /snapshots releases enabledfalse/enabled /releases /repository /repositories pluginRepositories pluginRepository idMaven Snapshots/id urlhttp://snapshots.maven.codehaus.org/maven2//url snapshots enabledtrue/enabled /snapshots releases enabledfalse/enabled /releases /pluginRepository /pluginRepositories and was able to download the required plugin but it fails with the following error: [INFO] [hibernate3:hbm2ddl] [INFO] [ERROR] FATAL ERROR [INFO] [INFO] null org/apache/log4j/Category [INFO] [INFO] Trace java.lang.ExceptionInInitializerError at org.codehaus.mojo.hibernate3.exporter.SchemaExportMojo.doSchemaExport(SchemaExportMojo.java:63) at org.codehaus.mojo.hibernate3.exporter.Hbm2DDLExporterMojo.doExecute(Hbm2DDLExporterMojo.java:55) at org.codehaus.mojo.hibernate3.HibernateExporterMojo.execute(HibernateExporterMojo.java:60) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:488) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:458) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115) at org.apache.maven.cli.MavenCli.main(MavenCli.java:256) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) Caused by: org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: No suitable Log constructor [Ljava.lang.Class;@1afae45 for org.apache.commons.logging.impl.Log4JLogger (Caused by java.lang.NoClassDefFoundError: org/apache/log4j/Category) (Caused by org.apache.commons.logging.LogConfigurationException: No suitable Log constructor [Ljava.lang.Class;@1afae45 for org.apache.commons.logging.impl.Log4JLogger (Caused by java.lang.NoClassDefFoundError: org/apache/log4j/Category)) at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:543) at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:235) at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:209) at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:351) at org.hibernate.tool.hbm2ddl.SchemaExport.clinit(SchemaExport.java:47) ... 21 more Caused by: org.apache.commons.logging.LogConfigurationException: No suitable Log constructor [Ljava.lang.Class;@1afae45 for org.apache.commons.logging.impl.Log4JLogger (Caused by java.lang.NoClassDefFoundError: org/apache/log4j/Category) at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:413) at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:529) ... 25 more Caused by: java.lang.NoClassDefFoundError: org/apache/log4j/Category at java.lang.Class.getDeclaredConstructors0(Native Method) at java.lang.Class.privateGetDeclaredConstructors(Class.java:2328) at
RE: Hibernate 3 failure
Hello Richards This is strange, would be possible for you to send your pom.xml file to check it out. Regards Johann Reyes -Original Message- From: James Richards [mailto:[EMAIL PROTECTED] Sent: Friday, July 07, 2006 11:17 AM To: users@maven.apache.org Subject: Hibernate 3 failure Hello, I've tried searching for this problem on Google but so far have not had any luck locating this exact error so I wanted to see if anyone on the mailing can help out. I have Maven 2.0.4 installed and I am trying to use the Hibernate3 plugin. I added the repositories configuration to my pom.xml: repositories repository idMaven Snapshots/id urlhttp://snapshots.maven.codehaus.org/maven2//url snapshots enabledtrue/enabled /snapshots releases enabledfalse/enabled /releases /repository /repositories pluginRepositories pluginRepository idMaven Snapshots/id urlhttp://snapshots.maven.codehaus.org/maven2//url snapshots enabledtrue/enabled /snapshots releases enabledfalse/enabled /releases /pluginRepository /pluginRepositories and was able to download the required plugin but it fails with the following error: [INFO] [hibernate3:hbm2ddl] [INFO] [ERROR] FATAL ERROR [INFO] [INFO] null org/apache/log4j/Category [INFO] [INFO] Trace java.lang.ExceptionInInitializerError at org.codehaus.mojo.hibernate3.exporter.SchemaExportMojo.doSchemaExport(Schema ExportMojo.java:63) at org.codehaus.mojo.hibernate3.exporter.Hbm2DDLExporterMojo.doExecute(Hbm2DDLE xporterMojo.java:55) at org.codehaus.mojo.hibernate3.HibernateExporterMojo.execute(HibernateExporter Mojo.java:60) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManage r.java:412) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLife cycleExecutor.java:534) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(De faultLifecycleExecutor.java:488) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifec ycleExecutor.java:458) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFail ures(DefaultLifecycleExecutor.java:306) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(Defa ultLifecycleExecutor.java:273) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycle Executor.java:140) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115) at org.apache.maven.cli.MavenCli.main(MavenCli.java:256) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) Caused by: org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: No suitable Log constructor [Ljava.lang.Class;@1afae45 for org.apache.commons.logging.impl.Log4JLogger (Caused by java.lang.NoClassDefFoundError: org/apache/log4j/Category) (Caused by org.apache.commons.logging.LogConfigurationException: No suitable Log constructor [Ljava.lang.Class;@1afae45 for org.apache.commons.logging.impl.Log4JLogger (Caused by java.lang.NoClassDefFoundError: org/apache/log4j/Category)) at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.ja va:543) at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.ja va:235) at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.ja va:209) at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:351) at org.hibernate.tool.hbm2ddl.SchemaExport.clinit(SchemaExport.java:47) ... 21 more Caused by: org.apache.commons.logging.LogConfigurationException: No suitable Log constructor [Ljava.lang.Class;@1afae45 for org.apache.commons.logging.impl.Log4JLogger (Caused by java.lang.NoClassDefFoundError: org/apache/log4j/Category) at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryI mpl.java:413) at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.ja
Re: Hibernate 3 failure
Have you seen this page? http://mojo.codehaus.org/hibernate3-maven-plugin/howto.html Ben On 7/7/06, James Richards [EMAIL PROTECTED] wrote: Hello, I've tried searching for this problem on Google but so far have not had any luck locating this exact error so I wanted to see if anyone on the mailing can help out. I have Maven 2.0.4 installed and I am trying to use the Hibernate3 plugin. I added the repositories configuration to my pom.xml: repositories repository idMaven Snapshots/id urlhttp://snapshots.maven.codehaus.org/maven2//url snapshots enabledtrue/enabled /snapshots releases enabledfalse/enabled /releases /repository /repositories pluginRepositories pluginRepository idMaven Snapshots/id urlhttp://snapshots.maven.codehaus.org/maven2//url snapshots enabledtrue/enabled /snapshots releases enabledfalse/enabled /releases /pluginRepository /pluginRepositories and was able to download the required plugin but it fails with the following error: [INFO] [hibernate3:hbm2ddl] [INFO] [ERROR] FATAL ERROR [INFO] [INFO] null org/apache/log4j/Category [INFO] [INFO] Trace java.lang.ExceptionInInitializerError at org.codehaus.mojo.hibernate3.exporter.SchemaExportMojo.doSchemaExport(SchemaExportMojo.java:63) at org.codehaus.mojo.hibernate3.exporter.Hbm2DDLExporterMojo.doExecute(Hbm2DDLExporterMojo.java:55) at org.codehaus.mojo.hibernate3.HibernateExporterMojo.execute(HibernateExporterMojo.java:60) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:488) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:458) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115) at org.apache.maven.cli.MavenCli.main(MavenCli.java:256) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) Caused by: org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: No suitable Log constructor [Ljava.lang.Class;@1afae45 for org.apache.commons.logging.impl.Log4JLogger (Caused by java.lang.NoClassDefFoundError: org/apache/log4j/Category) (Caused by org.apache.commons.logging.LogConfigurationException: No suitable Log constructor [Ljava.lang.Class;@1afae45 for org.apache.commons.logging.impl.Log4JLogger (Caused by java.lang.NoClassDefFoundError: org/apache/log4j/Category)) at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:543) at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:235) at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:209) at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:351) at org.hibernate.tool.hbm2ddl.SchemaExport.clinit(SchemaExport.java:47) ... 21 more Caused by: org.apache.commons.logging.LogConfigurationException: No suitable Log constructor [Ljava.lang.Class;@1afae45 for org.apache.commons.logging.impl.Log4JLogger (Caused by java.lang.NoClassDefFoundError: org/apache/log4j/Category) at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:413) at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:529) ... 25 more Caused by: java.lang.NoClassDefFoundError: org/apache/log4j/Category at
RE: Hibernate 3 failure
Hi Johann, The pom.xml contents are below. I used Maven 1 extensively but am still very new to Maven 2. This is my first attempt at using the Hibernate plugin. I am running JDK 1.5.0_06 on Windows XP Professional. Any help is greatly appreciated. Thanks, James 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 groupIdcom.foo.usertrack/groupId artifactIdusertrack/artifactId packagingjar/packaging version1.0-SNAPSHOT/version nameUser Tracking Web Application/name urlhttp://corp.oberon-media.com//url build resources resource directorysrc/main/resources/directory filteringtrue/filtering includes include**/*.properties/include include**/*.xml/include /includes /resource resource directorysrc/main/java/directory filteringfalse/filtering includes include**/*.hbm.xml/include /includes /resource /resources plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-compiler-plugin/artifactId configuration source1.5/source target1.5/target /configuration /plugin !-- Application will be a standalone so disable cargo plugin plugin groupIdorg.codehaus.cargo/groupId artifactIdcargo-maven2-plugin/artifactId configuration container containerIdjboss4x/containerId output${installDir}/jboss4x.log/output log${installDir}/cargo.log/log zipUrlInstaller urlhttp://internap.dl.sourceforge.net/sourceforge/jboss/jboss-4.0.2.zip/url installDir${installDir}/installDir /zipUrlInstaller /container /configuration /plugin -- plugin groupIdorg.codehaus.mojo/groupId artifactIdhibernate3-maven-plugin/artifactId version1.0-SNAPSHOT/version configuration hibernate configurationFile/src/main/resources/hibernate.cfg.xml/configurationFile /hibernate outputDirectory hbm2cfgxmlsrc/main/resources/hbm2cfgxml /outputDirectory /configuration /plugin /plugins /build repositories repository idMaven Snapshots/id urlhttp://snapshots.maven.codehaus.org/maven2//url snapshots enabledtrue/enabled /snapshots releases enabledfalse/enabled /releases /repository /repositories pluginRepositories pluginRepository idMaven Snapshots/id urlhttp://snapshots.maven.codehaus.org/maven2//url snapshots enabledtrue/enabled /snapshots releases enabledfalse/enabled /releases /pluginRepository /pluginRepositories dependencies dependency groupIdorg.apache.geronimo.specs/groupId artifactIdgeronimo-j2ee_1.4_spec/artifactId version1.0/version scopeprovided/scope /dependency dependency groupIdlog4j/groupId artifactIdlog4j/artifactId version1.2.9/version /dependency dependency groupIdjunit/groupId artifactIdjunit/artifactId version3.8.1/version scopetest/scope /dependency dependency groupIdjavax.mail/groupId artifactIdmail/artifactId version1.4/version /dependency dependency groupIdhibernate/groupId artifactIdhibernate/artifactId version3.0.5/version /dependency /dependencies /project -Original Message- From: Johann Reyes [mailto:[EMAIL PROTECTED] Sent: Fri 7/7/2006 11:28 AM To: 'Maven Users List' Subject: RE: Hibernate 3 failure Hello Richards This is strange, would be possible for you to send your pom.xml file to check it out. Regards Johann Reyes -Original Message- From: James Richards [mailto:[EMAIL PROTECTED] Sent: Friday, July 07, 2006 11:17 AM To: users@maven.apache.org Subject: Hibernate 3 failure Hello, I've tried searching for this problem on Google but so far have not had any luck locating this exact error so I wanted to see if anyone on the mailing can help out. I have Maven 2.0.4 installed and I am trying to use the Hibernate3 plugin. I added the repositories configuration to my pom.xml: repositories repository idMaven Snapshots/id urlhttp://snapshots.maven.codehaus.org/maven2//url snapshots enabledtrue/enabled /snapshots releases enabledfalse/enabled /releases /repository /repositories pluginRepositories pluginRepository idMaven Snapshots/id urlhttp://snapshots.maven.codehaus.org/maven2//url snapshots
RE: Hibernate 3 failure
I have the exact same plugin configuration but I do not have any extensions enabled: extensions extension groupIdjdbc.artifact.groupid/groupId artifactIdjdbc-driver/artifactId version1.0/version /extension /extensions I am actually using the sun JDBC-ODBC bridge driver for this application [for legacy reasons] so is that particular extensions configuration required? Thanks, James -Original Message- From: [EMAIL PROTECTED] on behalf of ben short Sent: Fri 7/7/2006 11:28 AM To: Maven Users List Subject: Re: Hibernate 3 failure Have you seen this page? http://mojo.codehaus.org/hibernate3-maven-plugin/howto.html Ben On 7/7/06, James Richards [EMAIL PROTECTED] wrote: Hello, I've tried searching for this problem on Google but so far have not had any luck locating this exact error so I wanted to see if anyone on the mailing can help out. I have Maven 2.0.4 installed and I am trying to use the Hibernate3 plugin. I added the repositories configuration to my pom.xml: repositories repository idMaven Snapshots/id urlhttp://snapshots.maven.codehaus.org/maven2//url snapshots enabledtrue/enabled /snapshots releases enabledfalse/enabled /releases /repository /repositories pluginRepositories pluginRepository idMaven Snapshots/id urlhttp://snapshots.maven.codehaus.org/maven2//url snapshots enabledtrue/enabled /snapshots releases enabledfalse/enabled /releases /pluginRepository /pluginRepositories and was able to download the required plugin but it fails with the following error: [INFO] [hibernate3:hbm2ddl] [INFO] [ERROR] FATAL ERROR [INFO] [INFO] null org/apache/log4j/Category [INFO] [INFO] Trace java.lang.ExceptionInInitializerError at org.codehaus.mojo.hibernate3.exporter.SchemaExportMojo.doSchemaExport(SchemaExportMojo.java:63) at org.codehaus.mojo.hibernate3.exporter.Hbm2DDLExporterMojo.doExecute(Hbm2DDLExporterMojo.java:55) at org.codehaus.mojo.hibernate3.HibernateExporterMojo.execute(HibernateExporterMojo.java:60) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:488) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:458) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115) at org.apache.maven.cli.MavenCli.main(MavenCli.java:256) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) Caused by: org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: No suitable Log constructor [Ljava.lang.Class;@1afae45 for org.apache.commons.logging.impl.Log4JLogger (Caused by java.lang.NoClassDefFoundError: org/apache/log4j/Category) (Caused by org.apache.commons.logging.LogConfigurationException: No suitable Log constructor [Ljava.lang.Class;@1afae45 for org.apache.commons.logging.impl.Log4JLogger (Caused by java.lang.NoClassDefFoundError: org/apache/log4j/Category)) at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:543) at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:235) at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:209) at
RE: confusion: maven-ear-plugin and NoClassDefFoundError
On Fri, July 7, 2006 10:53 am, Jörg Schaible wrote: Unfortunately building EARs is highly fragile (for us in the current shape they get meanwhile unusable). EJBs may have wrong classpaths because: - http://jira.codehaus.org/browse/MEJB-18 - http://jira.codehaus.org/browse/MNG-1577 Unfortunately I cannot test the EJB on it's own, as maven 2 has no equivalent for the maven 1 embed.ejb tag, rendering the EJBs practically useless unless embedded in an ear. So far all evidence suggests that maven 2's J2EE support is alpha quality at best. :( Regards, Graham -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: activate a profile in a submodule
I think this is a current shortcoming of profiles, if the profile is activated at the top lvl then it is applied everywhere. You might be able to get away with having the profile at the top lvl not be bound to any phases or goals but just set configuration on a plugin and then in the actual submodules that you want to use it in bind the plugin to the relevent phase and goal, but that kinda depends on the plugin to I think, I doubt you can do that with the maven lifecycle plugins, but some of the others an the mojo's you might be able to get away with it. And even then you should check to make sure the configurations are getting merged, I know I worked with this a while back and thought that the profile id's could be used to meld profile configuration sections but I don't think that worked out the way I thought it should. Profiles are difficult to use when you start getting away from the most simple cases, I think it is something like 'mvn help:effective-pom' to see what you are ending up with. good luck! jesse On 7/7/06, Wojciech Biela [EMAIL PROTECTED] wrote: Further questions... When I have a master module with different submodules, in a some of the submodules I have some stuff done by a plugin, every time it's the same thing, so I'd like to put that in the master pom, and not have to repeat that big XML fragment in every submodule which needs this plugin. How to do it? I thought using profiles might help but it didn't. Although I may define that plugin in a profile in the master pom, when building the whole thing through the master module I didn't find a way to activate that profile only for certain submodules (either from the level of the master pom, or from within the submodules)... any help appreciated -- Wojtek Biela - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -- jesse mcconnell [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Maven 2.0.4's 'package' not copying contents or main resources to WEB-INF/classes
Hello, I thought the standard behavior for 'package' would be to copy all files from src/main/resources to WEB-INF/classes. The issue I'm facing is with my spring applicationContext.xml file. I want to make that file available to both my tests and to be put into my webapp. I though having it in src/main/resources would solve that problem, but it's not being copied into the webapp anywhere. Currently I have to keep 2 copies. Is this the expected behaivior? -- Ghetto Java: http://www.ghettojava.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven 2.0.4's 'package' not copying contents or main resources to WEB-INF/classes
One additional datapoint: the files are being copied to target/classes correctly just not to target/webapp/WEB-INF/classes On 7/7/06, Vinny [EMAIL PROTECTED] wrote: Hello, I thought the standard behavior for 'package' would be to copy all files from src/main/resources to WEB-INF/classes. The issue I'm facing is with my spring applicationContext.xml file. I want to make that file available to both my tests and to be put into my webapp. I though having it in src/main/resources would solve that problem, but it's not being copied into the webapp anywhere. Currently I have to keep 2 copies. Is this the expected behaivior? -- Ghetto Java: http://www.ghettojava.com -- Ghetto Java: http://www.ghettojava.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven 2.0.4's 'package' not copying contents or main resources to WEB-INF/classes
pretty sure you want to put that stuff in src/main/webapp/WEB-INF/classes On 7/7/06, Vinny [EMAIL PROTECTED] wrote: One additional datapoint: the files are being copied to target/classes correctly just not to target/webapp/WEB-INF/classes On 7/7/06, Vinny [EMAIL PROTECTED] wrote: Hello, I thought the standard behavior for 'package' would be to copy all files from src/main/resources to WEB-INF/classes. The issue I'm facing is with my spring applicationContext.xml file. I want to make that file available to both my tests and to be put into my webapp. I though having it in src/main/resources would solve that problem, but it's not being copied into the webapp anywhere. Currently I have to keep 2 copies. Is this the expected behaivior? -- Ghetto Java: http://www.ghettojava.com -- Ghetto Java: http://www.ghettojava.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -- jesse mcconnell [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: install:install-file fails to insert third-party native library directly into local repository
I'm having *no* success building 'maven-install-plugin' from source. I downloaded from http://svn.apache.org/repos/asf/maven/plugins/trunk/maven-install-plugin/ Running 'mvn install' in the new project directory gets me to [ERROR] FATAL ERROR [INFO] ... [INFO] Failed to resolve artifact. GroupId: org.apache.maven.plugins ArtifactId: maven-plugins Version: 2-SNAPSHOT Reason: Unable to download the artifact from any repository org.apache.maven.plugins:maven-plugins:pom:2-SNAPSHOT from the specified remote repositories: central (http://repo1.maven.org/maven2) It acts like this version of the plugin has a dependency on another (maven-plugins) that can't be satisfied. Brad -Original Message- From: dan tran [mailto:[EMAIL PROTECTED] Sent: Friday, July 07, 2006 9:42 AM To: Maven Users List Subject: Re: install:install-file fails to insert third-party native library directly into local repository One work around is to build the latest install plugin from source, which will force maven to use your snapshot build On 7/7/06, Brad Harper [EMAIL PROTECTED] wrote: Allan: Per content at .../guide-testing-development-plugins.html, added pluginRepositories pluginRepository idsnapshots/id urlhttp://svn.apache.org/maven-snapshot-repository/url /pluginRepository /pluginRepositories to POM. I don't declare use of maven-install-plugin in any POM, i.e. plugin version is not specified. Tried the install-file goal with -U, $ mvn -U install:install-file ... from the project (directory) with POM containing /pluginRepositories, above. I do see [INFO] artifact org.apache.maven.plugins:maven-install-pluging: \ checking for updates from central Maven does not report downloading an update for the plugin and I get the same error. How can I verify which version of the plugin is being used? Brad -Original Message- From: Allan Ramirez [mailto:[EMAIL PROTECTED] Sent: Friday, July 07, 2006 11:45 AM To: Maven Users List Subject: Re: install:install-file fails to insert third-party native library directly into local repository It seems that the parameters are still readonly from the 2.1 version of install plugin in ibiblio.. Content in the plugin.xml: parameter nameartifactId/name typejava.lang.String/type requiredtrue/required editablefalse/editable still not editable description/description /parameter Brad, try this link http://maven.apache.org/guides/development/guide-testing-development-plugins .html dan tran wrote: strange the code shows artifactId is overridable but your log shows it is read only field. -D On 7/6/06, Brad Harper [EMAIL PROTECTED] wrote: Same error. Brad -Original Message- From: dan tran [mailto:[EMAIL PROTECTED] Sent: Thursday, July 06, 2006 4:50 PM To: Maven Users List Subject: Re: install:install-file fails to insert third-party native library directly into local repository looks like you are using an older version install plugin, try with mvn -U On 7/6/06, Brad Harper [EMAIL PROTECTED] wrote: Hello All: I'm using native-maven-plugin and I want to install a third-party native library in the local repository (defined in settings.xml). I intend to specify a dependency in one of my own native project's POM. % mvn install:install-file -Dfile=FPLibrary.lib -DgroupId=com.emc \ -DartifactId=com-emc-centera-fplibrary-WINDOWS-X86 \ -Dversion=2.0SP1 -Dpackaging=lib [This is nearly identical to an example from BBWM, page 249.] I see the error [ERROR] BUILD ERROR [INFO] --... [INFO] Error configuring: org.apache.maven.plugnis:maven-install-plugin. Reason: ERROR: Cannot override read-only parameter: artifactId in goal install:install-file I'm trying to insert this library manually into the repository. The library does not have a corresponding project/module in my maven project hierarchy -- and therefore doesn't have a previously defined artifactId. Any thoughts? Brad - 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] - 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] - To
RE: Hibernate 3 failure
Hello James Yes, the extension is necessary as this is the only way for the moment that I found to pass the JDBC driver to the plugin layer. Please try it and let me know how it went. Regards Johann Reyes -Original Message- From: James Richards [mailto:[EMAIL PROTECTED] Sent: Friday, July 07, 2006 11:37 AM To: Maven Users List Subject: RE: Hibernate 3 failure I have the exact same plugin configuration but I do not have any extensions enabled: extensions extension groupIdjdbc.artifact.groupid/groupId artifactIdjdbc-driver/artifactId version1.0/version /extension /extensions I am actually using the sun JDBC-ODBC bridge driver for this application [for legacy reasons] so is that particular extensions configuration required? Thanks, James -Original Message- From: [EMAIL PROTECTED] on behalf of ben short Sent: Fri 7/7/2006 11:28 AM To: Maven Users List Subject: Re: Hibernate 3 failure Have you seen this page? http://mojo.codehaus.org/hibernate3-maven-plugin/howto.html Ben On 7/7/06, James Richards [EMAIL PROTECTED] wrote: Hello, I've tried searching for this problem on Google but so far have not had any luck locating this exact error so I wanted to see if anyone on the mailing can help out. I have Maven 2.0.4 installed and I am trying to use the Hibernate3 plugin. I added the repositories configuration to my pom.xml: repositories repository idMaven Snapshots/id urlhttp://snapshots.maven.codehaus.org/maven2//url snapshots enabledtrue/enabled /snapshots releases enabledfalse/enabled /releases /repository /repositories pluginRepositories pluginRepository idMaven Snapshots/id urlhttp://snapshots.maven.codehaus.org/maven2//url snapshots enabledtrue/enabled /snapshots releases enabledfalse/enabled /releases /pluginRepository /pluginRepositories and was able to download the required plugin but it fails with the following error: [INFO] [hibernate3:hbm2ddl] [INFO] [ERROR] FATAL ERROR [INFO] [INFO] null org/apache/log4j/Category [INFO] [INFO] Trace java.lang.ExceptionInInitializerError at org.codehaus.mojo.hibernate3.exporter.SchemaExportMojo.doSchemaExport(Schema ExportMojo.java:63) at org.codehaus.mojo.hibernate3.exporter.Hbm2DDLExporterMojo.doExecute(Hbm2DDLE xporterMojo.java:55) at org.codehaus.mojo.hibernate3.HibernateExporterMojo.execute(HibernateExporter Mojo.java:60) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManage r.java:412) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLife cycleExecutor.java:534) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(De faultLifecycleExecutor.java:488) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifec ycleExecutor.java:458) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFail ures(DefaultLifecycleExecutor.java:306) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(Defa ultLifecycleExecutor.java:273) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycle Executor.java:140) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115) at org.apache.maven.cli.MavenCli.main(MavenCli.java:256) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) Caused by: org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: No suitable Log constructor [Ljava.lang.Class;@1afae45 for org.apache.commons.logging.impl.Log4JLogger (Caused by java.lang.NoClassDefFoundError: org/apache/log4j/Category) (Caused by org.apache.commons.logging.LogConfigurationException: No suitable Log constructor [Ljava.lang.Class;@1afae45 for org.apache.commons.logging.impl.Log4JLogger (Caused by java.lang.NoClassDefFoundError: org/apache/log4j/Category)) at
Re: Cleaning up results
Not yet, and I don't think we have an issue for it. Please file an issue in jira. Emmanuel Srinivas Pavani a écrit : Is there any way to purge the results for failed builds?
Re: question about multiple builds
no, but you can assign different schedule to all your projects. Emmanuel Jerry DuVal a écrit : I have multiple projects ( same CVS project, just different branches ). Is there any way to prevent the scheduler from running more than 1 build at a time for all projects?
Re: install:install-file fails to insert third-party native library directly into local repository
then you need http://svn.apache.org/repos/asf/maven/plugins/trunk/pom.xml as well On 7/7/06, Brad Harper [EMAIL PROTECTED] wrote: I'm having *no* success building 'maven-install-plugin' from source. I downloaded from http://svn.apache.org/repos/asf/maven/plugins/trunk/maven-install-plugin/ Running 'mvn install' in the new project directory gets me to [ERROR] FATAL ERROR [INFO] ... [INFO] Failed to resolve artifact. GroupId: org.apache.maven.plugins ArtifactId: maven-plugins Version: 2-SNAPSHOT Reason: Unable to download the artifact from any repository org.apache.maven.plugins:maven-plugins:pom:2-SNAPSHOT from the specified remote repositories: central (http://repo1.maven.org/maven2) It acts like this version of the plugin has a dependency on another (maven-plugins) that can't be satisfied. Brad -Original Message- From: dan tran [mailto:[EMAIL PROTECTED] Sent: Friday, July 07, 2006 9:42 AM To: Maven Users List Subject: Re: install:install-file fails to insert third-party native library directly into local repository One work around is to build the latest install plugin from source, which will force maven to use your snapshot build On 7/7/06, Brad Harper [EMAIL PROTECTED] wrote: Allan: Per content at .../guide-testing-development-plugins.html, added pluginRepositories pluginRepository idsnapshots/id urlhttp://svn.apache.org/maven-snapshot-repository/url /pluginRepository /pluginRepositories to POM. I don't declare use of maven-install-plugin in any POM, i.e. plugin version is not specified. Tried the install-file goal with -U, $ mvn -U install:install-file ... from the project (directory) with POM containing /pluginRepositories, above. I do see [INFO] artifact org.apache.maven.plugins:maven-install-pluging: \ checking for updates from central Maven does not report downloading an update for the plugin and I get the same error. How can I verify which version of the plugin is being used? Brad -Original Message- From: Allan Ramirez [mailto:[EMAIL PROTECTED] Sent: Friday, July 07, 2006 11:45 AM To: Maven Users List Subject: Re: install:install-file fails to insert third-party native library directly into local repository It seems that the parameters are still readonly from the 2.1 version of install plugin in ibiblio.. Content in the plugin.xml: parameter nameartifactId/name typejava.lang.String/type requiredtrue/required editablefalse/editable still not editable description/description /parameter Brad, try this link http://maven.apache.org/guides/development/guide-testing-development-plugins .html dan tran wrote: strange the code shows artifactId is overridable but your log shows it is read only field. -D On 7/6/06, Brad Harper [EMAIL PROTECTED] wrote: Same error. Brad -Original Message- From: dan tran [mailto:[EMAIL PROTECTED] Sent: Thursday, July 06, 2006 4:50 PM To: Maven Users List Subject: Re: install:install-file fails to insert third-party native library directly into local repository looks like you are using an older version install plugin, try with mvn -U On 7/6/06, Brad Harper [EMAIL PROTECTED] wrote: Hello All: I'm using native-maven-plugin and I want to install a third-party native library in the local repository (defined in settings.xml). I intend to specify a dependency in one of my own native project's POM. % mvn install:install-file -Dfile=FPLibrary.lib -DgroupId=com.emc\ -DartifactId=com-emc-centera-fplibrary-WINDOWS-X86 \ -Dversion=2.0SP1 -Dpackaging=lib [This is nearly identical to an example from BBWM, page 249.] I see the error [ERROR] BUILD ERROR [INFO] --... [INFO] Error configuring: org.apache.maven.plugnis:maven-install-plugin. Reason: ERROR: Cannot override read-only parameter: artifactId in goal install:install-file I'm trying to insert this library manually into the repository. The library does not have a corresponding project/module in my maven project hierarchy -- and therefore doesn't have a previously defined artifactId. Any thoughts? Brad - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional
Re: Site distribution url examples?
Srinivas Pavani a écrit : Just wanted to follow up on the thread. I decided to use the 'file' protocol instead of scp as I am copying files on the local machine. When looking at the source code for the maven-deploy-plugin, I found that the plugin looks in the .ssh directory for keys. As I mentioned earlier, Continuum is running on system startup (since I didn't really assign a user, I am assuming it runs as root). Even though the root folder has .ssh subfolder, I don't understand why the credentials are not being picked up. Perhaps someone who has installed this on the server can break down the install procedure so that scp can be performed from the build process. the deploy plugin look at .ssh directory only for scp protocol. I don't think service started at startup run with root user, probably nobody or guest. You can choose the user to use in run.sh script with RUN_AS_USER var. Emmanuel
RE: question about multiple builds
Any way to cancel a running build? -Original Message- From: Emmanuel Venisse [mailto:[EMAIL PROTECTED] Sent: Friday, July 07, 2006 1:50 PM To: continuum-users@maven.apache.org Subject: Re: question about multiple builds no, but you can assign different schedule to all your projects. Emmanuel Jerry DuVal a écrit : I have multiple projects ( same CVS project, just different branches ). Is there any way to prevent the scheduler from running more than 1 build at a time for all projects?
Re: question about multiple builds
no, because it don't work on windows. We'll try to add it in 1.1 Emmanuel Jerry DuVal a écrit : Any way to cancel a running build? -Original Message- From: Emmanuel Venisse [mailto:[EMAIL PROTECTED] Sent: Friday, July 07, 2006 1:50 PM To: continuum-users@maven.apache.org Subject: Re: question about multiple builds no, but you can assign different schedule to all your projects. Emmanuel Jerry DuVal a écrit : I have multiple projects ( same CVS project, just different branches ). Is there any way to prevent the scheduler from running more than 1 build at a time for all projects?
Re: Maven 2.0.4's 'package' not copying contents or main resources to WEB-INF/classes
yeah, that will work but the docs for the war plugin do say: The default resource directory for all maven2 projects is src/main/resources which will end up in target/classes and in WEB-INF/classes in the war http://maven.apache.org/plugins/maven-war-plugin/examples/adding-filtering-webresources.html On 7/7/06, Jesse McConnell [EMAIL PROTECTED] wrote: pretty sure you want to put that stuff in src/main/webapp/WEB-INF/classes On 7/7/06, Vinny [EMAIL PROTECTED] wrote: One additional datapoint: the files are being copied to target/classes correctly just not to target/webapp/WEB-INF/classes On 7/7/06, Vinny [EMAIL PROTECTED] wrote: Hello, I thought the standard behavior for 'package' would be to copy all files from src/main/resources to WEB-INF/classes. The issue I'm facing is with my spring applicationContext.xml file. I want to make that file available to both my tests and to be put into my webapp. I though having it in src/main/resources would solve that problem, but it's not being copied into the webapp anywhere. Currently I have to keep 2 copies. Is this the expected behaivior? -- Ghetto Java: http://www.ghettojava.com -- Ghetto Java: http://www.ghettojava.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -- jesse mcconnell [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Ghetto Java: http://www.ghettojava.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven 2.0.4's 'package' not copying contents or main resources to WEB-INF/classes
It works for me, like the doc says. Could it be that you are using an older version of plugin? -D On 7/7/06, Vinny [EMAIL PROTECTED] wrote: yeah, that will work but the docs for the war plugin do say: The default resource directory for all maven2 projects is src/main/resources which will end up in target/classes and in WEB-INF/classes in the war http://maven.apache.org/plugins/maven-war-plugin/examples/adding-filtering-webresources.html On 7/7/06, Jesse McConnell [EMAIL PROTECTED] wrote: pretty sure you want to put that stuff in src/main/webapp/WEB-INF/classes On 7/7/06, Vinny [EMAIL PROTECTED] wrote: One additional datapoint: the files are being copied to target/classes correctly just not to target/webapp/WEB-INF/classes On 7/7/06, Vinny [EMAIL PROTECTED] wrote: Hello, I thought the standard behavior for 'package' would be to copy all files from src/main/resources to WEB-INF/classes. The issue I'm facing is with my spring applicationContext.xml file. I want to make that file available to both my tests and to be put into my webapp. I though having it in src/main/resources would solve that problem, but it's not being copied into the webapp anywhere. Currently I have to keep 2 copies. Is this the expected behaivior? -- Ghetto Java: http://www.ghettojava.com -- Ghetto Java: http://www.ghettojava.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -- jesse mcconnell [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Ghetto Java: http://www.ghettojava.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[OT][ANN] JAVAWUG BOF XX / Oracle City of London / 13th July 2006 @ 7pm / Update
Hi All I would like announce the twentieth birds-of-a-feather (BOF 20) of the Java Web Users Group. The event will take place at Oracle City Of London One South Place London, England EC2M 2RB. The feature speakers: Emmanuel Okyere RIFE: The Petstore Edition (Emmanuel has been hard at work converting the (in)famous PetStore J2EE reference application up-to-date with the RIFE framework. Find out about RIFE through these presentation.) Peter Pilgrim Retrofitting Legacy J2EE Architectures with Spring (My experiences of bringing Spring Framework into a legacy Java EE application and environment. This is also my take on trying to bring some agility to enterprise a little behind the times.) Afterwards members can retire to the nearby the ``All Bar One'' pub/restaurant for more in depth discussion dinner, food and drink ... If you would like to attend, please REGISTER so that you can be added to the SECURITY DETAIL Join the http://groups.google.com/group/javawug JAVAWUG at Google Groups and ``Send an Email to the list you are attending'' Alternatively send mail to myself at peter dot pilgrim at gmail dot com and/or duncan dot mills at oracle.com Here is some relevant travel information: By Underground: - Moorgate: Take the Moorgate East exit, turn right, one block to South Place. Bank: Take the Northern line to Moorgate. Liverpool Street: Take the Broadgate exit, turn right onto South Place Map: http://www.oracle.com/global/uk/corporate/locations/citymap.html The venue has graciously been organised by Duncan Mills of Oracle Corp. We all appreciate this generous gift. http://www.javawug.com/ http://jroller.com/page/peter_pilgrim PS: The presentations will be recorded and I hope to upload them all Google Video Site. search against JAVAWUG for the last video uploads. -- Peter Pilgrim ( Windows XP / Thunderbird 1.5 ) _ ___ + Expert Java __ /_ ___ ___ ____ /__ / + Enterprise ___ _ /_ __ `/_ | / / __ `/__ __/ __ __/ + Design / /_/ / / /_/ /__ |/ // /_/ / _ /___ _ /___ + Architecture \/ \__,_/ _/ \__,_/ /_/ /_/ + Web New Age On Line Resume || \\=== `` http://www.xenonsoft.demon.co.uk/no-it-striker.html '' - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven 2.0.4's 'package' not copying contents or main resources to WEB-INF/classes
Is your packaging in the pom set to war instead of the default jar? On 7/7/06, Vinny [EMAIL PROTECTED] wrote: One additional datapoint: the files are being copied to target/classes correctly just not to target/webapp/WEB-INF/classes On 7/7/06, Vinny [EMAIL PROTECTED] wrote: Hello, I thought the standard behavior for 'package' would be to copy all files from src/main/resources to WEB-INF/classes. The issue I'm facing is with my spring applicationContext.xml file. I want to make that file available to both my tests and to be put into my webapp. I though having it in src/main/resources would solve that problem, but it's not being copied into the webapp anywhere. Currently I have to keep 2 copies. Is this the expected behaivior? -- Ghetto Java: http://www.ghettojava.com -- Ghetto Java: http://www.ghettojava.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Never wear anything that panics the cat. -- P. J. O'Rourke
RE: install:install-file fails to insert third-party native library directly into local repository
I moved the 'maven-install-plugin' into a new 'plugins' module and placed the cited pom.xml file there. The local 'maven-install-plugin' built and installed, but attempting to run % mvn install:install-file ... gives me the same 'Failed to resolve artifact.' error. Brad -Original Message- From: dan tran [mailto:[EMAIL PROTECTED] Sent: Friday, July 07, 2006 12:56 PM To: Maven Users List Subject: Re: install:install-file fails to insert third-party native library directly into local repository then you need http://svn.apache.org/repos/asf/maven/plugins/trunk/pom.xml as well On 7/7/06, Brad Harper [EMAIL PROTECTED] wrote: I'm having *no* success building 'maven-install-plugin' from source. I downloaded from http://svn.apache.org/repos/asf/maven/plugins/trunk/maven-install-plugin/ Running 'mvn install' in the new project directory gets me to [ERROR] FATAL ERROR [INFO] ... [INFO] Failed to resolve artifact. GroupId: org.apache.maven.plugins ArtifactId: maven-plugins Version: 2-SNAPSHOT Reason: Unable to download the artifact from any repository org.apache.maven.plugins:maven-plugins:pom:2-SNAPSHOT from the specified remote repositories: central (http://repo1.maven.org/maven2) It acts like this version of the plugin has a dependency on another (maven-plugins) that can't be satisfied. Brad -Original Message- From: dan tran [mailto:[EMAIL PROTECTED] Sent: Friday, July 07, 2006 9:42 AM To: Maven Users List Subject: Re: install:install-file fails to insert third-party native library directly into local repository One work around is to build the latest install plugin from source, which will force maven to use your snapshot build On 7/7/06, Brad Harper [EMAIL PROTECTED] wrote: Allan: Per content at .../guide-testing-development-plugins.html, added pluginRepositories pluginRepository idsnapshots/id urlhttp://svn.apache.org/maven-snapshot-repository/url /pluginRepository /pluginRepositories to POM. I don't declare use of maven-install-plugin in any POM, i.e. plugin version is not specified. Tried the install-file goal with -U, $ mvn -U install:install-file ... from the project (directory) with POM containing /pluginRepositories, above. I do see [INFO] artifact org.apache.maven.plugins:maven-install-pluging: \ checking for updates from central Maven does not report downloading an update for the plugin and I get the same error. How can I verify which version of the plugin is being used? Brad -Original Message- From: Allan Ramirez [mailto:[EMAIL PROTECTED] Sent: Friday, July 07, 2006 11:45 AM To: Maven Users List Subject: Re: install:install-file fails to insert third-party native library directly into local repository It seems that the parameters are still readonly from the 2.1 version of install plugin in ibiblio.. Content in the plugin.xml: parameter nameartifactId/name typejava.lang.String/type requiredtrue/required editablefalse/editable still not editable description/description /parameter Brad, try this link http://maven.apache.org/guides/development/guide-testing-development-plugins .html dan tran wrote: strange the code shows artifactId is overridable but your log shows it is read only field. -D On 7/6/06, Brad Harper [EMAIL PROTECTED] wrote: Same error. Brad -Original Message- From: dan tran [mailto:[EMAIL PROTECTED] Sent: Thursday, July 06, 2006 4:50 PM To: Maven Users List Subject: Re: install:install-file fails to insert third-party native library directly into local repository looks like you are using an older version install plugin, try with mvn -U On 7/6/06, Brad Harper [EMAIL PROTECTED] wrote: Hello All: I'm using native-maven-plugin and I want to install a third-party native library in the local repository (defined in settings.xml). I intend to specify a dependency in one of my own native project's POM. % mvn install:install-file -Dfile=FPLibrary.lib -DgroupId=com.emc\ -DartifactId=com-emc-centera-fplibrary-WINDOWS-X86 \ -Dversion=2.0SP1 -Dpackaging=lib [This is nearly identical to an example from BBWM, page 249.] I see the error [ERROR] BUILD ERROR [INFO] --... [INFO] Error configuring: org.apache.maven.plugnis:maven-install-plugin. Reason: ERROR: Cannot override read-only parameter: artifactId in goal install:install-file I'm trying to insert this library manually into the repository. The library does not have a corresponding project/module in my maven project hierarchy -- and therefore doesn't have a previously defined artifactId. Any thoughts? Brad
Maven-Proxy ?
With maven1 we are runing maven-proxy to cache the jars we care about. Now I am looking how to do this with maven2 artifacts and can not figure how to make it work. I have something like this in my pom (maven2): project repositories repository idcentral/id nameProxy Central Repository/name layoutdefault/layout urlhttp://myhost:/url /repository /repositories /project when I run mvn the log shows this: Downloading: http://repo1.maven.org/maven2/junit/junit/3.8.1/junit-3.8.1.pom 145b downloaded so the question is why? Is this because something is wrong with my maven-proxy and it just does not handle m2 request or there is an issue with changing a repo to an alternative location? Thanks, Alex. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Continuum and maven 2 project
It allows you to build the same project in several ways as well. For example, with maven2 you can build the deployable artifacts and the site seperately. Or you can build and also do an assembly as a seperate continuum build. On 6/27/06, Emmanuel Venisse [EMAIL PROTECTED] wrote: the directory name is a Continuum internal thing (the id of the project in continuum) and you can't change it. Emmanuel Jeff Mutonho a écrit : On 6/27/06, Emmanuel Venisse [EMAIL PROTECTED] wrote: If your project contains sub-modules, continuum will create one project by module so they can be built independantly. all your code is already checkouted in the parent project directory, so if you don't want modules in continuum, remove them and modify the build definitions of your parent project by removing --non-recursive Well , my main issue is the numbered projects.If my project is called , say , eproject ...what I want is Continuum to checkout the project(together with the sub-modules) into a a folder called eproject NOT 24.Thats what I would like to do..and how do I tell Continuum to do that? -- -- Lee Meador Sent from gmail. My real email address is [EMAIL PROTECTED]
RE: Maven-Proxy ?
That doesn't configure a mirror, it just adds another repository to search, but that will only be searched after the central mirror. See the guide on configuring a mirror: http://maven.apache.org/guides/mini/guide-mirror-settings.html -Original Message- From: Alex Shneyderman [mailto:[EMAIL PROTECTED] Sent: Friday, July 07, 2006 2:17 PM To: Maven Users List Subject: Maven-Proxy ? With maven1 we are runing maven-proxy to cache the jars we care about. Now I am looking how to do this with maven2 artifacts and can not figure how to make it work. I have something like this in my pom (maven2): project repositories repository idcentral/id nameProxy Central Repository/name layoutdefault/layout urlhttp://myhost:/url /repository /repositories /project when I run mvn the log shows this: Downloading: http://repo1.maven.org/maven2/junit/junit/3.8.1/junit-3.8.1.pom 145b downloaded so the question is why? Is this because something is wrong with my maven-proxy and it just does not handle m2 request or there is an issue with changing a repo to an alternative location? Thanks, Alex. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - CONFIDENTIALITY NOTICE This message and any included attachments are from Cerner Corporation and are intended only for the addressee. The information contained in this message is confidential and may constitute inside or non-public information under international, federal, or state securities laws. Unauthorized forwarding, printing, copying, distribution, or use of such information is strictly prohibited and may be unlawful. If you are not the addressee, please promptly delete this message and notify the sender of the delivery error by e-mail or you may call Cerner's corporate offices in Kansas City, Missouri, U.S.A at (+1) (816)221-1024. --- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven-Proxy ?
Set your proxy up as a mirror to central in settings.xml, as described in the multiple repositories guide. On 7/7/06, Alex Shneyderman [EMAIL PROTECTED] wrote: With maven1 we are runing maven-proxy to cache the jars we care about. Now I am looking how to do this with maven2 artifacts and can not figure how to make it work. I have something like this in my pom (maven2): project repositories repository idcentral/id nameProxy Central Repository/name layoutdefault/layout urlhttp://myhost:/url /repository /repositories /project when I run mvn the log shows this: Downloading: http://repo1.maven.org/maven2/junit/junit/3.8.1/junit-3.8.1.pom 145b downloaded so the question is why? Is this because something is wrong with my maven-proxy and it just does not handle m2 request or there is an issue with changing a repo to an alternative location? Thanks, Alex. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Never wear anything that panics the cat. -- P. J. O'Rourke
how to include html files in webapp
Hi, I have a project/src/webapp/ folder as part of the Maven build. I can build the war file and servlets without any problems, but when I add index.html to project/src/webapp in my source tree that file is not part of the war file generated by Maven. How can I include the static content in my webapp? Thanks, Bratek -- View this message in context: http://www.nabble.com/how-to-include-html-files-in-webapp-tf1908315.html#a5223568 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to configure attached tests?
Paul Spencer [EMAIL PROTECTED] writes: Arnaud, 1) I have several test, 100+, and the number grows, so from a management perspective extending each abstract test in each implementation is not practical. Paul, Maybe I am becoming intrusive (or is it obstrusive ? elusive ?) but this first statement seems strange to me and I don't understand why inheritance should entail project management problems. After all, this is the point of OO concept: write once and inherit behaviour. OF course I am not aware of your particular architecture but I believe that this is a matter of inheriting a single Suite class that will group all your test cases. Testing is designed in one place (the interface) and executed in many places. 2) I believe a testing project can be created the will use profiles to test each implementation individually. This is a manageable workaround, although it requires an additional step to prevent a failing implementation from being deployed to the repository. Ignoring test failures in multiproject builds (only) ? Once again, not sure I understand stakes at odd and problems specific to your project. This does not seems to be a problem to me. Regards, -- OQube software engineering \ génie logiciel Arnaud Bailly, Dr. \web http://www.oqube.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to configure attached tests?
Arnaud, Arnaud Bailly wrote: Paul Spencer [EMAIL PROTECTED] writes: Arnaud, 1) I have several test, 100+, and the number grows, so from a management perspective extending each abstract test in each implementation is not practical. Paul, Maybe I am becoming intrusive (or is it obstrusive ? elusive ?) but this first statement seems strange to me and I don't understand why inheritance should entail project management problems. After all, this is the point of OO concept: write once and inherit behaviour. OF course I am not aware of your particular architecture but I believe that this is a matter of inheriting a single Suite class that will group all your test cases. Testing is designed in one place (the interface) and executed in many places. I am not using a Suite class. Can you explain how to implement a Suite class? snip Regards, Paul Spencer - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Java Mojo Classpath Question
My need: To invoke a new java process from within execute(), passing new jvm parameters. But I need to pass a classpath consisting of the JDK and all the dependencies of the plugin (not of the project). Is there a way to access the current context's classpath from an invocation, or generate one from inside a mojo? I've used BCEL's classpath parser, but that just gives the things from the invoked command line. Is there another way to get a list of the path elements that comprise a particular mojo's working classpath? -- Never wear anything that panics the cat. -- P. J. O'Rourke
Accessing the build number
Is there a way to configure the deploy plug in from the pom, so that a snapshot's build number can be accessed and be accessed later by doing something like ${buildNumber}? Frank Russo Senior Developer FX Alliance, LLC
Accessing the build number
Is there a way to configure the deploy plug in from the pom, so that a snapshot's build number can be accessed and be accessed later by doing something like ${buildNumber}? Frank Russo Senior Developer FX Alliance, LLC
Re: maven-scm-plugin goals question
Please do not cross-post between lists. More below. On 7/7/06, Sharma, Jaikumar [EMAIL PROTECTED] wrote: Dear all, As I see at the following URL goals provided by maven-scm-plugin, these goals are general goals, but at the same time, certain actions / operations which are specific to a particular SCM does not really match (for readibility / documentation reasons) to these goals. http://maven.apache.org/scm/plugins/plugin-info.html http://maven.apache.org/scm/plugins/plugin-info.html For instance, take the login action, which I think every provider implements for it repository, and in most of the cases with other providers which are implemented, login has been wrapped in URL in the pom and there itself login take place. Is it not worthwhile to provide login as a seperate goal ? or there are some good reasons to not to provide this ? What would be the value in a goal that logs in, but does not perform any actions? Next, I would appreciate, if somebody could point me to the purpose of the following goals with repect to the provider repository : scm:diff scm:status scm:tag scm:unedit If I do not implement any of the goals or only implement which are relevent / common goals which are relevent to my provider , then at the higher level would I be missing any of the functinality provided by Maven ? Of course, but that's not important. If an implementation does not provide for a particular goal, then it just will not be available. SCM is just like any other API. Sometimes an implementation of an API cannot provide all required functionality. Naturally, it is best to try, but if your provider does not have tag for example, naturally that goal cannot be used correctly. Regards, Jaikumar Thanks; Eric
Re: Java Mojo Classpath Question
This is no longer critical, although I would like to know the answer if someone knows. On 7/7/06, Mykel Alvis [EMAIL PROTECTED] wrote: My need: To invoke a new java process from within execute(), passing new jvm parameters. But I need to pass a classpath consisting of the JDK and all the dependencies of the plugin (not of the project). Is there a way to access the current context's classpath from an invocation, or generate one from inside a mojo? I've used BCEL's classpath parser, but that just gives the things from the invoked command line. Is there another way to get a list of the path elements that comprise a particular mojo's working classpath? -- Never wear anything that panics the cat. -- P. J. O'Rourke -- Never wear anything that panics the cat. -- P. J. O'Rourke
RE: Problem with checksum generation
Probably easiest would be to generate the POM and associated hashes to a new location and then copy them back into place. Take a look into the 4k jar and see what's there. I'm not sure, but at a guess there'll be some Maven manifest information. -joe -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of v_waran Sent: Friday, July 07, 2006 2:38 PM To: users@maven.apache.org Subject: Problem with checksum generation Hi, I am trying to create POM and checksum for existing jar file. When I tried to run the below command POM and checksum files are created but jar file is overwritten to 4k.( I tried with different jar files but consistenly its overwritten to size of 4k.). Command used is mvn deploy:deploy-file -DrepositoryId=localRepository -Dpackaging=jar -Durl=file:\\D:\test\extlib2 -Dversion=1.0 -DgroupId=aopalliance -DartifactId=aopalliance -Dfile=..\..\extlib2\aopalliance\aopalliance\1.0\aopalliance-1.0.jar 1. Is their any option to not to overwrite the jar file (if it already exist) ? If not why does it create only to 4k ? Any idea ? 2. Any alternative way to create POM checksum file(s) for the existing jar file ? Any input is highly valuable. Regards, waran -- View this message in context: http://www.nabble.com/Problem-with-checksum-generation-tf1908797.html#a5 225095 Sent from the Maven - Users forum at Nabble.com. - 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]
Interrnal remote repository
For the life of me, I can't get this to work. We have an internal remote repository. I've added jars by running without being configured to use this internal remote repository, THEN cd'ing into my .m2/repository directory and running the mvn deploy:deploy-file type syntax. Ive installed this plugin, but I STILL get the following error: [ERROR] BUILD ERROR [INFO] [INFO] The plugin 'org.apache.maven.plugins:maven-install-plugin' does not exist or no valid version could be found [INFO] [INFO] Trace org.apache.maven.lifecycle.LifecycleExecutionException: The plugin 'org.apache.maven.plugins:maven-install-plugin' does not exist or no vali d version could be found at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(Default LifecycleExecutor.java:1281) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(De faultLifecycleExecutor.java:1517) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.bindLifecycleForPack aging(DefaultLifecycleExecutor.java:1011) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.constructLifecycleMa ppings(DefaultLifecycleExecutor.java:975) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultL ifecycleExecutor.java:453) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandle Failures(DefaultLifecycleExecutor.java:306) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments( DefaultLifecycleExecutor.java:273) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifec ycleExecutor.java:140) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115) at org.apache.maven.cli.MavenCli.main(MavenCli.java:256) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav a:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor Impl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) Caused by: org.apache.maven.plugin.version.PluginVersionNotFoundException: The plugin 'org.apache.maven.plugins:maven-install-plugin' does n ot exist or no valid version could be found at org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePlugi nVersion(DefaultPluginVersionManager.java:225) at org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePlugi nVersion(DefaultPluginVersionManager.java:87) at org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPluginM anager.java:158) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(Default LifecycleExecutor.java:1252) ... 18 more Could someone please shed some light on this for me? When installing something that has a group of org\apache\maven\plugins, should you use - -DgroupId=org\apache\maven\plugins or -DgroupId=org/apache/maven/plugins or -DgroupId=org.apache.maven.plugins? Why will the install work: C:\Documents and Settings\eciramella\.m2\repository\org\apache\maven\plugins\maven-instal l-plugin\2.1mvn deploy:deploy-file -DgroupId=org.apache .maven.plugins -DartifactID=maven-install-plugin -Dversion=2.1 -Dpackaging=jar -Dfile=maven-install-plugin-2.1.jar -DpomFile=maven-install-plugin -2.1.pom -DrepositoryId=central -Durl=file:\\build.corp.upromise.com\mavenrepository [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'deploy'. [INFO] [INFO] Building Maven Default Project [INFO]task-segment: [deploy:deploy-file] (aggregator-style) [INFO] [INFO] [deploy:deploy-file] Uploading: file:\\build.corp.upromise.com\mavenrepository/org/apache/maven/plugins/ maven-install-plugin/2.1/maven-install-plugin-2.1.jar file:///\\build.corp.upromise.com\mavenrepository/org/apache/maven/plug ins/maven-install-plugin/2.1/maven-install-plugin-2.1.jar 8K uploaded [INFO] Retrieving previous metadata from central [INFO] Uploading project information for maven-install-plugin 2.1 [INFO] Retrieving previous metadata from central [INFO] Uploading repository metadata for: 'artifact org.apache.maven.plugins:maven-install-plugin' [INFO] [INFO] BUILD SUCCESSFUL [INFO]
Re: Maven 2.0.4's 'package' not copying contents or main resources to WEB-INF/classes
No, src/main/resources is the correct location. -Stephen On 7/7/06, Jesse McConnell [EMAIL PROTECTED] wrote: pretty sure you want to put that stuff in src/main/webapp/WEB-INF/classes On 7/7/06, Vinny [EMAIL PROTECTED] wrote: One additional datapoint: the files are being copied to target/classes correctly just not to target/webapp/WEB-INF/classes On 7/7/06, Vinny [EMAIL PROTECTED] wrote: Hello, I thought the standard behavior for 'package' would be to copy all files from src/main/resources to WEB-INF/classes. The issue I'm facing is with my spring applicationContext.xml file. I want to make that file available to both my tests and to be put into my webapp. I though having it in src/main/resources would solve that problem, but it's not being copied into the webapp anywhere. Currently I have to keep 2 copies. Is this the expected behaivior? -- Ghetto Java: http://www.ghettojava.com -- Ghetto Java: http://www.ghettojava.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -- jesse mcconnell [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Stephen Duncan Jr www.stephenduncanjr.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
FTP Issues
I posted this a long time back. I think there is a bug in the wagon-ssh plugin. If someone does a build and deploys to our internal repository, everything is fine. But if a different person does a second build, the build fails even though the files have full rw acess (777). The issue was logged as WAGONSSH-42. Has this issue been looked at all? Is there a planned fix? Thanks... Frank Russo Senior Developer FX Alliance, LLC 900 Third Avenue, 3rd Floor New York, NY 10022 646.268.9949
RE: maven-scm-plugin goals question
Thanks Eric, I was not sure whether I should post this questions to maven users list or developer list.Though, to me it looks, more developer list question than user list. Is it not worthwhile to provide login as a seperate goal ? or there are some good reasons to not to provide this ? What would be the value in a goal that logs in, but does not perform any actions? I do not believe that logging in into a system / repository is not an action, if this would have been like that then what is meaning of security and why operating system providers (Microsoft , open source Linux to name a few) implemented this behaviour into their system ? Thanks , Jaikumar -Original Message- From: Eric Redmond [mailto:[EMAIL PROTECTED] Sent: Saturday, July 08, 2006 2:39 AM To: Maven Users List Subject: Re: maven-scm-plugin goals question Please do not cross-post between lists. More below. On 7/7/06, Sharma, Jaikumar [EMAIL PROTECTED] wrote: Dear all, As I see at the following URL goals provided by maven-scm-plugin, these goals are general goals, but at the same time, certain actions / operations which are specific to a particular SCM does not really match (for readibility / documentation reasons) to these goals. http://maven.apache.org/scm/plugins/plugin-info.html http://maven.apache.org/scm/plugins/plugin-info.html For instance, take the login action, which I think every provider implements for it repository, and in most of the cases with other providers which are implemented, login has been wrapped in URL in the pom and there itself login take place. Is it not worthwhile to provide login as a seperate goal ? or there are some good reasons to not to provide this ? What would be the value in a goal that logs in, but does not perform any actions? Next, I would appreciate, if somebody could point me to the purpose of the following goals with repect to the provider repository : scm:diff scm:status scm:tag scm:unedit If I do not implement any of the goals or only implement which are relevent / common goals which are relevent to my provider , then at the higher level would I be missing any of the functinality provided by Maven ? Of course, but that's not important. If an implementation does not provide for a particular goal, then it just will not be available. SCM is just like any other API. Sometimes an implementation of an API cannot provide all required functionality. Naturally, it is best to try, but if your provider does not have tag for example, naturally that goal cannot be used correctly. Regards, Jaikumar Thanks; Eric
Re: Problem with checksum generation
My understanding is that the -Durl param is to tell maven where your repository is. It isn't totally clear, but in your command it looks like you are telling maven to install a jar to the spot that it already exists. That seems like a bad idea, and might be the cause of your troubles. Try it without the -Durl param. Or change the -Durl param to point to your local repo. Or make it point somewhere else, and then copy the files over, if you are stubborn. :-) Or move the jar outside of your repository before you try to install it. I generate my own checksums using md5sum and sha1sum sometimes. You can get these on Windows by installing Cygwin, and then installing the package(s) that contain the commands. I don't know what the package name(s) are. cat aopalliance-1.0.jar | md5sum aopalliance-1.0.jar.md5 cat aopalliance-1.0.jar | sha1sum aopalliance-1.0.jar.sha1 The pom is just a text file. Look at some other ones and adapt them to what you need. For aopalliance-1.0, you can just get it from ibiblio: http://ibiblio.org/maven2/aopalliance/aopalliance/1.0/ -Max v_waran wrote: Hi, I am trying to create POM and checksum for existing jar file. When I tried to run the below command POM and checksum files are created but jar file is overwritten to 4k.( I tried with different jar files but consistenly its overwritten to size of 4k.). Command used is mvn deploy:deploy-file -DrepositoryId=localRepository -Dpackaging=jar -Durl=file:\\D:\test\extlib2 -Dversion=1.0 -DgroupId=aopalliance -DartifactId=aopalliance -Dfile=..\..\extlib2\aopalliance\aopalliance\1.0\aopalliance-1.0.jar 1. Is their any option to not to overwrite the jar file (if it already exist) ? If not why does it create only to 4k ? Any idea ? 2. Any alternative way to create POM checksum file(s) for the existing jar file ? Any input is highly valuable. Regards, waran - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: maven-scm-plugin goals question
As a user, I always want to _do_ something. Logging in is, inherently, a null operation. Sure, it changes my state (from non-logged in to logged in) but only insomuch as to do the action that I _really_ want to do (such as, commit or checkout). The issue with ANT is that it is procedural. It makes you take steps (login, checkout, logout). Maven is not procedural, it is declarative. From that point of view, what good does it do anyone to declare log me in? It is the steps _after_ this operation that are fruitful, so this is what the goals focus on. To log oneself in turns a declared operation into a procedure. Consider the example goal: mvn scm:commit versus the alternate proposal: mvn scm:login scm:commit See how that becomes procedural? I'm no longer just declaring the action I want to take (commit), but now instead am directing how to take the action. Thanks; Eric On 7/7/06, Sharma, Jaikumar [EMAIL PROTECTED] wrote: Thanks Eric, I was not sure whether I should post this questions to maven users list or developer list.Though, to me it looks, more developer list question than user list. Is it not worthwhile to provide login as a seperate goal ? or there are some good reasons to not to provide this ? What would be the value in a goal that logs in, but does not perform any actions? I do not believe that logging in into a system / repository is not an action, if this would have been like that then what is meaning of security and why operating system providers (Microsoft , open source Linux to name a few) implemented this behaviour into their system ? Thanks , Jaikumar -Original Message- From: Eric Redmond [mailto:[EMAIL PROTECTED] Sent: Saturday, July 08, 2006 2:39 AM To: Maven Users List Subject: Re: maven-scm-plugin goals question Please do not cross-post between lists. More below. On 7/7/06, Sharma, Jaikumar [EMAIL PROTECTED] wrote: Dear all, As I see at the following URL goals provided by maven-scm-plugin, these goals are general goals, but at the same time, certain actions / operations which are specific to a particular SCM does not really match (for readibility / documentation reasons) to these goals. http://maven.apache.org/scm/plugins/plugin-info.html http://maven.apache.org/scm/plugins/plugin-info.html For instance, take the login action, which I think every provider implements for it repository, and in most of the cases with other providers which are implemented, login has been wrapped in URL in the pom and there itself login take place. Is it not worthwhile to provide login as a seperate goal ? or there are some good reasons to not to provide this ? What would be the value in a goal that logs in, but does not perform any actions? Next, I would appreciate, if somebody could point me to the purpose of the following goals with repect to the provider repository : scm:diff scm:status scm:tag scm:unedit If I do not implement any of the goals or only implement which are relevent / common goals which are relevent to my provider , then at the higher level would I be missing any of the functinality provided by Maven ? Of course, but that's not important. If an implementation does not provide for a particular goal, then it just will not be available. SCM is just like any other API. Sometimes an implementation of an API cannot provide all required functionality. Naturally, it is best to try, but if your provider does not have tag for example, naturally that goal cannot be used correctly. Regards, Jaikumar Thanks; Eric
Re: maven-scm-plugin goals question
maven-scm-api does haave login interface, however provider like svn, starteam, clearcase, etc does not have login action and therefor not implement that interface. That is why you dont see login action surfaces to maven-scm-plugin. About missing goal's doc, please file JIRA -D On 7/7/06, Sharma, Jaikumar [EMAIL PROTECTED] wrote: Thanks Eric, I was not sure whether I should post this questions to maven users list or developer list.Though, to me it looks, more developer list question than user list. Is it not worthwhile to provide login as a seperate goal ? or there are some good reasons to not to provide this ? What would be the value in a goal that logs in, but does not perform any actions? I do not believe that logging in into a system / repository is not an action, if this would have been like that then what is meaning of security and why operating system providers (Microsoft , open source Linux to name a few) implemented this behaviour into their system ? Thanks , Jaikumar -Original Message- From: Eric Redmond [mailto:[EMAIL PROTECTED] Sent: Saturday, July 08, 2006 2:39 AM To: Maven Users List Subject: Re: maven-scm-plugin goals question Please do not cross-post between lists. More below. On 7/7/06, Sharma, Jaikumar [EMAIL PROTECTED] wrote: Dear all, As I see at the following URL goals provided by maven-scm-plugin, these goals are general goals, but at the same time, certain actions / operations which are specific to a particular SCM does not really match (for readibility / documentation reasons) to these goals. http://maven.apache.org/scm/plugins/plugin-info.html http://maven.apache.org/scm/plugins/plugin-info.html For instance, take the login action, which I think every provider implements for it repository, and in most of the cases with other providers which are implemented, login has been wrapped in URL in the pom and there itself login take place. Is it not worthwhile to provide login as a seperate goal ? or there are some good reasons to not to provide this ? What would be the value in a goal that logs in, but does not perform any actions? Next, I would appreciate, if somebody could point me to the purpose of the following goals with repect to the provider repository : scm:diff scm:status scm:tag scm:unedit If I do not implement any of the goals or only implement which are relevent / common goals which are relevent to my provider , then at the higher level would I be missing any of the functinality provided by Maven ? Of course, but that's not important. If an implementation does not provide for a particular goal, then it just will not be available. SCM is just like any other API. Sometimes an implementation of an API cannot provide all required functionality. Naturally, it is best to try, but if your provider does not have tag for example, naturally that goal cannot be used correctly. Regards, Jaikumar Thanks; Eric