pde-plugin question
Hi all, I've been having a strange error when developing a plugin that uses JDK 1.5: the compilation fails because its target is JDK 1.3. My pom.xml contains only a simple pde-plugin declaration, like this: build plugins plugin groupIdorg.codehaus.mojo/groupId artifactIdpde-maven-plugin/artifactId extensionstrue/extensions configuration eclipseInstall${path.to.eclipse}/eclipseInstall /configuration /plugin /plugins /build I've tried to add a maven-compile-plugin declaration to specify JDK 1.5 but that does not change anything. Does anybody here use the PDE plugin with JDK 1.5? Thanks for any help :) Sébastien -- Sébastien Pennec [EMAIL PROTECTED] Logback: The reliable, generic, fast and flexible logging framework for Java. http://logback.qos.ch/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: pde-plugin question
Hello Dan, Thanks for the hint, that's exactly what I needed :) Cheers, Sébastien Dan Tran wrote: pde-maven-plugin is just an wrapper of PDE headless ant build. you can add additional PDE setting via buildProperties http://mojo.codehaus.org/pde-maven-plugin/pde-mojo.html -D On 2/21/07, Sebastien Pennec [EMAIL PROTECTED] wrote: Hi all, I've been having a strange error when developing a plugin that uses JDK 1.5: the compilation fails because its target is JDK 1.3. My pom.xml contains only a simple pde-plugin declaration, like this: build plugins plugin groupIdorg.codehaus.mojo/groupId artifactIdpde-maven-plugin/artifactId extensionstrue/extensions configuration eclipseInstall${path.to.eclipse}/eclipseInstall /configuration /plugin /plugins /build I've tried to add a maven-compile-plugin declaration to specify JDK 1.5but that does not change anything. Does anybody here use the PDE plugin with JDK 1.5? Thanks for any help :) Sébastien -- Sébastien Pennec [EMAIL PROTECTED] Logback: The reliable, generic, fast and flexible logging framework for Java. http://logback.qos.ch/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Sébastien Pennec [EMAIL PROTECTED] Logback: The reliable, generic, fast and flexible logging framework for Java. http://logback.qos.ch/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Eclipse plugin development with Maven 2
Hi there, Anybody in the list has used Maven 2 to develop plugins for Eclipse? Is there any best practice related to this kind of project that I should know about before I start? Any advice appreciated :) Sébastien - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Eclipse plugin development with Maven 2
Hello Stéphane and Dan, Thanks for your links! Cheers, Sébastien Dan Tran wrote: and http://mojo.codehaus.org/pde-maven-plugin/ On 2/6/07, Stéphane Bouchet [EMAIL PROTECTED] wrote: Hi, there is some docs on codehaus about it : http://docs.codehaus.org/display/MAVEN/Maven+and+Eclipse http://docs.codehaus.org/display/MAVENUSER/Eclipse+Plugin http://docs.codehaus.org/display/MAVEN/Barriers+to+Building+Eclipse+with+Maven Cheers, Stéphane Sebastien Pennec a écrit : Hi there, Anybody in the list has used Maven 2 to develop plugins for Eclipse? Is there any best practice related to this kind of project that I should know about before I start? Any advice appreciated :) Sébastien - 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] -- Sébastien Pennec [EMAIL PROTECTED] Logback: The reliable, generic, fast and flexible logging framework for Java. http://logback.qos.ch/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Unable to download from central repo
Hello, I'm in front of a pretty strange situation. I have some jars that are on the central repo, meaning that I can see them on the appropriate pages [1] and [2]. But when I include them in a project, and launch some goals (actuelly jetty:run), they are not downloaded and maven 2.0.4 returns the error message that is included below. I've tried to run the goal several times, always with the same result. I've check the dependency declarations in my pom.xml, and they seem correct. Does anybody knows if anything's not working? Thanks, Sébastien [INFO] Failed to resolve artifact. Missing: -- 1) ch.qos.logback:logback-access:jar:0.9 Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=ch.qos.logback -DartifactId=logback-access \ -Dversion=0.9 -Dpackaging=jar -Dfile=/path/to/file Path to dependency: 1) ch.qos.logback:logback-demo:war:1.0 2) ch.qos.logback:logback-access:jar:0.9 2) ch.qos.logback:logback-classic:jar:0.9 Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=ch.qos.logback -DartifactId=logback-classic \ -Dversion=0.9 -Dpackaging=jar -Dfile=/path/to/file Path to dependency: 1) ch.qos.logback:logback-demo:war:1.0 2) ch.qos.logback:logback-classic:jar:0.9 -- 2 required artifacts are missing. for artifact: ch.qos.logback:logback-demo:war:1.0 from the specified remote repositories: central (http://repo1.maven.org/maven2) [1] http://repo1.maven.org/maven2/ch/qos/logback/logback-classic/0.9/ [2] http://repo1.maven.org/maven2/ch/qos/logback/logback-access/0.9/ -- Sébastien Pennec [EMAIL PROTECTED] Logback: The reliable, generic, fast and flexible logging framework for Java. http://logback.qos.ch/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Unable to download from central repo
Hi again, I've found where the problem is: I was using a mirror[1] that has not been updated. Since we've released version 0.9 on January 31st, that is 6 days ago, the mirror might have some sync issues. Cheers, Sébastien [1] http://mirrors.dotsrc.org/maven2 Sebastien Pennec wrote: Hello, I'm in front of a pretty strange situation. I have some jars that are on the central repo, meaning that I can see them on the appropriate pages [1] and [2]. But when I include them in a project, and launch some goals (actuelly jetty:run), they are not downloaded and maven 2.0.4 returns the error message that is included below. I've tried to run the goal several times, always with the same result. I've check the dependency declarations in my pom.xml, and they seem correct. Does anybody knows if anything's not working? Thanks, Sébastien [INFO] Failed to resolve artifact. Missing: -- 1) ch.qos.logback:logback-access:jar:0.9 Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=ch.qos.logback -DartifactId=logback-access \ -Dversion=0.9 -Dpackaging=jar -Dfile=/path/to/file Path to dependency: 1) ch.qos.logback:logback-demo:war:1.0 2) ch.qos.logback:logback-access:jar:0.9 2) ch.qos.logback:logback-classic:jar:0.9 Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=ch.qos.logback -DartifactId=logback-classic \ -Dversion=0.9 -Dpackaging=jar -Dfile=/path/to/file Path to dependency: 1) ch.qos.logback:logback-demo:war:1.0 2) ch.qos.logback:logback-classic:jar:0.9 -- 2 required artifacts are missing. for artifact: ch.qos.logback:logback-demo:war:1.0 from the specified remote repositories: central (http://repo1.maven.org/maven2) [1] http://repo1.maven.org/maven2/ch/qos/logback/logback-classic/0.9/ [2] http://repo1.maven.org/maven2/ch/qos/logback/logback-access/0.9/ -- Sébastien Pennec [EMAIL PROTECTED] Logback: The reliable, generic, fast and flexible logging framework for Java. http://logback.qos.ch/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Creating a FAQ with FML format
Hello, I've created a faq using the fml format, and I just can't get to display an xml example in the answer element. Here's what I'm trying to do: (skipping some elements) answer p some blablah /p pre lt;element1gt; ... lt;param1 value=value /gt; ... lt;/element1gt; /pre /answer When I render that using mvn site, everything goes well except for the gt; and lt; chars, which are not displayed. Any ideas? Thanks for your help! -- Sébastien Pennec [EMAIL PROTECTED] Logback: The reliable, generic, fast and flexible logging framework for Java. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Creating a FAQ with FML format
Hello Jeff, Thanks for your answer. However, when I do as said in the link, here's what gets printed: ![CDATA[ appender name=SOCKET class=ch.qos.logback.classic.net.SocketAppender ... param name=remoteHost value=127.0.0.1 / ... /appender ]] The CDATA part gets printed on my html page... Do you have any idea about what does wrong? Sébastien Jeff Jensen a écrit : It is basically an xdoc doc, so use CDATA. See #9 here: http://jakarta.apache.org/site/jakarta-site2.html Quoting Sebastien Pennec [EMAIL PROTECTED]: Hello, I've created a faq using the fml format, and I just can't get to display an xml example in the answer element. Here's what I'm trying to do: (skipping some elements) answer p some blablah /p pre lt;element1gt; ... lt;param1 value=value /gt; ... lt;/element1gt; /pre /answer When I render that using mvn site, everything goes well except for the gt; and lt; chars, which are not displayed. Any ideas? Thanks for your help! -- Sébastien Pennec [EMAIL PROTECTED] Logback: The reliable, generic, fast and flexible logging framework for Java. - 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] -- Sébastien Pennec [EMAIL PROTECTED] Logback: The reliable, generic, fast and flexible logging framework for Java. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Creating a FAQ with FML format
Yes, just like your example mentionned. Finally, I got to display the wanted chars by doing this: source foo bar /foo /source Actually, I just used source elements and put the xml in, without coding the and chars, and without using the CDATA part. Thanks for the info :) Sébastien Jeff Jensen a écrit : Did you wrap it in the source tags? Quoting Sebastien Pennec [EMAIL PROTECTED]: Hello Jeff, Thanks for your answer. However, when I do as said in the link, here's what gets printed: ![CDATA[ appender name=SOCKET class=ch.qos.logback.classic.net.SocketAppender ... param name=remoteHost value=127.0.0.1 / ... /appender ]] The CDATA part gets printed on my html page... Do you have any idea about what does wrong? Sébastien Jeff Jensen a écrit : It is basically an xdoc doc, so use CDATA. See #9 here: http://jakarta.apache.org/site/jakarta-site2.html Quoting Sebastien Pennec [EMAIL PROTECTED]: Hello, I've created a faq using the fml format, and I just can't get to display an xml example in the answer element. Here's what I'm trying to do: (skipping some elements) answer p some blablah /p pre lt;element1gt; ... lt;param1 value=value /gt; ... lt;/element1gt; /pre /answer When I render that using mvn site, everything goes well except for the gt; and lt; chars, which are not displayed. Any ideas? Thanks for your help! -- Sébastien Pennec [EMAIL PROTECTED] Logback: The reliable, generic, fast and flexible logging framework for Java. - 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] -- Sébastien Pennec [EMAIL PROTECTED] Logback: The reliable, generic, fast and flexible logging framework for Java. - 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] -- Sébastien Pennec [EMAIL PROTECTED] Logback: The reliable, generic, fast and flexible logging framework for Java. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: m2/eclipse/wtp configuration + tapestry
Hello, Let me bring this topic up, since it appears that it doesn't do the trick if the project is managed with a VC like svn. By following the instructions, the sync by libcopy doesn't work, because of an error message saying: Errors during build. Errors running builder LibCopy builder on project PROJECT_NAME. Project 'PROJECT_NAME' is mapped to repository type 'org.tigris.subversion.subclipse.core.svnnature' which does not support linked resources. Has anybody been able to link such a project with a subversion repository? Thanks for your help -- Sébastien Pennec [EMAIL PROTECTED] Logback: The reliable, generic, fast and flexible logging framework for Java. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: m2/eclipse/wtp configuration + tapestry
Borut, I am using WTP1.5, too. Struts instead of Tapestry, but I don't think it has any implications on the problem. If you find the solution again, let me know :) Thanks, Sébastien Borut Bolc(ina a écrit : I have, but I also had such error message. I don't know the solution from the top of my head, but it works now, as I am doing the development with WTP1.5, Tapestry4, libcopy and Subversion. What was it??? 2006/9/5, Sebastien Pennec [EMAIL PROTECTED]: Hello, Let me bring this topic up, since it appears that it doesn't do the trick if the project is managed with a VC like svn. By following the instructions, the sync by libcopy doesn't work, because of an error message saying: Errors during build. Errors running builder LibCopy builder on project PROJECT_NAME. Project 'PROJECT_NAME' is mapped to repository type 'org.tigris.subversion.subclipse.core.svnnature' which does not support linked resources. Has anybody been able to link such a project with a subversion repository? Thanks for your help -- Sébastien Pennec [EMAIL PROTECTED] Logback: The reliable, generic, fast and flexible logging framework for Java. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Sébastien Pennec [EMAIL PROTECTED] Logback: The reliable, generic, fast and flexible logging framework for Java. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Site:deploy execution
Hello, I've had a problem today with the site:deploy command. My project had a parent pom, and 4 sub-modules. A distribution management element is present in the parent pom, and not in the sub-modules. What I wanted to do is execute site:deploy on the parent pom and not have the site commande propagated to sub-modules. Is there a way to prevent its execution? Thanks! Sébastien -- Sébastien Pennec [EMAIL PROTECTED] Logback: The reliable, generic, fast and flexible logging framework for Java. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Site:deploy execution
Actually, nabble connected the mails while I thought it would handle them as two threads. Sorry bout that... Sébastien thiago a écrit : Sorry, as i'm new to maven, I have no idea... Why you replied my question with another question? This should be another post! Sebastien Pennec wrote: Hello, I've had a problem today with the site:deploy command. My project had a parent pom, and 4 sub-modules. A distribution management element is present in the parent pom, and not in the sub-modules. What I wanted to do is execute site:deploy on the parent pom and not have the site commande propagated to sub-modules. Is there a way to prevent its execution? Thanks! Sébastien -- Sébastien Pennec [EMAIL PROTECTED] Logback: The reliable, generic, fast and flexible logging framework for Java. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Sébastien Pennec [EMAIL PROTECTED] Logback: The reliable, generic, fast and flexible logging framework for Java. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Site:deploy execution
Hello Milos, That's exactly what I wanted... although it's not really where I was looking for it :) Thanks, Sébastien Milos Kleint a écrit : Sebastien Pennec wrote: Hello, I've had a problem today with the site:deploy command. My project had a parent pom, and 4 sub-modules. A distribution management element is present in the parent pom, and not in the sub-modules. What I wanted to do is execute site:deploy on the parent pom and not have the site commande propagated to sub-modules. Is there a way to prevent its execution? Thanks! Sébastien check the command line options, one of them is to force maven not to process the project's modules during the build. I think it's -N but not completely sure. Milos - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Sébastien Pennec [EMAIL PROTECTED] Logback: The reliable, generic, fast and flexible logging framework for Java. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Assembly module: binary exlusion
Hello, I'm creating an assembly based on a few modules. To include the dependencies of all modules in a module_name/lib directory, I'm using the moduleSets/moduleSet elements in my assembly descriptor. Unfortunately, the jar of the artifact that is being assembled is always included in the lib directory. To prevent this, I wanted to do something like: binaries outputDirectory${artifactId}/lib/outputDirectory includeDependenciestrue/includeDependencies unpackfalse/unpack excludes exclude${groupId}:${artifactId}/exclude excludemodule_name*/exclude /excludes /binaries I've tried these two ways of filling the exclude elements, but none work. Could anybody help me? Thanks! Sébastien -- Sébastien Pennec [EMAIL PROTECTED] Logback: The reliable, generic, fast and flexible logging framework for Java. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[M2]Release plugin and host authentication
Hi, I've been using site:deploy with success to send my generated website to a server. The plugin always asks me this: The authenticity of host 'hostname' can't be established. RSA key fingerprint is 83:7c:87:14:56:bb:4a:46:02:e8:56:dd:c8:5c:34:22. Are you sure you want to continue connecting? (yes/no): I answer 'yes' and everything works fine. Unfortunately, when I specify the goal site:deploy in the release plugin config, I get the following same message, but without possibility to answer. The plugin gets stuck and waits forever. My pom distributionManagement is: distributionManagement site idhostname/id urlscp://hostname/var/www/.. /url /site /distributionManagement I have the following config in my server.xml file: server idhostname/id usernameseb/username configuration sshExecutableplink/sshExecutable scpExecutablepscp/scpExecutable !--sshArgsother arguments you may need/sshArgs -- /configuration /server Does anybody know how to be able to answer 'yes' to that question? Or just to get rid of it? Thanks, Sebastien -- Sebastien Pennec [EMAIL PROTECTED] LOGBack: the generic, reliable, fast and flexible logging library for Java. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [M2]Release plugin and host authentication
Hello Denis, It helped: the host is now accessible without having to answer to the question I mentionned. The known_hosts file does the trick, just like you said. The site:deploy goal works flawlessly. But when I run release:perform, it gets stuck at site:deploy, at the moment when the plugin is supposed to ask me for my password. When running directly site:deploy, I can enter my password (echoed in clear text, but I think the issue has already been added to JIRA), and then the deployment continues. Here, the command line displays [INFO] [site:deploy] and stops. I cannot enter anything, and the action never stops. Having the password present or not in the settings file, where the server is declared doesn't change anything. Sebastien dcabasson a écrit : Sebastien Pennec wrote: Does anybody know how to be able to answer 'yes' to that question? Or just to get rid of it? Try adding an empty file ~/.ssh/known_hosts Latest version of maven-wagon plugin will add the fingerprints of your hosts there. As you're using external ssh/scp programs (why not use internal maven ones), these file might not be used. (I guess putty is storing known_hosts somewhere in registry). Well, anyone, try with this file, and try with maven native ssh connection. Hope it helps. Denis. -- Sebastien Pennec [EMAIL PROTECTED] LOGBack: the generic, reliable, fast and flexible logging library for Java. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[M2]assembly plugin: finalName issue
Hello, I've set, in the configuration of the assembly plugin, the finalName property. Unfortunately, the plugin keeps appending in the file name -src between the finalName value and the extension (.zip, .tar.gz) specified in the assembly config file. Does anybody know if it's possible to get rid of this -src thing? Thanks, Sebastien -- Sebastien Pennec [EMAIL PROTECTED] LOGBack: the generic, reliable, fast and flexible logging library for Java. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [M2]assembly plugin: finalName issue
if worked perfectly, thanks! :) Sebastien Stéphane Bouchet a écrit : hi, if src is the id specified in your assembly XML file, try add appendAssemblyIdfalse/appendAssemblyId in your assembly configuration's section in your pom.xml. Stéphane. Sebastien Pennec a écrit : Hello, I've set, in the configuration of the assembly plugin, the finalName property. Unfortunately, the plugin keeps appending in the file name -src between the finalName value and the extension (.zip, .tar.gz) specified in the assembly config file. Does anybody know if it's possible to get rid of this -src thing? Thanks, Sebastien - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Sebastien Pennec [EMAIL PROTECTED] LOGBack: the generic, reliable, fast and flexible logging library for Java. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [M2] Insert variables in xdoc/apt files
Thanks for you answer, Edwin, I don't really understand what's the common point between filtering files and inserting variables in xdoc files... To make a download page, I can surely make a filter, or just do so that the assembly plug-in copies the zip/tar files directly in the folder that the site will use as a download folder. But if I want my download.xml xdoc file to make a link that automatically stays up to date by adding the right version number to the href, how do I do it? Edwin Punzalan a écrit : You can probably use a filtering plugin like the resource plugin to filter your files before running the site goal. Sebastien Pennec wrote: Hi, I've been battling with xdoc and apt files for some hours now, and looking around on the web, too: I haven't found any example of xdoc/apt file with variable insertions in them. I don't imagine this could _not_ be possible with Maven 2... actually, I don't need anything complicated, just some kind of ${project.version} variable that I could insert in a download link, for example. Even in the Maven svn repository, people use xdoc or apt files without any variables. Is it just impossible, or have I not searched enough? Thanks :) Sebastien - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Sebastien Pennec [EMAIL PROTECTED] LOGBack: the generic, reliable, fast and flexible logging library for Java. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [M2] Insert variables in xdoc/apt files
ok, I'll try that. Thanks! Edwin Punzalan a écrit : filtering is the same as processing variables into their values. What I'd do is create a folder where the unfiltered xdocs are placed, and then configure the resources plugin so that it will copy/filter those files to the folder that the assembly expects it to be. Sebastien Pennec wrote: Thanks for you answer, Edwin, I don't really understand what's the common point between filtering files and inserting variables in xdoc files... To make a download page, I can surely make a filter, or just do so that the assembly plug-in copies the zip/tar files directly in the folder that the site will use as a download folder. But if I want my download.xml xdoc file to make a link that automatically stays up to date by adding the right version number to the href, how do I do it? Edwin Punzalan a écrit : You can probably use a filtering plugin like the resource plugin to filter your files before running the site goal. Sebastien Pennec wrote: Hi, I've been battling with xdoc and apt files for some hours now, and looking around on the web, too: I haven't found any example of xdoc/apt file with variable insertions in them. I don't imagine this could _not_ be possible with Maven 2... actually, I don't need anything complicated, just some kind of ${project.version} variable that I could insert in a download link, for example. Even in the Maven svn repository, people use xdoc or apt files without any variables. Is it just impossible, or have I not searched enough? Thanks :) Sebastien - 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] -- Sebastien Pennec [EMAIL PROTECTED] LOGBack: the generic, reliable, fast and flexible logging library for Java. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [M2] Insert variables in xdoc/apt files
Alexander, Until now, I've been successful at filtering the values, but no satisfying site is generated yet. I have this in my pom: resources resource directorysrc/site/xdoc/directory targetPathgenerated-site/targetPath filteringtrue/filtering /resource /resources When I edit the generated files, the variables have been replaced. For example: a href=xxx-${pom.version}.zipasd/a is translated into: a href=xxx-0.1-SNAPSHOT.zipasd/a Here's the site-plugin config: reporting plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-site-plugin/artifactId configuration xdocDirectory /target/classes/generated-site /xdocDirectory /configuration /plugin The problem I have now is that, if I tell the site plug-in to use the generated xdocs, it says that file names clash. I guess specifying the xdocDirectory doesn't prevent the plugin to search into the convention-based src/site/xdoc directory... Can you try that and tell me if you have better results? Sebastien Alexander Hars a écrit : Hi, If you are successful at doing that, could you post your solution? Thanks, Alexander Sebastien Pennec wrote: ok, I'll try that. Thanks! Edwin Punzalan a écrit : filtering is the same as processing variables into their values. What I'd do is create a folder where the unfiltered xdocs are placed, and then configure the resources plugin so that it will copy/filter those files to the folder that the assembly expects it to be. Sebastien Pennec wrote: Thanks for you answer, Edwin, I don't really understand what's the common point between filtering files and inserting variables in xdoc files... To make a download page, I can surely make a filter, or just do so that the assembly plug-in copies the zip/tar files directly in the folder that the site will use as a download folder. But if I want my download.xml xdoc file to make a link that automatically stays up to date by adding the right version number to the href, how do I do it? Edwin Punzalan a écrit : You can probably use a filtering plugin like the resource plugin to filter your files before running the site goal. Sebastien Pennec wrote: Hi, I've been battling with xdoc and apt files for some hours now, and looking around on the web, too: I haven't found any example of xdoc/apt file with variable insertions in them. I don't imagine this could _not_ be possible with Maven 2... actually, I don't need anything complicated, just some kind of ${project.version} variable that I could insert in a download link, for example. Even in the Maven svn repository, people use xdoc or apt files without any variables. Is it just impossible, or have I not searched enough? Thanks :) Sebastien - 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] -- Sebastien Pennec [EMAIL PROTECTED] LOGBack: the generic, reliable, fast and flexible logging library for Java. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [M2] Insert variables in xdoc/apt files
I've tried that, and it doesn't seem to work, mainly because the ressource plug-in's targetPath tag does directly to the ${project.build.outputDirectory} folder. It might work using ../src/site/xdoc but then it wouldn't work anymore if the target dir is modified. Here is what works for me: POM: Andrew Williams a écrit : why not use src/site/xdoc as the targetPath and use, say src/site/unfiltered-xdoc as the source? That way you do not need to reconfigure the site-plugin... Andy Sebastien Pennec wrote: Alexander, Until now, I've been successful at filtering the values, but no satisfying site is generated yet. I have this in my pom: resources resource directorysrc/site/xdoc/directory targetPathgenerated-site/targetPath filteringtrue/filtering /resource /resources When I edit the generated files, the variables have been replaced. For example: a href=xxx-${pom.version}.zipasd/a is translated into: a href=xxx-0.1-SNAPSHOT.zipasd/a Here's the site-plugin config: reporting plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-site-plugin/artifactId configuration xdocDirectory /target/classes/generated-site /xdocDirectory /configuration /plugin The problem I have now is that, if I tell the site plug-in to use the generated xdocs, it says that file names clash. I guess specifying the xdocDirectory doesn't prevent the plugin to search into the convention-based src/site/xdoc directory... Can you try that and tell me if you have better results? Sebastien Alexander Hars a écrit : Hi, If you are successful at doing that, could you post your solution? Thanks, Alexander Sebastien Pennec wrote: ok, I'll try that. Thanks! Edwin Punzalan a écrit : filtering is the same as processing variables into their values. What I'd do is create a folder where the unfiltered xdocs are placed, and then configure the resources plugin so that it will copy/filter those files to the folder that the assembly expects it to be. Sebastien Pennec wrote: Thanks for you answer, Edwin, I don't really understand what's the common point between filtering files and inserting variables in xdoc files... To make a download page, I can surely make a filter, or just do so that the assembly plug-in copies the zip/tar files directly in the folder that the site will use as a download folder. But if I want my download.xml xdoc file to make a link that automatically stays up to date by adding the right version number to the href, how do I do it? Edwin Punzalan a écrit : You can probably use a filtering plugin like the resource plugin to filter your files before running the site goal. Sebastien Pennec wrote: Hi, I've been battling with xdoc and apt files for some hours now, and looking around on the web, too: I haven't found any example of xdoc/apt file with variable insertions in them. I don't imagine this could _not_ be possible with Maven 2... actually, I don't need anything complicated, just some kind of ${project.version} variable that I could insert in a download link, for example. Even in the Maven svn repository, people use xdoc or apt files without any variables. Is it just impossible, or have I not searched enough? Thanks :) Sebastien - 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] -- Sebastien Pennec [EMAIL PROTECTED] LOGBack: the generic, reliable, fast and flexible logging library for Java. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [M2] Insert variables in xdoc/apt files
... I've been too fast on the ctrl-enter shortcut, sorry. So, here is what works for me: In the POM: resources resource directorysrc/site/xdocTemplates/directory targetPathgenerated-site/targetPath filteringtrue/filtering /resource /resources plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-site-plugin/artifactId configuration xdocDirectory ${project.build.outputDirectory}/generated-site /xdocDirectory /configuration /plugin It processes the files, then saves them in a tmp directory. The site plugin goes in the tmp directory to take the files and put them in the /target/site directory. This way, the src/site/xdoc directory is empty, and so no conflict (file name clashes) happens. This is surely not a nice way of doing things (by bypassing the src/site/xdoc dir), but it works. Sebastien - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[M2] Assembly: scope of dependencies
Hello, I'm having a small problem with the assembly plug-in. Here's a part of my pom.xml: dependencies dependency groupIdsome.group.id/groupId artifactIdcore/artifactId version0.1-SNAPSHOT/version scopecompile/scope /dependency dependency groupIdsame.group.id/groupId artifactIdcore/artifactId version0.1-SNAPSHOT/version classifiertests/classifier scopetest/scope /dependency dependency groupIdjunit/groupId artifactIdjunit/artifactId version3.8.1/version scopetest/scope /dependency /dependencies I have a dependency to a given module in two scopes: compile and test. Since the jar plug in makes two jars, one with source and one with tests, this module depends to core in compile scope and core-test in test scope. Of course, JUnit is also needed. Now to my assembly file: dependencySets dependencySet outputDirectory/lib/outputDirectory unpackfalse/unpack scopetest/scope /dependencySet /dependencySets Nothing fancy here: I just want all my libs, including test scope dependencies, to be included. What is strange, is that the core jar is included in my assembly, the junit jar too, but the core-test jar is missing. How come does the plug-in take some of the dependencies of the test scope and not all of them? Does it think that since a same groupID+artifactID is already included in compile scope, it doesn't need to package the jar with the test classifier? Thanks for your help... Sebastien -- Sebastien Pennec [EMAIL PROTECTED] LOGBack: the generic, reliable, fast and flexible logging library for Java. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [M2] Assembly: scope of dependencies
Looks like updating to version 2.1 of the assembly plug-in corrected the problem... -- Sebastien Pennec [EMAIL PROTECTED] LOGBack: the generic, reliable, fast and flexible logging library for Java. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[M2] Insert variables in xdoc/apt files
Hi, I've been battling with xdoc and apt files for some hours now, and looking around on the web, too: I haven't found any example of xdoc/apt file with variable insertions in them. I don't imagine this could _not_ be possible with Maven 2... actually, I don't need anything complicated, just some kind of ${project.version} variable that I could insert in a download link, for example. Even in the Maven svn repository, people use xdoc or apt files without any variables. Is it just impossible, or have I not searched enough? Thanks :) Sebastien -- Sebastien Pennec [EMAIL PROTECTED] LOGBack: the generic, reliable, fast and flexible logging library for Java. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to specify what's included in the jar with maven-jar-plugin?
Hello, I am trying to build a multi-module project. One module (core) is needed by another module. When I run mvn install, a jar with the core module is built, but it doesn't contain the test classes, and I need them to be included. I've search through the maven-jar-plugin site but nothing seems to do the trick. I've already used a few assemblies and I guess I could use this to build the jar I need, but then, the install command wouldn't use it automatically (right?). Anybody knows how to specify what's supposed to be included in the jar? Or is there another way to include my test classes in the jar? Thanks a lot, Sebastien -- Sebastien Pennec [EMAIL PROTECTED] LOGBack: the generic, reliable, fast and flexible logging library for Java. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to specify what's included in the jar with maven-jar-plugin?
Toli, It's exactly what I needed, thanks! Sebastien Toli Kuznets a écrit : Sebastien, you can explicitly configure the maven-jar plugin to jar your test code. We do it this way: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-jar-plugin/artifactId executions execution idbundle-test-jar/id phasepackage/phase goals goaltest-jar/goal /goals /execution /executions /plugin it gets bound to the package phase so it's created during 'mvn package'. It appends the -tests suffix to the jar, so that later, if you need to refer to it (to copy it somewhere, for example or to declare a dependency) you need to use the test classifier so that maven would know to append the -tests suffix: dependency groupIdorg.marketcetera/groupId artifactIdcore/artifactId version${project.version}/version classifiertests/classifier scopetest/scope /dependency hope this helps. -- Toli Kuznets Marketcetera.org: Open-Source Trading Platform: download.run.trade. On 7/14/06, Sebastien Pennec [EMAIL PROTECTED] wrote: Hello, I am trying to build a multi-module project. One module (core) is needed by another module. When I run mvn install, a jar with the core module is built, but it doesn't contain the test classes, and I need them to be included. I've search through the maven-jar-plugin site but nothing seems to do the trick. I've already used a few assemblies and I guess I could use this to build the jar I need, but then, the install command wouldn't use it automatically (right?). Anybody knows how to specify what's supposed to be included in the jar? Or is there another way to include my test classes in the jar? Thanks a lot, Sebastien -- Sebastien Pennec [EMAIL PROTECTED] LOGBack: the generic, reliable, fast and flexible logging library for Java. - 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] -- Sebastien Pennec [EMAIL PROTECTED] LOGBack: the generic, reliable, fast and flexible logging library for Java. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[M2]Surefire: add Console output to the reports?
Hello, I'd like the Surefire plug-in not only to run tests and create a text file with the results, but also to include what's sent to the console during the test. I've browsed through the surefire docs and config params and I haven't found any parameter that does that... Has anybody done such a thing? Thanks! Sebastien - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Using a ressources directory for tests
Hello, I am pretty new to Maven 2. The project I am working on contains a ressource directory that we use for unit tests. It's located where the Maven convention wants it to be: /src/test/ressources Unfortunately, I can't get Maven to copy its content to the target directory. Using the ressources tag in the pom file just copies the filesto the target/classes dir, when I'd like them to be in the target/test-classes dir. Am I missing something? Thanks for your help Sebastien - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using a ressources directory for tests
How could I not see that ;) Thanks! Jo Vandermeeren a écrit : Maybe that's because maven expects you to talk English? ;) There is no such thing as ressources.. You might want to try resources.. On 7/12/06, Sebastien Pennec [EMAIL PROTECTED] wrote: Hello, I am pretty new to Maven 2. The project I am working on contains a ressource directory that we use for unit tests. It's located where the Maven convention wants it to be: /src/test/ressources Unfortunately, I can't get Maven to copy its content to the target directory. Using the ressources tag in the pom file just copies the filesto the target/classes dir, when I'd like them to be in the target/test-classes dir. Am I missing something? Thanks for your help Sebastien - 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]