Re: Property 'name' has no write method
do you have run it (with continuum and with maven) on the same machine? This error isn't a pb with continuum but it's a maven error. We write executable, arguments and working directory in logs with INFO level. Search in your logs ContinuumBuildExecutor:maven. Emmanuel Tim McCune a écrit : Both are using Maven 1.0.2. I looked at wrapper.log, but didn't see the command being executed listed anywhere. On Mon, 2005-11-21 at 08:19 +1100, Brett Porter wrote: I believe this is usually because of incompatible Jelly versions. Are you using the same version of Maven 1 as you use outside Continuum? Any Jelly deps in your project? I think the Continuum logs show the command being run - try that outside Continuum and see if you have more luck, - Brett On 11/21/05, Tim McCune [EMAIL PROTECTED] wrote: I've got a project that is failing in Continuum inside the dashboard report. It works fine outside of Continuum. But every time I try to run it in Continuum, it fails with the error Property 'name' has no write method. I'm attaching the error below. Any idea what could be wrong? BUILD FAILED File.. /home/tim/.maven/cache/maven-dashboard-plugin-1.6/plugin.jelly Element... m:reactor Line.. 55 Column 65 /home/tim/.maven/cache/maven-xdoc-plugin-1.8/plugin.jelly:516:51: Property 'name' has no write method
Build indicator stuck on 'In progress'
Anybody else have this problem? One of my projects says 'In Progress' although it isn't actually in progress. The Delete link is inactive so I can't just delete it and add it again. Is there a way around this? Continuum is cool btw. Thanks, Trey
RE: [m2] site:deploy via scp uses theunzip command on the remote host. [m1] used tar and gunzip
Brett Porter wrote on Saturday, November 19, 2005 3:51 AM: We can make this configurable - please file a feature request. Isn't it already? I find following snippet in the maven sample project (http://jira.codehaus.org/browse/ARCHETYPE-8): plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-site-plugin/artifactId configuration unzipCommand/usr/bin/unzip -o err.txt/unzipCommand /configuration /plugin /plugins - Jörg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Build Error while creating project
I have installed the mvn 2.0 and have set the path accordingly. but when i am trying to execute the following command it is giving the following error. Please suggest me what to do. C:\Documents and Settings\ciscomvn archetype:create -DgroupId=com.mycompany.app -DartifactId=my-app [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'archetype'. [INFO] - --- [ERROR] BUILD ERROR [INFO] - --- [INFO] The plugin 'org.apache.maven.plugins:maven-archetype-plugin' does not exi st or no valid version could be found [INFO] - --- [INFO] For more information, run Maven with the -e switch [INFO] - --- [INFO] Total time: 1 second [INFO] Finished at: Mon Nov 21 13:20:40 GMT+05:30 2005 [INFO] Final Memory: 1M/2M [INFO] - ---
Re: [m2] site:deploy via scp uses theunzip command on the remote host. [m1] used tar and gunzip
Yes, but not the creation (we need to allow it to make a tar, not a zip). - Brett On 11/21/05, Jörg Schaible [EMAIL PROTECTED] wrote: Brett Porter wrote on Saturday, November 19, 2005 3:51 AM: We can make this configurable - please file a feature request. Isn't it already? I find following snippet in the maven sample project (http://jira.codehaus.org/browse/ARCHETYPE-8): plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-site-plugin/artifactId configuration unzipCommand/usr/bin/unzip -o err.txt/unzipCommand /configuration /plugin /plugins - Jörg - 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] [M1] Multiproject dependencies question
That's not an exception to the inheritence rule described. On 11/21/05, Jörg Schaible [EMAIL PROTECTED] wrote: Arik Kfir wrote on Friday, November 18, 2005 7:20 PM: in m2 you can define the version once - in the parent POM via a dependencyManagement section. All child POMs just state the group artifact IDs, without the version (they inherit the version from the parent). Well, with exceptions: http://jira.codehaus.org/browse/MNG-1577 - Jörg - 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: variable references for site generation
There is an open issue for enabling proper multiproject (I think it is 699?) sites - but there is no variable to insert the references yet. - Brett On 11/21/05, Anuerin Diaz [EMAIL PROTECTED] wrote: hi, where can i find a listing of the available references that i could use during site generation? the guide in the documentation site only lists ${reports} which inserts all reports included in the reporting/ section of the project. i was wondering if there is a similar mechanism for including links to the sub-modules. i agree that such links would be useless when the site is generated in the target directory but they would be useful once the site files are deployed. short of maintaining each module's site.xml, are there any ways of including/excluding the other modules in the navigation menu(s)? thanks. ciao! -- Programming, an artform that fights back Anuerin G. Diaz Registered Linux User #246176 Friendly Linux Board @ http://mandrivausers.org/index.php http://capsule.ramfree17.org , when you absolutely have nothing else better to do - 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] RAR plugin
I'm using the RAR plugin and I found out that it does not create a JAR file to include in the package. So, I invoked the JAR plugin and everything worked fine. Now, I tried using the install plugin to install the rar file into my local repository and what happened was the plugin installed the JAR file into my local repository renaming it as a RAR file! The generated RAR file was untouched. Here is what my POM looks like: project modelVersion4.0.0/modelVersion artifactIdmy-ra/artifactId packagingrar/packaging nameMy Resource Adapter/name build plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-jar-plugin/artifactId version2.0/version executions execution idcreate-jar/id phasecompile/phase goals goaljar/goal /goals /execution /executions /plugin /plugins /build dependencies /project I called M2 by the command 'mvn install'. Any thoughts would be greatly appreciated. Regards, Henry - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Newbie Multiproject question
Thanks for the tip Michael, that seems to work great! Out of interest, I tried the following, kind of expecting it to work which off course meant it didn't! maven.multiproject.includes=${basedir}/../ProjectA/project.xml Anyway, thanks again, Toby -Original Message- From: Michael Böckling [mailto:[EMAIL PROTECTED] Sent: 18 November 2005 17:12 To: Maven Users List Subject: Re: Newbie Multiproject question Hi Toby, you can't change directories with the includes/excludes expression. But instead, you can try the following: maven.multiproject.basedir=${basedir}/../ maven.multiproject.includes=projectA/project.xml This is because the directory scanner will scan all subdirs of maven.multiproject.basedir and match them against the given expressions. Cheers, Michael Böckling -- Giniality AG - Michael Böckling; Steinenberg 21, CH-4051 Basel P: +41 61 226 99 63 - F: +41 61 226 99 69 [EMAIL PROTECTED]; http://www.giniality.com/ Hi Guys, Probably a silly question but can I use the multiple projects plugin for projects that aren't under the standard (single?) folder structure? ie, instead of having; projectroot projectroot\project.xml projectroot\projectA projectroot\projectA\projectA.xml projectroot\projectB projectroot\projectB\project.xml I'd like; projectroot\ projectroot\project.xml (the 'parent') projectA projectA\projectA.xml projectB projectB\project.xml I was thinking you could have something like; maven.multiproject.includes=../projectA/project.xml in the properties for the root project (project.properties?). Does that make any sense at all!? When I try, it seems the multi project plugin doesn't recognise the sub-projects, ie, maven -X multiproject:goal -Dgoal=java:compile outputs; multiproject:projects-init: [echo] Gathering project list Starting the reactor... Our processing order: Starting the reactor... using existing list of projects: [] Our processing order: attaining goal build:end which I assume means it hasn't found anything (as it didn't do the compile). I added maven.multiproject.type entries in each sub-projects properties. Any tips would be much appreciated. The reason for trying this BTW is just because I have legacy projects and I'd like to keep the change history in CVS rather than move them to a more standard structure. Thanks in advance, Toby - 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]
System properties and project.properties
I need to send an e-mail from one of my classes (using commons-email) and I'd like to be able to configure my SMTP server data through properties in project.properties. I think I remember from MDN that there is a mean to do so thanks to System properties, but I don't have the book right now and I really need that. For example I want to write that in my project.properties : stmp.server=relay.chello.be And that in my emailing class : SimpleEmail email = new SimpleEmail(); email.setHostName(System.getProperties(smtp.server)); How can I do that ? -- Sébastien Arbogast Blog : http://www.sebastien-arbogast.com The Epseelon Project : http://www.epseelon.org Projet Phénix : http://phenix.netbios.fr
[m2] plugin default properties
I have a mojo which is pretty much like the Jar mojo. I know I can set the main class for the manifest with something like plugin groupIdmygroup/groupId artifactIdmyplugin/artifactId configuration archive manifest mainClasstrue/mainClass /manifest /archive /configuration /plugin However, since the mainclass is always the same, is there a way for me to set up my mojo so I don't have to do this. I've tried looking at pluginManagement, adding a property of @parameter expression=${archive.manifest.mainClass} and seeing if I could manually set the value on the manifest, but I can't seem to find a way around it... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] RAR plugin
That bug is fixed in SVN - however, I'm not sure that the exceution should be needed, but I don't quite understand what you are attempting - hopefully someone with more RAR experience than me (that's anyone :) will know the answers. - Brett On 11/21/05, Henry Isidro [EMAIL PROTECTED] wrote: I'm using the RAR plugin and I found out that it does not create a JAR file to include in the package. So, I invoked the JAR plugin and everything worked fine. Now, I tried using the install plugin to install the rar file into my local repository and what happened was the plugin installed the JAR file into my local repository renaming it as a RAR file! The generated RAR file was untouched. Here is what my POM looks like: project modelVersion4.0.0/modelVersion artifactIdmy-ra/artifactId packagingrar/packaging nameMy Resource Adapter/name build plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-jar-plugin/artifactId version2.0/version executions execution idcreate-jar/id phasecompile/phase goals goaljar/goal /goals /execution /executions /plugin /plugins /build dependencies /project I called M2 by the command 'mvn install'. Any thoughts would be greatly appreciated. Regards, Henry - 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]
Surefire not ignoring test failures
Hello, any suggestion to get surefire plugin ignore test failures in order to generate the project site? I've got this configuration in my pom: plugin groupIdorg.codehaus.mojo/groupId artifactIdsurefire-report-maven-plugin/artifactId configuration testFailureIgnoretrue/testFailureIgnore /configuration /plugin but I don't know if that property is ok or there's another way to accomplish this. Thanks in advance. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [mvn] using cactus with maven2
Hi Alexandre, The Cactus plugin is a *maven1* plugin not a maven2 one. There's no cactus plugin for maven2 yet. The recommendation right now (while waiting for a proper cactus m2 plugin) is to use Cargo to all container manipulations (http://cargo.codehaus.org). In any case the next version of Cactus will use cargo. Thanks -Vincent -Original Message- From: Alexandre Russel [mailto:[EMAIL PROTECTED] Sent: lundi 21 novembre 2005 11:52 To: users@maven.apache.org Subject: [mvn] using cactus with maven2 Hi, I am trying to use cactus with maven 2. My pom.xml: plugin artifactIdcactus-maven/artifactId groupIdcactus/groupId version1.7/version /plugin and the result: [ERROR] FATAL ERROR [INFO] -- -- [INFO] null [INFO] -- -- [INFO] Trace java.lang.NullPointerException at org.apache.maven.plugin.DefaultPluginManager.addPlugin(DefaultPluginManage r.java:292) at org.apache.maven.plugin.DefaultPluginManager.verifyVersionedPlugin(Default PluginManager.java:198) at org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPluginMan ager.java:163) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLi fecycleExecutor.java:1095) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.bindPluginToLifecycle( DefaultLifecycleExecutor.java:1060) However the plugin is in the repository. Am I making a mistake or is there a problem with the plugin? Could also someone confirm that the cactus directory should be under the test directory? thanks in advance for your help. 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] Copy the dependencies of a project in a custom plugin
On 11/21/05, Wim Deblauwe [EMAIL PROTECTED] wrote: Hi, I'm writing a custom plugin and I need to copy the project's dependencies from the local repository to a certain directory. How can I do this best? You should use ${project.artifacts} instead which includes all the transitive artifacts, and for which you can call artifact.getFile(). Make sure you include @requiresDependencyResolution question 2: When my plugin works, it will produce a different artifact (.msm), how should I handle the 'instal' and 'deploy' of that artifact? Do I need to write my own custom mojo for that or can I re-use the plugins already written for .jar files? You can reuse the mojos, but you will still need to define the customisations, which will require a plugin. There are examples in the introduction to the build lifecycle. Cheers, Brett - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Surefire not ignoring test failures
This needs to be specified on the tests itself. There is a bug in the surefire report plugin that isn't doing this by default as it should be. - Brett On 11/21/05, Rubén Barroso [EMAIL PROTECTED] wrote: Hello, any suggestion to get surefire plugin ignore test failures in order to generate the project site? I've got this configuration in my pom: plugin groupIdorg.codehaus.mojo/groupId artifactIdsurefire-report-maven-plugin/artifactId configuration testFailureIgnoretrue/testFailureIgnore /configuration /plugin but I don't know if that property is ok or there's another way to accomplish this. Thanks in advance. - 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] Copy the dependencies of a project in a custom plugin
What dependency do I need for the Artifact and Project classes in my Mojo? 2005/11/21, Brett Porter [EMAIL PROTECTED]: On 11/21/05, Wim Deblauwe [EMAIL PROTECTED] wrote: Hi, I'm writing a custom plugin and I need to copy the project's dependencies from the local repository to a certain directory. How can I do this best? You should use ${project.artifacts} instead which includes all the transitive artifacts, and for which you can call artifact.getFile(). Make sure you include @requiresDependencyResolution question 2: When my plugin works, it will produce a different artifact (.msm), how should I handle the 'instal' and 'deploy' of that artifact? Do I need to write my own custom mojo for that or can I re-use the plugins already written for .jar files? You can reuse the mojos, but you will still need to define the customisations, which will require a plugin. There are examples in the introduction to the build lifecycle. Cheers, Brett - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] Copy the dependencies of a project in a custom plugin
maven-artifact and maven-project (though you may not need the project dependency if you are just using the expression below as it is runtime, and Mavne provides it). - Brett On 11/21/05, Wim Deblauwe [EMAIL PROTECTED] wrote: What dependency do I need for the Artifact and Project classes in my Mojo? 2005/11/21, Brett Porter [EMAIL PROTECTED]: On 11/21/05, Wim Deblauwe [EMAIL PROTECTED] wrote: Hi, I'm writing a custom plugin and I need to copy the project's dependencies from the local repository to a certain directory. How can I do this best? You should use ${project.artifacts} instead which includes all the transitive artifacts, and for which you can call artifact.getFile(). Make sure you include @requiresDependencyResolution question 2: When my plugin works, it will produce a different artifact (.msm), how should I handle the 'instal' and 'deploy' of that artifact? Do I need to write my own custom mojo for that or can I re-use the plugins already written for .jar files? You can reuse the mojos, but you will still need to define the customisations, which will require a plugin. There are examples in the introduction to the build lifecycle. Cheers, Brett - 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] Copy the dependencies of a project in a custom plugin
The collection of artifacts is empty. When I was using dependencies, it was not empty. What am I doing wrong? This is my code: /** * @goal process-resources * @description Copy the dependencies for the InstallShield Merge Module */ public class MsmProcessResourcesMojo extends AbstractMojo { /** * @parameter expression=${project.artifacts} * @requiresDependencyResolution */ private Collection artifacts; /** * @parameter expression=${project.build.directory}/resources */ private File targetDirectory; public MsmProcessResourcesMojo() { } public void execute() throws MojoExecutionException, MojoFailureException { try { getLog().info( Process Resources for InstallShield Merge Module... ); Iterator iterator = artifacts.iterator(); while (iterator.hasNext()) { Artifact artifact = (Artifact)iterator.next(); FileUtils.copyFileToDirectory( artifact.getFile(), new File( targetDirectory, artifact.getType() + s ) ); } } catch (IOException e) { throw new MojoExecutionException( Error copying artifacts, e ); } } } thank you, Wim 2005/11/21, Brett Porter [EMAIL PROTECTED]: maven-artifact and maven-project (though you may not need the project dependency if you are just using the expression below as it is runtime, and Mavne provides it). - Brett On 11/21/05, Wim Deblauwe [EMAIL PROTECTED] wrote: What dependency do I need for the Artifact and Project classes in my Mojo? 2005/11/21, Brett Porter [EMAIL PROTECTED]: On 11/21/05, Wim Deblauwe [EMAIL PROTECTED] wrote: Hi, I'm writing a custom plugin and I need to copy the project's dependencies from the local repository to a certain directory. How can I do this best? You should use ${project.artifacts} instead which includes all the transitive artifacts, and for which you can call artifact.getFile(). Make sure you include @requiresDependencyResolution question 2: When my plugin works, it will produce a different artifact (.msm), how should I handle the 'instal' and 'deploy' of that artifact? Do I need to write my own custom mojo for that or can I re-use the plugins already written for .jar files? You can reuse the mojos, but you will still need to define the customisations, which will require a plugin. There are examples in the introduction to the build lifecycle. Cheers, Brett - 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] Copy the dependencies of a project in a custom plugin
Dear Wim, For my sample-- dependencies dependency groupIdorg.apache.maven/groupId artifactIdmaven-plugin-api/artifactId version2.0/version /dependency pom.xml project modelVersion4.0.0/modelVersion groupIdsample.plugins/groupId artifactIdmaven-hello-plugin/artifactId packagingmaven-plugin/packaging !--version2.1-SNAPSHOT/version-- version2/version nameSample Parameter-less Maven Plugin/name dependencies dependency groupIdorg.apache.maven/groupId artifactIdmaven-plugin-api/artifactId version2.0/version /dependency /dependencies build sourceDirectorysrc/main/java/sourceDirectory outputDirectorytarget/outputDirectory /build distributionManagement repository idlocalrepo_server/id namedistribution repository/name urlfile:///d:/m2localrepo//url /repository snapshotRepository idlocalrepo_server/id namedistribution repository/name urlfile:///d:/m2localrepo//url /snapshotRepository /distributionManagement /project thanks. Tel: (020)36315358-328 Fax: (020)36315170 Wim Deblauwe [EMAIL PROTECTED]To: Maven Users List users@maven.apache.org il.com cc: Subject: Re: [m2] Copy the dependencies of a project in a custom plugin 21/11/2005 19:41 Please respond to Maven Users List The collection of artifacts is empty. When I was using dependencies, it was not empty. What am I doing wrong? This is my code: /** * @goal process-resources * @description Copy the dependencies for the InstallShield Merge Module */ public class MsmProcessResourcesMojo extends AbstractMojo { /** * @parameter expression=${project.artifacts} * @requiresDependencyResolution */ private Collection artifacts; /** * @parameter expression=${project.build.directory}/resources */ private File targetDirectory; public MsmProcessResourcesMojo() { } public void execute() throws MojoExecutionException, MojoFailureException { try { getLog().info( Process Resources for InstallShield Merge Module... ); Iterator iterator = artifacts.iterator(); while (iterator.hasNext()) { Artifact artifact = (Artifact)iterator.next(); FileUtils.copyFileToDirectory( artifact.getFile(), new File( targetDirectory, artifact.getType() + s ) ); } } catch (IOException e) { throw new MojoExecutionException( Error copying artifacts, e ); } } } thank you, Wim 2005/11/21, Brett Porter [EMAIL PROTECTED]: maven-artifact and maven-project (though you may not need the project dependency if you are just using the expression below as it is runtime, and Mavne provides it). - Brett On 11/21/05, Wim Deblauwe [EMAIL PROTECTED] wrote: What dependency do I need for the Artifact and Project classes in my Mojo? 2005/11/21, Brett Porter [EMAIL PROTECTED]: On 11/21/05, Wim Deblauwe [EMAIL PROTECTED] wrote: Hi, I'm writing a custom plugin and I need to copy the project's dependencies from the local repository to a certain directory. How can I do this best? You should use ${project.artifacts} instead which includes all the transitive artifacts, and for which you can call artifact.getFile(). Make sure you include @requiresDependencyResolution question 2: When my plugin works, it will produce a different artifact (.msm), how should I handle the 'instal' and 'deploy' of that artifact? Do I need to write my own custom mojo for that or can I re-use the plugins already written for .jar files? You can reuse the mojos, but you will still need to define the customisations, which will require a plugin. There are examples in the introduction to the build lifecycle. Cheers,
RE: [m2] Copy the dependencies of a project in a custom plugin
The tag @requiresDependencyResolution has to be on the class, not the parameter. -Original Message- From: Wim Deblauwe [mailto:[EMAIL PROTECTED] Sent: Monday, November 21, 2005 06:41 To: Maven Users List Subject: Re: [m2] Copy the dependencies of a project in a custom plugin The collection of artifacts is empty. When I was using dependencies, it was not empty. What am I doing wrong? This is my code: /** * @goal process-resources * @description Copy the dependencies for the InstallShield Merge Module */ public class MsmProcessResourcesMojo extends AbstractMojo { /** * @parameter expression=${project.artifacts} * @requiresDependencyResolution */ private Collection artifacts; /** * @parameter expression=${project.build.directory}/resources */ private File targetDirectory; public MsmProcessResourcesMojo() { } public void execute() throws MojoExecutionException, MojoFailureException { try { getLog().info( Process Resources for InstallShield Merge Module... ); Iterator iterator = artifacts.iterator(); while (iterator.hasNext()) { Artifact artifact = (Artifact)iterator.next(); FileUtils.copyFileToDirectory( artifact.getFile(), new File( targetDirectory, artifact.getType() + s ) ); } } catch (IOException e) { throw new MojoExecutionException( Error copying artifacts, e ); } } } thank you, Wim 2005/11/21, Brett Porter [EMAIL PROTECTED]: maven-artifact and maven-project (though you may not need the project dependency if you are just using the expression below as it is runtime, and Mavne provides it). - Brett On 11/21/05, Wim Deblauwe [EMAIL PROTECTED] wrote: What dependency do I need for the Artifact and Project classes in my Mojo? 2005/11/21, Brett Porter [EMAIL PROTECTED]: On 11/21/05, Wim Deblauwe [EMAIL PROTECTED] wrote: Hi, I'm writing a custom plugin and I need to copy the project's dependencies from the local repository to a certain directory. How can I do this best? You should use ${project.artifacts} instead which includes all the transitive artifacts, and for which you can call artifact.getFile(). Make sure you include @requiresDependencyResolution question 2: When my plugin works, it will produce a different artifact (.msm), how should I handle the 'instal' and 'deploy' of that artifact? Do I need to write my own custom mojo for that or can I re-use the plugins already written for .jar files? You can reuse the mojos, but you will still need to define the customisations, which will require a plugin. There are examples in the introduction to the build lifecycle. Cheers, Brett - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: WebDav
Just an update on this - the slide pom is now fixed and my colleague Mike intends to submit the code within a week or so. I believe he's watching the users list, but if anyone needs to follow up on this then his contact details are [EMAIL PROTECTED] Cheers, Mark On 08/11/05, Mark Hobson [EMAIL PROTECTED] wrote: Hi there, My colleague has written the WebDAV wagon referred to on the website and I'm bugging him to submit it :) It's based on apache slide and we use it fine internally. The blocker to submitting was sorting out the slide pom on ibiblio - I've just submitted an issue summarising the problem: http://jira.codehaus.org/browse/MEV-190 Once this is resolved we can submit the code. We also intend to rewrite the provider to not depend on slide but just implement a lightweight WebDAV implementation, although it'd be good to get a version up there first. Cheers, Mark On 08/11/05, Alexandre Poitras [EMAIL PROTECTED] wrote: Hi, I just wanted to know what is the current status of WebDav support. It is still written on progess on maven wagon web site. Is there some features already available from the svn version. Thank. -- Alexandre Poitras Québec, Canada - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] Copy the dependencies of a project in a custom plugin
ok, thanks! That was it. 2005/11/21, Allison, Bob [EMAIL PROTECTED]: The tag @requiresDependencyResolution has to be on the class, not the parameter. -Original Message- From: Wim Deblauwe [mailto:[EMAIL PROTECTED] Sent: Monday, November 21, 2005 06:41 To: Maven Users List Subject: Re: [m2] Copy the dependencies of a project in a custom plugin The collection of artifacts is empty. When I was using dependencies, it was not empty. What am I doing wrong? This is my code: /** * @goal process-resources * @description Copy the dependencies for the InstallShield Merge Module */ public class MsmProcessResourcesMojo extends AbstractMojo { /** * @parameter expression=${project.artifacts} * @requiresDependencyResolution */ private Collection artifacts; /** * @parameter expression=${project.build.directory}/resources */ private File targetDirectory; public MsmProcessResourcesMojo() { } public void execute() throws MojoExecutionException, MojoFailureException { try { getLog().info( Process Resources for InstallShield Merge Module... ); Iterator iterator = artifacts.iterator(); while (iterator.hasNext()) { Artifact artifact = (Artifact)iterator.next(); FileUtils.copyFileToDirectory( artifact.getFile(), new File( targetDirectory, artifact.getType() + s ) ); } } catch (IOException e) { throw new MojoExecutionException( Error copying artifacts, e ); } } } thank you, Wim 2005/11/21, Brett Porter [EMAIL PROTECTED]: maven-artifact and maven-project (though you may not need the project dependency if you are just using the expression below as it is runtime, and Mavne provides it). - Brett On 11/21/05, Wim Deblauwe [EMAIL PROTECTED] wrote: What dependency do I need for the Artifact and Project classes in my Mojo? 2005/11/21, Brett Porter [EMAIL PROTECTED]: On 11/21/05, Wim Deblauwe [EMAIL PROTECTED] wrote: Hi, I'm writing a custom plugin and I need to copy the project's dependencies from the local repository to a certain directory. How can I do this best? You should use ${project.artifacts} instead which includes all the transitive artifacts, and for which you can call artifact.getFile(). Make sure you include @requiresDependencyResolution question 2: When my plugin works, it will produce a different artifact (.msm), how should I handle the 'instal' and 'deploy' of that artifact? Do I need to write my own custom mojo for that or can I re-use the plugins already written for .jar files? You can reuse the mojos, but you will still need to define the customisations, which will require a plugin. There are examples in the introduction to the build lifecycle. Cheers, Brett - 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] mojo report (sink mandatory content ?)
Hi, I have a question concerning doxia Sink in report Mojo. Is there any mandatory content in Sink ? Actually I try the very simple : Sink sink = getSink(); sink.head(); sink.text(Test Report); sink.head_(); sink.body(); sink.text(test); sink.body_(); sink.flush(); sink.close(); As I understand the html page will be getOutputName() . html ? Or I have probably forgot content in the sink. My pom has dependency : dependency groupIddoxia/groupId artifactIddoxia-sink-api/artifactId version1.0-alpha-4/version /dependency Thanks for help, - Olivier 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 electronique et tous les fichiers joints ainsi que les informations contenues dans ce message ( ci apres le message ), sont confidentiels et destines exclusivement a l'usage de la personne a laquelle ils sont adresses. Si vous avez recu ce message par erreur, merci de le renvoyer a son emetteur et de le detruire. Toutes diffusion, publication, totale ou partielle ou divulgation sous quelque forme que se soit non expressement autorisees de ce message, sont interdites. ** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [mvn] using cactus with maven2
Vincent Massol a écrit : The recommendation right now (while waiting for a proper cactus m2 plugin) is to use Cargo to all container manipulations (http://cargo.codehaus.org). thanks for your answer. I am trying to use cargo. My pom.xml is: build plugins plugin artifactIdcargo-maven2-plugin/artifactId groupIdorg.codehaus.cargo.maven2/groupId version0.7-SNAPSHOT/version configuration container containerIdjboss/containerId home/usr/local/jboss-4.0.2/home /container /configuration /plugin trying mvn cargo:start I got: Downloading: http://cargo.codehaus.org/dist2/geronimo-spec/geronimo-spec-j2ee-deployment/1.1-rc4/geronimo-spec-j2ee-deployment-1.1-rc4.pom [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Error building POM (may not be this project's POM). Project ID: geronimo-spec:geronimo-spec-j2ee-deployment Reason: Error getting POM for 'geronimo-spec:geronimo-spec-j2ee-deployment' from the repository: Error transferring file geronimo-spec:geronimo-spec-j2ee-deployment:1.1-rc4:pom from the specified remote repositories: central (http://repo1.maven.org/maven2), cargo repository (http://cargo.codehaus.org/dist2), snapshots (http://snapshots.maven.codehaus.org/maven2) thanks Alex - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2] Surefire report Locale
My surefire-plugin (2.0) generates XML reports with my current Locale (FR). When trying to get a report out of those XML files, I get the following error. It's probably because in locale FR you tipe 0,187 instead of 0.187 (silly thing). Looks like the XML parser isn't taking this into account (while the generator did). [INFO] Generate Maven Surefire Report report. java.lang.NumberFormatException: For input string: 0,187 at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:691) at org.apache.crimson.parser.Parser2.parse(Parser2.java:337) at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:448) at javax.xml.parsers.SAXParser.parse(SAXParser.java:345) at javax.xml.parsers.SAXParser.parse(SAXParser.java:281) at org.codehaus.mojo.surefire.ReportTestSuite.init(ReportTestSuite.java:59) at org.codehaus.mojo.surefire.SurefireReportParser.parseXMLReportFiles(Surefire ReportParser.java:42) at org.codehaus.mojo.surefire.SurefireReportGenerator.doGenerateReport(Surefire ReportGenerator.java:44) at org.codehaus.mojo.surefire.SurefireReportMojo.executeReport(SurefireReportMo jo.java:77) at org.apache.maven.reporting.AbstractMavenReport.generate(AbstractMavenReport. java:117) at org.apache.maven.plugins.site.SiteMojo.generateReportsPages(SiteMojo.java:80 2) at org.apache.maven.plugins.site.SiteMojo.execute(SiteMojo.java:301) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManage r.java:399) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLife cycleExecutor.java:519) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle (DefaultLifecycleExecutor.java:469) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifec ycleExecutor.java:448) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFail ures(DefaultLifecycleExecutor.java:301) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(Defa ultLifecycleExecutor.java:268) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycle Executor.java:137) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:316) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:113) at org.apache.maven.cli.MavenCli.main(MavenCli.java:249) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:324) 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) java.lang.NumberFormatException: For input string: 0,015 at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:691) at org.apache.crimson.parser.Parser2.parse(Parser2.java:337) at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:448) at javax.xml.parsers.SAXParser.parse(SAXParser.java:345) at javax.xml.parsers.SAXParser.parse(SAXParser.java:281) at org.codehaus.mojo.surefire.ReportTestSuite.init(ReportTestSuite.java:59) at org.codehaus.mojo.surefire.SurefireReportParser.parseXMLReportFiles(Surefire ReportParser.java:42) at org.codehaus.mojo.surefire.SurefireReportGenerator.doGenerateReport(Surefire ReportGenerator.java:44) at org.codehaus.mojo.surefire.SurefireReportMojo.executeReport(SurefireReportMo jo.java:77) at org.apache.maven.reporting.AbstractMavenReport.generate(AbstractMavenReport. java:117) at org.apache.maven.plugins.site.SiteMojo.generateReportsPages(SiteMojo.java:80 2) at org.apache.maven.plugins.site.SiteMojo.execute(SiteMojo.java:301) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManage r.java:399) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLife cycleExecutor.java:519) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle (DefaultLifecycleExecutor.java:469) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifec ycleExecutor.java:448) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFail ures(DefaultLifecycleExecutor.java:301) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(Defa ultLifecycleExecutor.java:268) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycle Executor.java:137) at
[M2] maven-ejb-plugin: build setup help
Hi there! Im hoping someone can point me in the right direction here. I have done all the research that my head can handle and not found a good example for building the EJB jar file with Maven 2 while using xdoclet. At the moment my pom.xml file has two sections that I think are relevant. The first takes the java/xdoclet code and generates my interfaces for me. plugin artifactIdxdoclet-maven-plugin/artifactId groupIdorg.codehaus.mojo/groupId version1.0-alpha-2/version executions execution phasegenerate-sources/phase goals goalxdoclet/goal /goals configuration tasks ejbdoclet destdir=src/gen/java deploymentdescriptor destDir=target/classes/META-INF/ fileset dir=src/main/java includes=**/*XDoc.java / homeinterface/ localhomeinterface/ localinterface/ mdb/ remoteinterface/ session/ utilobject cacheHomes=true packageSubstitution packages=internal.ejb substituteWith=util / /utilobject weblogic version=8.1 createtables=Disabled validateXML=true destDir=target/classes/META-INF/ /ejbdoclet /tasks /configuration /execution /executions /plugin This is working very nicely for me. Then I have a second plug in which builds the EJBs for me. This is as follows. plugin artifactIdmaven-ejb-plugin/artifactId configuration generateClienttrue/generateClient clientExcludes clientExclude**/internal/**/clientExclude /clientExcludes /configuration /plugin This is where my problem lies. I build the EJB and EJB client jars, which Im very happy about. But there are two things that are wrong. Firstly, the generated code that I have is not being compiled into the project as I would like. I would guess that I need to add it into the pom.xml file as a resource, so I added this section in the build. resource directorysrc/gen/java/directory excludes exclude**/*.java/exclude /excludes /resource This worked well in that the generated classes showed up in Eclipse. But the java files were copied into the JAR files. Adding the exclude stopped this happening. However, with or without the exclude the java was never compiled. How do I add this? Can I enter another source directory somehow? The next problem that I have is that I do not appear to be able to override the default file excludes. I have put the actual EJB implementation (along with all the hibernate and other things that a client does not need to know about) under the package structure com.myco.proj.internal.xxx. So I would like the client EJB JAR to exclude anything that contains a internal in the package name. I have seen number of methods mentioned in various email and on the codehaus website, but none appear to work. Am I missing something? Im sorry for bothering people with this, but I have been looking and am unable to find an example that I can use which goes beyond the basic set up of: plugin artifactIdmaven-ejb-plugin/artifactId configuration generateClienttrue/generateClient /configuration /plugin Then most of the documentation relating to the available properties is for Maven 1. Is there a guide as to how these properties relate to the M2 builds? Thanks in advance for any advice IV - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] Copy the dependencies of a project in a custom plugin
Hi I would like to take this one step further, I need to obtain the details for a single dependency declared in a pom and use it in my plugin: My plugin, which runs SQL scripts, needs to reference the JDBC driver of the plugin users choice. I need to be able to put the jar file containing this users chosen driver onto the classpath that my plugin is using at runtime. - I don't want to break the isolation that my plugin has from the other dependencies in the users pom, I just need the jdbc driver. - I don't want to have to specify the jdbc driver as a dependency for my own plugin because I want lots of people to be able to use this with lots of different drivers. The only way I can think of to do this is to follow the steps outlined in this thread for obtaining a list of artifacts for the pom using the plugin, iterate through the list until I find the one the user has specified to be their jdbc driver (through a property of some kind) and then add that to the classpath being used by my plugin. Although possible, this is a little unwieldy and I can;t help feeling there must be an easy way to do this. So... Is there an existing way to do this, something like my example below (note dependency property) build plugins plugin groupIdmy.group.id/groupId artifactIdplugin-sqlrunner/artifactId version1.0.0-dev/version executions execution phasetest/phase configuration user${db-username}/user pass${db-password}/pass url${db-url}/url driveroracle.jdbc.OracleDriver/driver onerrorcontinue/onerror dependency groupIdojdbc/groupId artifactIdojdbc/artifactId version14/version dependency files file${basedir}/src/main/oracle/BillImage.sql/file file${basedir}/src/main/oracle/RunTimeControls.sql/file file${basedir}/src/main/oracle/audit.sql/file file${basedir}/src/main/oracle/CreateSequences.sql/file /files /configuration goals goalrunsql/goal /goals /execution /executions /plugin /plugins regards Stephen Wim Deblauwe wrote: ok, thanks! That was it. 2005/11/21, Allison, Bob [EMAIL PROTECTED]: The tag @requiresDependencyResolution has to be on the class, not the parameter. -Original Message- From: Wim Deblauwe [mailto:[EMAIL PROTECTED] Sent: Monday, November 21, 2005 06:41 To: Maven Users List Subject: Re: [m2] Copy the dependencies of a project in a custom plugin The collection of artifacts is empty. When I was using dependencies, it was not empty. What am I doing wrong? This is my code: /** * @goal process-resources * @description Copy the dependencies for the InstallShield Merge Module */ public class MsmProcessResourcesMojo extends AbstractMojo { /** * @parameter expression=${project.artifacts} * @requiresDependencyResolution */ private Collection artifacts; /** * @parameter expression=${project.build.directory}/resources */ private File targetDirectory; public MsmProcessResourcesMojo() { } public void execute() throws MojoExecutionException, MojoFailureException { try { getLog().info( Process Resources for InstallShield Merge Module... ); Iterator iterator = artifacts.iterator(); while (iterator.hasNext()) { Artifact artifact = (Artifact)iterator.next(); FileUtils.copyFileToDirectory( artifact.getFile(), new File( targetDirectory, artifact.getType() + s ) ); } } catch (IOException e) { throw new MojoExecutionException( Error copying artifacts, e ); } } } thank you, Wim 2005/11/21, Brett Porter [EMAIL PROTECTED]: maven-artifact and maven-project (though you may not need the project dependency if you are just using the expression below as it is runtime, and Mavne provides it). - Brett On 11/21/05, Wim Deblauwe [EMAIL PROTECTED] wrote: What dependency do I need for the Artifact and Project classes in my Mojo? 2005/11/21, Brett Porter [EMAIL PROTECTED]: On 11/21/05, Wim Deblauwe [EMAIL PROTECTED] wrote: Hi, I'm writing a custom plugin and I need to copy the project's dependencies from the local repository to a certain directory. How can I do this best? You should use ${project.artifacts} instead which includes all the transitive artifacts, and for which you can call artifact.getFile(). Make sure you include @requiresDependencyResolution question 2: When my plugin works, it will produce a different artifact (.msm), how should I handle the 'instal' and 'deploy' of that artifact? Do I need to write my own custom mojo for that or can I re-use the plugins already written for .jar files?
Re: [m2] Copy the dependencies of a project in a custom plugin
Good question. I also noticed that the properties/ subelement of dependency does not exist anymore like in Maven 1. What is the equivalent for that now? regards, Wim 2005/11/21, Stephen Cowx [EMAIL PROTECTED]: Hi I would like to take this one step further, I need to obtain the details for a single dependency declared in a pom and use it in my plugin: My plugin, which runs SQL scripts, needs to reference the JDBC driver of the plugin users choice. I need to be able to put the jar file containing this users chosen driver onto the classpath that my plugin is using at runtime. - I don't want to break the isolation that my plugin has from the other dependencies in the users pom, I just need the jdbc driver. - I don't want to have to specify the jdbc driver as a dependency for my own plugin because I want lots of people to be able to use this with lots of different drivers. The only way I can think of to do this is to follow the steps outlined in this thread for obtaining a list of artifacts for the pom using the plugin, iterate through the list until I find the one the user has specified to be their jdbc driver (through a property of some kind) and then add that to the classpath being used by my plugin. Although possible, this is a little unwieldy and I can;t help feeling there must be an easy way to do this. So... Is there an existing way to do this, something like my example below (note dependency property) build plugins plugin groupIdmy.group.id http://my.group.id/groupId artifactIdplugin-sqlrunner/artifactId version1.0.0-dev/version executions execution phasetest/phase configuration user${db-username}/user pass${db-password}/pass url${db-url}/url driveroracle.jdbc.OracleDriver/driver onerrorcontinue/onerror dependency groupIdojdbc/groupId artifactIdojdbc/artifactId version14/version dependency files file${basedir}/src/main/oracle/BillImage.sql/file file${basedir}/src/main/oracle/RunTimeControls.sql/file file${basedir}/src/main/oracle/audit.sql/file file${basedir}/src/main/oracle/CreateSequences.sql/file /files /configuration goals goalrunsql/goal /goals /execution /executions /plugin /plugins regards Stephen Wim Deblauwe wrote: ok, thanks! That was it. 2005/11/21, Allison, Bob [EMAIL PROTECTED]: The tag @requiresDependencyResolution has to be on the class, not the parameter. -Original Message- From: Wim Deblauwe [mailto:[EMAIL PROTECTED] Sent: Monday, November 21, 2005 06:41 To: Maven Users List Subject: Re: [m2] Copy the dependencies of a project in a custom plugin The collection of artifacts is empty. When I was using dependencies, it was not empty. What am I doing wrong? This is my code: /** * @goal process-resources * @description Copy the dependencies for the InstallShield Merge Module */ public class MsmProcessResourcesMojo extends AbstractMojo { /** * @parameter expression=${project.artifacts} * @requiresDependencyResolution */ private Collection artifacts; /** * @parameter expression=${project.build.directory}/resources */ private File targetDirectory; public MsmProcessResourcesMojo() { } public void execute() throws MojoExecutionException, MojoFailureException { try { getLog().info( Process Resources for InstallShield Merge Module... ); Iterator iterator = artifacts.iterator(); while (iterator.hasNext()) { Artifact artifact = (Artifact)iterator.next(); FileUtils.copyFileToDirectory( artifact.getFile(), new File( targetDirectory, artifact.getType() + s ) ); } } catch (IOException e) { throw new MojoExecutionException( Error copying artifacts, e ); } } } thank you, Wim 2005/11/21, Brett Porter [EMAIL PROTECTED]: maven-artifact and maven-project (though you may not need the project dependency if you are just using the expression below as it is runtime, and Mavne provides it). - Brett On 11/21/05, Wim Deblauwe [EMAIL PROTECTED] wrote: What dependency do I need for the Artifact and Project classes in my Mojo? 2005/11/21, Brett Porter [EMAIL PROTECTED]: On 11/21/05, Wim Deblauwe [EMAIL PROTECTED] wrote: Hi, I'm writing a custom plugin and I need to copy the project's dependencies from the local repository to a certain directory. How can I do this best? You should use ${project.artifacts} instead which includes all the transitive artifacts, and for which you can call artifact.getFile(). Make sure you include @requiresDependencyResolution question 2: When my plugin works, it will produce a different artifact (.msm), how should I handle the 'instal' and 'deploy' of that artifact? Do I need to write my own custom mojo for that or can I re-use the plugins already written for .jar files? You can reuse the mojos, but you will still need to define the customisations, which will require a plugin. There are examples in the
Re: How to disable transitive dependency?
Hi John, Thanks for your suggestion. It worths a look! But I still think the ability to disable transitive dependency would be a good thing. It just doesn't feel right to me to exclude more dependencies than I really need. Eric On 11/18/05, John Tolentino [EMAIL PROTECTED] wrote: Hi Eric, If you look at it's pom ( http://www.ibiblio.org/pub/packages/maven2/acegisecurity/acegi-security/0.9.0/acegi-security-0.9.0.pom ), this artifact have 21 direct dependencies. Exclude those and the other transitive dependencies will be excluded as well. You can easily do this if you copy those dependencies from the artifact's pom and paste it to your exclusions. A find and replace for dependency to exclusion within your copied text won't take that much time. Hope this helps. Regards, John Eric Jacob wrote: Hi, Putting the following dependency results in 72 jars downloaded in WEB-INF/lib! dependency groupIdacegisecurity/groupId artifactIdacegi-security/artifactId version0.9.0/version scoperuntime/scope /dependency Of course, I can exclude unecessary dependencies, but it's a real pain. A better solution would be to disable transitive dependencies all together. Is it supported? Thanks. Eric - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [m2] Surefire report Locale
I've opened a JIRA issue on this point. There is definitly a line in the Parser not taking the Locale into account http://jira.codehaus.org/browse/MOJO-128 Hope someone will be able to fix it (shouldn't be that difficult). Thx Denis - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] Copy the dependencies of a project in a custom plugin
Is it also possible to only get the first-line dependencies? I notice the website can create a distintion between the direct dependencies and the dependencies of the dependencies. regards, Wim 2005/11/21, Allison, Bob [EMAIL PROTECTED]: The tag @requiresDependencyResolution has to be on the class, not the parameter. -Original Message- From: Wim Deblauwe [mailto:[EMAIL PROTECTED] Sent: Monday, November 21, 2005 06:41 To: Maven Users List Subject: Re: [m2] Copy the dependencies of a project in a custom plugin The collection of artifacts is empty. When I was using dependencies, it was not empty. What am I doing wrong? This is my code: /** * @goal process-resources * @description Copy the dependencies for the InstallShield Merge Module */ public class MsmProcessResourcesMojo extends AbstractMojo { /** * @parameter expression=${project.artifacts} * @requiresDependencyResolution */ private Collection artifacts; /** * @parameter expression=${project.build.directory}/resources */ private File targetDirectory; public MsmProcessResourcesMojo() { } public void execute() throws MojoExecutionException, MojoFailureException { try { getLog().info( Process Resources for InstallShield Merge Module... ); Iterator iterator = artifacts.iterator(); while (iterator.hasNext()) { Artifact artifact = (Artifact)iterator.next(); FileUtils.copyFileToDirectory( artifact.getFile(), new File( targetDirectory, artifact.getType() + s ) ); } } catch (IOException e) { throw new MojoExecutionException( Error copying artifacts, e ); } } } thank you, Wim 2005/11/21, Brett Porter [EMAIL PROTECTED]: maven-artifact and maven-project (though you may not need the project dependency if you are just using the expression below as it is runtime, and Mavne provides it). - Brett On 11/21/05, Wim Deblauwe [EMAIL PROTECTED] wrote: What dependency do I need for the Artifact and Project classes in my Mojo? 2005/11/21, Brett Porter [EMAIL PROTECTED]: On 11/21/05, Wim Deblauwe [EMAIL PROTECTED] wrote: Hi, I'm writing a custom plugin and I need to copy the project's dependencies from the local repository to a certain directory. How can I do this best? You should use ${project.artifacts} instead which includes all the transitive artifacts, and for which you can call artifact.getFile(). Make sure you include @requiresDependencyResolution question 2: When my plugin works, it will produce a different artifact (.msm), how should I handle the 'instal' and 'deploy' of that artifact? Do I need to write my own custom mojo for that or can I re-use the plugins already written for .jar files? You can reuse the mojos, but you will still need to define the customisations, which will require a plugin. There are examples in the introduction to the build lifecycle. Cheers, Brett - 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] how to run a goal by specifying the plugin only - default goal?
I have created a plugin that can be run via buildnumber:create Then I remembered that the clean plugin can be startet, by simply run clean. How I have to declare the plugin that there is a default goal? Heiko - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [M2] how to run a goal by specifying the plugin only - default goal?
Hi I saw some notes on how to do this in: http://maven.apache.org/guides/plugin/guide-java-plugin-development.html See the section on Shortening the Command Line I haven't tried it so I don't know if it works but it seems to be what you are asking for Regards Stephen puschteblume wrote: I have created a plugin that can be run via buildnumber:create Then I remembered that the clean plugin can be startet, by simply run clean. How I have to declare the plugin that there is a default goal? Heiko - 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] maven-ejb-plugin: build setup help
Yes, the situation is very bad as far as documentation is concerned, there's even less documentation on how to generate hibernate artifacts... Ian Vellosa wrote: Hi there! I’m hoping someone can point me in the right direction here. I have done all the research that my head can handle and not found a good example for building the EJB jar file with Maven 2 while using xdoclet. At the moment my pom.xml file has two sections that I think are relevant. The first takes the java/xdoclet code and generates my interfaces for me. plugin artifactIdxdoclet-maven-plugin/artifactId groupIdorg.codehaus.mojo/groupId version1.0-alpha-2/version executions execution phasegenerate-sources/phase goals goalxdoclet/goal /goals configuration tasks ejbdoclet destdir=src/gen/java deploymentdescriptor destDir=target/classes/META-INF/ fileset dir=src/main/java includes=**/*XDoc.java / homeinterface/ localhomeinterface/ localinterface/ mdb/ remoteinterface/ session/ utilobject cacheHomes=true packageSubstitution packages=internal.ejb substituteWith=util / /utilobject weblogic version=8.1 createtables=Disabled validateXML=true destDir=target/classes/META-INF/ /ejbdoclet /tasks /configuration /execution /executions /plugin This is working very nicely for me. Then I have a second plug in which builds the EJBs for me. This is as follows. plugin artifactIdmaven-ejb-plugin/artifactId configuration generateClienttrue/generateClient clientExcludes clientExclude**/internal/**/clientExclude /clientExcludes /configuration /plugin This is where my problem lies. I build the EJB and EJB client jars, which I’m very happy about. But there are two things that are wrong. Firstly, the generated code that I have is not being compiled into the project as I would like. I would guess that I need to add it into the pom.xml file as a resource, so I added this section in the build. resource directorysrc/gen/java/directory excludes exclude**/*.java/exclude /excludes /resource This worked well in that the generated classes showed up in Eclipse. But the java files were copied into the JAR files. Adding the exclude stopped this happening. However, with or without the exclude the java was never compiled. How do I add this? Can I enter another source directory somehow? The next problem that I have is that I do not appear to be able to override the default file excludes. I have put the actual EJB implementation (along with all the hibernate and other things that a client does not need to know about) under the package structure com.myco.proj.internal.xxx. So I would like the client EJB JAR to exclude anything that contains a ‘internal’ in the package name. I have seen number of methods mentioned in various email and on the codehaus website, but none appear to work. Am I missing something? I’m sorry for bothering people with this, but I have been looking and am unable to find an example that I can use which goes beyond the basic set up of: plugin artifactIdmaven-ejb-plugin/artifactId configuration generateClienttrue/generateClient /configuration /plugin Then most of the documentation relating to the available properties is for Maven 1. Is there a guide as to how these properties relate to the M2 builds? Thanks in advance for any advice IV - 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 run a goal by specifying the plugin only - default goal?
Hi Stephen Thanks. But this hint gives you access to the plugin directly, without specifying it in the pom or run it by specifying groupid:artifact:version .. Heiko Stephen Cowx wrote: Hi I saw some notes on how to do this in: http://maven.apache.org/guides/plugin/guide-java-plugin-development.html See the section on Shortening the Command Line I haven't tried it so I don't know if it works but it seems to be what you are asking for Regards Stephen puschteblume wrote: I have created a plugin that can be run via buildnumber:create Then I remembered that the clean plugin can be startet, by simply run clean. How I have to declare the plugin that there is a default goal? Heiko - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] . - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [M2] maven-ejb-plugin: build setup help
To fix your first problem I believe you need ejbdoclet destdir=${project.build.directory}/generated-sources/xdoclet and deploymentdescriptor destDir=${project.build.outputDirectory}/META-INF/ it seems unless the .java is generated to here it is not picked up - not sure why though or how to change. On 21/11/05, Srepfler Srgjan [EMAIL PROTECTED] wrote: Yes, the situation is very bad as far as documentation is concerned, there's even less documentation on how to generate hibernate artifacts... Ian Vellosa wrote: Hi there! I'm hoping someone can point me in the right direction here. I have done all the research that my head can handle and not found a good example for building the EJB jar file with Maven 2 while using xdoclet. At the moment my pom.xml file has two sections that I think are relevant. The first takes the java/xdoclet code and generates my interfaces for me. plugin artifactIdxdoclet-maven-plugin/artifactId groupIdorg.codehaus.mojo/groupId version1.0-alpha-2/version executions execution phasegenerate-sources/phase goals goalxdoclet/goal /goals configuration tasks ejbdoclet destdir=src/gen/java deploymentdescriptor destDir=target/classes/META-INF/ fileset dir=src/main/java includes=**/*XDoc.java / homeinterface/ localhomeinterface/ localinterface/ mdb/ remoteinterface/ session/ utilobject cacheHomes=true packageSubstitution packages=internal.ejb substituteWith=util / /utilobject weblogic version=8.1 createtables=Disabled validateXML=true destDir=target/classes/META-INF/ /ejbdoclet /tasks /configuration /execution /executions /plugin This is working very nicely for me. Then I have a second plug in which builds the EJBs for me. This is as follows. plugin artifactIdmaven-ejb-plugin/artifactId configuration generateClienttrue/generateClient clientExcludes clientExclude**/internal/**/clientExclude /clientExcludes /configuration /plugin This is where my problem lies. I build the EJB and EJB client jars, which I'm very happy about. But there are two things that are wrong. Firstly, the generated code that I have is not being compiled into the project as I would like. I would guess that I need to add it into the pom.xml file as a resource, so I added this section in the build. resource directorysrc/gen/java/directory excludes exclude**/*.java/exclude /excludes /resource This worked well in that the generated classes showed up in Eclipse. But the java files were copied into the JAR files. Adding the exclude stopped this happening. However, with or without the exclude the java was never compiled. How do I add this? Can I enter another source directory somehow? The next problem that I have is that I do not appear to be able to override the default file excludes. I have put the actual EJB implementation (along with all the hibernate and other things that a client does not need to know about) under the package structure com.myco.proj.internal.xxx. So I would like the client EJB JAR to exclude anything that contains a 'internal' in the package name. I have seen number of methods mentioned in various email and on the codehaus website, but none appear to work. Am I missing something? I'm sorry for bothering people with this, but I have been looking and am unable to find an example that I can use which goes beyond the basic set up of: plugin artifactIdmaven-ejb-plugin/artifactId configuration generateClienttrue/generateClient /configuration /plugin Then most of the documentation relating to the available properties is for Maven 1. Is there a guide as to how these properties relate to the M2 builds? Thanks in advance for any advice IV - 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] Impossible to use 1.5 sources in plugin?
Hi there, I'm developing a plugin for Maven, and I have found the following error: com.thoughtworks.qdox.parser.ParseException: syntax error @[28,47] in file:/C:/Documents and Settings/jgonzalez/Mis documentos/proyecto s/otros/maven-opendocbook-plugin/src/main/java/com/openinput/tools/maven/opendocbook/FilePathComparator.java at com.thoughtworks.qdox.parser.impl.Parser.yyerror(Parser.java:504) at com.thoughtworks.qdox.parser.impl.Parser.yyparse(Parser.java:610) at com.thoughtworks.qdox.parser.impl.Parser.parse(Parser.java:488) at com.thoughtworks.qdox.JavaDocBuilder.addSource(JavaDocBuilder.java:296) at com.thoughtworks.qdox.JavaDocBuilder.addSource(JavaDocBuilder.java:312) at com.thoughtworks.qdox.JavaDocBuilder.addSource(JavaDocBuilder.java:308) at com.thoughtworks.qdox.JavaDocBuilder$1.visitFile(JavaDocBuilder.java:365) at com.thoughtworks.qdox.directorywalker.DirectoryScanner.walk(DirectoryScanner.java:43) at com.thoughtworks.qdox.directorywalker.DirectoryScanner.walk(DirectoryScanner.java:34) at com.thoughtworks.qdox.directorywalker.DirectoryScanner.walk(DirectoryScanner.java:34) at com.thoughtworks.qdox.directorywalker.DirectoryScanner.walk(DirectoryScanner.java:34) at com.thoughtworks.qdox.directorywalker.DirectoryScanner.walk(DirectoryScanner.java:34) at com.thoughtworks.qdox.directorywalker.DirectoryScanner.walk(DirectoryScanner.java:34) at com.thoughtworks.qdox.directorywalker.DirectoryScanner.walk(DirectoryScanner.java:34) at com.thoughtworks.qdox.directorywalker.DirectoryScanner.scan(DirectoryScanner.java:52) at com.thoughtworks.qdox.JavaDocBuilder.addSourceTree(JavaDocBuilder.java:362) at org.apache.maven.tools.plugin.extractor.java.JavaMojoDescriptorExtractor.execute(JavaMojoDescriptorExtractor.java:477) at org.apache.maven.tools.plugin.scanner.DefaultMojoScanner.populatePluginDescriptor(DefaultMojoScanner.java:69) at org.apache.maven.plugin.plugin.AbstractGeneratorMojo.execute(AbstractGeneratorMojo.java:99) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:399) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:519) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:469) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:448) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:301) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:268) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:137) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:316) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:113) at org.apache.maven.cli.MavenCli.main(MavenCli.java:249) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) The problem seems to be related to a class that uses generics... is there any way to tell qdox to use 1.5 sources? Or qdox is just unable to handle 1.5 sources? In that case, does that mean that we can't use 1.5 sources for plugin development? Best regards Jose - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Plugin Unit Tests?
Thx, Have found it in the sandbox a suggested. Regards On 18/11/05, Sena Gbeckor-Kove [EMAIL PROTECTED] wrote: Hi Bob, I am trying to use your RPM plugin but can't find th code in svn and the download link on the site doesn't work. Are you still working on it? Thx On 15/11/05, Allison, Bob [EMAIL PROTECTED] wrote: That was it. Thanks! -Original Message- From: John Casey [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 15, 2005 11:35 To: Maven Users List Subject: Re: Plugin Unit Tests? -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 The sandbox got moved out of /components/trunk... :-) New URL is: https://svn.apache.org/repos/asf/maven/sandbox/plugins/maven-it-plugin/ HTH, - -john Allison, Bob wrote: | OK. Maybe I'm not checking out the correct maven2 trunk. | | The URL I am using is | http://svn.apache.org/repos/asf/maven/components/trunk; (which is the | URL specified in the Building Maven 2.0 document. In the top | directory of the stuff checked out are benchmark, bootstrap, | examples, integration-tests, a few files, and a number of | directories named maven- There is no directory named sandbox or | components or plugins and the maven-plugins directory does not | have anything named sandbox. | | Please tell me what I am missing. | | -Original Message- | From: Vincent Massol [mailto:[EMAIL PROTECTED] | Sent: Tuesday, November 15, 2005 10:19 | To: 'Maven Users List' | Subject: RE: Plugin Unit Tests? | | | Bob, | | |-Original Message- |From: Allison, Bob [mailto:[EMAIL PROTECTED] |Sent: mardi 15 novembre 2005 15:51 |To: Maven Users List |Subject: RE: Plugin Unit Tests? | |I don't see maven-components/sandbox or anything named it in |mojo/mojo-sandbox. | |Could you be a little more specific where the plugin is located? | | | It's not in mojo, it's in the maven2 trunk. If you check it out you'll | see a | components/sandbox/plugins dir | | -Vincent | | |-Original Message- |From: Vincent Massol [mailto:[EMAIL PROTECTED] |Sent: Tuesday, November 15, 2005 09:46 |To: 'Maven Users List' |Subject: RE: Plugin Unit Tests? | | |Hi Bob, | |To test a plugin the best solution is to use the it plugin in |components/sandbox/plugins. | |It allows you to put test projects in src/test/it. | |-Vincent | | |-Original Message- |From: Allison, Bob [mailto:[EMAIL PROTECTED] |Sent: mardi 15 novembre 2005 15:35 |To: Maven Users List |Subject: Plugin Unit Tests? | |I was trying to build some unit tests for the RPM plugin and am | |running | |into a chicken-and-egg problem. To test the newly-compiled plugin, | | it | |seems that I need to complete the install phase so that the plugin | | is | |available for the tests to run. If I alter the configuration to | | skip | |the unit tests, it will install the new plugin but I can't run any | |tests | |(since they are skipped). | |Am I taking the wrong approach? | | | | - | |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] | | | -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.6 (GNU/Linux) iD8DBQFDeg4AK3h2CZwO/4URAtXeAJ9wxilZQT33kiZWQ2yxb3PeOZ47YwCgpFh7 vsbbuhRAuJPgjZN4lag0zUI= =gKKP -END PGP SIGNATURE- - 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] new xjc plugin announcement
http://mojo.codehaus.org/xjc-maven-plugin/index.html The xjc plugin has now been re-implemented to delegate to the jaxme ant task. http://ws.apache.org/jaxme/manual/ch02.html#N10199 Any issues then please email me direct [EMAIL PROTECTED] as I don't believe a jira entry has been set up yet. Download and install: svn co https://svn.codehaus.org/mojo/trunk cd trunk/mojo/mojo-sandbox/maven-xjc-plugin mvn clean install Usage: From the top level readme.txt file here is an example of the plugin config: plugin groupIdorg.codehaus.mojo/groupId artifactIdxjc-maven-plugin/artifactId version1.0-beta-2-SNAPSHOT/version executions execution goals goalxjc/goal /goals configuration task![CDATA[ xjc schema=src/main/resources/com/acme/ services.xsd package=com.acme/ ]]/task /configuration /execution /executions /plugin You can continue using the original config but make sure you change the goal to xjc2 rather than xjc and bear in mind I won't be supporting it for much longer. Notice that there is no need to specify destDir as these maven related settings are applied automatically to the ant task. Notice also that you need a CDATA section as I haven't worked out how to embed xml in the config as yet! Thanks - Ashley - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [m2] how do i exclude a specific file or list of files from a jar in m2
Hello how do i exclude a specific file or list of files from a jar in m2. I looked in the documentation on maven.apache.org but couldn't find the answer thx - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
m1.1b2 SET MAVEN_OPTS=-XX:MaxPermSize=1024m doesn't work
Hi all I'm experiencing a problem with JVM heap size (maven multiproject:site fails when JVM memory usage reaches to 220m) I've tried SET MAVEN_OPTS=-XX:MaxPermSize=1024m from command line it didn't work, I changed MAVEN_OPTS value from %MAVEN_HOME%/bin/maven to 1024(originaly it was 256m) and when this too didn't help I started to think that this is a bug in maven1.1 beta 2, did anyone have success changing this value? am I doing something wrong? Thank you in advance for your time and help! Regards, Tigran Antonyan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] how do i exclude a specific file or list of files from a jar in m2
http://maven.apache.org/maven-model/maven.html Check for resource. There is a exclude tag. I think, this is what you are looking for. Heiko Maruf Aytekin wrote: Hello how do i exclude a specific file or list of files from a jar in m2. I looked in the documentation on maven.apache.org but couldn't find the answer thx - 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] Installing 3rd Party Jars with POMs
Well, that certainly worked to install the POM in a second command. How far-fetched would it be to add a property to the install-file goal to copy the POM at the same time? ..David.. -Original Message- From: Allan Ramirez [mailto:[EMAIL PROTECTED] Sent: Friday, November 18, 2005 5:21 PM To: Maven Users List Subject: Re: [m2] Installing 3rd Party Jars with POMs Hi, Add the -DgeneratePom=true argument to the command. This will generate a generic pom in your local repo along with your jar. If you want to install your created pom, you should execute the install:install-file again with the groupId, artifactId, version of the jar you've installed and with a packaging of pom -allan David Jackman wrote: I've read the GSG page for installing 3rd party jars, but it says nothing about how to get a corresponding POM installed along with the .jar. Is there a way for me to install a POM I've created for the jar at the same time, or is everyone pretty much copying that in by hand. Should I file an enhancement issue for the install plugin to allow this? ..David.. --- - No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.362 / Virus Database: 267.13.3/174 - Release Date: 11/17/2005 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE : [m2] mojo report (sink mandatory content ?)
Ok sorry. I didn't know what made isExternalReport(). Now I'm really sure ;-) - Olivier -Message d'origine- De : Olivier Lamy [mailto:[EMAIL PROTECTED] Envoyé : lundi 21 novembre 2005 13:30 À : Maven Users List Objet : [m2] mojo report (sink mandatory content ?) Hi, I have a question concerning doxia Sink in report Mojo. Is there any mandatory content in Sink ? Actually I try the very simple : Sink sink = getSink(); sink.head(); sink.text(Test Report); sink.head_(); sink.body(); sink.text(test); sink.body_(); sink.flush(); sink.close(); As I understand the html page will be getOutputName() . html ? Or I have probably forgot content in the sink. My pom has dependency : dependency groupIddoxia/groupId artifactIddoxia-sink-api/artifactId version1.0-alpha-4/version /dependency Thanks for help, - Olivier 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 electronique et tous les fichiers joints ainsi que les informations contenues dans ce message ( ci apres le message ), sont confidentiels et destines exclusivement a l'usage de la personne a laquelle ils sont adresses. Si vous avez recu ce message par erreur, merci de le renvoyer a son emetteur et de le detruire. Toutes diffusion, publication, totale ou partielle ou divulgation sous quelque forme que se soit non expressement autorisees de ce message, sont interdites. ** - 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: m1.1b2 junit-report and jcoverage plugins don't share resources (running unit test twice)
Hi all, I have 2 plugins enabled for unit test reports: junit-report and jcoverage, now each one of them is running unit test for itself and I was wondering if there is a way to make one of them (any one of them) to use already generated reports from other plugin and not run the test again (this causes maven to fail on my machine because of java heap size (can't change it) ). While surfing in jira I found similar problem that has been solved for junit and clover (added new property to clover plugin) http://jira.codehaus.org/browse/MPCLOVER-18 Now I couldn't find anything for neither one of my plugins, does anyone know a way around this? Thank you in advance, Regards, Tigran Antonyan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] org.apache.maven.lifecycle.LifecycleExecutionException: The plugin 'org.apache.maven.plugins:maven-resources-plugin' does not exist or no valid version could be found
I'm getting this also trying to set up and run the example. Any idea. We also do not have or need a proxy... Frank Russo Senior Developer FX Alliance, LLC I think repo1.maven.org is having some issues at present. We're working to rectify them - please try again soon. You can also set up a mirror - there should be instructions on the web site. - Brett On 11/2/05, cameron clarke [EMAIL PROTECTED] wrote: Caveat ...I'm new to Maven! Downloaded installed successfully, mvn -v works OK. Following Maven getting started guide.. mvn archetype:create -DgroupId=uk.co.something -DartifactId=projName pom.xml / directory structures / App.java and AppTest.java created. (modified pom.xml for jdk1.5 as prescribed in FAQ) ..here's the problem (I'm not behind a firewall and can browse http://www.ibiblio.org/maven2/ via firefox without proxy settings) mvn compile ...results in : [INFO] Scanning for projects... [INFO] - --- [INFO] Building Maven Quick Start Archetype [INFO]task-segment: [compile] [INFO] - --- [INFO] - --- [ERROR] BUILD ERROR [INFO] - --- [INFO] The plugin 'org.apache.maven.plugins:maven-resources-plugin' does not exi st or no valid version could be found [INFO] - --- [INFO] For more information, run Maven with the -e switch [INFO] - --- [INFO] Total time: 1 second [INFO] Finished at: Tue Sep 20 01:41:48 BST 2005 [INFO] Final Memory: 1M/2M [INFO] - Many thanks in advance. :-) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Weird output on generated FAQ page
hi, i am trying to make use of the FML format for some project FAQs. i am basing my soruce files on the ones i found on http://svn.apache.org/viewcvs.cgi/maven/site/trunk/src/site/fml/ but instead of getting an output similar to http://maven.apache.org/general.html#Compiling-J2SE-5(it is placed on its own sub-section), the FAQ items i am getting are placed on concentric yellow boxes. the ToC at the top works so I am wondering if there is a known issue related to this. below is my fml file: === ?xml version=1.0? faqs title=Frequently Asked Technical Questions part id=faq-main faq id=multiple-ant-execution questionWhat is the recommended practice on attaching antrun plugin executions to different build phases?/question answer p Only one declaration of the antrun plugin is recommended. The project descriptor can define different executions to be triggered on different phases by specifying an execution id in tandem with the target phase. /p source![CDATA[ build ... plugins sample here /plugins ... /build ]]/source /answer /faq /part /faqs === thanks. ciao! -- Programming, an artform that fights back Anuerin G. Diaz Registered Linux User #246176 Friendly Linux Board @ http://mandrivausers.org/index.php http://capsule.ramfree17.org , when you absolutely have nothing else better to do - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Automate the build.
how to set time in maven.xml to run the build in every day night 12 AM. we are runing maven in ret hat linux 9. crontab does not run maven script, so i tried cruise controller, but i couldn't find linux version, seems to be not supporting linux, is it true? pls help me, how to do nightly build. Thanks charles _ Vroom, Vrom! Get ready for the real speed. Drive the machine of your choice http://www.sulekha.com/classifieds/cllist.aspx?catid=280nma=INc=Autosref=msnref2=atx10 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Automate the build.
You can try continuum : http://maven.apache.org/continuum/ Emmanuel Charles Anto a écrit : how to set time in maven.xml to run the build in every day night 12 AM. we are runing maven in ret hat linux 9. crontab does not run maven script, so i tried cruise controller, but i couldn't find linux version, seems to be not supporting linux, is it true? pls help me, how to do nightly build. Thanks charles _ Vroom, Vrom! Get ready for the real speed. Drive the machine of your choice http://www.sulekha.com/classifieds/cllist.aspx?catid=280nma=INc=Autosref=msnref2=atx10 - 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: Automate the build.
Charles Anto wrote: how to set time in maven.xml to run the build in every day night 12 AM. we are runing maven in ret hat linux 9. crontab does not run maven script I you can run your Maven script from the command line, you should be able to run it via cron, too. Make sure the cron user has the same environment as your test user. , so i tried cruise controller, but i couldn't find linux version, seems to be not supporting linux, is it true? Continuum and Cruisecontrol (to name only two automated build tools) are both implemented in Java. A virtual machine for Linux is available. If you can run Maven on Linux, you can run Continuum or Cruisecontrol aswell. See http://maven.apache.org/continuum/index.html http://cruisecontrol.sourceforge.net/gettingstarted.html Kind regards, Gisbert Amm - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Deploy Version
Is there a way to determine what version of an artifact was deployed after the deploy step runs. ie. ${project.build.finalName} still contains sample-1.0.0-SNAPSHOT and not the version that was released (ie. sample-1.0.0--20051121.162713-2.jar). Is there any variable set after the deploy step to help me determine what was just deployed to the remote repository? Thanks Duane Homick Sandvine Inc. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] can't reach maven-proxy
Hi, thank you for your answer, Edwin. But what I am trying to do is to set up an internal central repository as wrote at http://maven.apache.org/guides/introduction/introduction-to-repositories.html : It is not recommended that you scrape or rsync:// a full copy of Ibiblio as there is a large amount of data there. You can use a program such as Maven Proxy, running on your internal repository's server, to download from the internet as required and then hold the artifacts in your internal repository for faster downloading later. When I start Maven-proxy, It is wrote in the Windows command : Add the following to your ~/build.properties file: maven.repo.remote=http://localhost:/repository; But I'm using maven2. So I put the remote repository in setting.xml. What's wrong ? \|/ -o o- --o00-(_)-00o- Didier BRICHET Mél : [EMAIL PROTECTED] --oo00---00oo- Edwin Punzalan a écrit : Hi, are you sure its proxy you want? Proxies only forwards requests from private machines to those on the internet. If you want maven to go to your own repository, then setup a repository with id central so that the ibiblio repo will be overridden in your pom.xml. Or if you want to put it in your settings.xml, use mirror. Didier BRICHET wrote: Hello, I'm trying maven in a corporate environnement. My problem is to use maven-proxy, to sit on my main server and imitate ibiblio. To do this, on a Windows XP machine with internet connection, I set my user settings (in .m2 directory) like this : |settings profiles profile idmyprofile/id repositories repository idcentral/id nameyour custom repo/name urlhttp://localhost:/repository/url /repository /repositories pluginRepositories pluginRepository idcentral/id nameyour custom repo/name urlhttp://localhost://url /pluginRepository /pluginRepositories /profile /profiles activeProfiles activeProfilemyprofile/activeProfile /activeProfiles /settings | Maven-proxy is running well (I can administrate it with a web browser at http://localhost:) In a empty directory, I try this |mvn archetype:create -DgroupId=com.mycompany.app -DartifactId=my-app| This work fine, but all downloads are done from http://repo1.maven.org/maven2 ! And not from maven-proxy ! Maven-proxy cache is empty, and these no log in it's command window. It seems that maven do not reach maven-proxy. What's wrong with my configuration ? Thank's by advance. - 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] How to skip tests in packaging
Hello, I'm trying to bypass testing in package phase (creating a WAR). Anyone knows how could I perform this? Thanks in advance! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] How to skip tests in packaging
mvn -Dmaven.test.skip=true package Rubén Barroso a écrit : Hello, I'm trying to bypass testing in package phase (creating a WAR). Anyone knows how could I perform this? Thanks in advance! - 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] delicious bookmarks plugin comments
(hammer looks for nail) Hi, Just trying to find out if anybody would find it useful to have a maven delicious bookmarks plugin. I've created a java module that allows me to access various delicious functionality at the command line - originally because I wanted a way to export my Safari bookmarks, which are several hundred in number - and so thought I'd wrap it into a maven plugin. But after racking my brains I realized I couldn't think of a single reason to mavenize this code - so just wondering if anyone might have any bright ideas. Not expecting much, but just wanted to be sure before I possibly abandon the idea. Thanks - Ashley - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to disable transitive dependency?
I think there's something more wrong if a jar says it has dependencies and it doesn't actually need them. Are you sure you don't need these? If so, consider using your own repository before ibiblio and strip these of their dependencies. On 11/21/05, Eric Jacob [EMAIL PROTECTED] wrote: Hi John, Thanks for your suggestion. It worths a look! But I still think the ability to disable transitive dependency would be a good thing. It just doesn't feel right to me to exclude more dependencies than I really need. Eric On 11/18/05, John Tolentino [EMAIL PROTECTED] wrote: Hi Eric, If you look at it's pom ( http://www.ibiblio.org/pub/packages/maven2/acegisecurity/acegi-security/0.9.0/acegi-security-0.9.0.pom ), this artifact have 21 direct dependencies. Exclude those and the other transitive dependencies will be excluded as well. You can easily do this if you copy those dependencies from the artifact's pom and paste it to your exclusions. A find and replace for dependency to exclusion within your copied text won't take that much time. Hope this helps. Regards, John Eric Jacob wrote: Hi, Putting the following dependency results in 72 jars downloaded in WEB-INF/lib! dependency groupIdacegisecurity/groupId artifactIdacegi-security/artifactId version0.9.0/version scoperuntime/scope /dependency Of course, I can exclude unecessary dependencies, but it's a real pain. A better solution would be to disable transitive dependencies all together. Is it supported? Thanks. Eric - 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 skip tests in packaging
Thanks a lot, but I actually meant how could I achieve that configuring it through the pom. Is it possible? Thanks again. 2005/11/21, Emmanuel Venisse [EMAIL PROTECTED]: mvn -Dmaven.test.skip=true package Rubén Barroso a écrit : Hello, I'm trying to bypass testing in package phase (creating a WAR). Anyone knows how could I perform this? Thanks in advance! - 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] Is this correct behavior for optional dependency?
Based on my reading of the docs and the mail archives, adding optionaltrue/optional to a dependency should affect other projects that depend on my project, but not affect the building of my own project. Is that true? Right now, I'm seeing otherwise. If I mark a dependency as optional, then it's not included in my own project build, and therefore the compilation fails. ..David..
Re: [M2] List of available Archetypes
How do I find out what each one does? Is that documented anywhere? This is what I have found out by wandering around in the docs: j2ee - ? mojo - ? portlet - ? profiles - ? quickstart - default version for java projects with packaging=jar site - ? (I remember seeing this explained somewhere but can't remember what it does.) webapp - generates WEB-INF and such that are needed for a project that turns into a WAR. You need to add in the src/main/java if there is java source. The default is set up for a bunch of jsp or html files. On 11/18/05, Eric Jacob [EMAIL PROTECTED] wrote: http://svn.apache.org/viewcvs.cgi/maven/archetype/trunk/maven-archetypes/ HTH Eric On 11/18/05, Mayorgaadame, Alex [IT] [EMAIL PROTECTED] wrote: Hello all, This may be an easy one, but I've lost track of maven lately. Anyone can tell me the archetypes that are still valid for Maven 2.0? Thanks and regards, Alex - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -- Lee Meador Sent from gmail. My real email address is [EMAIL PROTECTED]
Re: [m2] Generating Source in Ant
If I go here: http://jira.codehaus.org/secure/Dashboard.jspa There is no maven-antrun-plugin project. All the other maven plugins seem to be there. But if I go to: http://jira.codehaus.org/browse/MNG?report=com.atlassian.jira.plugin.system.project:openissues-panel (I got there by picking the maven2 project on the previous page and then clicking the open issues tab.) Any way .. on that page it shows 3 issues unter maven-antrun-plugin. How do I add a Jira issue in this case? Are there more instructions anywhere? thanks -- Lee Meador On 11/18/05, Brett Porter [EMAIL PROTECTED] wrote: Thanks for this! On 11/19/05, Lee Meador [EMAIL PROTECTED] wrote: 1) Create an email 2) Put a commit message in it 3) Put some sort of special subject on it 4) Attach the patch file to it or maybe include the patch as part of the text of the email. Where do I send this email? What should the subject look like? Does the patch file get attached or included? I can see how that's confusing. I'd reword it as: Attach the patch file to the jira issue (create a new one if you are working on a new issue), with a brief comment explaining what the patch does We really prefer it sent to jira as an attached file as it is much easier to track and apply. Thanks again! Cheers, Brett - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -- Lee Meador Sent from gmail. My real email address is [EMAIL PROTECTED]
Re: [m2] how to use javacc?
if you tell me how jjtree works then I'll see about putting it in the javacc plugin..I think I was the last guy to touch the javacc mojo plugin so I'll put this in if you let me know what it needs to do.. lemme poke around and learn something about jjtree and see what I can do jesse On 11/21/05, Hubert Iwaniuk [EMAIL PROTECTED] wrote: Hi Allan, Thanks for your reply. Is there other way to use jjtree in maven, for example some ant script? Thanks in advance, Hubert. Dnia 21-11-2005, pon o godzinie 13:52 +0800, Allan Ramirez napisał(a): Hi Hubert, jjtree is not yet available in the javacc-maven-plugin. But it will have soon. regards, -allan Hubert Iwaniuk wrote: Hi, Please help me getting javacc jjtree generation work in maven. I simply can't figureout how to set properties, so mojo will know where is jjt file, and how to make code generation occure before code compilation. I'm new to maven at all. Thanks for you help, Hubert. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- jesse mcconnell
Re: [m2] What happened to Spring - now it includes all its dependencies
On 11/19/05, Carlos Sanchez [EMAIL PROTECTED] wrote: Hi all, I'll try to put a bit of light at this. - I've put the spring jars in the repo so you guys can use them in m1 and m2 - At first there were no poms because it takes me some time to have them ready - I'm working on the poms, I've put the ones i was using first, but there was no optional dependencies though, so now I'm pretty close to have them ready with the optional stuff. About spring full jar, I don't suggest you to use it depends in a lot of stuff, in fact I don't know if I'll make a pom for it. IMO, there should be a POM for Spring - mainly because I believe that there's a lot of folks just using spring.jar rather than the individual JARs. To make transitive dependencies work correctly you should add only what you need. Sure, but shouldn't ease of use be a concern as well? I believe that if you depend on spring-support spring-orm spring-hibernate spring-remoting spring-core you get the same things as in spring jar. So now I have to have 25 lines of XML in my pom.xml - instead of 5 for spring.jar? Ugh. Matt About the groupId you should use org.springframework. Just springframework will work but it's just a relocation to org.springframework. If you wanna know the status of this you can subscribe to the jira issues MEV-108 and MEV-133. Sorry for the inconvenience. On 11/19/05, Matt Raible [EMAIL PROTECTED] wrote: Stephen, I was using groupId=springframework, but switched to org.springframework when I tried to upgrade 1.2.6 today. I was hoping to revert back to springframework and have all my problems solved - but no dice. The easiest thing for me to do seems to be to upload my own POM and JAR to my own repository. This is likely what I'll do for many dependencies since the ibiblio repository seems to change dependencies often - and just when you think you've got a library cleaned up - something like this happens. Matt On 11/19/05, Stephen Duncan [EMAIL PROTECTED] wrote: Matt, I've been using a groupId of springframework, instead of org.springframework. Also I've started depending on the individual spring modules, instead of the full jar. Same issue though: a bunch of exclusions. Usually a new version (such as Spring 1.2.6 right now) has no dependencies at first, but then a week or so later they add all the dependencies in. Here's a couple of the Maven Evangelism tickets open about the issue: http://jira.codehaus.org/browse/MEV-108 http://jira.codehaus.org/browse/MEV-133 Here's the current dependencies with exclusions I have (in a global parent POM in dependencyManagement). Note that parts are particular to me, because I'm using Hibernate 2 and not 3, for instance. Still, it's a start: dependency groupIdspringframework/groupId artifactIdspring-aop/artifactId version1.2.5/version scopecompile/scope exclusions exclusion groupIdcommons-attributes/groupId artifactIdcommons-attributes-compiler/artifactId /exclusion exclusion groupIdcommons-attributes/groupId artifactIdcommons-attributes-api/artifactId /exclusion exclusion groupIdaopalliance/groupId artifactIdaopalliance/artifactId /exclusion exclusion groupIdcommons-pool/groupId artifactIdcommons-pool/artifactId /exclusion exclusion groupIdoro/groupId artifactIdoro/artifactId /exclusion exclusion groupIdcom.jamonapi/groupId artifactIdjamon/artifactId /exclusion /exclusions /dependency dependency
Disallowing access to projects based on user roles?
Hi, is it possible to hide or disallow access to certain projects within continuum based on user roles? This is a requirement for inhouse projects where I am working - not everybody may work with all projects. Still it would make sense to use one continuum instance to build the projects. Regards, Dietrich
Re: [m2] What happened to Spring - now it includes all its dependencies
Matt Raible wrote: On 11/19/05, Carlos Sanchez [EMAIL PROTECTED] wrote: Hi all, I'll try to put a bit of light at this. - I've put the spring jars in the repo so you guys can use them in m1 and m2 - At first there were no poms because it takes me some time to have them ready - I'm working on the poms, I've put the ones i was using first, but there was no optional dependencies though, so now I'm pretty close to have them ready with the optional stuff. About spring full jar, I don't suggest you to use it depends in a lot of stuff, in fact I don't know if I'll make a pom for it. IMO, there should be a POM for Spring - mainly because I believe that there's a lot of folks just using spring.jar rather than the individual JARs. I completely agree with this, why would I want to include 5 dependencies if all I need to include is one? To make transitive dependencies work correctly you should add only what you need. Sure, but shouldn't ease of use be a concern as well? I believe that if you depend on spring-support spring-orm spring-hibernate spring-remoting spring-core you get the same things as in spring jar. So now I have to have 25 lines of XML in my pom.xml - instead of 5 for spring.jar? Ugh. I couldn't agree more. I think all these emails about transitive dependency issues proves there really should be an option to turn them off for a given dependency. Transitive dependencies are a great idea, and work in a lot of cases, but a lot of times you just want to turn them off and specify the dependencies you need. Matt About the groupId you should use org.springframework. Just springframework will work but it's just a relocation to org.springframework. If you wanna know the status of this you can subscribe to the jira issues MEV-108 and MEV-133. Sorry for the inconvenience. On 11/19/05, Matt Raible [EMAIL PROTECTED] wrote: Stephen, I was using groupId=springframework, but switched to org.springframework when I tried to upgrade 1.2.6 today. I was hoping to revert back to springframework and have all my problems solved - but no dice. The easiest thing for me to do seems to be to upload my own POM and JAR to my own repository. This is likely what I'll do for many dependencies since the ibiblio repository seems to change dependencies often - and just when you think you've got a library cleaned up - something like this happens. Matt On 11/19/05, Stephen Duncan [EMAIL PROTECTED] wrote: Matt, I've been using a groupId of springframework, instead of org.springframework. Also I've started depending on the individual spring modules, instead of the full jar. Same issue though: a bunch of exclusions. Usually a new version (such as Spring 1.2.6 right now) has no dependencies at first, but then a week or so later they add all the dependencies in. Here's a couple of the Maven Evangelism tickets open about the issue: http://jira.codehaus.org/browse/MEV-108 http://jira.codehaus.org/browse/MEV-133 Here's the current dependencies with exclusions I have (in a global parent POM in dependencyManagement). Note that parts are particular to me, because I'm using Hibernate 2 and not 3, for instance. Still, it's a start: dependency groupIdspringframework/groupId artifactIdspring-aop/artifactId version1.2.5/version scopecompile/scope exclusions exclusion groupIdcommons-attributes/groupId artifactIdcommons-attributes-compiler/artifactId /exclusion exclusion groupIdcommons-attributes/groupId artifactIdcommons-attributes-api/artifactId /exclusion exclusion groupIdaopalliance/groupId artifactIdaopalliance/artifactId /exclusion exclusion groupIdcommons-pool/groupId artifactIdcommons-pool/artifactId /exclusion exclusion groupIdoro/groupId artifactIdoro/artifactId /exclusion exclusion groupIdcom.jamonapi/groupId
Setting an arbitrary property for a plugin within its configuration
Hi, I always need to run the eclipse plugin with a certain profile (some common resources must be ignored, the eclipse plugin does not yet properly add common resources outside project folders). We defined a build profile that does not define this resource and activate it using a role property on the commandline, like so: mvn eclipse:eclipse -Drole=eclipse Is it possible to set this property permanently within the plugin configuration? Something like: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-eclipse-plugin/artifactId configuration properties roleeclipse/role /properties /configuration /plugin This particular syntax does not work, I tried it :-( Regards, Dietrich - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
confusing maven 2 dependency behavior
Hi, I'm migrating some projects from maven 1 to 2. We have a dependency in our project.xml that looks like dependency idjunit-addons/id version1.4/version typetest/type /dependency so I add dependency artifactIdjunit-addons/artifactId groupIdjunit-addons/groupId version1.4/version scopetest/scope /dependency to my pom.xml for maven 2. When I run mvn install with that pom, it fails while attempting to download http://repo1.maven.org/maven2/junit-addons/junit-addons-runner/1.0-alpha1/junit-addons-runner-1.0-alpha1.pom This doesn't exist on ibiblio, so it makes sense that it fails. I just don't understand why it's trying to download it. The junit-addons 1.4 jar is there... Thanks, Charlie - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: confusing maven 2 dependency behavior
try adding a dummy pom for it. the developers said that the future release version of the install plugin is going to create a pom automatically but for now i just create them manually. recently somebody has suggested adding an option to install-file to generate poms so you might try searching the archives. ciao! On 11/21/05, Charlie Groves [EMAIL PROTECTED] wrote: Hi, I'm migrating some projects from maven 1 to 2. We have a dependency in our project.xml that looks like dependency idjunit-addons/id version1.4/version typetest/type /dependency so I add dependency artifactIdjunit-addons/artifactId groupIdjunit-addons/groupId version1.4/version scopetest/scope /dependency to my pom.xml for maven 2. When I run mvn install with that pom, it fails while attempting to download http://repo1.maven.org/maven2/junit-addons/junit-addons-runner/1.0-alpha1/junit-addons-runner-1.0-alpha1.pom This doesn't exist on ibiblio, so it makes sense that it fails. I just don't understand why it's trying to download it. The junit-addons 1.4 jar is there... Thanks, Charlie - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Programming, an artform that fights back Anuerin G. Diaz Registered Linux User #246176 Friendly Linux Board @ http://mandrivausers.org/index.php http://capsule.ramfree17.org , when you absolutely have nothing else better to do - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] How to skip tests in packaging
the surefire plugin has a configuration[1] for skipping tests. you can configure a profile[2] that has this set to true if you need it. hth. [1] http://maven.apache.org/plugins/maven-surefire-plugin/test-mojo.html [2] http://maven.apache.org/guides/introduction/introduction-to-profiles.html ciao! On 11/21/05, Rubén Barroso [EMAIL PROTECTED] wrote: Thanks a lot, but I actually meant how could I achieve that configuring it through the pom. Is it possible? Thanks again. 2005/11/21, Emmanuel Venisse [EMAIL PROTECTED]: mvn -Dmaven.test.skip=true package Rubén Barroso a écrit : Hello, I'm trying to bypass testing in package phase (creating a WAR). Anyone knows how could I perform this? Thanks in advance! -- Programming, an artform that fights back Anuerin G. Diaz Registered Linux User #246176 Friendly Linux Board @ http://mandrivausers.org/index.php http://capsule.ramfree17.org , when you absolutely have nothing else better to do - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] how to use javacc?
0.6-SNAPSHOT of javacc-maven-plugin now supports jjtree.. couple of things, the 'generate' goal from previous iterations of the plugin has been changed to 'javacc' and the 'jjtree' goal is now active. I also redeployed the site so the new goals and information are up there now at http://mojo.codehaus.org/javacc-maven-plugin I have validated that at jjtree files do their magic and drop the java and .jj files to a directory...and that directory is added to the compile classpath. as for the the processing of the .jj file in the same plugin you'll have to define another execution of the plugin calling the javacc goal with its relevant configuration mapped to whatever you are plugging in for the jjtree configuration. since the javacc goal works by default off of the src/main/javacc directory at a minimum you'll have to specify the sourceDirectory in the javacc goal configuration to point to target/generated-sources/jjtree to pick up the generated .jj file.. good luck and if you have issues please submit them with supporting log pastes and whatnot to mojo, since I don't use this personally all the output you can give me and proper problem descriptions are helpful. jesse On 11/21/05, Jesse McConnell [EMAIL PROTECTED] wrote: if you tell me how jjtree works then I'll see about putting it in the javacc plugin..I think I was the last guy to touch the javacc mojo plugin so I'll put this in if you let me know what it needs to do.. lemme poke around and learn something about jjtree and see what I can do jesse On 11/21/05, Hubert Iwaniuk [EMAIL PROTECTED] wrote: Hi Allan, Thanks for your reply. Is there other way to use jjtree in maven, for example some ant script? Thanks in advance, Hubert. Dnia 21-11-2005, pon o godzinie 13:52 +0800, Allan Ramirez napisał(a): Hi Hubert, jjtree is not yet available in the javacc-maven-plugin. But it will have soon. regards, -allan Hubert Iwaniuk wrote: Hi, Please help me getting javacc jjtree generation work in maven. I simply can't figureout how to set properties, so mojo will know where is jjt file, and how to make code generation occure before code compilation. I'm new to maven at all. Thanks for you help, Hubert. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- jesse mcconnell -- jesse mcconnell
Re: Configuring Continuum to start automatically on Fedora Core 4
Yes, I did look at the guide, but I needed to adapte it to Fedora Core 4 because FC4 does not have update-rc.d and also because the rc file need to have special comments. Emmanuel Venisse [EMAIL PROTECTED] wrote: Do you have look at http://maven.apache.org/continuum/guides/mini/guide-linux-boot.html? Emmanuel Oscar Picasso a écrit : Hi, I am trying to configure contiuum to start automatically on Fedora Core 4. I have adapted from the documentation because on FC4 we need special comments on the script and FC4 does not have update-rc.d. Here is what I have done: - added the following comments to run.sh # chkconfig: 45 98 2 # description: Starts and stops continuum. - added some echo to debug the script on the run.sh start function start() { echo Starting $APP_LONG_NAME... getpid if [ X$pid = X ] then if [ X$IGNORE_SIGNALS = X ] then if [ X$RUN_AS_USER = X ] then echo X$pid echo X$IGNORE_SIGNALS echo X$RUN_AS_USER CMD=$CMDNICE $WRAPPER_CMD $WRAPPER_CONF wrapper.pidfile=$PIDFILE wrapper.daemonize=TRUE echo $CMD exec $CMD [...] - symlinked to run.sh cd /etc/init.d ln -s /usr/local/continuum/bin/linux/run.sh continuum - run chkconfig chkconfig --add continuum - checked /etc/rc.d/rc4.d and /etc/rc.d/rc5.d Both have the following symbolic link: S98continuum - ../init.d/continuum - tested the service with 1- service continuum start and 2- by restarting the computer in both cases I get following messages: Starting continuum... X X X ./wrapper wrapper.conf wrapper.pidfile=./continuum.pid wrapper.daemonize=TRUE So the run.sh script is executed. However it does not work. - the ps command does not show any process running continuum - netstat does not show any expected 'listened contiuum port' - if I do service continuum status I get: continuum is not running. On the other hand. If I do: /usr/local/continuum/bin/linux/run.sh start continuum is started. Any idea? Thanks Oscar - Yahoo! FareChase - Search multiple travel sites in one click. - Yahoo! FareChase - Search multiple travel sites in one click.
Re: [m2] Copy the dependencies of a project in a custom plugin
Two ways to solve this: - have the user specify which dependency to use via configuration: plugin ... configuration jdbcDrivercom.mysql:mysql-driver/jdbcDriver /configuration /plugin ... dependency groupIdcom.mysql/groupId artifactIdmysql-driver/artifactId version5.0.0/version /dependency - add the dependency to the plugin declaration and just use the current classloader (probably the best) plugin ... dependency groupIdcom.mysql/groupId artifactIdmysql-driver/artifactId version5.0.0/version /dependency /plugin Cheers, Brett On 11/21/05, Stephen Cowx [EMAIL PROTECTED] wrote: Hi I would like to take this one step further, I need to obtain the details for a single dependency declared in a pom and use it in my plugin: My plugin, which runs SQL scripts, needs to reference the JDBC driver of the plugin users choice. I need to be able to put the jar file containing this users chosen driver onto the classpath that my plugin is using at runtime. - I don't want to break the isolation that my plugin has from the other dependencies in the users pom, I just need the jdbc driver. - I don't want to have to specify the jdbc driver as a dependency for my own plugin because I want lots of people to be able to use this with lots of different drivers. The only way I can think of to do this is to follow the steps outlined in this thread for obtaining a list of artifacts for the pom using the plugin, iterate through the list until I find the one the user has specified to be their jdbc driver (through a property of some kind) and then add that to the classpath being used by my plugin. Although possible, this is a little unwieldy and I can;t help feeling there must be an easy way to do this. So... Is there an existing way to do this, something like my example below (note dependency property) build plugins plugin groupIdmy.group.id/groupId artifactIdplugin-sqlrunner/artifactId version1.0.0-dev/version executions execution phasetest/phase configuration user${db-username}/user pass${db-password}/pass url${db-url}/url driveroracle.jdbc.OracleDriver/driver onerrorcontinue/onerror dependency groupIdojdbc/groupId artifactIdojdbc/artifactId version14/version dependency files file${basedir}/src/main/oracle/BillImage.sql/file file${basedir}/src/main/oracle/RunTimeControls.sql/file file${basedir}/src/main/oracle/audit.sql/file file${basedir}/src/main/oracle/CreateSequences.sql/file /files /configuration goals goalrunsql/goal /goals /execution /executions /plugin /plugins regards Stephen Wim Deblauwe wrote: ok, thanks! That was it. 2005/11/21, Allison, Bob [EMAIL PROTECTED]: The tag @requiresDependencyResolution has to be on the class, not the parameter. -Original Message- From: Wim Deblauwe [mailto:[EMAIL PROTECTED] Sent: Monday, November 21, 2005 06:41 To: Maven Users List Subject: Re: [m2] Copy the dependencies of a project in a custom plugin The collection of artifacts is empty. When I was using dependencies, it was not empty. What am I doing wrong? This is my code: /** * @goal process-resources * @description Copy the dependencies for the InstallShield Merge Module */ public class MsmProcessResourcesMojo extends AbstractMojo { /** * @parameter expression=${project.artifacts} * @requiresDependencyResolution */ private Collection artifacts; /** * @parameter expression=${project.build.directory}/resources */ private File targetDirectory; public MsmProcessResourcesMojo() { } public void execute() throws MojoExecutionException, MojoFailureException { try { getLog().info( Process Resources for InstallShield Merge Module... ); Iterator iterator = artifacts.iterator(); while (iterator.hasNext()) { Artifact artifact = (Artifact)iterator.next(); FileUtils.copyFileToDirectory( artifact.getFile(), new File( targetDirectory, artifact.getType() + s ) ); } } catch (IOException e) { throw new MojoExecutionException( Error copying artifacts, e ); } } } thank you, Wim 2005/11/21, Brett Porter [EMAIL PROTECTED]: maven-artifact and maven-project (though you may not need the project dependency if you are just using the expression below as it is runtime, and Mavne provides it). - Brett On 11/21/05, Wim Deblauwe [EMAIL PROTECTED] wrote: What dependency do I need for the Artifact and Project classes in my Mojo? 2005/11/21, Brett Porter [EMAIL PROTECTED]: On 11/21/05, Wim Deblauwe [EMAIL PROTECTED] wrote: Hi, I'm writing a custom
Re: [m2] Copy the dependencies of a project in a custom plugin
I'd have to look, but I think that is done by comparing ${project.artifacts} to ${project.dependencies} Cheers, Brett On 11/22/05, Wim Deblauwe [EMAIL PROTECTED] wrote: Is it also possible to only get the first-line dependencies? I notice the website can create a distintion between the direct dependencies and the dependencies of the dependencies. regards, Wim 2005/11/21, Allison, Bob [EMAIL PROTECTED]: The tag @requiresDependencyResolution has to be on the class, not the parameter. -Original Message- From: Wim Deblauwe [mailto:[EMAIL PROTECTED] Sent: Monday, November 21, 2005 06:41 To: Maven Users List Subject: Re: [m2] Copy the dependencies of a project in a custom plugin The collection of artifacts is empty. When I was using dependencies, it was not empty. What am I doing wrong? This is my code: /** * @goal process-resources * @description Copy the dependencies for the InstallShield Merge Module */ public class MsmProcessResourcesMojo extends AbstractMojo { /** * @parameter expression=${project.artifacts} * @requiresDependencyResolution */ private Collection artifacts; /** * @parameter expression=${project.build.directory}/resources */ private File targetDirectory; public MsmProcessResourcesMojo() { } public void execute() throws MojoExecutionException, MojoFailureException { try { getLog().info( Process Resources for InstallShield Merge Module... ); Iterator iterator = artifacts.iterator(); while (iterator.hasNext()) { Artifact artifact = (Artifact)iterator.next(); FileUtils.copyFileToDirectory( artifact.getFile(), new File( targetDirectory, artifact.getType() + s ) ); } } catch (IOException e) { throw new MojoExecutionException( Error copying artifacts, e ); } } } thank you, Wim 2005/11/21, Brett Porter [EMAIL PROTECTED]: maven-artifact and maven-project (though you may not need the project dependency if you are just using the expression below as it is runtime, and Mavne provides it). - Brett On 11/21/05, Wim Deblauwe [EMAIL PROTECTED] wrote: What dependency do I need for the Artifact and Project classes in my Mojo? 2005/11/21, Brett Porter [EMAIL PROTECTED]: On 11/21/05, Wim Deblauwe [EMAIL PROTECTED] wrote: Hi, I'm writing a custom plugin and I need to copy the project's dependencies from the local repository to a certain directory. How can I do this best? You should use ${project.artifacts} instead which includes all the transitive artifacts, and for which you can call artifact.getFile(). Make sure you include @requiresDependencyResolution question 2: When my plugin works, it will produce a different artifact (.msm), how should I handle the 'instal' and 'deploy' of that artifact? Do I need to write my own custom mojo for that or can I re-use the plugins already written for .jar files? You can reuse the mojos, but you will still need to define the customisations, which will require a plugin. There are examples in the introduction to the build lifecycle. Cheers, Brett - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] Generating Source in Ant
We're working on splitting them out, but for now all the issues are in MNG. So if you go there, and select Create new Issue from the top, it will preselect the project Maven 2 from the dropdown (or you can do that manually). On the second screen, select maven-antrun-plugin in the components and fill in the other fields as appropriate. Hope this helps. Brett On 11/22/05, Lee Meador [EMAIL PROTECTED] wrote: If I go here: http://jira.codehaus.org/secure/Dashboard.jspa There is no maven-antrun-plugin project. All the other maven plugins seem to be there. But if I go to: http://jira.codehaus.org/browse/MNG?report=com.atlassian.jira.plugin.system.project:openissues-panel (I got there by picking the maven2 project on the previous page and then clicking the open issues tab.) Any way .. on that page it shows 3 issues unter maven-antrun-plugin. How do I add a Jira issue in this case? Are there more instructions anywhere? thanks -- Lee Meador On 11/18/05, Brett Porter [EMAIL PROTECTED] wrote: Thanks for this! On 11/19/05, Lee Meador [EMAIL PROTECTED] wrote: 1) Create an email 2) Put a commit message in it 3) Put some sort of special subject on it 4) Attach the patch file to it or maybe include the patch as part of the text of the email. Where do I send this email? What should the subject look like? Does the patch file get attached or included? I can see how that's confusing. I'd reword it as: Attach the patch file to the jira issue (create a new one if you are working on a new issue), with a brief comment explaining what the patch does We really prefer it sent to jira as an attached file as it is much easier to track and apply. Thanks again! Cheers, Brett - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -- Lee Meador Sent from gmail. My real email address is [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [M2] how to run a goal by specifying the plugin only - default goal?
Clean is a special lifecycle phase. You can't really shorten it, though you can bind it to a lifecycle phase so it is run automatically and you never need to run it on the command line :) See: Introduction to the build lifecycle in the documentation - Brett On 11/22/05, puschteblume [EMAIL PROTECTED] wrote: Hi Stephen Thanks. But this hint gives you access to the plugin directly, without specifying it in the pom or run it by specifying groupid:artifact:version .. Heiko Stephen Cowx wrote: Hi I saw some notes on how to do this in: http://maven.apache.org/guides/plugin/guide-java-plugin-development.html See the section on Shortening the Command Line I haven't tried it so I don't know if it works but it seems to be what you are asking for Regards Stephen puschteblume wrote: I have created a plugin that can be run via buildnumber:create Then I remembered that the clean plugin can be startet, by simply run clean. How I have to declare the plugin that there is a default goal? Heiko - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] . - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [M2] Impossible to use 1.5 sources in plugin?
Thanks for this. It appears that way. Can you file an issue for us to look in to in 2.1? We should be able to use proper annotations in 1.5 too, hopefully qdox can mediate that. - Brett On 11/22/05, Jose Gonzalez Gomez [EMAIL PROTECTED] wrote: Hi there, I'm developing a plugin for Maven, and I have found the following error: com.thoughtworks.qdox.parser.ParseException: syntax error @[28,47] in file:/C:/Documents and Settings/jgonzalez/Mis documentos/proyecto s/otros/maven-opendocbook-plugin/src/main/java/com/openinput/tools/maven/opendocbook/FilePathComparator.java at com.thoughtworks.qdox.parser.impl.Parser.yyerror(Parser.java:504) at com.thoughtworks.qdox.parser.impl.Parser.yyparse(Parser.java:610) at com.thoughtworks.qdox.parser.impl.Parser.parse(Parser.java:488) at com.thoughtworks.qdox.JavaDocBuilder.addSource(JavaDocBuilder.java:296) at com.thoughtworks.qdox.JavaDocBuilder.addSource(JavaDocBuilder.java:312) at com.thoughtworks.qdox.JavaDocBuilder.addSource(JavaDocBuilder.java:308) at com.thoughtworks.qdox.JavaDocBuilder$1.visitFile(JavaDocBuilder.java:365) at com.thoughtworks.qdox.directorywalker.DirectoryScanner.walk(DirectoryScanner.java:43) at com.thoughtworks.qdox.directorywalker.DirectoryScanner.walk(DirectoryScanner.java:34) at com.thoughtworks.qdox.directorywalker.DirectoryScanner.walk(DirectoryScanner.java:34) at com.thoughtworks.qdox.directorywalker.DirectoryScanner.walk(DirectoryScanner.java:34) at com.thoughtworks.qdox.directorywalker.DirectoryScanner.walk(DirectoryScanner.java:34) at com.thoughtworks.qdox.directorywalker.DirectoryScanner.walk(DirectoryScanner.java:34) at com.thoughtworks.qdox.directorywalker.DirectoryScanner.walk(DirectoryScanner.java:34) at com.thoughtworks.qdox.directorywalker.DirectoryScanner.scan(DirectoryScanner.java:52) at com.thoughtworks.qdox.JavaDocBuilder.addSourceTree(JavaDocBuilder.java:362) at org.apache.maven.tools.plugin.extractor.java.JavaMojoDescriptorExtractor.execute(JavaMojoDescriptorExtractor.java:477) at org.apache.maven.tools.plugin.scanner.DefaultMojoScanner.populatePluginDescriptor(DefaultMojoScanner.java:69) at org.apache.maven.plugin.plugin.AbstractGeneratorMojo.execute(AbstractGeneratorMojo.java:99) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:399) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:519) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:469) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:448) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:301) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:268) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:137) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:316) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:113) at org.apache.maven.cli.MavenCli.main(MavenCli.java:249) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) The problem seems to be related to a class that uses generics... is there any way to tell qdox to use 1.5 sources? Or qdox is just unable to handle 1.5 sources? In that case, does that mean that we can't use 1.5 sources for plugin development? Best regards Jose - 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: m1.1b2 SET MAVEN_OPTS=-XX:MaxPermSize=1024m doesn't work
Where does the site fail? If it is inside something like javadoc, its probably because you need to change the javadoc memory settings, not the maven seetings. - Brett On 11/22/05, Antonyan, Tigran(GE Infrastructure) [EMAIL PROTECTED] wrote: Hi all I'm experiencing a problem with JVM heap size (maven multiproject:site fails when JVM memory usage reaches to 220m) I've tried SET MAVEN_OPTS=-XX:MaxPermSize=1024m from command line it didn't work, I changed MAVEN_OPTS value from %MAVEN_HOME%/bin/maven to 1024(originaly it was 256m) and when this too didn't help I started to think that this is a bug in maven1.1 beta 2, did anyone have success changing this value? am I doing something wrong? Thank you in advance for your time and help! Regards, Tigran Antonyan - 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: Build Error while creating project
Try -U: there is a bug in 2.0 where the plugin gets stuck if it is not found the first time. - Brett On 11/22/05, Mordo, Aviran (EXP N-NANNATEK) [EMAIL PROTECTED] wrote: I'm having the same problem, I already have a project setup and maven can download all the other plugins, but if I want to create a new project I'm getting the same error -Original Message- From: Brett Porter [mailto:[EMAIL PROTECTED] Sent: Monday, November 21, 2005 3:24 AM To: Maven Users List; Deepak biswas Subject: Re: Build Error while creating project It's most likely because you need to set up a proxy. - Brett On 21 Nov 2005 08:18:25 -, Deepak biswas [EMAIL PROTECTED] wrote: I have installed the mvn 2.0 and have set the path accordingly. but when i am trying to execute the following command it is giving the following error. Please suggest me what to do. C:\Documents and Settings\ciscomvn archetype:create -DgroupId=com.mycompany.app -DartifactId=my-app [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'archetype'. [INFO] -- --- --- [ERROR] BUILD ERROR [INFO] -- --- --- [INFO] The plugin 'org.apache.maven.plugins:maven-archetype-plugin' does not exi st or no valid version could be found [INFO] -- --- --- [INFO] For more information, run Maven with the -e switch [INFO] -- --- --- [INFO] Total time: 1 second [INFO] Finished at: Mon Nov 21 13:20:40 GMT+05:30 2005 [INFO] Final Memory: 1M/2M [INFO] -- --- --- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: confusing maven 2 dependency behavior
Because junit-addons says it needs it: http://www.ibiblio.org/maven2/junit-addons/junit-addons/1.4/junit-addons-1.4.pom File a bug: http://jira.codehaus.org/browse/MEV On 11/22/05, Charlie Groves [EMAIL PROTECTED] wrote: Hi, I'm migrating some projects from maven 1 to 2. We have a dependency in our project.xml that looks like dependency idjunit-addons/id version1.4/version typetest/type /dependency so I add dependency artifactIdjunit-addons/artifactId groupIdjunit-addons/groupId version1.4/version scopetest/scope /dependency to my pom.xml for maven 2. When I run mvn install with that pom, it fails while attempting to download http://repo1.maven.org/maven2/junit-addons/junit-addons-runner/1.0-alpha1/junit-addons-runner-1.0-alpha1.pom This doesn't exist on ibiblio, so it makes sense that it fails. I just don't understand why it's trying to download it. The junit-addons 1.4 jar is there... Thanks, Charlie - 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] Installing 3rd Party Jars with POMs
On 11/22/05, Lee Meador [EMAIL PROTECTED] wrote: Wes, I had the same problem with -DgeneratePom not doing anything. It's not released with this feature yet. - Brett - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] Installing 3rd Party Jars with POMs
On 11/22/05, David Jackman [EMAIL PROTECTED] wrote: Well, that certainly worked to install the POM in a second command. How far-fetched would it be to add a property to the install-file goal to copy the POM at the same time? This is definitely possible - would you like to file it? - Brett - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [M2] how to run a goal by specifying the plugin only - default goal?
Hi Brett Why it isn't defined in the lifecycle reference? I can't find any hint on this topic. Where it is defined? Heiko Brett Porter wrote: Clean is a special lifecycle phase. You can't really shorten it, though you can bind it to a lifecycle phase so it is run automatically and you never need to run it on the command line :) See: Introduction to the build lifecycle in the documentation - Brett On 11/22/05, puschteblume [EMAIL PROTECTED] wrote: Hi Stephen Thanks. But this hint gives you access to the plugin directly, without specifying it in the pom or run it by specifying groupid:artifact:version .. Heiko Stephen Cowx wrote: Hi I saw some notes on how to do this in: http://maven.apache.org/guides/plugin/guide-java-plugin-development.html See the section on Shortening the Command Line I haven't tried it so I don't know if it works but it seems to be what you are asking for Regards Stephen puschteblume wrote: I have created a plugin that can be run via buildnumber:create Then I remembered that the clean plugin can be startet, by simply run clean. How I have to declare the plugin that there is a default goal? Heiko - 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]
Re: [M2] how to run a goal by specifying the plugin only - default goal?
clean isn't - we should add it. I'll file a bug. But this is not related to how you add goals to the lifecycle... - Brett On 11/22/05, puschteblume [EMAIL PROTECTED] wrote: Hi Brett Why it isn't defined in the lifecycle reference? I can't find any hint on this topic. Where it is defined? Heiko Brett Porter wrote: Clean is a special lifecycle phase. You can't really shorten it, though you can bind it to a lifecycle phase so it is run automatically and you never need to run it on the command line :) See: Introduction to the build lifecycle in the documentation - Brett On 11/22/05, puschteblume [EMAIL PROTECTED] wrote: Hi Stephen Thanks. But this hint gives you access to the plugin directly, without specifying it in the pom or run it by specifying groupid:artifact:version .. Heiko Stephen Cowx wrote: Hi I saw some notes on how to do this in: http://maven.apache.org/guides/plugin/guide-java-plugin-development.html See the section on Shortening the Command Line I haven't tried it so I don't know if it works but it seems to be what you are asking for Regards Stephen puschteblume wrote: I have created a plugin that can be run via buildnumber:create Then I remembered that the clean plugin can be startet, by simply run clean. How I have to declare the plugin that there is a default goal? Heiko - 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]
Re: [M2] how to run a goal by specifying the plugin only - default goal?
Of course .. now I know :) Brett Porter wrote: clean isn't - we should add it. I'll file a bug. But this is not related to how you add goals to the lifecycle... - Brett On 11/22/05, puschteblume [EMAIL PROTECTED] wrote: Hi Brett Why it isn't defined in the lifecycle reference? I can't find any hint on this topic. Where it is defined? Heiko Brett Porter wrote: Clean is a special lifecycle phase. You can't really shorten it, though you can bind it to a lifecycle phase so it is run automatically and you never need to run it on the command line :) See: Introduction to the build lifecycle in the documentation - Brett On 11/22/05, puschteblume [EMAIL PROTECTED] wrote: Hi Stephen Thanks. But this hint gives you access to the plugin directly, without specifying it in the pom or run it by specifying groupid:artifact:version .. Heiko Stephen Cowx wrote: Hi I saw some notes on how to do this in: http://maven.apache.org/guides/plugin/guide-java-plugin-development.html See the section on Shortening the Command Line I haven't tried it so I don't know if it works but it seems to be what you are asking for Regards Stephen puschteblume wrote: I have created a plugin that can be run via buildnumber:create Then I remembered that the clean plugin can be startet, by simply run clean. How I have to declare the plugin that there is a default goal? Heiko - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] Is this correct behavior for optional dependency?
You are right, could you please file an issue and attach an use case where it doesn't work? On 11/21/05, David Jackman [EMAIL PROTECTED] wrote: Based on my reading of the docs and the mail archives, adding optionaltrue/optional to a dependency should affect other projects that depend on my project, but not affect the building of my own project. Is that true? Right now, I'm seeing otherwise. If I mark a dependency as optional, then it's not included in my own project build, and therefore the compilation fails. ..David.. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] Is this correct behavior for optional dependency?
I think this may have been fixed in 2.0.1 - check JIRA for an existing issue first. On 11/22/05, David Jackman [EMAIL PROTECTED] wrote: Based on my reading of the docs and the mail archives, adding optionaltrue/optional to a dependency should affect other projects that depend on my project, but not affect the building of my own project. Is that true? Right now, I'm seeing otherwise. If I mark a dependency as optional, then it's not included in my own project build, and therefore the compilation fails. ..David.. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to disable transitive dependency?
The problem is that the pom can be improved to add some of them as optional. I'll solve that when solving http://jira.codehaus.org/browse/MEV-161. On 11/21/05, Eric Jacob [EMAIL PROTECTED] wrote: If you want to use all the Acegi's features, sure you need all these jars. But since I don't need single sign on (cas), ldap or jsp support (directory, taglibs) or caching (ehcache), why should I have these dependencies included in my application? I think transitive dependency is great, but sometime it's just better to turn it off and specify by hand the dependencies you want ot use... Eric On 11/21/05, Eric Biesterfeld [EMAIL PROTECTED] wrote: I think there's something more wrong if a jar says it has dependencies and it doesn't actually need them. Are you sure you don't need these? If so, consider using your own repository before ibiblio and strip these of their dependencies. On 11/21/05, Eric Jacob [EMAIL PROTECTED] wrote: Hi John, Thanks for your suggestion. It worths a look! But I still think the ability to disable transitive dependency would be a good thing. It just doesn't feel right to me to exclude more dependencies than I really need. Eric On 11/18/05, John Tolentino [EMAIL PROTECTED] wrote: Hi Eric, If you look at it's pom ( http://www.ibiblio.org/pub/packages/maven2/acegisecurity/acegi-security/0.9.0/acegi-security-0.9.0.pom ), this artifact have 21 direct dependencies. Exclude those and the other transitive dependencies will be excluded as well. You can easily do this if you copy those dependencies from the artifact's pom and paste it to your exclusions. A find and replace for dependency to exclusion within your copied text won't take that much time. Hope this helps. Regards, John Eric Jacob wrote: Hi, Putting the following dependency results in 72 jars downloaded in WEB-INF/lib! dependency groupIdacegisecurity/groupId artifactIdacegi-security/artifactId version 0.9.0/version scoperuntime/scope /dependency Of course, I can exclude unecessary dependencies, but it's a real pain. A better solution would be to disable transitive dependencies all together. Is it supported? Thanks. Eric - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: variable references for site generation
http://jira.codehaus.org/browse/MNG-661 provides a simple patch which provides parent and module links using the project URLs which as you correctly point out only work when the site is deployed. -Original Message- From: Brett Porter [mailto:[EMAIL PROTECTED] Sent: 21 November 2005 08:28 To: Maven Users List Subject: Re: variable references for site generation There is an open issue for enabling proper multiproject (I think it is 699?) sites - but there is no variable to insert the references yet. - Brett On 11/21/05, Anuerin Diaz [EMAIL PROTECTED] wrote: hi, where can i find a listing of the available references that i could use during site generation? the guide in the documentation site only lists ${reports} which inserts all reports included in the reporting/ section of the project. i was wondering if there is a similar mechanism for including links to the sub-modules. i agree that such links would be useless when the site is generated in the target directory but they would be useful once the site files are deployed. short of maintaining each module's site.xml, are there any ways of including/excluding the other modules in the navigation menu(s)? thanks. ciao! -- Programming, an artform that fights back Anuerin G. Diaz Registered Linux User #246176 Friendly Linux Board @ http://mandrivausers.org/index.php http://capsule.ramfree17.org , when you absolutely have nothing else better to do - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [m2] Is this correct behavior for optional dependency?
I did do a little looking around for an issue, but didn't find one. Do you have any helpful terms to search on that would narrow the field a bit? -Original Message- From: Brett Porter [mailto:[EMAIL PROTECTED] Sent: Monday, November 21, 2005 2:45 PM To: Maven Users List Subject: Re: [m2] Is this correct behavior for optional dependency? I think this may have been fixed in 2.0.1 - check JIRA for an existing issue first. On 11/22/05, David Jackman [EMAIL PROTECTED] wrote: Based on my reading of the docs and the mail archives, adding optionaltrue/optional to a dependency should affect other projects that depend on my project, but not affect the building of my own project. Is that true? Right now, I'm seeing otherwise. If I mark a dependency as optional, then it's not included in my own project build, and therefore the compilation fails. ..David.. - 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] delicious bookmarks plugin comments
Sounds cool, but also can't think of a use right now :) Most likely it would take the form of a report, listing bookmarks for a given tag... will give it some more thought as to whether that might be useful or not. - Brett On 11/22/05, Ashley Williams [EMAIL PROTECTED] wrote: (hammer looks for nail) Hi, Just trying to find out if anybody would find it useful to have a maven delicious bookmarks plugin. I've created a java module that allows me to access various delicious functionality at the command line - originally because I wanted a way to export my Safari bookmarks, which are several hundred in number - and so thought I'd wrap it into a maven plugin. But after racking my brains I realized I couldn't think of a single reason to mavenize this code - so just wondering if anyone might have any bright ideas. Not expecting much, but just wanted to be sure before I possibly abandon the idea. Thanks - Ashley - 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] Is this correct behavior for optional dependency?
I usually go to the 2.0.1 and use firefox's type-ahead find :) JIRA isn't easy to search quickly... but maybe MNG optional would do it. - Brett On 11/22/05, David Jackman [EMAIL PROTECTED] wrote: I did do a little looking around for an issue, but didn't find one. Do you have any helpful terms to search on that would narrow the field a bit? -Original Message- From: Brett Porter [mailto:[EMAIL PROTECTED] Sent: Monday, November 21, 2005 2:45 PM To: Maven Users List Subject: Re: [m2] Is this correct behavior for optional dependency? I think this may have been fixed in 2.0.1 - check JIRA for an existing issue first. On 11/22/05, David Jackman [EMAIL PROTECTED] wrote: Based on my reading of the docs and the mail archives, adding optionaltrue/optional to a dependency should affect other projects that depend on my project, but not affect the building of my own project. Is that true? Right now, I'm seeing otherwise. If I mark a dependency as optional, then it's not included in my own project build, and therefore the compilation fails. ..David.. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [mvn] using cactus with maven2
-Original Message- From: Alexandre Russel [mailto:[EMAIL PROTECTED] Sent: lundi 21 novembre 2005 13:37 To: Maven Users List Subject: Re: [mvn] using cactus with maven2 Vincent Massol a écrit : The recommendation right now (while waiting for a proper cactus m2 plugin) is to use Cargo to all container manipulations (http://cargo.codehaus.org). thanks for your answer. I am trying to use cargo. My pom.xml is: build plugins plugin artifactIdcargo-maven2-plugin/artifactId groupIdorg.codehaus.cargo.maven2/groupId version0.7-SNAPSHOT/version configuration container containerIdjboss/containerId home/usr/local/jboss-4.0.2/home /container /configuration /plugin ATM you still need to specify a configuration element as shown on http://cargo.codehaus.org/Maven2+plugin?refresh=1 But it's a good idea for improvement to default to a standalone local configuration if none is specified. trying mvn cargo:start I got: Downloading: http://cargo.codehaus.org/dist2/geronimo-spec/geronimo-spec-j2ee- deployment/1.1-rc4/geronimo-spec-j2ee-deployment-1.1-rc4.pom [INFO] -- -- [ERROR] BUILD ERROR [INFO] -- -- [INFO] Error building POM (may not be this project's POM). Project ID: geronimo-spec:geronimo-spec-j2ee-deployment Reason: Error getting POM for 'geronimo-spec:geronimo-spec-j2ee-deployment' from the repository: Error transferring file geronimo-spec:geronimo-spec-j2ee-deployment:1.1-rc4:pom from the specified remote repositories: central (http://repo1.maven.org/maven2), cargo repository (http://cargo.codehaus.org/dist2), snapshots (http://snapshots.maven.codehaus.org/maven2) I've just checked and the Geronimo jar is indeed in the ibiblio m2 repo: http://repo1.maven.org/maven2/geronimo-spec/geronimo-spec-j2ee-deployment/1. 1-rc4/ Thus it looks to me as it is a transient error with ibiblio. Can you try again? Thanks -Vincent - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] Copy the dependencies of a project in a custom plugin
Hi Brett In regard to your second solution below: I tried it out, but I get a parse error when reading the POM unrecognised tag: 'dependency' I dont think the dependency tag is allowed within a plugin tag. Have I misunderstood your solution? Here is what I understood you to mean by include my dependency inside the plugin declaration build plugins plugin groupIdcom.group.id/groupId artifactIdplugin-sqlrunner/artifactId version1.0.0-dev/version dependency groupIdojdbc/groupId artifactIdojdbc/artifactId version14/version /dependency executions execution phasetest/phase configuration user${db-username}/user pass${db-password}/pass url${db-url}/url driveroracle.jdbc.OracleDriver/driver onerrorcontinue/onerror files file${basedir}/src/main/oracle/BillImage.sql/file file${basedir}/src/main/oracle/RunTimeControls.sql/file file${basedir}/src/main/oracle/audit.sql/file file${basedir}/src/main/oracle/CreateSequences.sql/file /files /configuration goals goalrunsql/goal /goals /execution /executions /plugin /plugins /build Stephen Brett Porter wrote: Two ways to solve this: - have the user specify which dependency to use via configuration: plugin ... configuration jdbcDrivercom.mysql:mysql-driver/jdbcDriver /configuration /plugin ... dependency groupIdcom.mysql/groupId artifactIdmysql-driver/artifactId version5.0.0/version /dependency - add the dependency to the plugin declaration and just use the current classloader (probably the best) plugin ... dependency groupIdcom.mysql/groupId artifactIdmysql-driver/artifactId version5.0.0/version /dependency /plugin Cheers, Brett On 11/21/05, Stephen Cowx [EMAIL PROTECTED] wrote: Hi I would like to take this one step further, I need to obtain the details for a single dependency declared in a pom and use it in my plugin: My plugin, which runs SQL scripts, needs to reference the JDBC driver of the plugin users choice. I need to be able to put the jar file containing this users chosen driver onto the classpath that my plugin is using at runtime. - I don't want to break the isolation that my plugin has from the other dependencies in the users pom, I just need the jdbc driver. - I don't want to have to specify the jdbc driver as a dependency for my own plugin because I want lots of people to be able to use this with lots of different drivers. The only way I can think of to do this is to follow the steps outlined in this thread for obtaining a list of artifacts for the pom using the plugin, iterate through the list until I find the one the user has specified to be their jdbc driver (through a property of some kind) and then add that to the classpath being used by my plugin. Although possible, this is a little unwieldy and I can;t help feeling there must be an easy way to do this. So... Is there an existing way to do this, something like my example below (note dependency property) build plugins plugin groupIdmy.group.id/groupId artifactIdplugin-sqlrunner/artifactId version1.0.0-dev/version executions execution phasetest/phase configuration user${db-username}/user pass${db-password}/pass url${db-url}/url driveroracle.jdbc.OracleDriver/driver onerrorcontinue/onerror dependency groupIdojdbc/groupId artifactIdojdbc/artifactId version14/version dependency files file${basedir}/src/main/oracle/BillImage.sql/file file${basedir}/src/main/oracle/RunTimeControls.sql/file file${basedir}/src/main/oracle/audit.sql/file file${basedir}/src/main/oracle/CreateSequences.sql/file /files /configuration goals goalrunsql/goal /goals /execution /executions /plugin /plugins regards Stephen Wim Deblauwe wrote: ok, thanks! That was it. 2005/11/21, Allison, Bob [EMAIL PROTECTED]: The tag @requiresDependencyResolution has to be on the class, not the parameter. -Original Message- From: Wim Deblauwe [mailto:[EMAIL PROTECTED] Sent: Monday, November 21, 2005 06:41 To: Maven Users List Subject: Re: [m2] Copy the dependencies of a project in a custom plugin The collection of artifacts is empty. When I was using dependencies, it was not empty. What am I doing wrong? This is my code: /** * @goal process-resources * @description Copy the dependencies for the InstallShield Merge Module */ public class
RE: m1.1b2 SET MAVEN_OPTS=-XX:MaxPermSize=1024m doesn't work
I set the javadoc memory as well (although in doesn't fail on javadoc) it fails on unit test (used to be the second time around, jcoverage (junit-report comes before jcoverage), but today it don't even get the junit-report anymore, I think that's because we had more unit tests checked in yesterday). javadoc does run its own JVM and it works fine so far. if you have a big project handy, try to add a lot of reports and run more then 1 goal at once I'm sure you can reproduce this issue on your machine (like maven clean multiproject:site ...more goals here if JVM doesn't use more then 200m ) -Tigran -Original Message- From: Brett Porter [mailto:[EMAIL PROTECTED] Sent: Monday, November 21, 2005 4:02 PM To: Maven Users List Subject: Re: m1.1b2 SET MAVEN_OPTS=-XX:MaxPermSize=1024m doesn't work Where does the site fail? If it is inside something like javadoc, its probably because you need to change the javadoc memory settings, not the maven seetings. - Brett On 11/22/05, Antonyan, Tigran(GE Infrastructure) [EMAIL PROTECTED] wrote: Hi all I'm experiencing a problem with JVM heap size (maven multiproject:site fails when JVM memory usage reaches to 220m) I've tried SET MAVEN_OPTS=-XX:MaxPermSize=1024m from command line it didn't work, I changed MAVEN_OPTS value from %MAVEN_HOME%/bin/maven to 1024(originaly it was 256m) and when this too didn't help I started to think that this is a bug in maven1.1 beta 2, did anyone have success changing this value? am I doing something wrong? Thank you in advance for your time and help! Regards, Tigran Antonyan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] Copy the dependencies of a project in a custom plugin
Sorry, it still needs an eclosing dependencies. - Brett On 11/22/05, Stephen Cowx [EMAIL PROTECTED] wrote: Hi Brett In regard to your second solution below: I tried it out, but I get a parse error when reading the POM unrecognised tag: 'dependency' I dont think the dependency tag is allowed within a plugin tag. Have I misunderstood your solution? Here is what I understood you to mean by include my dependency inside the plugin declaration build plugins plugin groupIdcom.group.id/groupId artifactIdplugin-sqlrunner/artifactId version1.0.0-dev/version dependency groupIdojdbc/groupId artifactIdojdbc/artifactId version14/version /dependency executions execution phasetest/phase configuration user${db-username}/user pass${db-password}/pass url${db-url}/url driveroracle.jdbc.OracleDriver/driver onerrorcontinue/onerror files file${basedir}/src/main/oracle/BillImage.sql/file file${basedir}/src/main/oracle/RunTimeControls.sql/file file${basedir}/src/main/oracle/audit.sql/file file${basedir}/src/main/oracle/CreateSequences.sql/file /files /configuration goals goalrunsql/goal /goals /execution /executions /plugin /plugins /build Stephen Brett Porter wrote: Two ways to solve this: - have the user specify which dependency to use via configuration: plugin ... configuration jdbcDrivercom.mysql:mysql-driver/jdbcDriver /configuration /plugin ... dependency groupIdcom.mysql/groupId artifactIdmysql-driver/artifactId version5.0.0/version /dependency - add the dependency to the plugin declaration and just use the current classloader (probably the best) plugin ... dependency groupIdcom.mysql/groupId artifactIdmysql-driver/artifactId version5.0.0/version /dependency /plugin Cheers, Brett On 11/21/05, Stephen Cowx [EMAIL PROTECTED] wrote: Hi I would like to take this one step further, I need to obtain the details for a single dependency declared in a pom and use it in my plugin: My plugin, which runs SQL scripts, needs to reference the JDBC driver of the plugin users choice. I need to be able to put the jar file containing this users chosen driver onto the classpath that my plugin is using at runtime. - I don't want to break the isolation that my plugin has from the other dependencies in the users pom, I just need the jdbc driver. - I don't want to have to specify the jdbc driver as a dependency for my own plugin because I want lots of people to be able to use this with lots of different drivers. The only way I can think of to do this is to follow the steps outlined in this thread for obtaining a list of artifacts for the pom using the plugin, iterate through the list until I find the one the user has specified to be their jdbc driver (through a property of some kind) and then add that to the classpath being used by my plugin. Although possible, this is a little unwieldy and I can;t help feeling there must be an easy way to do this. So... Is there an existing way to do this, something like my example below (note dependency property) build plugins plugin groupIdmy.group.id/groupId artifactIdplugin-sqlrunner/artifactId version1.0.0-dev/version executions execution phasetest/phase configuration user${db-username}/user pass${db-password}/pass url${db-url}/url driveroracle.jdbc.OracleDriver/driver onerrorcontinue/onerror dependency groupIdojdbc/groupId artifactIdojdbc/artifactId version14/version dependency files file${basedir}/src/main/oracle/BillImage.sql/file file${basedir}/src/main/oracle/RunTimeControls.sql/file file${basedir}/src/main/oracle/audit.sql/file file${basedir}/src/main/oracle/CreateSequences.sql/file /files /configuration goals goalrunsql/goal /goals /execution /executions /plugin /plugins regards Stephen Wim Deblauwe wrote: ok, thanks! That was it. 2005/11/21, Allison, Bob [EMAIL PROTECTED]: The tag @requiresDependencyResolution has to be on the class, not the parameter. -Original Message- From: Wim Deblauwe [mailto:[EMAIL PROTECTED] Sent: Monday, November 21, 2005 06:41 To: Maven Users List Subject: Re: [m2]
RE: [m2] Installing 3rd Party Jars with POMs
Done: http://jira.codehaus.org/browse/MNG-1646 ..David.. -Original Message- From: Brett Porter [mailto:[EMAIL PROTECTED] Sent: Monday, November 21, 2005 2:09 PM To: Maven Users List Subject: Re: [m2] Installing 3rd Party Jars with POMs On 11/22/05, David Jackman [EMAIL PROTECTED] wrote: Well, that certainly worked to install the POM in a second command. How far-fetched would it be to add a property to the install-file goal to copy the POM at the same time? This is definitely possible - would you like to file it? - Brett - 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] Copy the dependencies of a project in a custom plugin
Thanks Brett That worked brilliantly. regards Stephen Brett Porter wrote: Sorry, it still needs an eclosing dependencies. - Brett On 11/22/05, Stephen Cowx [EMAIL PROTECTED] wrote: Hi Brett In regard to your second solution below: I tried it out, but I get a parse error when reading the POM unrecognised tag: 'dependency' I dont think the dependency tag is allowed within a plugin tag. Have I misunderstood your solution? Here is what I understood you to mean by include my dependency inside the plugin declaration build plugins plugin groupIdcom.group.id/groupId artifactIdplugin-sqlrunner/artifactId version1.0.0-dev/version dependency groupIdojdbc/groupId artifactIdojdbc/artifactId version14/version /dependency executions execution phasetest/phase configuration user${db-username}/user pass${db-password}/pass url${db-url}/url driveroracle.jdbc.OracleDriver/driver onerrorcontinue/onerror files file${basedir}/src/main/oracle/BillImage.sql/file file${basedir}/src/main/oracle/RunTimeControls.sql/file file${basedir}/src/main/oracle/audit.sql/file file${basedir}/src/main/oracle/CreateSequences.sql/file /files /configuration goals goalrunsql/goal /goals /execution /executions /plugin /plugins /build Stephen Brett Porter wrote: Two ways to solve this: - have the user specify which dependency to use via configuration: plugin ... configuration jdbcDrivercom.mysql:mysql-driver/jdbcDriver /configuration /plugin ... dependency groupIdcom.mysql/groupId artifactIdmysql-driver/artifactId version5.0.0/version /dependency - add the dependency to the plugin declaration and just use the current classloader (probably the best) plugin ... dependency groupIdcom.mysql/groupId artifactIdmysql-driver/artifactId version5.0.0/version /dependency /plugin Cheers, Brett On 11/21/05, Stephen Cowx [EMAIL PROTECTED] wrote: Hi I would like to take this one step further, I need to obtain the details for a single dependency declared in a pom and use it in my plugin: My plugin, which runs SQL scripts, needs to reference the JDBC driver of the plugin users choice. I need to be able to put the jar file containing this users chosen driver onto the classpath that my plugin is using at runtime. - I don't want to break the isolation that my plugin has from the other dependencies in the users pom, I just need the jdbc driver. - I don't want to have to specify the jdbc driver as a dependency for my own plugin because I want lots of people to be able to use this with lots of different drivers. The only way I can think of to do this is to follow the steps outlined in this thread for obtaining a list of artifacts for the pom using the plugin, iterate through the list until I find the one the user has specified to be their jdbc driver (through a property of some kind) and then add that to the classpath being used by my plugin. Although possible, this is a little unwieldy and I can;t help feeling there must be an easy way to do this. So... Is there an existing way to do this, something like my example below (note dependency property) build plugins plugin groupIdmy.group.id/groupId artifactIdplugin-sqlrunner/artifactId version1.0.0-dev/version executions execution phasetest/phase configuration user${db-username}/user pass${db-password}/pass url${db-url}/url driveroracle.jdbc.OracleDriver/driver onerrorcontinue/onerror dependency groupIdojdbc/groupId artifactIdojdbc/artifactId version14/version dependency files file${basedir}/src/main/oracle/BillImage.sql/file file${basedir}/src/main/oracle/RunTimeControls.sql/file file${basedir}/src/main/oracle/audit.sql/file file${basedir}/src/main/oracle/CreateSequences.sql/file /files /configuration goals goalrunsql/goal /goals /execution /executions /plugin /plugins regards Stephen Wim Deblauwe wrote: ok, thanks! That was it. 2005/11/21, Allison, Bob [EMAIL PROTECTED]: The tag @requiresDependencyResolution has to be on the class, not the parameter. -Original Message- From: Wim Deblauwe [mailto:[EMAIL PROTECTED] Sent: Monday, November 21, 2005 06:41 To: Maven Users List Subject: Re: [m2] Copy the dependencies of a project in a custom plugin The collection of artifacts is empty. When I was using dependencies, it was not empty. What am I doing wrong?
optional ant replaceregexp task
Hi, having recently upgraded to maven 1.1-b2, I have been unable to get ant replaceregexp tasks working I have tried adding the dependencies to the oro regexp jars (I couldn't find the org.apache.tools.ant.util.regexp.Jdk14RegexpRegexp class in any jar) dependency groupIdant/groupId artifactIdant-apache-oro/artifactId version1.6.5/version typejar/type /dependency dependency groupIdoro/groupId artifactIdoro/artifactId version2.0.8/version typejar/type /dependency I also set the property ant:property name=ant.regexp.regexpimpl value=org.apache.tools.ant.util.regexp.JakartaOroRegexp/ ant:replaceregexp file=${hibernate.schema.output.dir}/hibernate-schema-initialize.sql match=^(alter table .* drop|drop table) replace=-- SKIP \1 flags=i byline=true/ when I execute the script the following output appears but nothing happens replaceregexp match=^(alter table .* drop|drop table) file=D:\dev\components\i18n/target/hibernate/hibernate-schema-initialize.sql byline=true flags=i replace=-- SKIP \1/replaceregexp any ideas? cheers Nathan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: optional ant replaceregexp task
I too am seeing the same problem. Nathan Coast wrote: Hi, having recently upgraded to maven 1.1-b2, I have been unable to get ant replaceregexp tasks working I have tried adding the dependencies to the oro regexp jars (I couldn't find the org.apache.tools.ant.util.regexp.Jdk14RegexpRegexp class in any jar) dependency groupIdant/groupId artifactIdant-apache-oro/artifactId version1.6.5/version typejar/type /dependency dependency groupIdoro/groupId artifactIdoro/artifactId version2.0.8/version typejar/type /dependency I also set the property ant:property name=ant.regexp.regexpimpl value=org.apache.tools.ant.util.regexp.JakartaOroRegexp/ ant:replaceregexp file=${hibernate.schema.output.dir}/hibernate-schema-initialize.sql match=^(alter table .* drop|drop table) replace=-- SKIP \1 flags=i byline=true/ when I execute the script the following output appears but nothing happens replaceregexp match=^(alter table .* drop|drop table) file=D:\dev\components\i18n/target/hibernate/hibernate-schema-initialize.sql byline=true flags=i replace=-- SKIP \1/replaceregexp any ideas? cheers Nathan - 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] missing dependency features??
Inline. Thanks, -- Chris On 11/20/05, Brett Porter [EMAIL PROTECTED] wrote: On 11/21/05, Chris Berry [EMAIL PROTECTED] wrote: Greetings, Seems that dependencies should provide two features they do not already; 1) the ability to explicitly specify the URL from which to download an artifact (in m1, if I recall, this was handled by the jar element). Actually, not quite - the JAR element just let you change the filename, not the repository. This isn't really an artifact as it will have no other meta information (no versioning, no POM, no checksum). What is the use case for having this as a dependency? I can think of 2: - use from a plugin: in which case, passing the URL to the plugin directly and having it manage it seems the best alternative - copied into a webapp/jar/etc: I think this might fit better with a external resources specification we have discussed on the dev list and will consider for 2.1. In the mean time, it will require a custom plugin to download and copy it, or that you manually put it in the repository and look after the versioning. My need is for WSDL file dependencies. If I am building, say, a web service which makes use of other web services, then I need only the WSDL of those web services -- then from it I create the necessary interface code using a code generator (Axis' WSDL2Java). This is a true dependency and should be treated as such. I do not think this should be treated as a external resource when it is truly a dependency. Often WSDLs are published onto some web server somewhere, say, http://svcdefs.myco.com/wsdls/foo.wsdl. There is still no clear way to version WSDLs. Yes, I could copy the WSDL to a maven-style repo. But this violates Don't repeat yourself. So I want to be able to declare a dependency and to also specify a URL from which to grab the file. I'm probably rehashing old history, but why were dependency properties removed in m2?? Well, its our fault for not putting together a FAQ - but you should find plenty of answers in the mail list archives. I'll put a FAQ together :) They were removed because they aren't reliable in a transitive environment. It implies that the dependency knows something about the environment of the dependee, which is back to front. In most cases, granted, the value for war bundle will be the same for a particular dependency - but that relies on the dependency specifying it. In the end, we give control to the actual POM doing the building, trying to use sensible defaults that minimise what needs to be specified, and allowing the use of artifact filters in the configuration of plugins. In my experiece, these properties are application specific and are typically related to the build for the project at hand. And for larger organizations with build systems there is often a uniformity in these properties for all internal projects. What the properties mean in a transitive sense is really up to the project at hand, and thus, it should be switchable behavior. I'll give two concrete examples; 1) I need to speficy which WSDL dependency is my server dependency vs. which are client dependencies because the server dependency is processed differently in WSDL2Java than are the client WSDLs. This is an application specific property. It is not transient. Of course, I could lay in a m2 property -- but this would require that I get things from 2 places. I would far prefer getting a set of WSDL dependencies and then be able to query these dependencies for which are server vs. client. IMO, this is closer to the spirit of what is really happening. 2) I need to proclaim which dependencies are to go into the webapp's /lib ( i.e. war.bundle) This may or may not be transitive, although most likely it is. I.e. put this dependency and all of it's child dependencies into the war bundle. Alternately, we have a base level service engine which has a shared /lib, so many dependencies end up in the shared /lib and not in the war.bundle. Thus, I depend upon the service-engine which has a application specific property; service.engine which I use to process these dependencies differently. I wonder if the answer to this dilemma is to only allow properties at the base project level, and to ignore them at the child levels?? But make no mistake, these properties are important, and removing this capability is a real issue for those us trying to transition from m1 to m2. HTH, Brett - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]