ibiblio has older version of JGoodies Looks
The ibiblio repository: http://www.ibiblio.org/maven2/jgoodies/looks/ has a older version of the JGoodies Looks jar (the latest production version is 1.3.2). But my application uses the latest version. How should I proceed? -- Thanks Regards, Subhash Chandran S http://www.indiWiz.com/ http://www.WizTools.org/
Re: SV: Worst documentation in the whole apache projects
Jason van Zyl wrote: David Sag wrote: well i would agree in principle but the maven2 plugin matrix you list is hopelessly out of date, and always has been. The plugin matrix is meant to be a guide. It does not scale right now and it is hard to keep up to date because it is a manual process. We definitely want to move toward pushing more plugin information during the deployment of the plugin and then our new repository manager can scan for that and index the information and we'll use that to generate the plugin matrix. But we needed to start somewhere and see what kind of information would be good to display and now we can go about working on a generated version. Also, if a plugin is external perhaps we might reference it via rss and show an updated status for it, like latest changelog or something? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Sharing settings between subprojects
Hi, I have a multiproject, which is centered around a database. There are a couple of subprojects, which use the database. Obviously, the database settings should be shared between all these subprojects. Ideally, they would be defined in the parent project. How can that be done? Regards, Jochen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2] distributionManagement
hi, is it possible to referce to an existing rep in settings.xml from distributionManagement in the pom ? Fredy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2] parent pom
hi, i've read something about the parent pom at multiple places, but have not found an explanation about it. Is there a doc about parent pom's? Where to define it, how to extend it?? Do it mean a pom in a multi module project like mojo-sandbox? Fredy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ibiblio has older version of JGoodies Looks
http://maven.apache.org/guides/mini/guide-ibiblio-upload.html On 1/29/06, Subhash Chandran [EMAIL PROTECTED] wrote: The ibiblio repository: http://www.ibiblio.org/maven2/jgoodies/looks/ has a older version of the JGoodies Looks jar (the latest production version is 1.3.2). But my application uses the latest version. How should I proceed? -- Thanks Regards, Subhash Chandran S http://www.indiWiz.com/ http://www.WizTools.org/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ibiblio has older version of JGoodies Looks
Thanks for the information. I will try to convert the Ant based Looks package to m2, and then try placing the request to upload. But is there a way to refer to a locally available jar, for the build purpose? I remember reading it somewhere, but i am not able to locate the same. Thanks Regards, Subhash Chandran S. Cross platform OpenSource Java based file encryption software: http://www.WizTools.org/project/WizCrypt/ On 1/29/06, Carlos Sanchez [EMAIL PROTECTED] wrote: http://maven.apache.org/guides/mini/guide-ibiblio-upload.html On 1/29/06, Subhash Chandran [EMAIL PROTECTED] wrote: The ibiblio repository: http://www.ibiblio.org/maven2/jgoodies/looks/ has a older version of the JGoodies Looks jar (the latest production version is 1.3.2). But my application uses the latest version. How should I proceed? -- Thanks Regards, Subhash Chandran S http://www.indiWiz.com/ http://www.WizTools.org/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Regards, Subhash Chandran S
Re: ibiblio has older version of JGoodies Looks
local repo: http://maven.apache.org/plugins/maven-install-plugin/install-file-mojo.html internal company repo (requires configuration) http://maven.apache.org/plugins/maven-deploy-plugin/deploy-file-mojo.html With kind regards, Geoffrey De Smet Subhash Chandran wrote: Thanks for the information. I will try to convert the Ant based Looks package to m2, and then try placing the request to upload. But is there a way to refer to a locally available jar, for the build purpose? I remember reading it somewhere, but i am not able to locate the same. Thanks Regards, Subhash Chandran S. Cross platform OpenSource Java based file encryption software: http://www.WizTools.org/project/WizCrypt/ On 1/29/06, Carlos Sanchez [EMAIL PROTECTED] wrote: http://maven.apache.org/guides/mini/guide-ibiblio-upload.html On 1/29/06, Subhash Chandran [EMAIL PROTECTED] wrote: The ibiblio repository: http://www.ibiblio.org/maven2/jgoodies/looks/ has a older version of the JGoodies Looks jar (the latest production version is 1.3.2). But my application uses the latest version. How should I proceed? -- Thanks Regards, Subhash Chandran S http://www.indiWiz.com/ http://www.WizTools.org/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Regards, Subhash Chandran S - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
M2 dependency not downloading
Hi everybody, I inherited a medium sized project, which has a few modules and builds with M2. The previous team was using linux machines for developing, but I'm using WinXP, so I copied everything to my WinXP PC. When I ran the mvn build for the first time, I saw a few dependencies were downloaded, but the build failed because of some missing dependencies. I checked the output and seems some dependencies are not downloading from Maven central repository. I get the following: [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Error building POM (may not be this project's POM). Project ID: commons-validator:commons-validator Reason: Error getting POM for 'commons-validator:commons-validator' from the repository: Error transferring file commons-validator:commons-validator:pom:1.1.4 from the specified remote repositories: central (http://repo1.maven.org/maven2), old-phoenix-repository (http://columbus/dist), phoenix-repository (http://columbus/dist2) Columbus is our own remote repository, which is not available at the moment. Seems that maven is only looking there and when it fails, it doesn't go to Maven central repository, even if it's saying so. Of course I could download all dependencies manually, but I don't think is the idea of using Maven2. Any ideas? Thanks, Alex. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2] WOW! release:prepare is AWESOME
I just had to write this kudo to the maven team: we have a project composed of 23 submodules in varying levels of depth. All modules are always released together (i.e. no independency release-cycle for each module) much like the spring framework is released. Since there are many inter-dependencies between the modules, we had to write the version number inside the dependencies sections which worried us tremendously (update them on every release...) Still, I decided to give the 'maven-release-plugin' a whirl and tried a maven release:prepare - and it asked me the release+next version and tag for EACH AND EVERY MODULE which definitly took me by surprise. I didn't imagine that it would try to release the entire project (which was exactly my wish). But, what totally amazed me was that it updated, resolved and upgraded all inter-dependencies to the next dev version automatically It just, well...worked! now THAT'S a nifty piece of a plugin!! Well done. Regards, _ Arik Kfir[EMAIL PROTECTED]
Trouble with package.html in an archetype
I'm creating a new archetype, and I have the following (partial) directory structure: src/main/resources/archetype-resources/src/main/java/WelcomeBean.java src/main/resources/archetype-resources/src/main/java/package.html src/main/resources/archetype-resources/src/main/java/overview.html After 'mvn clean install', all three of the files are in target/classes/archetype-resources/src/main/java/ However, in the archetype artifact itself, 'package.html' is missing, resulting in an error when I try to use the archteype, since 'package.html' is referred to in archetype.xml. If I change the filename to 'package.properties' (and make the corresponding change in archetype.xml) then it works fine. I've also tried moving package.html over to src/main/resources, and it gets ignored there, too. (That is, it shows up under target/classes, but not in the struts-archetype-shale-blank-1.0.1-SNAPSHOT.jar file.) Is there something special about the name 'package.html' that is causing a problem? (And what code would this be under in JIRA? It's not the archetype plugin, since the problem happens during 'install'.) Ultimately I'd like to get package.html into src/main/java/package/package.html in the project that is built from the archetype. Thanks, Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] WOW! release:prepare is AWESOME
Arik Kfir wrote: I just had to write this kudo to the maven team: we have a project composed of 23 submodules in varying levels of depth. All modules are always released together (i.e. no independency release-cycle for each module) much like the spring framework is released. Since there are many inter-dependencies between the modules, we had to write the version number inside the dependencies sections which worried us tremendously (update them on every release...) Still, I decided to give the 'maven-release-plugin' a whirl and tried a maven release:prepare - and it asked me the release+next version and tag for EACH AND EVERY MODULE which definitly took me by surprise. I didn't imagine that it would try to release the entire project (which was exactly my wish). But, what totally amazed me was that it updated, resolved and upgraded all inter-dependencies to the next dev version automatically It just, well...worked! now THAT'S a nifty piece of a plugin!! Well done. Glad someone likes it! Others are not so pleased with what it does to your POMs but we're working on it. We use it for all our own releases, as we certainly wouldn't want to have to do them by hand now. Regards, _ Arik Kfir[EMAIL PROTECTED] -- jvz. Jason van Zyl jason at maven.org http://maven.apache.org Simplex sigillum veri. (Simplicity is the seal of truth.) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[ANN] Maven Simian Plugin 1.6 for Maven 1.x released
We are pleased to announce the Maven Simian Plugin 1.6 release! http://maven.apache.org/maven-1.x/reference/plugins/simian/ Simian Plugin for Maven === Changes in this version include: Fixed bugs: o Includes/excludes pattern does not support multiple patterns. Fixes MPSIMIAN-11. Thanks to Thomas Recloux. o Tag library warning when using simian 1.5 Fixes MPSIMIAN-15. o Simian report contains broken links to xref/xref-test directories Fixes MPSIMIAN-12. Thanks to James Dickinson. Changes: o Update dependencies to match ones in maven 1.1 core and to unify them between plugins. The following dependencies are updated : ant v1.5.3-1 - v1.6.5 commons-jelly v1.0-beta-4 - v1.0 commons-logging v1.0.3 - v1.0.4 Fixes MAVEN-1712. === To automatically install the plugin, type the following on a single line: maven plugin:download -Dmaven.repo.remote=http://www.ibiblio.org/maven,http://cvs.apache.org/repository/ -DgroupId=maven -DartifactId=maven-simian-plugin -Dversion=1.6 For a manual installation, you can download the plugin here: http://www.apache.org/dyn/closer.cgi/java-repository/maven/plugins/maven-simian-plugin-1.6.jar Have fun! -The Maven Simian Plugin development team - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[ANN] Maven Developer Activity Plugin 1.6 for Maven 1.x released
We are pleased to announce the Maven Developer Activity Plugin 1.6 release! http://maven.apache.org/maven-1.x/reference/plugins/developer-activity/ This document provides a report of activity in terms of CVS commits and breaks it out by developer. === Changes in this version include: Changes: o Update dependencies to match ones in maven 1.1 core and to unify them between plugins. The following dependencies are updated : commons-jelly-tags-xml v1.0 - v1.1 Fixes MAVEN-1712. === To automatically install the plugin, type the following on a single line: maven plugin:download -Dmaven.repo.remote=http://www.ibiblio.org/maven,http://cvs.apache.org/repository/ -DgroupId=maven -DartifactId=maven-developer-activity-plugin -Dversion=1.6 For a manual installation, you can download the plugin here: http://www.apache.org/dyn/closer.cgi/java-repository/maven/plugins/maven-developer-activity-plugin-1.6.jar Have fun! -The Maven Developer Activity Plugin development team - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[ANN] Maven Changelog Plugin 1.9 for Maven 1.x released
We are pleased to announce the Maven Changelog Plugin 1.9 release! http://maven.apache.org/maven-1.x/reference/plugins/changelog/ The Changelog plugin generates reports about recent changes to the SCM repository. === Changes in this version include: New Features: o New ' lastRelease' option for maven.changelog.date. o Add MKS SI support. Fixes MPCHANGELOG-80. Thanks to Christoph Jerolimov. Fixed bugs: o Some valid scm urls are not allowed. Fixes MPCHANGELOG-81. Thanks to Dennis Lundberg. o Auto select factory from connection doesn't work if provider name length different from 3. Fixes MPCHANGELOG-72. Thanks to Pascal Larin. o Changelog returns 0 entries on Windows with CVS (not CVSNT). New property maven.changelog.quoteDate. Fixes MPCHANGELOG-69. o Changelog plugin creates wrong links for Subversion repositories. New property maven.changelog.svn.baseurl. Fixes MPCHANGELOG-74. o Incorrect parsing of SVN log files when username contains spaces. Fixes MPCHANGELOG-70. Thanks to Arnaud Bailly. Changes: o Update dependencies to match ones in maven 1.1 core and to unify them between plugins. The following dependencies are updated : ant v1.5.3-1 - v1.6.5 commons-jelly-tags-xml v1.0 - v1.1 commons-logging v1.0.3 - v1.0.4 maven v1.0 - v1.0.2 maven-model v3.0.0 - v3.0.1 xercesImpl v 2.4.0 - v2.6.2 xml-apis v 1.0.b2 - xmlParserAPIs v2.6.2 Fixes MAVEN-1712. === To automatically install the plugin, type the following on a single line: maven plugin:download -Dmaven.repo.remote=http://www.ibiblio.org/maven,http://cvs.apache.org/repository/ -DgroupId=maven -DartifactId=maven-changelog-plugin -Dversion=1.9 For a manual installation, you can download the plugin here: http://www.apache.org/dyn/closer.cgi/java-repository/maven/plugins/maven-changelog-plugin-1.9.jar Have fun! -The Maven Changelog Plugin development team - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[ANN] Maven File Activity Plugin 1.6 for Maven 1.x released
We are pleased to announce the Maven File Activity Plugin 1.6 release! http://maven.apache.org/maven-1.x/reference/plugins/file-activity/ This document provides a report of activity in terms of CVS commits and breaks it out by file. === Changes in this version include: Fixed bugs: o File activity plugin creates wrong links for Subversion repositories. Use maven.changelog.svn.baseurlproperty. Fixes MPFILEACTIVITY-2. Changes: o Update dependencies to match ones in maven 1.1 core and to unify them between plugins. The following dependencies are updated : commons-jelly-tags-xml v1.0 - v1.1 Fixes MAVEN-1712. === To automatically install the plugin, type the following on a single line: maven plugin:download -Dmaven.repo.remote=http://www.ibiblio.org/maven,http://cvs.apache.org/repository/ -DgroupId=maven -DartifactId=maven-file-activity-plugin -Dversion=1.6 For a manual installation, you can download the plugin here: http://www.apache.org/dyn/closer.cgi/java-repository/maven/plugins/maven-file-activity-plugin-1.6.jar Have fun! -The Maven File Activity Plugin development team - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: APT syntax question
This isn't possible in the current version, as far as I can tell. There are a couple of things we are looking at doing to make APT more flexible: * more macros (eg, we have snippet now - some others would be very handy) * a second parser for other wiki formats that have greater capabilities I think we'd be hesitant to greatly change the APT format, though, since we didn't originally author it. - Brett On 1/16/06, John Fallows [EMAIL PROTECTED] wrote: Has anyone managed to get hyperlinked images in the generated site docs authored using APT syntax? Kind Regards, John Fallows On 1/9/06, John Fallows [EMAIL PROTECTED] wrote: Is it possible to make a hyperlinked image using APT syntax? I was able to get an image (figure) and linked text working, but could not discover the magic incantation for a linked image. :-) Kind Regards, John Fallows. -- Author Pro JSF and Ajax: Building Rich Internet Components http://www.apress.com/book/bookDisplay.html?bID=10044 -- Author Pro JSF and Ajax: Building Rich Internet Components http://www.apress.com/book/bookDisplay.html?bID=10044 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using Maven2 Site Plugin for Java.Net site documentation?
Hi John, On 1/10/06, John Fallows [EMAIL PROTECTED] wrote: Yeah, I considered that, but don't think it is quite right. This issue of headings is specific to /index.html in the generated site, and does not affect any other page. If Java.Net was not prepending anything special for the /index.html content (in addition to the regular Java.Net chrome), then my src/site/apt/index.apt file would be of the form: For all this, I guess the best solution is going to be to allow out of order sections (perhaps with a warning). This shouldn't be harmful, I don't think. Can you file that in JIRA? Btw, is there any support in site skinning to supply an additional Velocity Macro template for special files that have fixed names and should only be generated once for the whole project, rather than running the macro on every file in the site? No this is generally done by reports, but I'm not sure that's what you are looking for here since it is really just a fragment. You can include it in the resources in the skin to have it hopy as direct HTML - we might need to add some filtering though to be able to modify it. That would be a new feature request if just static HTML is not sufficient. Many of the standard Maven reports are duplicates of the Java.Net ones added in the chrome at runtime, so we'd need to be able to exclude the well-known duplicates and capture the rest automatically. It would be really great if all of this could actually be captured in a single site skin. The skin isn't really related to the selected reports at this point. It might just need to be a FAQ on how to enable the right reports. - Brett - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [m2] Hibernate3 SchemaExportTask
Hi Frederik Right now I'm fixing the plugin to a workable state again. So if you can check in a few days while some dependencies get uploaded to ibiblio, you'll get a workable plugin once again. Regards Johann Reyes -Original Message- From: Jason van Zyl [mailto:[EMAIL PROTECTED] Sent: Saturday, January 28, 2006 9:40 PM To: Maven Users List Subject: Re: [m2] Hibernate3 SchemaExportTask Frederik Dierickx wrote: Hi, I'm a recent convert to Maven2 and trying to achieve the same functionality I used to do with Ant. Most of the things work pretty well but one of the things I really got stuck on is the SchemaExportTask using Hibernate3. I tried to install the hibernate3 plugin from the codehaus mojo repository but didn't succeed because of missing dependencies. Another way I am currently trying is simply calling the SchemaExportTask using an Ant call. Using this approach, it seems like the SchemaExportTask cannot be found in the classpath. I do have a dependency on Hibernate3 in my POM and am passing a reference to maven.dependency.classpath to and maven-antrun-plugin. For some reason unclear to me it doesn't seem to work out. The hibernate3 plugin is currently in the sandbox so no guarantees there. As a stopgap you can use the antrun plugin in conjunction with the ant tasks that you are used to. I'd encourage you to give feedback to get the hib3 plugin working but use the antrun plugin if you have to: http://maven.apache.org/plugins/maven-antrun-plugin/ -- jvz. Jason van Zyl jason at maven.org http://maven.apache.org A man enjoys hsi work when he understands the whole and when he is responsible for the quality of the whole -- Christopher Alexander, A Pattern Language - 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]
[m2.0.2] assembly across modules?
If I have three modules: core, standalone, webapp and the core module contains property files for configuration. Is it possible to access the property files from core when assembling the standalone module? The same question will arise when I assemble webapp as I want to reuse the configuration files that are common. Thanks Barrie - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using Maven2 Site Plugin for Java.Net site documentation?
Hi Brett, On 1/29/06, Brett Porter [EMAIL PROTECTED] wrote: Hi John, On 1/10/06, John Fallows [EMAIL PROTECTED] wrote: Yeah, I considered that, but don't think it is quite right. This issue of headings is specific to /index.html in the generated site, and does not affect any other page. If Java.Net was not prepending anything special for the /index.html content (in addition to the regular Java.Net chrome), then my src/site/apt/index.apt file would be of the form: For all this, I guess the best solution is going to be to allow out of order sections (perhaps with a warning). This shouldn't be harmful, I don't think. Can you file that in JIRA? http://jira.codehaus.org/browse/MNG-2024 I would like to be able to have a clean build with no warnings, despite having some APT fragment files in the project, and it would be important to still get warnings for other non-fragment APT files in case of user error. Btw, is there any support in site skinning to supply an additional Velocity Macro template for special files that have fixed names and should only be generated once for the whole project, rather than running the macro on every file in the site? No this is generally done by reports, but I'm not sure that's what you are looking for here since it is really just a fragment. You can include it in the resources in the skin to have it hopy as direct HTML - we might need to add some filtering though to be able to modify it. That would be a new feature request if just static HTML is not sufficient. I currently have a static HTML file in site/resources that successfully integrates with the Java.Net chrome. However, since this static file contains references to dynamically generated reports, I would like to generate this HTML fragment during site generation to keep the list of reports and their links synchronized. Having a custom report to generate this chrome fragment seems like a workaround, since we'll also need to customize the Velocity template used during site generation (which I understand can be customized by a site skin). I would like to have a single Java.Net skin that both gets the Velocity template correct and also generates the chrome fragment to dyamically link in the generated site reports. Many of the standard Maven reports are duplicates of the Java.Net ones added in the chrome at runtime, so we'd need to be able to exclude the well-known duplicates and capture the rest automatically. It would be really great if all of this could actually be captured in a single site skin. The skin isn't really related to the selected reports at this point. It might just need to be a FAQ on how to enable the right reports. Yep, fair enough. Even if these are generated anyway, it doesn't matter too much. Kind Regards, John Fallows. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- http://apress.com/book/bookDisplay.html?bID=10044 Author: Pro JSF and Ajax: Building Rich Internet Components, Apress
Re: [m2.0.2] assembly across modules?
You can use Assembly FileSet and FileItem to copy files from any where to your final assembly archive. -D On 1/29/06, Treloar, Barrie (SAPOL) [EMAIL PROTECTED] wrote: If I have three modules: core, standalone, webapp and the core module contains property files for configuration. Is it possible to access the property files from core when assembling the standalone module? The same question will arise when I assemble webapp as I want to reuse the configuration files that are common. Thanks Barrie - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to install/use a third-party archetype?
I've created an archetype, and it works fine if I build and install it locally, but I can't figure out how to tell people to get it from the snapshot repository. Here it is: http://cvs.apache.org/maven-snapshot-repository/struts/struts-archetype-shale-blank/ Thinking that it might help, I added the repository and pluginRepository to settings.xml as described here: http://mojo.codehaus.org/using-sandbox-plugins.html (I also added pluginGroup 'struts'.) But 'mvn archetype:create' still says Unable to download the artifact from any repository. It's only checking 'central'. What do I type to get my archetype into a local repository, so that 'mvn archetype:create ...' will work? Thanks, Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [m2.0.2] assembly across modules?
Across modules? i.e. in not in the current project space. -Original Message- From: dan tran [mailto:[EMAIL PROTECTED] Sent: Monday, 30 January 2006 4:08 PM To: Maven Users List Subject: Re: [m2.0.2] assembly across modules? You can use Assembly FileSet and FileItem to copy files from any where to your final assembly archive. -D On 1/29/06, Treloar, Barrie (SAPOL) [EMAIL PROTECTED] wrote: If I have three modules: core, standalone, webapp and the core module contains property files for configuration. Is it possible to access the property files from core when assembling the standalone module? The same question will arise when I assemble webapp as I want to reuse the configuration files that are common. Thanks Barrie - 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 install/use a third-party archetype?
Can you add the snippet of your settings.xml? Fredy Maven Users List users@maven.apache.org schrieb am 30.01.06 06:56:35: I've created an archetype, and it works fine if I build and install it locally, but I can't figure out how to tell people to get it from the snapshot repository. Here it is: http://cvs.apache.org/maven-snapshot-repository/struts/struts-archetype-shale-blank/ Thinking that it might help, I added the repository and pluginRepository to settings.xml as described here: http://mojo.codehaus.org/using-sandbox-plugins.html (I also added pluginGroup 'struts'.) But 'mvn archetype:create' still says Unable to download the artifact from any repository. It's only checking 'central'. What do I type to get my archetype into a local repository, so that 'mvn archetype:create ...' will work? Thanks, Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Mit freundlichen Grüßen Fred Robert Hauschel http://www.Hauschel.de Mobil:0179 - 6917092 Telefon: 07427 - 91179 Fax: 07427 - 91178 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2.0.2] assembly across modules?
You modules are not in the same build tree? -D On 1/29/06, Treloar, Barrie (SAPOL) [EMAIL PROTECTED] wrote: Across modules? i.e. in not in the current project space. -Original Message- From: dan tran [mailto:[EMAIL PROTECTED] Sent: Monday, 30 January 2006 4:08 PM To: Maven Users List Subject: Re: [m2.0.2] assembly across modules? You can use Assembly FileSet and FileItem to copy files from any where to your final assembly archive. -D On 1/29/06, Treloar, Barrie (SAPOL) [EMAIL PROTECTED] wrote: If I have three modules: core, standalone, webapp and the core module contains property files for configuration. Is it possible to access the property files from core when assembling the standalone module? The same question will arise when I assemble webapp as I want to reuse the configuration files that are common. Thanks Barrie - 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: [m2.0.2] assembly across modules?
They are, I guess I was confused about being able to use some black magic to reference the files from another module rather than use ../core/src/... syntax. Is what I am doing the correct way to share common configuration files? I does mean that I have to have the current project and any dependencies checked out, since I need access to file. And that binary dependency doesn't work in this case for deployment. I'll give it a go. Thanks -Original Message- From: dan tran [mailto:[EMAIL PROTECTED] Sent: Monday, 30 January 2006 5:02 PM To: Maven Users List Subject: Re: [m2.0.2] assembly across modules? You modules are not in the same build tree? -D On 1/29/06, Treloar, Barrie (SAPOL) [EMAIL PROTECTED] wrote: Across modules? i.e. in not in the current project space. -Original Message- From: dan tran [mailto:[EMAIL PROTECTED] Sent: Monday, 30 January 2006 4:08 PM To: Maven Users List Subject: Re: [m2.0.2] assembly across modules? You can use Assembly FileSet and FileItem to copy files from any where to your final assembly archive. -D On 1/29/06, Treloar, Barrie (SAPOL) [EMAIL PROTECTED] wrote: If I have three modules: core, standalone, webapp and the core module contains property files for configuration. Is it possible to access the property files from core when assembling the standalone module? The same question will arise when I assemble webapp as I want to reuse the configuration files that are common. Thanks Barrie - 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]
[m2] multiple cvs modules
Hey all, is it possible to create a parent project with subprojects, that are located in a separate cvs modules. Or is it a commitment to make on cvs modul? Fredy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Configuration of m2 ear plugin (was: EJB Unit tests with Maven 2)
Hi, Is it possible to create a valid ear file within ejb project using maven-ear-plugin? If so - how to configure it? I need to be able to assemble an ear file containing my ejb build artifact to be able to run unit-tests tests on the ejbs. Currently this is what I have in my pom.xml: (...) plugin artifactIdmaven-ejb-plugin/artifactId executions execution phasetest-compile/phase goals goalejb/goal /goals configuration generateClientfalse/generateClient archive manifest addClasspathtrue/addClasspath /manifest /archive /configuration /execution /executions /plugin plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-ear-plugin/artifactId executions execution phasetest-compile/phase goals goalgenerate-application-xml/goal goalear/goal /goals configuration /configuration /execution /executions /plugin (...) This _almost_ works. I mean it creates a dodgy ear file that has no ejb jar, but unpacked classes instead (why would anybody need that? - bug?). Is there any way to configure the ear plugin to somehow pick up the ejb jar built by ejb plugin? The ejb jar is not installed in the repo yet (and won't be until the tests are run). I could hack the ear plugin to force it do what needs to be done, but this seems to be such a terrible idea that I thought I will ask someone. The other (equally terrible) idea is to plug an Ant task that would repackage the ear at the very end, but I might as well ditch Maven and go back to Ant. Please help! I am pulling my hair out of my head. Maciej Mastalarczuk PS. And frankly - is anybody at all using Maven 2 to build EJBs? I mean real ones, no HelloWorld stuff. And if so - how do you do the testing? (or you don't :-)) What was a piece of cake with Ant seems to be absolutely impossible task with Maven. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: M2 dependency not downloading
Hi, I've had the same problem. It looks like if the artifact is not in the repository it will try another one, but if the repository is not available it will not. Can someone comment whether it's a bug? I fixed it by creating an empty repository on a box with the same name (columbus in your case). Then it went there, found nothing and fell back to ibiblio. Regards Maciej Mastalarczuk -Original Message- From: Alejandro Sarco [mailto:[EMAIL PROTECTED] Sent: Sunday, 29 January 2006 7:32 PM To: users@maven.apache.org Subject: M2 dependency not downloading Hi everybody, I inherited a medium sized project, which has a few modules and builds with M2. The previous team was using linux machines for developing, but I'm using WinXP, so I copied everything to my WinXP PC. When I ran the mvn build for the first time, I saw a few dependencies were downloaded, but the build failed because of some missing dependencies. I checked the output and seems some dependencies are not downloading from Maven central repository. I get the following: [INFO] -- -- [ERROR] BUILD ERROR [INFO] -- -- [INFO] Error building POM (may not be this project's POM). Project ID: commons-validator:commons-validator Reason: Error getting POM for 'commons-validator:commons-validator' from the repository: Error transferring file commons-validator:commons-validator:pom:1.1.4 from the specified remote repositories: central (http://repo1.maven.org/maven2), old-phoenix-repository (http://columbus/dist), phoenix-repository (http://columbus/dist2) Columbus is our own remote repository, which is not available at the moment. Seems that maven is only looking there and when it fails, it doesn't go to Maven central repository, even if it's saying so. Of course I could download all dependencies manually, but I don't think is the idea of using Maven2. Any ideas? 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: [m2] How to create multiple jars
Hi, This is what I have in mind about that... But first you should know how to configure the compiler plugin to use enable debug. I think the parameter debug is already deprecated. More info on compiler plugin configurations can be found here: http://maven.apache.org/plugins/maven-compiler-plugin/compile-mojo.html Anyway, the process include calling mvn twice: once to get the normal build package and another time with the debug enabled. The first package is easy as you do not need to set any configurations for the compiler plugin... so calling mvn package will give you the desired archive without the debug info. To generate the second package, you can use profiles and put in the compiler configuration the arguments you want. And to make sure that the second package will not overwrite the previously generated package, you can also put a finalName tag in your profile so that the generated archive will have a different name, and therefore won't overwrite your previous archive. More info on profiles can be found here: http://maven.apache.org/guides/introduction/introduction-to-profiles.html Paolo Perrucci wrote: Hi Edwin, this is an extract of my build.xml that create the debug jar: target name=jar_debug depends=clean javac srcdir=src destdir=${build} debug=on optimize=off classpathref=classpath/ jar jarfile=util_d.jar fileset dir=${build} includes=**/*.class/ /jar /target As you can see I use the javac ant task option to include/exclude the debug infos. Paolo Edwin Punzalan ha scritto: Thanks, I get what you want to do. But how do you produce the two different jars? How do you set the different options that you said with ant? is there a config file or a command-line argument that build_release and build_debug uses? Paolo Perrucci wrote: Hi Edwin, in my existing ant build I have two tasks that compile the same sources (with different options) and create the jar files. I have a task named build that call sequentially the tasks build_release and build_debug. After calling the build task I have two jars: project_name.jar and project_name_d.jar. The _d is used for the jar file containing class files compiled with debug infos. Thank you Paolo Edwin Punzalan ha scritto: Hi, In your ant build, how do you setup your two jars? Is there a config file that should be changed for the debug infos? Or do you need to compile once for two jars? or do you recompile for the second jar? Or both? Please provide more info and maybe we can help. ^_^ Paolo Perrucci wrote: Hi all, to experiment with m2 I'm trying to define the pom for a legacy project build with ant. The existing ant build process create two jar: with and without debug infos. How can I use m2 to create the same jars without using the old ant build? Thanks Paolo - 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 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]