RE: How to import all modules of Maven 2 project
Hi, Adding support of Maven profiles in adding project won't be so hard. But does this profile must be added automatically in the build definition ? (in your case adding -Pallblocks in Arguments) Can you fill an issue concerning this ? I don't know if you need a workaround but a simple is to add in the machine you use in the file ~/.m2/settings.xml : activeProfiles ... activeProfileallblocks/activeProfile ... /activeProfiles -- Olivier -Message d'origine- De : Grzegorz Kossakowski [mailto:[EMAIL PROTECTED] Envoyé : dimanche 19 août 2007 00:13 À : continuum-users@maven.apache.org Objet : Re: How to import all modules of Maven 2 project Wendy Smoak pisze: On 8/18/07, Grzegorz Kossakowski [EMAIL PROTECTED] wrote: I noticed that Continuum can do a mass import of modules by scanning recursively pom files. That's really nice feature! However, I found limitation that is quite annoying for me: I can't tell Continuum to use other than default Maven profile while scanning for modules. In our pom[2] we have defined most modules in allblocks profile so I can't add them automatically. Since number of modules is around 230 adding them manually is not an option. Can you give some advice? My preference is to make the default setup build everything, (with activeByDefault or activation based on the absence of a property) and then rely on the other profiles to build smaller subsets. We gradually move modules into default build so situation improves but I fear such a radical change is not an option for us, now. My first (pre-caffeine) idea for a workaround is to define a minimal ci-pom.xml and list all the modules. When you add the project to Continuum, specify that pom, but let the build definition use the normal pom.xml. [untested] That does not solve our problem because our root pom looks like this: modules moduleblocks/module modulecommons/module modulecore/module moduletools/module moduledists/module !-- sub projects -- modulecore/cocoon-configuration/cocoon-configuration-api/module modulecore/cocoon-configuration/cocoon-spring-configurator/module modulecore/cocoon-servlet-service/cocoon-servlet-service-components/module modulecore/cocoon-servlet-service/cocoon-servlet-service-impl/module modulecore/cocoon-servlet-service/cocoon-servlet-service-sample/module /modules The rest is defined in other poms, so I would have to create recursively ci-pom.xml files or create one big, aggregated ci-pom.xml files. Second option is not perfect because it still involves recursive, manual scanning. With help of little scripting I could build some bash script but I would really like to avoid doing this. Emm has also written about the XML-RPC interface, which might be useful to get these projects added: http://www.devzuz.org/blogs/evenisse/2007/08/15/1187191589861.html This involves writing custom Java app which is even worse IMO. I'm wondering if adding support for Maven profiles to Continuum would be that hard? Thanks for answer. -- Grzegorz Kossakowski http://reflectingonthevicissitudes.wordpress.com/ This e-mail, any attachments and the information contained therein (this message) are confidential and intended solely for the use of the addressee(s). If you have received this message in error please send it back to the sender and delete it. Unauthorized publication, use, dissemination or disclosure of this message, either in whole or in part is strictly prohibited. -- Ce message électronique et tous les fichiers joints ainsi que les informations contenues dans ce message ( ci après le message ), sont confidentiels et destinés exclusivement à l'usage de la personne à laquelle ils sont adressés. Si vous avez reçu ce message par erreur, merci de le renvoyer à son émetteur et de le détruire. Toutes diffusion, publication, totale ou partielle ou divulgation sous quelque forme que se soit non expressément autorisées de ce message, sont interdites. -
Problems using Velocity with Maven
Hi! I'm trying to learn how to use Velocity and Maven to generate some HTML pages. (I'm using Velocity Engine that comes with Maven 2.0.5) The problem I have is that my .vm file does not see structure of the Maven's site declaration. When I run Maven without reference to my .vm file, it generates HTML file with the structure of the site as defined in /src/site/site.xml file (as well as the contents of the index.apt file). This works fine. Then I add my custom Velocity file maven-site.vm and reference it in the pom.xml file: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-site-plugin/artifactId version2.0-beta-5/version configuration templateFilemaven-site.vm/templateFile inputEncodingUTF-8/inputEncoding outputEncodingUTF-8/outputEncoding /configuration /plugin I can change the generated HTML page with the help of my Velocity file. However, when I try to retrieve the site.xml structure using $siteDescriptor.getChild() (for example, $siteDescriptor.getChild( bannerLeft ) ), I always get null. Why is it so? Is there anything else I have to define? Or is my file structure incorrect? Here is the structure of my sample project: --WebTest |-- pom.xml |-- build.xml |-- maven-site.vm +-- src |--+ site |-- site.xml |--+ apt |- index.apt I've spent a lot of time searching for solution, but haven't been able to find the answer. Thanks! -- View this message in context: http://www.nabble.com/Problems-using-Velocity-with-Maven-tf4293424s177.html#a1157 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problems using Velocity with Maven
Hi According to the docs here: http://maven.apache.org/plugins/maven-site-plugin/examples/templatefile.html You should also add this to your configuration templateDirectory${basedir}/templateDirectory The default value for templateDirectory is src/site. Or you could move your maven-site.vm file to the src/site directory. andzy wrote: Hi! I'm trying to learn how to use Velocity and Maven to generate some HTML pages. (I'm using Velocity Engine that comes with Maven 2.0.5) The problem I have is that my .vm file does not see structure of the Maven's site declaration. When I run Maven without reference to my .vm file, it generates HTML file with the structure of the site as defined in /src/site/site.xml file (as well as the contents of the index.apt file). This works fine. Then I add my custom Velocity file maven-site.vm and reference it in the pom.xml file: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-site-plugin/artifactId version2.0-beta-5/version configuration templateFilemaven-site.vm/templateFile inputEncodingUTF-8/inputEncoding outputEncodingUTF-8/outputEncoding /configuration /plugin I can change the generated HTML page with the help of my Velocity file. However, when I try to retrieve the site.xml structure using $siteDescriptor.getChild() (for example, $siteDescriptor.getChild( bannerLeft ) ), I always get null. Why is it so? Is there anything else I have to define? Or is my file structure incorrect? Here is the structure of my sample project: --WebTest |-- pom.xml |-- build.xml |-- maven-site.vm +-- src |--+ site |-- site.xml |--+ apt |- index.apt I've spent a lot of time searching for solution, but haven't been able to find the answer. Thanks! -- Dennis Lundberg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Dependcy to maven build
How can I make a dependecy to my own jar file in another maven project? Both projects are created using maven but I need a reference to my api jar in the other maven project. -- View this message in context: http://www.nabble.com/Dependcy-to-maven-build-tf4294023s177.html#a12223648 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Dependcy to maven build
Hi, just as you would with any other dependency: Add it with the correct groupId, artifactId and version to the dependencies/ section of your project's pom. For the dependency resolution to work both projects must either be in the same multi-project build or the artifact you depend on needs to be installed in your local repository or preferable depolyed to a internal/corporate remote repository. -Tim Mathias P.W Nilsson schrieb: How can I make a dependecy to my own jar file in another maven project? Both projects are created using maven but I need a reference to my api jar in the other maven project. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problems using Velocity with Maven
Thanks for the quick response. I had tried this, but unfortunately it doesn't help. Maven is able to find and use my .vm file (as I can change static HTML text), but apparently cannot pass data from it's site.xml file, as the .vm file doesn't seem to have access to elements of that XML file (to create dynamic HTML text). dennisl-2 wrote: Hi According to the docs here: http://maven.apache.org/plugins/maven-site-plugin/examples/templatefile.html You should also add this to your configuration templateDirectory${basedir}/templateDirectory The default value for templateDirectory is src/site. Or you could move your maven-site.vm file to the src/site directory. andzy wrote: Hi! I'm trying to learn how to use Velocity and Maven to generate some HTML pages. (I'm using Velocity Engine that comes with Maven 2.0.5) The problem I have is that my .vm file does not see structure of the Maven's site declaration. When I run Maven without reference to my .vm file, it generates HTML file with the structure of the site as defined in /src/site/site.xml file (as well as the contents of the index.apt file). This works fine. Then I add my custom Velocity file maven-site.vm and reference it in the pom.xml file: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-site-plugin/artifactId version2.0-beta-5/version configuration templateFilemaven-site.vm/templateFile inputEncodingUTF-8/inputEncoding outputEncodingUTF-8/outputEncoding /configuration /plugin I can change the generated HTML page with the help of my Velocity file. However, when I try to retrieve the site.xml structure using $siteDescriptor.getChild() (for example, $siteDescriptor.getChild( bannerLeft ) ), I always get null. Why is it so? Is there anything else I have to define? Or is my file structure incorrect? Here is the structure of my sample project: --WebTest |-- pom.xml |-- build.xml |-- maven-site.vm +-- src |--+ site |-- site.xml |--+ apt |- index.apt I've spent a lot of time searching for solution, but haven't been able to find the answer. Thanks! -- Dennis Lundberg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Problems-using-Velocity-with-Maven-tf4293424s177.html#a12224545 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: running ant script after reporting completes ...
Hi Wendy, Adding the aggregate configuration makes no difference, anyway I would like to have the sources xref generated per submodule rather than one for all modules. I have the following structure: perfectjpattern/trunk/ - pom.xml - perfectjpattern-api --- pom.xml --- src.. - perfectjpattern-core --- pom.xml --- src... Parent pom.xml looks like: reporting ... plugins plugin groupIdorg.codehaus.mojo/groupId artifactIdjxr-maven-plugin/artifactId configuration aggregatetrue/aggregate /configuration /plugin /plugins ... /reporting In every submodule pom.xml I included the following: reporting outputDirectory../target/site/${artifactId}/outputDirectory /reporting This setup provides the expected final result of having all site reports generated under the parent target directory and with correct links (requires some extra changes in all site.xml) except for xref that leaves the xref folders in the submodules. regards, Giovanni Sounds like it's not aggregating correctly. How did you configure it? The option does appear to exist... if it's not working, please file a bug. http://maven.apache.org/plugins/maven-jxr-plugin/examples/aggregate.html -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
HTML empty space in xdoc ...
Hi all, I would really like to add an empty space in my xdoc document i.e. nbsp; but I get errors for this. Any ideas? TIA, regards, Giovanni - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: HTML empty space in xdoc ...
On 8/19/07, Giovanni Azua [EMAIL PROTECTED] wrote: I would really like to add an empty space in my xdoc document i.e. nbsp; but I get errors for this. I get errors isn't enough information. Post what you tried and the error you received, and someone will take a look. -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [maven-ant-tasks] Authentication from settings.xml without using POM?
Le lundi 13 août 2007, Benjamin Bentmann a écrit : Hi, We have an SSH-secured internal repository from which an Ant build script should download some files using the maven-ant-tasks:2.0.7. First, I tried to specify everything inline the Ant script, i.e. without using a POM, using multiple dependency elements and a remoteRepository element. I left out the authentication for the remote repo and expected the Antlib to scan my settings.xml for a matching server id, but that seems not to work. I could only get the SSH credentials from the settings.xml if I used a pom element, whose remote repo is then used. Has anybody successfully accessed a secured remote repo using the credentials from the settings.xml without using a POM and can tell, what I made wrong? If not, I would like to open a feature request for this. Did you check http://jira.codehaus.org/browse/MANTTASKS-85? From the description of your problem, I think you're facing the same issue. Can you test the patched version provided in the Jira issue and confirm if it's ok or not? Hervé - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Eclipse 3.3 natures/builders and maven
Hi all Does anyone have any advice / feedback on getting mvn eclipse:eclipse to work well enough so that an ear pom, ejb pom, and a war pom are all assigned the correct eclipse natures / builders when the descriptors are built? Thanks! Josh Long - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to compile generated java code from test phase ?
I have some unit tests that generate some java files in the maven test phase. How can I tell maven to now compile these files as source ? -- Luciano Resende Apache Tuscany Committer http://people.apache.org/~lresende http://lresende.blogspot.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: HTML empty space in xdoc ...
Sorry for the lazy post :( it is late and I am very sleepy :) When I include the empty space in one of my xdoc files I get the following trace and the html is not generated: [INFO] Skipped About report, file index.html already exists for the English version. [ERROR] VM #displayTree: error : too few arguments to macro. Wanted 2 got 0 [ERROR] VM #menuItem: error : too few arguments to macro. Wanted 1 got 0 [ERROR] Error parsing C:\Projects\perfectjpattern\trunk\src\site\xdoc\index.xml: line [-1] Error parsing the model. org.apache.maven.doxia.parser.ParseException: Error parsing the model. at org.apache.maven.doxia.module.xdoc.XdocParser.parse(XdocParser.java:5 5) at org.apache.maven.doxia.DefaultDoxia.parse(DefaultDoxia.java:52) at org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.renderDocumen t(DefaultSiteRenderer.java:264) at org.apache.maven.doxia.siterenderer.DoxiaDocumentRenderer.renderDocum ent(DoxiaDocumentRenderer.java:43) at org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.renderModule( DefaultSiteRenderer.java:239) at org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.render(Defaul tSiteRenderer.java:115) at org.apache.maven.plugins.site.SiteMojo.renderLocale(SiteMojo.java:124 ) at org.apache.maven.plugins.site.SiteMojo.execute(SiteMojo.java:92) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi nManager.java:443) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa ultLifecycleExecutor.java:539) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi fecycle(DefaultLifecycleExecutor.java:480) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau ltLifecycleExecutor.java:459) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan dleFailures(DefaultLifecycleExecutor.java:311) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen ts(DefaultLifecycleExecutor.java:278) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi fecycleExecutor.java:143) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125) at org.apache.maven.cli.MavenCli.main(MavenCli.java:272) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.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.codehaus.plexus.util.xml.pull.XmlPullParserException: could not r esolve entity named 'nbsp' (position: END_TAG seen ...c=images/download.png bo rder=0 alt= title=download/nbsp;... @14:98) at org.codehaus.plexus.util.xml.pull.MXParser.nextImpl(MXParser.java:127 9) at org.codehaus.plexus.util.xml.pull.MXParser.next(MXParser.java:1090) at org.apache.maven.doxia.module.xdoc.XdocParser.parseXdoc(XdocParser.ja va:312) at org.apache.maven.doxia.module.xdoc.XdocParser.parse(XdocParser.java:5 1) ... 25 more Regards, Giovanni -Original Message- From: Wendy Smoak [mailto:[EMAIL PROTECTED] Sent: Sunday, August 19, 2007 11:35 PM To: Maven Users List Subject: Re: HTML empty space in xdoc ... On 8/19/07, Giovanni Azua [EMAIL PROTECTED] wrote: I would really like to add an empty space in my xdoc document i.e. nbsp; but I get errors for this. I get errors isn't enough information. Post what you tried and the error you received, and someone will take a look. -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: HTML empty space in xdoc ...
On 8/19/07, Giovanni Azua [EMAIL PROTECTED] wrote: When I include the empty space in one of my xdoc files I get the following trace and the html is not generated: Okay, now let's see the xdoc that caused the error... -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: HTML empty space in xdoc ...
lol :))) Okay here it is the snippet: p a href=download.html img valign=top src=images/download.png border=0 alt= title=download/PerfectJPattern API 1.0.0-SNAPSHOT/asmall(1.8mb)/small span style=font-size: smaller br/ a href=release-notes.htmlRelease Notes/a /span /p Adding the space between title=download/ and PerfectJPattern creates the error. Many thanks! regards, Giovanni -Original Message- From: Wendy Smoak [mailto:[EMAIL PROTECTED] Sent: Monday, August 20, 2007 7:45 AM To: Maven Users List Subject: Re: HTML empty space in xdoc ... On 8/19/07, Giovanni Azua [EMAIL PROTECTED] wrote: When I include the empty space in one of my xdoc files I get the following trace and the html is not generated: Okay, now let's see the xdoc that caused the error... -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]