Re: How to add a directory first on the classpath using launch4j and maven?
It is open source, but I think launch4j itself cannot do it after investigating launch4j and the source code of the plugin. I asked a question in the launch4j help forum, hopefully, they can guide me further. 2012/7/18 Wayne Fay wayne...@gmail.com groupIdcom.akathist.maven.plugins.launch4j/groupId artifactIdlaunch4j-maven-plugin/artifactId ... What I was hoping that would happen is that the 'config' directory would be first on the classpath, but the jar that contains my main class is always put first on the classpath. I want to put the config dir first, so it is easy to overwrite certain config files that are also in the main jar. Probably you need to talk to the publisher of this plugin about an enhancement to support your requirements. Or if it is open source, adjust the code yourself. Wayne - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Run a multimodule build up to a certain module in maven 3
To answer my own question: mvn -pl server -am clean install -pl server builds the server project and -am makes sure that everything server needs is also build. See http://www.sonatype.com/people/2009/10/maven-tips-and-tricks-advanced-reactor-options/ for some more info. The docs on the maven page itself are very short: http://maven.apache.org/guides/mini/guide-multiple-modules.html and they link to a page in Maven: The definitive guid, but the link ( http://www.sonatype.com/books/maven-book/reference/multimodule.html) is broken. regards, Wim 2011/5/5 Wim Deblauwe wim.debla...@gmail.com Hi, Suppose the following multimodule project project + client-common + client-gui + server-common + server-api + server + installer + installer-gui I want to run the build up to the 'server' module, but not run the installer and installer-gui modules. What would be the easiest way to do this in Maven 3? In Maven 2, i used the reactor plugin for it. Is this still the best way or is there a better/easier way in Maven 3? regards, Wim
Run a multimodule build up to a certain module in maven 3
Hi, Suppose the following multimodule project project + client-common + client-gui + server-common + server-api + server + installer + installer-gui I want to run the build up to the 'server' module, but not run the installer and installer-gui modules. What would be the easiest way to do this in Maven 3? In Maven 2, i used the reactor plugin for it. Is this still the best way or is there a better/easier way in Maven 3? regards, Wim
NullPointerException in maven assembly plugin
Hi, I am upgrading my projects from maven 2 to maven 3 and most of them are fine. However, there is one project that gives a NullPointerException during the assembly: maven builder waiting mavenExecutionResult exceptions not empty org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:2.2:single (make zipfile) on project plugin-sdk-assembly: Execution make zipfile of goal org.apache.maven.plugins:maven-assembly-plugin:2.2:single failed. at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:225) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) at org.jvnet.hudson.maven3.launcher.Maven3Launcher.main(Maven3Launcher.java:79) 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:597) at org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:329) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:239) at org.jvnet.hudson.maven3.agent.Maven3Main.launch(Maven3Main.java:145) at hudson.maven.Maven3Builder.call(Maven3Builder.java:124) at hudson.maven.Maven3Builder.call(Maven3Builder.java:71) at hudson.remoting.UserRequest.perform(UserRequest.java:114) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:270) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619) Caused by: org.apache.maven.plugin.PluginExecutionException: Execution make zipfile of goal org.apache.maven.plugins:maven-assembly-plugin:2.2:single failed. at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:110) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209) ... 27 more Caused by: java.lang.NullPointerException at org.apache.maven.artifact.repository.metadata.AbstractRepositoryMetadata.getLocalFilename(AbstractRepositoryMetadata.java:61) at org.apache.maven.artifact.repository.layout.DefaultRepositoryLayout.pathOfLocalRepositoryMetadata(DefaultRepositoryLayout.java:72) at org.apache.maven.artifact.repository.DefaultArtifactRepository.pathOfLocalRepositoryMetadata(DefaultArtifactRepository.java:129) at org.apache.maven.shared.repository.DefaultRepositoryAssembler.assembleRepositoryMetadata(DefaultRepositoryAssembler.java:487) at org.apache.maven.shared.repository.DefaultRepositoryAssembler.buildRemoteRepository(DefaultRepositoryAssembler.java:231) at org.apache.maven.plugin.assembly.archive.phase.RepositoryAssemblyPhase.execute(RepositoryAssemblyPhase.java:100) at org.apache.maven.plugin.assembly.archive.DefaultAssemblyArchiver.createArchive(DefaultAssemblyArchiver.java:189) at org.apache.maven.plugin.assembly.mojos.AbstractAssemblyMojo.execute(AbstractAssemblyMojo.java:409) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101) Any idea what might be wrong ? I am using Maven 3.0.3: mvn --version Apache Maven 3.0.3 (r1075438; 2011-02-28 18:31:09+0100) Maven home: /home/wdb/Programs/apache-maven-3.0.3 Java version: 1.6.0_24, vendor: Sun Microsystems Inc. Java home: /usr/lib/jvm/java-6-sun-1.6.0.24/jre Default locale: en_US, platform encoding: UTF-8 OS name: linux, version: 2.6.35-27-generic, arch: i386, family: unix regards, Wim
[versions-maven-plugin] Why is the default to generate backup poms?
Hi, I wonder why the versions-maven-plugin generates backup poms by default? I would assume that 95% of maven users also uses some kind of version control system, so I really don't see the need for that. regards, Wim
Re: [versions-maven-plugin] Why is the default to generate backup poms?
Did not know about versions:commit, that is nice. I know about the command line option, but I always forget the exact syntax, so I have to look it up each time. I have a feeling that I will remember versions:commit more easily :) 2010/12/6 Stephen Connolly stephen.alan.conno...@gmail.com I have considered changing the default so that if the effective pom includes an SCM section then it would default to false... but the problem occurs if the parent has an scm section but we are not in scm, e..g. if I use apache-parent-7 as my parent even though I am not in apache's svn server then I will have an scm section which is invalid. Given that v-m-p rewrites pom.xml files, and there is the potential to truely screw your build over, it seemed safer to add the default as generate the backup. you can always add versions:commit to the end of any command line invoking v-m-p and the backup will bre removed... e.g. I often set versions like so mvn versions:set versions:commit -DnewVersion=1.0.4-SNAPSHOT -Stephen On 6 December 2010 13:22, Anders Hammar and...@hammar.net wrote: Well, I guess it was decided at some point as a good default behavior. Changing a default behavior is not good as it will trick people when upgrading. But you can always disable this in the pluginManagement section (via the generateBackupPoms param) of your project. http://mojo.codehaus.org/versions-maven-plugin/set-mojo.html#generateBackupPoms /Anders On Mon, Dec 6, 2010 at 13:57, Wim Deblauwe wim.debla...@gmail.com wrote: Hi, I wonder why the versions-maven-plugin generates backup poms by default? I would assume that 95% of maven users also uses some kind of version control system, so I really don't see the need for that. regards, Wim
Re: Is there any maven plugin to add dependency to existing pom.xml ?
If you use IntelliJ IDEA, you can press ALT-INSERT in a dependencies section and it will allow you to choose from all the dependencies that are in your local repo. Very neat. Not sure why you would want this in a plugin? 2010/9/14 Wayne Fay wayne...@gmail.com Is there any maven plugin to add/update dependency in dependencies dependencyManagement section to existing pom.xml via command line? What is the use case for this feature/function? Why do you need to do this? Wayne - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Surefire - can you print TestNG results to stdout?
Have you tried configuring this? http://maven.apache.org/plugins/maven-surefire-plugin/test-mojo.html#redirectTestOutputToFile http://maven.apache.org/plugins/maven-surefire-plugin/test-mojo.html#redirectTestOutputToFile 2010/8/31 Bogdan Calmac bcal...@gmail.com In the old ant world, the testng plugin would print the test results to stdout (in addition to the HTML report). This was very convenient when running the build from eclipse; I could see the failures right in the console window and click on the links for stacktraces. In contrast, the surefire plugin does not print any test results to stdout, so I have to go through this tedious workflow: - run maven test from eclipse - browse to the target\surefire-reports directory and open index.html - browse through the HTML pages down to the failing test - copy the stacktrace from the browser and paste it in the eclipse Java StackTrace Console - finally get to the failing code Is there any way to configure the surefire plugin to print the test results (including stacktraces) to stdout? -- View this message in context: http://maven.40175.n5.nabble.com/Surefire-can-you-print-TestNG-results-to-stdout-tp2798556p2798556.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
How to activate a profile during release:prepare?
Hi, I know that during the release:perform, there is a property 'performRelease' that is set to true. I use this to activate a release profile. However, I need to do the same during the release:prepare. Is there something like a performPrepare property? regards, Wim
Re: How to activate a profile during release:prepare?
I suppose you mean adding this to the command line when running mvn release:prepare. I would like to have this property present automatically like in the release:perform case so I can make sure the profile gets activated, even if somebody would forget to add that extra command line argument. 2010/8/31 Antonio Petrelli antonio.petre...@gmail.com 2010/8/31 Wim Deblauwe wim.debla...@gmail.com: I know that during the release:perform, there is a property 'performRelease' that is set to true. I use this to activate a release profile. However, I need to do the same during the release:prepare. Is there something like a performPrepare property? -Darguments=-Pmyprofile HTH Antonio - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: How to activate a profile during release:prepare?
It does not even matter, because I don't think I can add a separate configuration for perform or prepare? 2010/8/31 Antonio Petrelli antonio.petre...@gmail.com 2010/8/31 Anders Hammar and...@hammar.net: Wim wants it for the prepare goal. Your link is for the perform goal. Come on a bit of fantasy! :-D http://maven.apache.org/plugins/maven-release-plugin/prepare-mojo.html#arguments Antonio - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Reverse dependency:tree?
I don't know of such a tool, but if you are running linux, you could create a shell script that relies on dependency:tree. You would need to check out all the projects you want to monitor, run dependency:tree (or dependency:list) on them with a grep on the artifact and print out those that match. You probably don't even need to use grep, I think there are some options to tweak the plugin to only print the dependency you look for. regards, Wim 2010/7/20 Ben Caradoc-Davies ben.caradoc-dav...@csiro.au Is there a plugin or command-line tool that can list all artifacts in a local repository (or even in a multimodule project) that depend, directly or transitively, on a given artifact? This is the opposite of dependency:tree, which only displays dependencies. Maven Dependency Browser is no longer maintained and is a GUI. IDE plugins seem like overkill. The problem I am trying to solve is to automatically determine which higher level artifacts need to have their dependencies updated when a lower level artifact is updated. Extra credit for being as simple and easy-to-use as dependency:tree. :-) -- Ben Caradoc-Davies ben.caradoc-dav...@csiro.au Software Engineering Team Leader CSIRO Earth Science and Resource Engineering Australian Resources Research Centre - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Running antrun plugin twice in same phase with another plugin in between?
I do not think this really a big improvement. In my usecase, I need to do 4 things in a defined order in the after-package, so you are just moving the problem. A real ordering of plugin execution during the phases is what I really need. I admit that I just recently had a need for it after using Maven 2 for more then 2 years on various (big) projects, so it is rare I think that you need it, but if you do, you *really* need it. 2010/7/14 Gorham-Engard, Frank frank_gorham-eng...@cable.comcast.com Hello users, I have an alternate suggestion to the phase/goal ordering issues that are often raised here. Allow for the specification of phase to include a 'before-' or 'after-' prefix. Users could specify the phase for a plugin execution to be, for example, 'before-deploy' or 'after-package'. This wouldn't break the life-cycle model while permitting a constrained method for expanding it. Also, any 'after-' phases should be executed when the phase is the target. For example, if I specified a plugin for 'after-deploy' it would be executed (at the end) when the command line was 'mvn deploy'. Perhaps even 'before-before-test' should be allowed as well? But not 'before-after-test', let's not go there! !-- Frank Gorham-Engard → Be kinder than necessary. Everyone you work with is fighting some kind of battle. -Original Message- From: Wim Deblauwe [mailto:wim.debla...@gmail.com] Sent: Tuesday, July 13, 2010 5:10 AM To: Maven Users List Subject: Running antrun plugin twice in same phase with another plugin in between? Hi, I need to run the antrun plugin twice in the packaging phase. I found this on the wiki: http://docs.codehaus.org/display/MAVENUSER/MiniGuide-AntMultiPhase However, it speaks of different lifecycle phases. I tried with the same phase and that works, however, I need to run another plugin in between. Is this possible? I was hoping that all plugins' executions would be sorted by their id. That way, i could use id's like 'step-1-do-something', 'step-2-do-something-else', to force a certain order of plugin execution. regards, Wim
Re: Running antrun plugin twice in same phase with another plugin in between?
That would mean I would have to call maven plugins from inside the maven antrun plugin. Seems odd and no idea if that is even possible? 2010/7/15 Ron Wheeler rwhee...@artifact-software.com Can't you order the tasks inside Ant? Ron On 15/07/2010 2:31 AM, Wim Deblauwe wrote: I do not think this really a big improvement. In my usecase, I need to do 4 things in a defined order in the after-package, so you are just moving the problem. A real ordering of plugin execution during the phases is what I really need. I admit that I just recently had a need for it after using Maven 2 for more then 2 years on various (big) projects, so it is rare I think that you need it, but if you do, you *really* need it. 2010/7/14 Gorham-Engard, Frankfrank_gorham-eng...@cable.comcast.com Hello users, I have an alternate suggestion to the phase/goal ordering issues that are often raised here. Allow for the specification ofphase to include a 'before-' or 'after-' prefix. Users could specify thephase for a plugin execution to be, for example, 'before-deploy' or 'after-package'. This wouldn't break the life-cycle model while permitting a constrained method for expanding it. Also, any 'after-' phases should be executed when the phase is the target. For example, if I specified a plugin for 'after-deploy' it would be executed (at the end) when the command line was 'mvn deploy'. Perhaps even 'before-before-test' should be allowed as well? But not 'before-after-test', let's not go there! !-- Frank Gorham-Engard → Be kinder than necessary. Everyone you work with is fighting some kind of battle. -Original Message- From: Wim Deblauwe [mailto:wim.debla...@gmail.com] Sent: Tuesday, July 13, 2010 5:10 AM To: Maven Users List Subject: Running antrun plugin twice in same phase with another plugin in between? Hi, I need to run the antrun plugin twice in the packaging phase. I found this on the wiki: http://docs.codehaus.org/display/MAVENUSER/MiniGuide-AntMultiPhase However, it speaks of different lifecycle phases. I tried with the same phase and that works, however, I need to run another plugin in between. Is this possible? I was hoping that all plugins' executions would be sorted by their id. That way, i could use id's like 'step-1-do-something', 'step-2-do-something-else', to force a certain order of plugin execution. regards, Wim - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Running antrun plugin twice in same phase with another plugin in between?
Hi, I need to run the antrun plugin twice in the packaging phase. I found this on the wiki: http://docs.codehaus.org/display/MAVENUSER/MiniGuide-AntMultiPhase However, it speaks of different lifecycle phases. I tried with the same phase and that works, however, I need to run another plugin in between. Is this possible? I was hoping that all plugins' executions would be sorted by their id. That way, i could use id's like 'step-1-do-something', 'step-2-do-something-else', to force a certain order of plugin execution. regards, Wim
Re: Re : Running antrun plugin twice in same phase with another plugin in between?
Hi Julien, yes, I tried that too and it does not work. task1 does not get executed :( regards, Wim 2010/7/13 Julien HENRY henr...@yahoo.fr Hi, Have you tried the following configuration? build plugins plugin artifactIdmaven-antrun-plugin/artifactId executions execution idtask1/id phaseyourphase/phase configuration tasks !-- Some task -- /tasks /configuration goals goalrun/goal /goals /execution /executions /plugin plugin artifactIdyour middle plugin/artifactId executions execution idtask2/id phaseyourphase/phase configuration ... /configuration goals ... /goals /execution /executions /plugin plugin artifactIdmaven-antrun-plugin/artifactId executions execution idtask3/id phaseyourphase/phase configuration tasks !-- Some other task -- /tasks /configuration goals goalrun/goal /goals /execution /executions /plugin /plugins /build I have not tested so I'm not sure it will work. Regards, Julien - Message d'origine De : Wim Deblauwe wim.debla...@gmail.com À : Maven Users List users@maven.apache.org Envoyé le : Mar 13 juillet 2010, 11h 09min 36s Objet : Running antrun plugin twice in same phase with another plugin in between? Hi, I need to run the antrun plugin twice in the packaging phase. I found this on the wiki: http://docs.codehaus.org/display/MAVENUSER/MiniGuide-AntMultiPhase However, it speaks of different lifecycle phases. I tried with the same phase and that works, however, I need to run another plugin in between. Is this possible? I was hoping that all plugins' executions would be sorted by their id. That way, i could use id's like 'step-1-do-something', 'step-2-do-something-else', to force a certain order of plugin execution. regards, Wim - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Running antrun plugin twice in same phase with another plugin in between?
I had a look at the maven 2.2.x code and I created a small patch that does it. See http://jira.codehaus.org/browse/MNG-4727 All the patch does is sorting the 'MojoExecution' classes based on their id. It is very few lines of code really. It is a bit hackish as you need to use step- in your id/ declaration, but it works perfectly. I hope the maven devs will pick it up under some form or another. regards, Wim 2010/7/13 Wayne Fay wayne...@gmail.com However, it speaks of different lifecycle phases. I tried with the same phase and that works, however, I need to run another plugin in between. Is this possible? You could: release the maven-antrun-plugin under your own artifactId, say wim-antrun-plugin then use (in order): m-antrun-p, plugin2, w-antrun-p in your pom But this seems like a lot of extra work to me. Wayne - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Run external tasks using maven
Just call the run goal of the antrun plugin on the command line, like this: mvn antrun:run regards, Wim 2010/7/12 QkI kukis...@gmail.com Hi, Is it possible to run ant tasks which is not connected with any build lifecycle phase? In other word I would like to perform some action on demand using maven and antrun plugin. Regards, QkI -- View this message in context: http://maven.40175.n5.nabble.com/Run-external-tasks-using-maven-tp1046324p1046324.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Run external tasks using maven
You need specify the configuration tag as a child tag of the plugin tag: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-antrun-plugin/artifactId version1.4/version executions execution configuration tasks echo message=test/ /tasks /configuration goals goalrun/goal /goals /execution /executions configuration tasks echo message=test/ /tasks /configuration /plugin The strange thing is that one of them is used when running from the command line and the other one if you run it via a lifecycle phase. If there is anybody who knows how to avoid this duplication, please let me know! regards, Wim 2010/7/12 QkI kukis...@gmail.com This doesn't work. My configuration: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-antrun-plugin/artifactId version1.4/version executions execution configuration tasks echo message=test/ /tasks /configuration goals goalrun/goal /goals /execution /executions /plugin and mvn antrun:run doesn't produce any result on the screen. -- View this message in context: http://maven.40175.n5.nabble.com/Run-external-tasks-using-maven-tp1046324p1046344.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Purging local repository
Yes, since that removes the whole repo. I only want to delete the repo dir of the artifact I am about to build. 2010/3/1 Nick Klauer kla...@gmail.com You mean besides simply deleting the ${user.home}/.m2/repository directory? On Mon, Mar 1, 2010 at 12:41 PM, Wim Deblauwe wim.debla...@gmail.com wrote: Hi, what is the best way if I want to erase all the artifacts from my local repo of the thing i am about to build using Maven? I tried the dependency plugin, but that only seems to remove the _dependencies_ of my artifact, not the current artifact. regards, Wim
Re: Purging local repository
Indeed. I would have expected the goal to remove all previously generated artifacts of the artifact I am running this command on. I tried the 'artifactId' mode, but it did not remove any previously created jar from my local repo. 2010/3/1 Jesse Farinacci jie...@gmail.com Hi Wim, On Mon, Mar 1, 2010 at 1:41 PM, Wim Deblauwe wim.debla...@gmail.com wrote: what is the best way if I want to erase all the artifacts from my local repo of the thing i am about to build using Maven? I tried the dependency plugin, but that only seems to remove the _dependencies_ of my artifact, not the current artifact. Do you mean you tried maven-dependency-plugin:purge-local-repository and it didn't do as you expect? -Jesse -- There are 10 types of people in this world, those that can read binary and those that can not. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Purging local repository
To avoid filling up the disk. I have a virtualized ubuntu linux which has been given 50 GB and runs Nexus and Hudson. When Hudson builds using maven, it copies a lot of the nexus to the local repo. The local repo has timestamped versions of my snapshots, so I want to avoid that those snapshots fill up my harddisk. regards, Wim 2010/3/2 David Hoffer dhoff...@gmail.com Just wondering, why do you want to do this? -Dave On Tue, Mar 2, 2010 at 5:29 AM, Wim Deblauwe wim.debla...@gmail.com wrote: Indeed. I would have expected the goal to remove all previously generated artifacts of the artifact I am running this command on. I tried the 'artifactId' mode, but it did not remove any previously created jar from my local repo. 2010/3/1 Jesse Farinacci jie...@gmail.com Hi Wim, On Mon, Mar 1, 2010 at 1:41 PM, Wim Deblauwe wim.debla...@gmail.com wrote: what is the best way if I want to erase all the artifacts from my local repo of the thing i am about to build using Maven? I tried the dependency plugin, but that only seems to remove the _dependencies_ of my artifact, not the current artifact. Do you mean you tried maven-dependency-plugin:purge-local-repository and it didn't do as you expect? -Jesse -- There are 10 types of people in this world, those that can read binary and those that can not. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Purging local repository
I also did that for now, but it seems a bit like a workaround and really unneeded for the dependencies we get from elsewhere (like maven central) 2010/3/2 David Hoffer dhoff...@gmail.com Okay, I don't use Nexus or Hudson so I don't know how those work. Do you need timestamped snapshots? We haven't found timestamped snapshots to be needed so the CI build just overwrites the one and only snapshot. Btw, on our CI systems we purge the entire local repo once per day, this helps clean things out as sometimes we refactor projects and rename group/artifact ids for snapshots. -Dave On Tue, Mar 2, 2010 at 6:28 AM, Wim Deblauwe wim.debla...@gmail.com wrote: To avoid filling up the disk. I have a virtualized ubuntu linux which has been given 50 GB and runs Nexus and Hudson. When Hudson builds using maven, it copies a lot of the nexus to the local repo. The local repo has timestamped versions of my snapshots, so I want to avoid that those snapshots fill up my harddisk. regards, Wim 2010/3/2 David Hoffer dhoff...@gmail.com Just wondering, why do you want to do this? -Dave On Tue, Mar 2, 2010 at 5:29 AM, Wim Deblauwe wim.debla...@gmail.com wrote: Indeed. I would have expected the goal to remove all previously generated artifacts of the artifact I am running this command on. I tried the 'artifactId' mode, but it did not remove any previously created jar from my local repo. 2010/3/1 Jesse Farinacci jie...@gmail.com Hi Wim, On Mon, Mar 1, 2010 at 1:41 PM, Wim Deblauwe wim.debla...@gmail.com wrote: what is the best way if I want to erase all the artifacts from my local repo of the thing i am about to build using Maven? I tried the dependency plugin, but that only seems to remove the _dependencies_ of my artifact, not the current artifact. Do you mean you tried maven-dependency-plugin:purge-local-repository and it didn't do as you expect? -Jesse -- There are 10 types of people in this world, those that can read binary and those that can not. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Purging local repository
Hi, what is the best way if I want to erase all the artifacts from my local repo of the thing i am about to build using Maven? I tried the dependency plugin, but that only seems to remove the _dependencies_ of my artifact, not the current artifact. regards, Wim
Plugin to check if something changed since the last tag?
Hi, is there such a thing as a plugin that checks if there have been any changes in the trunk of your project, since the last release you have done? I want to know this to avoid that you release a module in your project when nobody really checked in any code to that module, and so a release is not really needed. regards, Wim
How to structure my base poms?
Hi, we have java and flex projects at work. We currently have 1 base pom that contains the configurations we want to use for both projects. Problem with this is: flex projects inherit configuration for javadoc and pmd for example, which they do not want. I want to do this a bit more clean and have a real base-pom and then a java-base-pom and a flex-base-pom. But how does this work in a multimodule that has both a flex part and a java part? We have plugins to our own application where we use the following structure: + my-plugin + my-plugin-client (flex) + my-plugin-server (java) The my-plugin just contains a pom.xml with modules/ section. I would use the my-plugin pom.xml as a parent to both, but then I cannot also use the java base-pom or the flex base-pom also as parent. What would be the best approarch for this? regards, Wim
Re: How to avoid multiple spring versions?
Good tip! Thanks for that. 2009/10/16 Nick Stolwijk nick.stolw...@gmail.com And if you stop using the spring uberjar, you can also use the enforcer plugin to keep it away. plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-enforcer-plugin/artifactId executions execution idenforce rules/id goals goalenforce/goal /goals configuration rules bannedDependencies searchTransitivetrue/searchTransitive excludes excludeorg.springframework:spring/exclude /excludes /bannedDependencies /rules failtrue/fail /configuration /execution /executions /plugin Hth, Nick Stolwijk ~Java Developer~ IPROFS BV. Claus Sluterweg 125 2012 WS Haarlem http://www.iprofs.nl On Tue, Oct 13, 2009 at 7:35 PM, Jamie Whitehouse basil.whiteho...@genesyslab.com wrote: I don't, but Wim Deblauwe does who originally asked the question. My suggestion was aside from what he required in their own builds, to also define dependencies for each of the Spring components at the same version that they need to reduce the different Spring versions. There's a Maven feature request to allow setting of versions at a groupid level which would be useful in this case. -Original Message- From: Quintin Beukes [mailto:quin...@skywalk.co.za] Sent: Tuesday, October 13, 2009 1:08 PM To: Maven Users List Subject: Re: How to avoid multiple spring versions? I see. That's not good at all. There is no way to provide dependencies which have a different artifact id. Any reason why you depend on this one? Quintin Beukes On Tue, Oct 13, 2009 at 6:58 PM, Jamie Whitehouse basil.whiteho...@genesyslab.com wrote: The Spring project produces a complete spring artifact and component artifacts. For projects that use most or all of the components it's sometimes easier to use the former artifact. -Original Message- From: Quintin Beukes [mailto:quin...@skywalk.co.za] Sent: Tuesday, October 13, 2009 10:33 AM To: Maven Users List Subject: Re: How to avoid multiple spring versions? How did you create the following artifact? dependency groupIdorg.springframework/groupId artifactIdspring/artifactId version2.5.6/version /dependency If it's from your own pom, how about changing the POM and make it again reference the actual spring dependencies from http://repo1.maven.org/maven2; instead of including your OWN jars? dependency groupIdorg.springframework/groupId artifactIdspring-core/artifactId version2.5.6/version typejar/type /dependency dependency groupIdorg.springframework/groupId artifactIdspring-beans/artifactId version2.5.6/version typejar/type /dependency dependency groupIdorg.springframework/groupId artifactIdspring-context/artifactId version2.5.6/version typejar/type /dependency Then other people using these dependencies will match up with yours, and you will not have to change all your projects to reference these (since you just keep referencing the POM which references these). Quintin Beukes On Tue, Oct 13, 2009 at 4:17 PM, Jamie Whitehouse basil.whiteho...@genesyslab.com wrote: So you need to define a dependency for each one of these individual spring artifacts in your build in order to override the version. -Original Message- From: Wim Deblauwe [mailto:wim.debla...@gmail.com] Sent: Monday, October 12, 2009 5:11 AM To: Maven Users List; jeffma...@jeffmaury.com Subject: Re: How to avoid multiple spring versions? I know, but in this case, the artifactId is not exactly the same. We use 'spring' which includes everything and others might use 'spring-core' or 'spring-beans' or things like that. regards, Wim 2009/10/12 Jeff MAURY jeffma...@gmail.com This is normally handled by Maven. If you pom has a dependency on spring 2.5.6 and another dependency that has a dependency on Spring 2.5.5, the Maven will use Spring 2.5.6 when building your pom. Jeff MAURY On Mon, Oct 12, 2009 at 10:35 AM, Wim Deblauwe wim.debla...@gmail.com wrote: Hi, we are using the spring framework ourselves and use the following dependency: dependency
Re: How to avoid multiple spring versions?
Hi, ok, thanks for the input everybody! regards, Wim 2009/10/13 Edelson, Justin justin.edel...@mtvstaff.com Wim- I'm pretty sure Spring won't be doing this for 3.x, so you might want to go ahead and migrate to the discreet artifacts now. Justin -Original Message- From: Jamie Whitehouse [mailto:basil.whiteho...@genesyslab.com] Sent: Tuesday, October 13, 2009 12:59 PM To: Maven Users List Subject: RE: How to avoid multiple spring versions? The Spring project produces a complete spring artifact and component artifacts. For projects that use most or all of the components it's sometimes easier to use the former artifact. -Original Message- From: Quintin Beukes [mailto:quin...@skywalk.co.za] Sent: Tuesday, October 13, 2009 10:33 AM To: Maven Users List Subject: Re: How to avoid multiple spring versions? How did you create the following artifact? dependency groupIdorg.springframework/groupId artifactIdspring/artifactId version2.5.6/version /dependency If it's from your own pom, how about changing the POM and make it again reference the actual spring dependencies from http://repo1.maven.org/maven2; instead of including your OWN jars? dependency groupIdorg.springframework/groupId artifactIdspring-core/artifactId version2.5.6/version typejar/type /dependency dependency groupIdorg.springframework/groupId artifactIdspring-beans/artifactId version2.5.6/version typejar/type /dependency dependency groupIdorg.springframework/groupId artifactIdspring-context/artifactId version2.5.6/version typejar/type /dependency Then other people using these dependencies will match up with yours, and you will not have to change all your projects to reference these (since you just keep referencing the POM which references these). Quintin Beukes On Tue, Oct 13, 2009 at 4:17 PM, Jamie Whitehouse basil.whiteho...@genesyslab.com wrote: So you need to define a dependency for each one of these individual spring artifacts in your build in order to override the version. -Original Message- From: Wim Deblauwe [mailto:wim.debla...@gmail.com] Sent: Monday, October 12, 2009 5:11 AM To: Maven Users List; jeffma...@jeffmaury.com Subject: Re: How to avoid multiple spring versions? I know, but in this case, the artifactId is not exactly the same. We use 'spring' which includes everything and others might use 'spring-core' or 'spring-beans' or things like that. regards, Wim 2009/10/12 Jeff MAURY jeffma...@gmail.com This is normally handled by Maven. If you pom has a dependency on spring 2.5.6 and another dependency that has a dependency on Spring 2.5.5, the Maven will use Spring 2.5.6 when building your pom. Jeff MAURY On Mon, Oct 12, 2009 at 10:35 AM, Wim Deblauwe wim.debla...@gmail.com wrote: Hi, we are using the spring framework ourselves and use the following dependency: dependency groupIdorg.springframework/groupId artifactIdspring/artifactId version2.5.6/version /dependency Some of our dependencies also depend on the spring framework, but not the same version: [INFO] +- org.apache.activemq:activemq-pool:jar:5.2.0:compile [INFO] | +- org.apache.geronimo.specs:geronimo-jta_1.0.1B_spec:jar:1.0.1:compil e [INFO] | +- commons-pool:commons-pool:jar:1.4:compile [INFO] | \- org.springframework:spring-beans:jar:2.5.5:compile [INFO] | \- org.springframework:spring-core:jar:2.5.5:compile Probably maven does not know it should not include spring-beans:2.5.5 and spring-core:2.5.5 because I already have the 2.5.6 of the spring framework. Is there a way to avoid this? Excludes on activemq or is there a better way? regards, Wim -- http://www.jeffmaury.com http://riadiscuss.jeffmaury.com http://www.lastfm.fr/listen/user/jeffmaury/personal -- - CONFIDENTIALITY NOTICE: This e-mail and any files attached may contain confidential and proprietary information of Alcatel-Lucent and/or its affiliated entities. Access by the intended recipient only is authorized. Any liability arising from any party acting, or refraining from acting, on any information contained in this e-mail is hereby excluded. If you are not the intended recipient, please notify the sender immediately, destroy the original transmission and its attachments and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Copyright in this e-mail and any attachments belongs
Re: Excluding a directory with subdirectories in assembly plugin
Thanks, excludewebapps/root/**/exclude is what I needed, I don't mind to have the root dir itself, since I need to place something else there anyway. regards, Wim 2009/10/9 Stephen Connolly stephen.alan.conno...@gmail.com 2009/10/9 Wim Deblauwe wim.debla...@gmail.com Hi, I have an assembly descriptor with the following: assembly .. dependencySets dependencySet unpacktrue/unpack scopeprovided/scope includes includefoo:bar:zip/include /includes unpackOptions excludes excludewebapps/root/**/*.*/exclude this exclude will exclude all of the files in directories that contain a period if you try execludewebapps/root/*/**/exlcude that will include all the files in root and each directory (but the directories will be empty) if you go with excludewebapps/root/**/exclude That will include an empty root directory I suspect that you will have to do something along the lines of explicitly excluding named directories as iirc, includes is processed first another thing to try is excludewebapps/root/*//exclude excludewebapps/root/*/**/exclude but that may still result in the empty first level directories /excludes /unpackOptions /dependencySet .. /assembly The zip file that I want to unpack into the assembly contains a 'webapps/root' directory and this directory has some subdirectories. I don't want to unpack this directory. With the pattern I have used, none of the files are there (good), but the subdirectories are still there (not good). How can I avoid that the subdirectories are still in the assembly? regards, Wim
How to avoid multiple spring versions?
Hi, we are using the spring framework ourselves and use the following dependency: dependency groupIdorg.springframework/groupId artifactIdspring/artifactId version2.5.6/version /dependency Some of our dependencies also depend on the spring framework, but not the same version: [INFO] +- org.apache.activemq:activemq-pool:jar:5.2.0:compile [INFO] | +- org.apache.geronimo.specs:geronimo-jta_1.0.1B_spec:jar:1.0.1:compile [INFO] | +- commons-pool:commons-pool:jar:1.4:compile [INFO] | \- org.springframework:spring-beans:jar:2.5.5:compile [INFO] | \- org.springframework:spring-core:jar:2.5.5:compile Probably maven does not know it should not include spring-beans:2.5.5 and spring-core:2.5.5 because I already have the 2.5.6 of the spring framework. Is there a way to avoid this? Excludes on activemq or is there a better way? regards, Wim
Re: How to avoid multiple spring versions?
I know, but in this case, the artifactId is not exactly the same. We use 'spring' which includes everything and others might use 'spring-core' or 'spring-beans' or things like that. regards, Wim 2009/10/12 Jeff MAURY jeffma...@gmail.com This is normally handled by Maven. If you pom has a dependency on spring 2.5.6 and another dependency that has a dependency on Spring 2.5.5, the Maven will use Spring 2.5.6 when building your pom. Jeff MAURY On Mon, Oct 12, 2009 at 10:35 AM, Wim Deblauwe wim.debla...@gmail.com wrote: Hi, we are using the spring framework ourselves and use the following dependency: dependency groupIdorg.springframework/groupId artifactIdspring/artifactId version2.5.6/version /dependency Some of our dependencies also depend on the spring framework, but not the same version: [INFO] +- org.apache.activemq:activemq-pool:jar:5.2.0:compile [INFO] | +- org.apache.geronimo.specs:geronimo-jta_1.0.1B_spec:jar:1.0.1:compile [INFO] | +- commons-pool:commons-pool:jar:1.4:compile [INFO] | \- org.springframework:spring-beans:jar:2.5.5:compile [INFO] | \- org.springframework:spring-core:jar:2.5.5:compile Probably maven does not know it should not include spring-beans:2.5.5 and spring-core:2.5.5 because I already have the 2.5.6 of the spring framework. Is there a way to avoid this? Excludes on activemq or is there a better way? regards, Wim -- http://www.jeffmaury.com http://riadiscuss.jeffmaury.com http://www.lastfm.fr/listen/user/jeffmaury/personal
Excluding a directory with subdirectories in assembly plugin
Hi, I have an assembly descriptor with the following: assembly .. dependencySets dependencySet unpacktrue/unpack scopeprovided/scope includes includefoo:bar:zip/include /includes unpackOptions excludes excludewebapps/root/**/*.*/exclude /excludes /unpackOptions /dependencySet .. /assembly The zip file that I want to unpack into the assembly contains a 'webapps/root' directory and this directory has some subdirectories. I don't want to unpack this directory. With the pattern I have used, none of the files are there (good), but the subdirectories are still there (not good). How can I avoid that the subdirectories are still in the assembly? regards, Wim
Add arbitrary dependency in assembly
Hi, How do you add an arbitrary dependency in an assembly descriptor? I have a maven project that builds a war file. I want to assemble this war file together with a zip file. I have this zip file in my repository. I currently have added the zip file as a dependency in my pom.xml and added a dependencySet/ element to include this zip file (with unpack to true) and also an element for the war (with unpack to false). This works fine, but the zip is not a dependency of the war itself, so I don't like that I had to add it in my pom.xml. I tried setting the scope to 'provided' but then the assembly cannot find that zip file it seems. Is there some other way to have a nicer solution? regards, Wim
Re: Add arbitrary dependency in assembly
2009/10/2 Antonio Petrelli antonio.petre...@gmail.com 2009/10/2 Wim Deblauwe wim.debla...@gmail.com: I tried setting the scope to 'provided' but then the assembly cannot find that zip file it seems. You have to add the scope element and set it to provided in the dependencySet element: http://maven.apache.org/plugins/maven-assembly-plugin/assembly.html#class_dependencySet Is there some other way to have a nicer solution? I don't if it is nicer, but a widely adopted solution is to create an assembly project, so you can manage your assembly dependencies independently. Setting the provided scope indeed does the trick. Thank you! For me, this solution is nice enough :) Antonio - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: No primary artifact to install ?
Hi, We initially had only 1 mxml file in the source folder, so flex-mojos picked this one up. Later, we added an .as file to that same folder and suddenly flex-mojos did not compile anymore. I looked through the source code and found that if there is more then 1 mxml or as file, you only look for Main.mxml or Index.mxml, but our file was not named like that. Solving it once I knew what the problem was, was easy. I just had to add sourceFile to my configuration. Maybe you can document this some more in the docs of sourceFile/. Now, it just states that this is optional, but it would be good to elaborate on it. Maybe it would also be good to fail the build with a nice exception, saying you cannot find a single mxml or as file and the user needs to specify it using sourceFile/. It would have saved me some hours of research. regards, Wim PS: Thanks for the great plugin! 2009/9/19 Marvin Froeder velo...@gmail.com Now I got curious What is up with flexmojos? VELO On Wed, Sep 16, 2009 at 6:31 AM, Wim Deblauwe wim.debla...@gmail.com wrote: It seems the problem was not related to assembly, but to flex mojos. Thank you for your help. regards, Wim 2009/9/16 Aleksey Didik di...@magenta-technology.ru Hi, because you use _aseembly:single_ instead of _assembly:assembly_. Documentation of maven-assembly-plugin, goal single : Assemble an application bundle or distribution from an assembly descriptor. This goal is suitable either for binding to the lifecycle or calling directly from the command line (provided all required files are available before the build starts, or are produced by another goal specified before this one on the command line). Change _goalsingle/goal_ to _goalassembly/goal_ and try again. Best regards, Aleksey Didik Wim Deblauwe ?: Hi, I have a maven project with 'swf' packaging. I also have the assembly plugin configured as follows: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-assembly-plugin/artifactId executions execution idassembly/id goals goalsingle/goal /goals phasepackage/phase configuration descriptors descriptorsrc/main/assembly/descriptor.xml/descriptor /descriptors /configuration /execution /executions /plugin When I do a 'mvn clean install', the swf is not generated and I see the following info message: [INFO] [install:install {execution: default-install}] [INFO] No primary artifact to install, installing attached artifacts instead. Why is my swf no longer being installed? regards, Wim
No primary artifact to install ?
Hi, I have a maven project with 'swf' packaging. I also have the assembly plugin configured as follows: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-assembly-plugin/artifactId executions execution idassembly/id goals goalsingle/goal /goals phasepackage/phase configuration descriptors descriptorsrc/main/assembly/descriptor.xml/descriptor /descriptors /configuration /execution /executions /plugin When I do a 'mvn clean install', the swf is not generated and I see the following info message: [INFO] [install:install {execution: default-install}] [INFO] No primary artifact to install, installing attached artifacts instead. Why is my swf no longer being installed? regards, Wim
Re: No primary artifact to install ?
It seems the problem was not related to assembly, but to flex mojos. Thank you for your help. regards, Wim 2009/9/16 Aleksey Didik di...@magenta-technology.ru Hi, because you use _aseembly:single_ instead of _assembly:assembly_. Documentation of maven-assembly-plugin, goal single : Assemble an application bundle or distribution from an assembly descriptor. This goal is suitable either for binding to the lifecycle or calling directly from the command line (provided all required files are available before the build starts, or are produced by another goal specified before this one on the command line). Change _goalsingle/goal_ to _goalassembly/goal_ and try again. Best regards, Aleksey Didik Wim Deblauwe ?: Hi, I have a maven project with 'swf' packaging. I also have the assembly plugin configured as follows: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-assembly-plugin/artifactId executions execution idassembly/id goals goalsingle/goal /goals phasepackage/phase configuration descriptors descriptorsrc/main/assembly/descriptor.xml/descriptor /descriptors /configuration /execution /executions /plugin When I do a 'mvn clean install', the swf is not generated and I see the following info message: [INFO] [install:install {execution: default-install}] [INFO] No primary artifact to install, installing attached artifacts instead. Why is my swf no longer being installed? regards, Wim
Generate pdf from confluence page during build?
Hi, I want to export a confluence page (or pages if possible) when I do a maven build. Currently, the pdf export is checked into SVN, but we have to remember to manually update the file each time something has changed to Confluence. It would be great if we could automate this. is there anybody who already tried this or knows how to do it? regards, Wim
Re: [ANN] Failsafe Maven Plugin 2.4.3-alpha-1 released.
Is there an explanation somewhere on when to use surefire and when this failsafe plugin? What are the main differences? regards, Wim 2009/5/25 Stephen Connolly stephen.alan.conno...@gmail.com The Mojo team is pleased to announce the release of the Failsafe Maven Plugin, version 2.4.3-alpha-1. The Failsafe Plugin is a fork of the Maven Surefire Plugin designed for running integration tests. It has the following goals. * failsafe:integration-test (with a default phase of integration-test) which by default uses surefire to execute all tests matching the pattern **/IT*.java, **/*IT.java and **/*ITCase.java. This goal should not fail the build, thereby allowing the post-integration-test phase to execute and tidy up the integration test environment. * failsafe:verify (with a default phase of verify) which checks the results of running the integration tests and fails the build if there were test failures. When using the Failsafe Maven Plugin with its default phase bindings, use mvn verify to execute the integration tests. To use this plugin in your projects, add the following to the project/build/plugins section of your pom.xml project [...] build [...] plugins [...] plugin groupIdorg.codehaus.mojo/groupId artifactIdfailsafe-maven-plugin/artifactId version2.4.3-alpha-1/version executions execution goals goalintegration-test/goal goalverify/goal /goals /execution /executions /plugin [...] /plugins [...] /build [...] /project The artifacts have been deployed to the mojo repository and will be mirrored to central within the next 24 hours. The Mojo Team.
Re: [ANN] Flexmojos 3.2 Released
Where is the documentation on the parameters you can pass for unit testing? I am especially looking for setting the test timeout (FLEXMOJOS-67). regards, Wim 2009/5/8 Marvin Froeder velo...@gmail.com Hi people, I released last night the latest version of flexmojos, version 3.2.0. Release notes: https://issues.sonatype.org/browse/FLEXMOJOS/fixforversion/10296 This release was mainly focused on improving the unit test support. The greatest new is for Linux headless machines (CI servers). Now flexmojos will automatically launch Xvfb to run the tests. It is only necessary to have xvfb-run installed. https://docs.sonatype.org/display/FLEXMOJOS/Running+unit+tests Fork mode for unit test is now configurable. configuration forkModeonce/forkMode!-- valid values once and always, default once -- /configuration Fork once means all unit test classes will be compiled into a single SWF file, and all tests will be run at once. Fork always means one SWF per unit test classes. This is very helpful on automated UI tests using flexmonkey. Changes on html-wrapper mojo too, it does now interpolate all files on the template. On previous versions it only interpolate the index.template.html. Optimization is now available to SWF projects too. Now, if for any reason you need to optimize your SWF that can be done using optimizer mojo. That is it. For 3.3 we are planning some improvements on ActionScript generation. Stay tunned. VELO
Re: Extracting classpath for an application from maven
This might be handy for this: http://mojo.codehaus.org/appassembler/appassembler-maven-plugin/ 2009/3/7 Roman Kournjaev kournj...@gmail.com Hi All I have a maven based application, well now i want to run it in cmd mode, it means just executing the compiled class. How do i extract the classpath for this application from my pom easilly ? Thanks in advance. Roman
Force profile to be present during release
Hi, According to http://maven.apache.org/plugins/maven-release-plugin/examples/perform-release.html, you can specify a profile to be enabled during releasing. What does this exactly do when there is no such profile defined in the user's settings.xml? Will the release:prepare and/or release:perform fail? regards, Wim
Perform release without updating pom to new SNAPSHOT version
Hi, is it possible to do release:perfom which does everything like normal, except updating the pom.xml to a new SNAPSHOT version? We use branches per version, so if I release on my branch int_module_1.0, I don't want the pom.xml to change to 1.1-SNAPSHOT. In fact, I want the branch to be locked. Is this supported by the release plugin? regards, Wim
Re: Perform release without updating pom to new SNAPSHOT version
No, we don't have an extra version. The branch is called int_module_1.0 and we use 1.0-SNAPSHOT on that branch. When we release, this becomes version 1.0 and no further work should be done on that branch. We will then create a new branch int_module_1.1 and use version 1.1-SNAPSHOT there. regards, Wim 2009/1/19 Mark Struberg strub...@yahoo.de but you haven an internal build version _inside_ this brunch, don't you? how should maven otherwise distinguish between different builds of that branch? I suggest using: int_module_1.0-1-SNAPSHOT so a release will create and tag a int_module_1.0-1 and your pom finally will state int_module_1.0-2-SNAPSHOT LieGrue, strub --- Wim Deblauwe wim.debla...@gmail.com schrieb am Mo, 19.1.2009: Von: Wim Deblauwe wim.debla...@gmail.com Betreff: Perform release without updating pom to new SNAPSHOT version An: Maven Users List users@maven.apache.org Datum: Montag, 19. Januar 2009, 12:16 Hi, is it possible to do release:perfom which does everything like normal, except updating the pom.xml to a new SNAPSHOT version? We use branches per version, so if I release on my branch int_module_1.0, I don't want the pom.xml to change to 1.1-SNAPSHOT. In fact, I want the branch to be locked. Is this supported by the release plugin? regards, Wim - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: where to place Test support/reusable fixture classes?
You don't have to create a separate project if you don't want to. You can export the test classes in a separate jar with the 'test' classifier and depend on that jar. regards, Wim 2009/1/10 Jeff Jensen jeffjen...@upstairstechnology.com I suggest creating a separate project, e.g. TestFramework, and place those types of reusable test classes in its src/main/java. Then, the other projects can depend on it for the test scope. -Original Message- From: Giovanni Azua [mailto:brave...@swissonline.ch] Sent: Friday, January 09, 2009 1:15 PM To: 'Maven Users List' Subject: where to place Test support/reusable fixture classes? Hi, I have a multi module project and in one of the top nodes of the dependency tree I would like to place a Test support class i.e. AbstractHibernateHSQLTestCase extends junit.framework.TestCase This class provides automatic database shutdown of HSQL in memory based test cases to prevent the creation of the inconvenient test.lck and test.log files. My problem is that I don't know where to place this utility class. Ideally I would place it in the test branch of module A but then it will not be inherited by sub-modules that depend on A say B and C. On the other hand if I place it under the java branch of module A, then A will compile/runtime depend on JUnit which I want to avoid at all costs. I remember I had this same problem trying to define reusable test fixtures classes but in the hurry I ended up duplicating the fixture classes under each sub-module. TIA, Regards, Giovanni - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Put the version of a specifc dependency in a property
Hi, I have a project (war) that has an other project (swf) as a dependency. The war contains an index.jsp that refers to the swf dependency. Currently, it is hardcode like 'myflexproject-1.0-SNAPSHOT.swf'. I would like to put some placeholder there and let maven filter this index.jsp and fill in the correct version. Is this possible? How? regards, Wim
Re: Put the version of a specifc dependency in a property
Hi Stephen, thank you for your quick reply, but I don't understand what you mean. What I have tried to test is create a test.properties file in my war project that is being filtered. I've put in this: aspectj=${org.aspectj.version} aspectj.weaver=${org.aspectj.aspectjweaver.version} swf=${com.mycomp.server-ria.version} Only the first line gets replaced, the other 2 are not being replaced. Can you elaborate on you can either define a property with the version and link the dependency's version to the property? regards, Wim 2008/12/24 Stephen Connolly stephen.alan.conno...@gmail.com have the jsp page load a properties file which has the version within. if performance is a proven concern, have a java class load and cache the version into a singleton bean as regards capturing the current version of a dependency, you can either define a property with the version and link the dependency's version to the property, or hmm I've another idea for the versions maven plugin Sent from my iPod On 24 Dec 2008, at 09:46, Wim Deblauwe wim.debla...@gmail.com wrote: Hi, I have a project (war) that has an other project (swf) as a dependency. The war contains an index.jsp that refers to the swf dependency. Currently, it is hardcode like 'myflexproject-1.0-SNAPSHOT.swf'. I would like to put some placeholder there and let maven filter this index.jsp and fill in the correct version. Is this possible? How? regards, Wim - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Put the version of a specifc dependency in a property
As some yellow cartoon character would say: Doh! I already use properties/, just did not make the click in my head. Thank you! 2008/12/24 Stephen Connolly stephen.alan.conno...@gmail.com project ... properties foo.version1.5-SNAPSHOT/foo.version /properties ... dependencies dependency groupIdcom.bar/groupId artifactIdfoo/artifactId version${foo.version}/version /dependency /dependencies ... /project Sent from my iPod On 24 Dec 2008, at 10:18, Wim Deblauwe wim.debla...@gmail.com wrote: Hi Stephen, thank you for your quick reply, but I don't understand what you mean. What I have tried to test is create a test.properties file in my war project that is being filtered. I've put in this: aspectj=${org.aspectj.version} aspectj.weaver=${org.aspectj.aspectjweaver.version} swf=${com.mycomp.server-ria.version} Only the first line gets replaced, the other 2 are not being replaced. Can you elaborate on you can either define a property with the version and link the dependency's version to the property? regards, Wim 2008/12/24 Stephen Connolly stephen.alan.conno...@gmail.com have the jsp page load a properties file which has the version within. if performance is a proven concern, have a java class load and cache the version into a singleton bean as regards capturing the current version of a dependency, you can either define a property with the version and link the dependency's version to the property, or hmm I've another idea for the versions maven plugin Sent from my iPod On 24 Dec 2008, at 09:46, Wim Deblauwe wim.debla...@gmail.com wrote: Hi, I have a project (war) that has an other project (swf) as a dependency. The war contains an index.jsp that refers to the swf dependency. Currently, it is hardcode like 'myflexproject-1.0-SNAPSHOT.swf'. I would like to put some placeholder there and let maven filter this index.jsp and fill in the correct version. Is this possible? How? regards, Wim - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Filtering web resources with values from settings.xml
Hi, is it possible to filter external web resources as explained here: http://maven.apache.org/plugins/maven-war-plugin/examples/adding-filtering-webresources.html, but using the values from my settings.xml instead of values from an extra file? regards, Wim
PMD check binding to other lifecycle phase?
Hi, I don't really understand why the PMD check is bound to the verify lifecycle phase by default? This means that my unit tests run first and then I get an error that there is a PMD violation. Would it not be better to do this in the validate phase? Other candidates might be process-sources or process-test-sources maybe if you want to check generated source files and/or test source files also. Anyway, how can I change this for my project to where I want it? regards, Wim
Re: [Public service announcement] mirrors of Central and considerate repo use
+1 for that 2008/11/29 Paul Benedict [EMAIL PROTECTED] I think Maven should download and configure itself with a list of mirrors on first execution. Why leave this up to the users? I bet most will likely not care to change. Paul On Sat, Nov 29, 2008 at 8:33 AM, Wendy Smoak [EMAIL PROTECTED] wrote: On Sat, Nov 29, 2008 at 5:16 AM, Alex Athanasopoulos [EMAIL PROTECTED] wrote: One of the most annoying problems I ran into with maven was when I setup a central mirror containing my old local repository, deleted my local repository, and then tried to rebuild it by doing a build. A local repo can't be used as a remote repo... while the directory structure looks the same, the metadata files are different. -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Different checkstyle config for main and test?
Hi, is it possible to define a different checkstyle configuration in maven for the main and the tests? I want to allow underscores in method names, but only in my test source directory. regards, Wim
Re: Different checkstyle config for main and test?
I have used profiles before, I don't think you can use that. How would you do this? 2008/11/10 [EMAIL PROTECTED] I think you can use profiles for that. bruno On Nov 10, 2008 11:43am, Wim Deblauwe [EMAIL PROTECTED] wrote: Hi, is it possible to define a different checkstyle configuration in maven for the main and the tests? I want to allow underscores in method names, but only in my test source directory. regards, Wim
Maven picking test classifier dependencies twice
Hi, I am seeing a really strange problem with Maven in a multimodule build. (Using 2.0.8 or 2.0.9) I have a multimodule with some submodules: + parent + server-common + module 1 + module 2 + ... Both 'module 1' and 'module 2' depend on server-common and the test classes exposed by server-common. The strange thing is that module 1 builds correctly and module 2 does not. Both have this same dependency in their pom.xml: dependency groupIdcom.mycomp.server/groupId artifactIdserver-common/artifactId /dependency dependency groupIdcom.mycomp.server/groupId artifactIdserver-common/artifactId classifiertests/classifier scopetest/scope /dependency Now the build succeeds: - If you build from module 1 directory - If you build from module 2 directory - If you build from the parent using mvn clean install -Pintegration The build fails: - If you build from the parent with mvn clean deploy site -Pintegration I ran maven with the DEBUG output enabled and saw this: [INFO] [compiler:testCompile] [DEBUG] Using compiler 'javac'. [DEBUG] Source directories: [C:\jb\tms2\server\managementgrid\src\test\java] [DEBUG] Classpath: [C:\jb\tms2\server\managementgrid\target\test-classes C:\jb\tms2\server\managementgrid\target\classes ...(other dependencies here) C:\Documents and Settings\jbe\.m2\repository\com\traficon\tmsng\server-common\1.0-SNAPSHOT\server-common-1.0-SNAPSHOT-tests.jar ...(other dependencies here) C:\Documents and Settings\jbe\.m2\repository\com\traficon\tmsng\server-common\1.0-SNAPSHOT\server-common-1.0-SNAPSHOT-tests.jar C:\jb\tms2\server\server-logging\target\server-logging-1.0-SNAPSHOT.jar ...(other dependencies here) [DEBUG] Output directory: C:\jb\tms2\server\managementgrid\target\test-classes (managementgrid is module 2 that does not build) As you can see, server-common is added 2 times, but only with the tests classifier. The normal server-common.jar is not added. What is also strange is that 'server-logging' (which is also part of the multimodule) is added as a dependency referenced from the target directory (and not from the local repo), but server-common is referenced from the local repo. Anybody who can shed some light in this case would really make my day :) regards, Wim
Re: Best Practices Maven release-plugin multimodule with module dependencies ?
If the projects are released independent, then you probably better of not using a multimodule structure. What things are defined in your parent? If this is only pom things, then you are better of creating a project of pom packaging and 2 separate projects. regards, Wim 2008/10/30 Lionel C. [EMAIL PROTECTED] Hi, 1- In my trunk, I've got a project like this Parent 1.1.0-SNAPSHOT |-Project1 0.0.5-SNAPSHOT (depends on Project2 0.0.3-SNAPSHOT) |-Project2 0.0.3-SNAPSHOT 2- After a release of the parent 1.1.0-SNAPSHOT I would like ti have in my tag: Parent 1.1.0 |-Project1 0.0.5 (depends on Project2 0.0.3) |-Project2 0.0.3 And in my trunk Parent 1.2.0-SNAPSHOT |-Project1 0.0.6-SNAPSHOT (depends on Project2 0.0.4-SNAPSHOT) |-Project2 0.0.4-SNAPSHOT But it seems it's not possible and de dependencies are not well managed at the end I've: Parent 1.1.0 |-Project1 0.0.5 (depends on Project2 0.0.3-SNAPSHOT) |-Project2 0.0.3 And in my trunk Parent 1.2.0-SNAPSHOT |-Project1 0.0.6-SNAPSHOT (depends on Project2 0.0.3-SNAPSHOT) |-Project2 0.0.4-SNAPSHOT I'm a new maven user, in the example I didn't used the dependency manager for the version in the parent, I declare the dependence version in the Project1 - pom.xml. I read in the BetterBuilds with Maven to used the dependency manager with ${project.version} for the entire child version but it's not what I want. I want each child to have is own life (release it independently if needed) For the moment, I defined properties in the parent-pom.xml which correspond to version I mean: properties Project1.version0.0.5-SNAPSHOT/Project1.version Project2.version0.0.3-SNAPSHOT/Project2.version /properties Then I used ${xxx.version} in my project, I've to modify these properties before a release but at least at the end I've what I want. I'm pretty sure it's not the best practices but I didn't find a solution to solve the version increment dependence. Thanks in advance for your answer Lionel -- View this message in context: http://n2.nabble.com/Best-Practices-Maven-release-plugin-multimodule-with-module-dependencies---tp1397646p1397646.html Sent from the maven users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: maven-release-plugin removes comments
A quick search in jira makes you think it should have been fixed: http://jira.codehaus.org/browse/MRELEASE-255, although this related bug ( http://jira.codehaus.org/browse/MRELEASE-266) is still open. Not sure if all comments are left alone or just specific things? regards, Wim 2008/10/30 Sahoo [EMAIL PROTECTED] My pom.xml looks like this: ?xml version=1.0 encoding=UTF-8? !-- /* * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. * ... -- project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi= http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd; modelVersion4.0.0/modelVersion ... I am doing a dryRun of mvn release:branch. I see that the above comment is removed by maven. How can I avoid it? Thanks, Sahoo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Dependencies and cargo plugin?
In what repo is that version? 2008/10/24 Marc Schneider [EMAIL PROTECTED] Hello, I also use the cargo-maven2-plugin but don't need to specify all these dependencies. Btw I use cargo 1.0-alpha6. Here is my plugin configuration : plugin groupIdorg.codehaus.cargo/groupId artifactIdcargo-maven2-plugin/artifactId configuration waitfalse/wait container containerIdtomcat5x/containerId home${tomcat.local.home}/home /container configuration properties cargo.logginghigh/cargo.logging cargo.servlet.port${servlet.port}/cargo.servlet.port /properties /configuration /configuration executions execution idstart-container/id phasepre-integration-test/phase goals goalstart/goal /goals /execution execution idstop-container/id phasepost-integration-test/phase goals goalstop/goal /goals /execution /executions /plugin Marc. Wim Deblauwe a écrit : Hi, It seems that I need to add all my dependencies in my pom.xml 2 times when I use a war project with cargo. Is there a way to avoid this? This is very annoying to try to find out all the dependencies (and their transitive dependencies manually) and have to add those to the dependencies/ section of the cargo plugin. According to the documentation ( http://cargo.codehaus.org/Starting+and+stopping+a+container#Startingandstoppingacontainer-extrajars ) this is only needed if you want to share between web projects, but I only have 1 and I still have to do it, otherwise I get ClassNotFoundExceptions. This is my pom.xml (partially): packagingwar/packaging build finalNameserver-web/finalName plugins plugin groupIdorg.codehaus.cargo/groupId artifactIdcargo-maven2-plugin/artifactId version0.3/version configuration container containerIdtomcat5x/containerId zipUrlInstaller url http://www.apache.org/dist/tomcat/tomcat-5/v5.5.27/bin/apache-tomcat-5.5.27.zip /url installDir${installDir}/installDir /zipUrlInstaller systemProperties java.net.preferIPv4Stacktrue/java.net.preferIPv4Stack /systemProperties dependencies LONG LIST OF DEPENDENCIES HERE regards, Wim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Dependencies and cargo plugin?
It works! It would be good if they would update the documentation to let this know. There is no sign of any of those alpha or beta versions on the cargo website. regards thank you again, you just made me very happy :) Wim 2008/10/24 Nick Stolwijk [EMAIL PROTECTED] It can be found here: http://repository.codehaus.org/org/codehaus/cargo/cargo-maven2-plugin beta 1 is also available. Hth, Nick Stolwijk ~Java Developer~ Iprofs BV. Claus Sluterweg 125 2012 WS Haarlem www.iprofs.nl On Fri, Oct 24, 2008 at 11:12 AM, Wim Deblauwe [EMAIL PROTECTED] wrote: In what repo is that version? 2008/10/24 Marc Schneider [EMAIL PROTECTED] Hello, I also use the cargo-maven2-plugin but don't need to specify all these dependencies. Btw I use cargo 1.0-alpha6. Here is my plugin configuration : plugin groupIdorg.codehaus.cargo/groupId artifactIdcargo-maven2-plugin/artifactId configuration waitfalse/wait container containerIdtomcat5x/containerId home${tomcat.local.home}/home /container configuration properties cargo.logginghigh/cargo.logging cargo.servlet.port${servlet.port}/cargo.servlet.port /properties /configuration /configuration executions execution idstart-container/id phasepre-integration-test/phase goals goalstart/goal /goals /execution execution idstop-container/id phasepost-integration-test/phase goals goalstop/goal /goals /execution /executions /plugin Marc. Wim Deblauwe a écrit : Hi, It seems that I need to add all my dependencies in my pom.xml 2 times when I use a war project with cargo. Is there a way to avoid this? This is very annoying to try to find out all the dependencies (and their transitive dependencies manually) and have to add those to the dependencies/ section of the cargo plugin. According to the documentation ( http://cargo.codehaus.org/Starting+and+stopping+a+container#Startingandstoppingacontainer-extrajars ) this is only needed if you want to share between web projects, but I only have 1 and I still have to do it, otherwise I get ClassNotFoundExceptions. This is my pom.xml (partially): packagingwar/packaging build finalNameserver-web/finalName plugins plugin groupIdorg.codehaus.cargo/groupId artifactIdcargo-maven2-plugin/artifactId version0.3/version configuration container containerIdtomcat5x/containerId zipUrlInstaller url http://www.apache.org/dist/tomcat/tomcat-5/v5.5.27/bin/apache-tomcat-5.5.27.zip /url installDir${installDir}/installDir /zipUrlInstaller systemProperties java.net.preferIPv4Stacktrue/java.net.preferIPv4Stack /systemProperties dependencies LONG LIST OF DEPENDENCIES HERE regards, Wim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Dependencies and cargo plugin?
Hi, It seems that I need to add all my dependencies in my pom.xml 2 times when I use a war project with cargo. Is there a way to avoid this? This is very annoying to try to find out all the dependencies (and their transitive dependencies manually) and have to add those to the dependencies/ section of the cargo plugin. According to the documentation ( http://cargo.codehaus.org/Starting+and+stopping+a+container#Startingandstoppingacontainer-extrajars) this is only needed if you want to share between web projects, but I only have 1 and I still have to do it, otherwise I get ClassNotFoundExceptions. This is my pom.xml (partially): packagingwar/packaging build finalNameserver-web/finalName plugins plugin groupIdorg.codehaus.cargo/groupId artifactIdcargo-maven2-plugin/artifactId version0.3/version configuration container containerIdtomcat5x/containerId zipUrlInstaller url http://www.apache.org/dist/tomcat/tomcat-5/v5.5.27/bin/apache-tomcat-5.5.27.zip /url installDir${installDir}/installDir /zipUrlInstaller systemProperties java.net.preferIPv4Stacktrue/java.net.preferIPv4Stack /systemProperties dependencies LONG LIST OF DEPENDENCIES HERE regards, Wim
Re: [ANN] Maven Reactor Plugin 1.0 Released
Hi Dan, seems extremely usefull to me. 2 questions I did not find an answer to in the documentation: 1) You spawn a different maven process are thoses processing using MAVEN_OPTS by default (most important would be the memory settings I have set)? 2) How does it know how to stop walking up the inheritance tree? What I mean is, why does not try to build hibernate for example (assuming my project depends on that)? Does there need to be a parent project with a modules/ section for it to work? Would it work if I have a domain module which is used by several applications (but is just a dependency, not part of a multimodule build) to make that part of the chain (in either direction), if of course the source code is available on the building pc. regards, Wim 2008/9/28 Dan Fabulich [EMAIL PROTECTED] The Maven team is pleased to announce the release of the Maven Reactor Plugin, version 1.0. This plugin can build a subset of interdependent projects in a reactor. It should be useful in large reactor builds that include irrelevant stuff you're not working on. http://maven.apache.org/plugins/maven-reactor-plugin/ The Reactor plugin is normally run from the command line, like this: * reactor:resume resumes a reactor at a certain point (e.g. when it fails in the middle) Example: mvn reactor:resume -Dfrom=bar * reactor:make builds a project X and all of the reactor projects on which X depends Example: mvn reactor:make -Dmake.folders=foo,bar * reactor:make-dependents builds a project X and all of the reactor projects that depend on X (the reverse of reactor:make) Example: mvn reactor:make-dependents -Dmake.folders=foo,bar * reactor:make-scm-changes build all reactor projects that you personally have changed (according to SCM) and all reactor projects that depend on your changes Example: mvn reactor:make-scm-changes This is the first release of the Maven Reactor Plugin. Enjoy, -The Maven team - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Always getting 'used undeclared dependencies' warning when using TestNG
I don't understand, I have now run it again and I don't get the warning anymore? Maybe I've had some unused import or something before? regards, Wim 2008/9/5 Brett Porter [EMAIL PROTECTED] I don't have that problem (TestNG 5.8). Are you sure that you're not using the JUnit assert classes, etc? Cheers, Brett 2008/9/1 Wim Deblauwe [EMAIL PROTECTED] Hi, when I run 'mvn dependency:analyze' I always get this warning: [WARNING] Used undeclared dependencies found: [WARNING]junit:junit:jar:3.8.1:test I assume it is because I use TestNG and that has a transitive dependency on JUnit. Why should I declare a direct dependency on JUnit if I don't use JUnit directly? regards, Wim -- Brett Porter Blog: http://blogs.exist.com/bporter/
Re: [ANN] Versions Maven Plugin 1.0-alpha-1 released
Does it work if you are not using the central repo directly but a repository manager (archiva in my case) in between. Will this plugin see the newer versions, even if they are not in archiva yet? regards, Wim 2008/9/5 Stephen Connolly [EMAIL PROTECTED] The Mojo team is pleased to announce the release of the Versions Maven Plugin, version 1.0-alpha-1. This plugin allows: * the querying for newer versions of plugins used in a project. * the querying for newer versions of dependencies used in a project. * updating a project's parent to the latest available version (e.g. useful for syncing with corporate poms to ensure the latest is used prior to rolling a release) * updating properties defined in a project to the latest version of a specific artifact (e.g. for ensuring that a suite of dependencies are all the same version) http://mojo.codehaus.org/versions-maven-plugin/ You can run mvn -up to get the latest version of the plugin, or specify the version in your project's plugin configuration: plugin groupIdorg.codehaus.mojo/groupId artifactIdversions-maven-plugin/artifactId version1.0-alpha-1/version /plugin Release Notes - Maven 2.x Versions Plugin - Version 1.0-alpha-1 ** Bug * [MVERSIONS-1] - javadoc plugin doesn't have its version specified but it has * [MVERSIONS-2] - display-plugin-updates does not include lifecycle plugins that are not defined in the pom. ** Known Issues - Maven 2.x Versions Plugin - Version 1.0-alpha-1 * [MVERSIONS-3] - display-plugin-updates does not identify the plugin version as not being provided when derived from the super-pom Enjoy, -The Mojo team
Re: how, exactly, does maven compare versions
Hi, we have a kind of strange version mechanism, and I wonder I can 'translate' this to maven. This is how it works: E1.01.01 E1.01.02 .. V1.01 Versions starting with E are test builds leading into the release (V1.01 in the example) Is 1.01 considered newer then 1.01-E01 for example? regards, Wim 2008/9/5 Benjamin Smith-Mannschott [EMAIL PROTECTED] On Sep 4, 2008, at 22:09, Stephen Connolly wrote: On Thu, Sep 4, 2008 at 8:52 PM, Benjamin Smith-Mannschott: Yes. That helped, as did http://docs.codehaus.org/display/MAVEN/Extending+Maven+2.0+Dependencies Which actually comes out and says that qualifier and build nr are mutually exclusive. The syntax given says this too, but I wasn't seeing it. Another way of looking at it, I suppose, is that everything following 1.2.3- is taken as single qualifier, which is compared numerically if it happens to be composed only of digits and otherwise compared as a string. Yep: http://maven.apache.org/ref/current/maven-artifact/xref/org/apache/maven/artifact/versioning/DefaultArtifactVersion.html#155 Aha! thanks! I was grubbing around in the source of the 2.0.x branch yesterday after I wrote my message looking for exactly this class, only I didn't find it. ;-) It seems that '.2.3', in the example above is optional, those parts taken to be zero if missing. If any alphanumerics get mixed up in there or about without a separating hyphen the whole thing goes textual and is just compared as a single string. At least that's what I understood. So presumably, if we're comparing two version strings with eachother and one is well formed and the other is not, they just get compared as if they were both not well formed. Nope: http://maven.apache.org/ref/current/maven-artifact/xref/org/apache/maven/artifact/versioning/DefaultArtifactVersion.html#54 If one is treated as a string (because it's malformed) the other will always be newer (because it has a build number) Actually, it looks like the build number only enters into it when both have a build number, but build number and qualifier are mutually exclusive, so the logic exits early if one has a qualifier and the other doesn't. Somehow that logic makes me a little queezy, but at least it does appear to sort consistently. // Ben - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Always getting 'used undeclared dependencies' warning when using TestNG
Hi, when I run 'mvn dependency:analyze' I always get this warning: [WARNING] Used undeclared dependencies found: [WARNING]junit:junit:jar:3.8.1:test I assume it is because I use TestNG and that has a transitive dependency on JUnit. Why should I declare a direct dependency on JUnit if I don't use JUnit directly? regards, Wim
Re: starting with maven
An alternative is to turn your jar file into an executable jar file where you put your main class in the manifest file. project build plugins plugin artifactIdmaven-jar-plugin/artifactId configuration archive indextrue/index manifest mainClasscom.mycompany.app.App/mainClass addClasspathtrue/addClasspath /manifest /archive /configuration /plugin /plugins /build Now you can use the -jar option to start your application. regards, Wim 2008/8/22 Ben Aurel [EMAIL PROTECTED] Alex, thank you. This is exactly what I was looking for. I got it running with $ mvn exec:java -Dexec.mainClass=com.mycompany.app.App On Thu, Aug 21, 2008 at 8:22 PM, Alex [EMAIL PROTECTED] wrote: See http://mojo.codehaus.org/exec-maven-plugin/java-mojo.html Ben Jakbot wrote: hi I try to start with maven and I'm sinking in tons of documentation. Docs are a good thing, but I somehow miss the very obvious. Right now I'm going through a the nice manual calling Better Builds with Maven. Basically I ran the following commands: $mvn archetype:create -DgroupId=com.mycompany.app \ -DartifactId=my-app $ cd my-app $ mvn compile $ mvn test $ mvn test-compile $ mvn package $ mvn install which magically generated my a project structure a hello world kind of class and a test class for it. Then it compiled all the classes so that I now have $ ls target/ classes maven-archiver my-app-1.0-SNAPSHOT.jar surefire-reportstest-classes So my super simple task is complete this little roundtrip by running the app my-app-1.0-SNAPSHOT.jar. And the question is how can I run it? Now I get the following error: $ java target/my-app-1.0-SNAPSHOT.jar Exception in thread main java.lang.NoClassDefFoundError: target/my-app-1/0-SNAPSHOT/jar I hoped not to have to mess around with classpathes. Could somebody help me with this? thanks in advance ben - 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: Assembly with module binaries?
They indeed both give the same result, but not what I was expecting. I was hoping to get: + parent + target + parent-1.0-SNAPSHOT-assembly + modules + module1 + module1-1.0-SNAPSHOT-assembly.zip + module2 + module2-1.0-SNAPSHOT-assembly.zip In stead of both modules, I get all the dependencies each in a subfolder. Is it possible to get maven to build both assembly zips of the child modules in 1 go? regards, Wim 2008/8/20 John Casey [EMAIL PROTECTED] Try using ${module.artifactId} or ${artifact.artifactId} (synonyms in the module binaries section, IIRC). ${artifactId} references the project running, not the artifact being processed. -john Wim Deblauwe wrote: Hi, I'm following the instruction on http://maven.apache.org/plugins/maven-assembly-plugin/examples/multimodule/module-binary-inclusion-simple.html I would like to create a directory with 2 subdirecties of my child modules. The assembly plugin runs, but it seems that the ${artifactId} substitution does not work. The artifactId of the parent (where I execute the assembly command) is used in stead of the ones of the child modules. I'm using Maven 2.0.8 (on Ubuntu 8.04). I did not specify a version for the assembly plugin so I assume I have the latest? regards, Wim -- John Casey Developer, PMC Member - Apache Maven (http://maven.apache.org) Blog: http://www.ejlife.net/blogs/buildchimp/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Assembly with module binaries?
Hi, I'm following the instruction on http://maven.apache.org/plugins/maven-assembly-plugin/examples/multimodule/module-binary-inclusion-simple.html I would like to create a directory with 2 subdirecties of my child modules. The assembly plugin runs, but it seems that the ${artifactId} substitution does not work. The artifactId of the parent (where I execute the assembly command) is used in stead of the ones of the child modules. I'm using Maven 2.0.8 (on Ubuntu 8.04). I did not specify a version for the assembly plugin so I assume I have the latest? regards, Wim
How are the 'Dependency Repository Locations' configured?
Hi, I ran 'mvn site' and the 'Dependencies' report gives a lot of useful information. However, under the heading 'Dependency Repository Locations' I see 'apache.snapshots' and 'central', although I configured my settings.xml to use my repository manager (Archiva) exclusively. How can I change the location where the plugin looks? regards, Wim
Problem with Maven making internet connection drop out
Hi, I have a problem with running the Atlassian PDK. They use Maven 2. See http://confluence.atlassian.com/display/DEVNET/How+to+Build+an+Atlassian+Pluginfor their instructions. When I try to run mvn idea:idea, everything seems to work for a while, but then in the midst of the work being done, my internet connection drops out. I can restore the connection by doing ipconfig /renew. The behaviour is very consistent with running the maven command. I did not run the command for a few hours and my internet connection was fine, then everytime I try run mvn idea:idea, it fails. Running mvn -Pplugin-debug works fine, I got a running JIRA instance with an empty plugin. I'm working on Windows XP. Anybody experienced a simular problem? I suspect that maybe the many, many dependencies have something to do with it? regards, Wim
Re: Problem with Maven making internet connection drop out
I will try, what is the svn url? 2008/3/21, Stephen Connolly [EMAIL PROTECTED]: Does the same thing happen when building Hudson? Hudson has such a mad collection of dependencies that it should cause the same issue for you IMHO. -Stephen On Fri, Mar 21, 2008 at 7:54 AM, Wim Deblauwe [EMAIL PROTECTED] wrote: Hi, I have a problem with running the Atlassian PDK. They use Maven 2. See http://confluence.atlassian.com/display/DEVNET/How+to+Build+an+Atlassian+Pluginfor their instructions. When I try to run mvn idea:idea, everything seems to work for a while, but then in the midst of the work being done, my internet connection drops out. I can restore the connection by doing ipconfig /renew. The behaviour is very consistent with running the maven command. I did not run the command for a few hours and my internet connection was fine, then everytime I try run mvn idea:idea, it fails. Running mvn -Pplugin-debug works fine, I got a running JIRA instance with an empty plugin. I'm working on Windows XP. Anybody experienced a simular problem? I suspect that maybe the many, many dependencies have something to do with it? regards, Wim
Re: [ANN] Maven Repository Builder 1.0-alpha-2 Released
Is there a website of this plugin? Can it be used to create a backup repository with all dependencies (including plugins, etc...) to build? regards, Wim 2008/3/1, John Casey [EMAIL PROTECTED]: The Maven team is pleased to announce the release of the Maven Repository Builder shared library, version 1.0-alpha-2 This library is used primarily to assemble Maven repository directory structures based on the dependencies of a project or set of projects, and provides the implementation for the repositories/ section of the Maven Assembly Plugin assembly descriptor. You can use the repository builder library in your own project by adding the following dependency: dependency groupIdorg.apache.maven.shared/groupId artifactIdmaven-repository-builder/artifactId version1.0-alpha-2/version /dependency Enjoy, -The Maven team
Re: Repeating resource collections
maybe you can use a common parent pom that defines those? regards, Wim 2008/1/25, [EMAIL PROTECTED] [EMAIL PROTECTED]: As I continue to move our Ant build to Maven artifacts, I have found myself repeating resource collections, particularly the includes and excludes criteria. In ant, such duplication would be eliminated by defining FileSets and referencing them throughout the build. Is there any equivalent in Maven? Robert Egan -- This email message and any attachments may contain confidential, proprietary or non-public information. The information is intended solely for the designated recipient(s). If an addressing or transmission error has misdirected this email, please notify the sender immediately and destroy this email. Any review, dissemination, use or reliance upon this information by unintended recipients is prohibited. Any opinions expressed in this email are those of the author personally. -- Vigilog - an open source log file viewer: http://vigilog.sourceforge.net Blog: http://www.jroller.com/page/Fester
Re: Clearcase Snapshot View Synchronisation
Do you have an own build system? Maybe you are better of using something like Hudson? The command to update the view is scm:update ( http://maven.apache.org/scm/plugins/index.html#update-mojo) regards, Wim 2008/1/22, Richard M Smith [EMAIL PROTECTED]: Can anyone supply some sample code for automatically synchronising a Clearcase snapshot view prior to a build? I am in the process of switching my Maven 2 Java build from Visual Source Safe to ClearCase (new to me). plugin artifactIdmaven-scm-plugin/artifactId configuration connectionUrlscm:clearcase:view:load /NESS_PVOB1/Projects/NESS_FR01/NESS_FR01_Int:NESS_PVOB1:xrender_dev/connectionUrl recursivetrue/recursive excludesmodel/**/excludes /configuration /plugin This works but I currently need to go into Clearcase and manually resynchronise the view to pick up changes. I would like the build to do it for me. I have been supplied with some Ant code... exec dir=${viewpath}${checked.stream} executable=cleartool.exe outputproperty=checked.stream.response arg value=setcs/ arg value=-stream/ /exec I want to do something similar in Maven but I can't find an example. Nearest I could get was a bug report saying cleartool update -force could cause a crash. Thanks Richard For the latest data on the economy and society consult National Statistics at http://www.statistics.gov.uk * Please Note: Incoming and outgoing email messages are routinely monitored for compliance with our policy on the use of electronic communications * Legal Disclaimer : Any views expressed by the sender of this message are not necessarily those of the Office for National Statistics * The original of this email was scanned for viruses by the Government Secure Intranet virus scanning service supplied by CableWireless in partnership with MessageLabs. (CCTM Certificate Number 2007/11/0032.) On leaving the GSi this email was certified virus free. Communications via the GSi may be automatically logged, monitored and/or recorded for legal purposes. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Vigilog - an open source log file viewer: http://vigilog.sourceforge.net Blog: http://www.jroller.com/page/Fester
Re: Clearcase Snapshot View Synchronisation
Hudson is a lot easier to use then Cruise Control (I have not used Cruise Control, but other people have told me that). It has a ClearCase plugin (I use it also) so definitely worth a try. regards, Wim 2008/1/23, Richard M Smith [EMAIL PROTECTED]: Thanks for replying Wim, We do have our own custom build using Cruise Control which I'm converting to use ClearCase instead of SourceSafe. I've not seen Hudson but I'll check it out. It seems we already have scm:update as part of the goal so maybe something else is wrong, or the scm:update doesn't do quite what I want it to, or maybe I haven't get ClearCase set up properly. Here's some of the config.xml code... plugin name=project.package classname=net.sourceforge.cruisecontrol.ProjectConfig buildafterfailed=false bootstrappers !--VSSBootstrapper vsspath=\NeSSSP4\Rendering\${parent.name}\packages\${package.name }\pom.xml localdirectory=${pdir}/${parent.name}/packages/${package.name} serverpath=\\idd4\vss/ VSSBootstrapper vsspath=\NeSSSP4\Rendering\${parent.name}\packages\${package.name }\assemble-bin.xml localdirectory=${pdir}/${parent.name}/packages/${package.name} serverpath=\\idd4\vss/-- clearcaseBootstrapper viewPath=${pdir}\${parent.name}\packages\${package.name} file=pom.xml / clearcaseBootstrapper viewPath=${pdir}\${parent.name}\packages\${package.name} file=\assemble-bin.xm / clearcaseBootstrapper viewPath=${pdir}\${parent.name}\packages file=pom.xml / clearcaseBootstrapper viewPath=${pdir}\${parent.name}\packages file=settings.xml / /bootstrappers modificationset quietperiod=120 !-- vss dateformat=d/MM/yy timeformat=HH:mm vsspath=NeSSSP4/Rendering/${parent.name}/packages login=, serverpath=\\idd4\vss/-- clearcase branch=xrender_dev viewpath=${pdir}/ /modificationset schedule interval=300 maven2 goal=clean scm:update deploy pomfile=${pdir}/${parent.name}/packages/${package.name}/pom.xml mvnscript=${pdirmaven}/cruisecontrol2/${mvn_script}/ /schedule . project.package name=current.xrender property name=package.name value=xrender/ property name=parent.name value=current/ property name=mvn_script value=mvn_jarweb.bat/ /project.package I did wonder about calling cleartool in the batch file ...? Thanks Richard [EMAIL PROTECTED] l.comTo: users@maven.apache.org cc: 23/01/2008 15:28 Subject: Re: Clearcase Snapshot View Synchronisation Please respond to users Do you have an own build system? Maybe you are better of using something like Hudson? The command to update the view is scm:update ( http://maven.apache.org/scm/plugins/index.html#update-mojo) regards, Wim 2008/1/22, Richard M Smith [EMAIL PROTECTED]: Can anyone supply some sample code for automatically synchronising a Clearcase snapshot view prior to a build? I am in the process of switching my Maven 2 Java build from Visual Source Safe to ClearCase (new to me). plugin artifactIdmaven-scm-plugin/artifactId configuration connectionUrlscm:clearcase:view:load /NESS_PVOB1/Projects/NESS_FR01/NESS_FR01_Int:NESS_PVOB1:xrender_dev/connectionUrl recursivetrue/recursive excludesmodel/**/excludes /configuration /plugin This works but I currently need to go into Clearcase and manually resynchronise the view to pick up changes. I would like the build to do it for me. I have been supplied with some Ant code... exec dir=${viewpath}${checked.stream} executable=cleartool.exe outputproperty=checked.stream.response arg value=setcs/ arg value=-stream/ /exec I want to do something similar in Maven but I can't find an example. Nearest I could get was a bug report saying cleartool update -force could cause a crash. Thanks Richard For the latest data on the economy and society consult National Statistics at http://www.statistics.gov.uk * Please Note: Incoming and outgoing email messages are routinely monitored for compliance with our policy on the use of electronic communications * Legal Disclaimer : Any views expressed by the sender of this message are not necessarily those of the Office for National Statistics * The original of this email was scanned for viruses by the Government Secure Intranet virus scanning service supplied by CableWireless in partnership with
Re: Notification on deployment of a new version of artifact
There is an RSS feed you can track on http://www.mvnrepository.com/ regards, Wim 2007/12/28, amit kumar [EMAIL PROTECTED]: HI, Is it possible to notify ( via email may be ) whenever a newer version of artifact is deployed into the remote maven repository? Any ideas? Regards, Amit -- Vigilog - an open source log file viewer: http://vigilog.sourceforge.net Blog: http://www.jroller.com/page/Fester
Re: The Maven team needs help from translators
Nice plugin report. Is this plugin freely available? regards, Wim 2007/11/25, Dennis Lundberg [EMAIL PROTECTED]: Lukas Theussl has updated the German resource bundle. I have uploaded an updated localization status report: http://people.apache.org/~dennisl/maven-project-info-reports-plugin/l10n-status.html Dennis Lundberg wrote: Hi all We are preparing the next release of the maven-project-info-reports-plugin. The current localizations are lacking translations for lots of resources. We need your help improving this. Have a look at this report, and see if you are skilled in any of the listed languages: http://people.apache.org/~dennisl/maven-project-info-reports-plugin/l10n-status.html If so please create a patch and attach it to this issue in JIRA: http://jira.codehaus.org/browse/MPIR-34 Make sure you use unicode escape sequences for non-ascii characters. You can see how this is done in the current localizations. For more info on internationalization/localization in Maven plugins, see this page: http://maven.apache.org/plugins/maven-site-plugin/i18n.html If you have any questions about this, please don't hesitate to ask here on the list. Thanks for your cooperation -- Dennis Lundberg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Vigilog - an open source log file viewer: http://vigilog.sourceforge.net Blog: http://www.jroller.com/page/Fester
Re: [dependency plugin] Used undeclared dependencies
Thanks, added that extra dependency and now the warning is gone. regards, Wim 2007/11/21, [EMAIL PROTECTED] [EMAIL PROTECTED]: AFAIK, this shows the dependencies from which your code is using classes, but which are not declared in your pom file, but by another dependency. ie. You - Project A - Project B And one of your classes imports something from Project B. This will compile. Project A releases a new versions, which is not dependend anymore on Project B. You update the version of Project A to the new version, et voila, your code is not compiling anymore. It is better to declare all your dependencies your project uses, even if there are already included in one of your dependencies. Hth, Nick Stolwijk -Original Message- From: Wim Deblauwe [mailto:[EMAIL PROTECTED] Sent: Wed 11/21/2007 4:32 PM To: Maven Users List Subject: [dependency plugin] Used undeclared dependencies Why does the dependency plugin gives Used undeclared dependencies? What is the reason or how does maven know this? I looked at the docs ( http://maven.apache.org/plugins/maven-dependency-plugin/analyze-mojo.html ), but it did not give much info on why you get this and what you can do about it. This is the output: [INFO] [dependency:analyze] [INFO] Used declared dependencies: [INFO]net.java.dev.glazedlists:glazedlists_java15:jar:1.7.0:compile [INFO]net.java.dev.timingframework:timingframework:jar:1.0:compile [INFO]com.jidesoft:jide-oss:jar:2.1.3.04:compile [INFO]log4j:log4j:jar:1.2.14:compile [INFO]org.swinglabs:swing-worker:jar:1.1:compile [INFO]com.jgoodies:looks:jar:2.1.2:compile [INFO]com.thoughtworks.xstream:xstream:jar:1.2.1:compile [INFO]org.swinglabs:swingx:jar:0.9:compile [INFO]org.testng:testng:jar:jdk15:5.1:test [INFO] Used undeclared dependencies: [WARNING]com.jhlabs:filters:jar:2.0.235:compile [INFO] Unused declared dependencies: [INFO]None [WARNING] Potential problems discovered. [INFO] Found Resolved Dependency / DependencyManagement mismatches: [INFO]Nothing in DepMgt. Additionally, the docs show a target called dependency:tree but this does not seem to work. regards, Wim -- Vigilog - an open source log file viewer: http://vigilog.sourceforge.net Blog: http://www.jroller.com/page/Fester -- Vigilog - an open source log file viewer: http://vigilog.sourceforge.net Blog: http://www.jroller.com/page/Fester
[dependency plugin] Used undeclared dependencies
Why does the dependency plugin gives Used undeclared dependencies? What is the reason or how does maven know this? I looked at the docs ( http://maven.apache.org/plugins/maven-dependency-plugin/analyze-mojo.html), but it did not give much info on why you get this and what you can do about it. This is the output: [INFO] [dependency:analyze] [INFO] Used declared dependencies: [INFO]net.java.dev.glazedlists:glazedlists_java15:jar:1.7.0:compile [INFO]net.java.dev.timingframework:timingframework:jar:1.0:compile [INFO]com.jidesoft:jide-oss:jar:2.1.3.04:compile [INFO]log4j:log4j:jar:1.2.14:compile [INFO]org.swinglabs:swing-worker:jar:1.1:compile [INFO]com.jgoodies:looks:jar:2.1.2:compile [INFO]com.thoughtworks.xstream:xstream:jar:1.2.1:compile [INFO]org.swinglabs:swingx:jar:0.9:compile [INFO]org.testng:testng:jar:jdk15:5.1:test [INFO] Used undeclared dependencies: [WARNING]com.jhlabs:filters:jar:2.0.235:compile [INFO] Unused declared dependencies: [INFO]None [WARNING] Potential problems discovered. [INFO] Found Resolved Dependency / DependencyManagement mismatches: [INFO]Nothing in DepMgt. Additionally, the docs show a target called dependency:tree but this does not seem to work. regards, Wim -- Vigilog - an open source log file viewer: http://vigilog.sourceforge.net Blog: http://www.jroller.com/page/Fester
declare dependencies depending on jdk version
Hi, I'm looking into putting swingx in the central repo. As they do not use maven to build, I need to come up with a good pom. They have 3 dependencies. Two of them are only needed when running under jdk 1.5. How can I declare this in the pom.xml? Suppose this is a part of the pom: dependencies dependency groupIdswingworker/groupId artifactIdswingworker/artifactId version1.0/version /dependency /dependencies What can I add to have only swingworker as a transitive dependency when building with JDK 1.5? I thought about making it optional/ but I'm not sure that is the best way. regards, Wim -- Vigilog - an open source log file viewer: http://vigilog.sourceforge.net Blog: http://www.jroller.com/page/Fester
Re: declare dependencies depending on jdk version
Do I understand it correctly that you saying that I need to create 2 upload bundles for swingx, one for jdk 1.5 and one for jdk 1.6? They both will have the exact same code, only different dependencies? regards, Wim 2007/10/23, Wayne Fay [EMAIL PROTECTED]: Most people solve these kinds of problems by simply creating 2 (or more) poms that have different classifiers to specify the difference, eg: swingx-1.0.pom swingx-1.0-jdk4.pom swingx-1.0-jdk5.pom swingx-1.0-jdk6.pom Wayne On 10/23/07, Wim Deblauwe [EMAIL PROTECTED] wrote: Hi, I'm looking into putting swingx in the central repo. As they do not use maven to build, I need to come up with a good pom. They have 3 dependencies. Two of them are only needed when running under jdk 1.5. How can I declare this in the pom.xml? Suppose this is a part of the pom: dependencies dependency groupIdswingworker/groupId artifactIdswingworker/artifactId version1.0/version /dependency /dependencies What can I add to have only swingworker as a transitive dependency when building with JDK 1.5? I thought about making it optional/ but I'm not sure that is the best way. regards, Wim -- Vigilog - an open source log file viewer: http://vigilog.sourceforge.net Blog: http://www.jroller.com/page/Fester - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Vigilog - an open source log file viewer: http://vigilog.sourceforge.net Blog: http://www.jroller.com/page/Fester
Re: How to release if using testng
I finally gave up on using the surefire plugin with TestNG. Now I just use antrun to run the testng ant task and generate a report. I did not know that was possible. How do you remove surefire from the lifecycle? regards, Wim -- Vigilog - an open source log file viewer: http://vigilog.sourceforge.net Blog: http://www.jroller.com/page/Fester
How to release if using testng
Hi, how do other people release their maven project if they use TestNG? The only surefire that works ok with TestNG is 2.4-collab-SNAPSHOT, but since it is a snapshot, I cannot release. I could try to give the snapshot jars a real release number, but I'd rather not do that because a) it feels like cheating and b) it is a lot of work with all the different modules that surefire has. regards, Wim -- Vigilog - an open source log file viewer: http://vigilog.sourceforge.net Blog: http://www.jroller.com/page/Fester
Re: Re : How to release if using testng
Good idea, I probably don't use any of the newer funcationalities also. And what version of surefire do you use with 5.1? regards, Wim 2007/10/12, langlois yan [EMAIL PROTECTED]: Hi, As I do not use fonctionalities of testNg5.5, I use TestNg 5.1 instead. Yan Langlois. - Message d'origine De : Wim Deblauwe [EMAIL PROTECTED] À : Maven Users List users@maven.apache.org Envoyé le : Vendredi, 12 Octobre 2007, 8h19mn 08s Objet : How to release if using testng Hi, how do other people release their maven project if they use TestNG? The only surefire that works ok with TestNG is 2.4-collab-SNAPSHOT, but since it is a snapshot, I cannot release. I could try to give the snapshot jars a real release number, but I'd rather not do that because a) it feels like cheating and b) it is a lot of work with all the different modules that surefire has. regards, Wim -- Vigilog - an open source log file viewer: http://vigilog.sourceforge.net Blog: http://www.jroller.com/page/Fester _ Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail -- Vigilog - an open source log file viewer: http://vigilog.sourceforge.net Blog: http://www.jroller.com/page/Fester
Re: Maven Release -- Unable to enable editing on the POM - clearcase ucm
did you try with -e? 2007/10/8, Hirn, Joseph [EMAIL PROTECTED]: It is not... All of the console output is included below. The command output is blank. The next line maven logs is for more information, run.. -e switch -Original Message- From: Wim Deblauwe [mailto:[EMAIL PROTECTED] Sent: Saturday, October 06, 2007 1:24 PM To: Maven Users List Subject: Re: Maven Release -- Unable to enable editing on the POM - clearcase ucm Is the cleartool command printed that is used? 2007/10/5, Hirn, Joseph [EMAIL PROTECTED]: Hello. I'm having a problem with the release:prepare goal in Linux environment. It works fine in Windows. It is giving the following error: START CONSOLE OUTPUT [INFO] Checking out file: /view/jhirnYADA/cc/ETS_YADA/YADAYADA/pom.xml [INFO] [ERROR] BUILD FAILURE [INFO] [INFO] Unable to enable editing on the POM Provider message: The cleartool command failed. Command output: END CONSOLE OUTPUT About my environment: Maven 2.0.7 - Clearcase-UCM, running Linux as non-root. The source code is in a dynamic view and I'm ok with it creating a snapshot view. I have clearcase-settings.xml defined in $MAVEN_HOME/conf to be of UCM type and the viewstore doesn't come into play until release:perform. `mvn scm:validate` let's me know all is well with the SCM URL, unless there are issues with / vs \ . The scm url in the pom is defined as such: scm connectionscm:clearcase:load /ETS_YADA:\ETS_YADA:jhirn_YADA/connection /scm After I run release:prepare, the POM file is checked out and editable to the user which maven runs as, but I still get this error. Again, I get past this just fine in my windows environment. Running with -e gives me nothing interesting. Help meh, help meh... I've been trying for a week on my own and can't figure out what's going on. Thanks to anyone who is able to help me. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Vigilog - an open source log file viewer: http://vigilog.sourceforge.net Blog: http://www.jroller.com/page/Fester - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Vigilog - an open source log file viewer: http://vigilog.sourceforge.net Blog: http://www.jroller.com/page/Fester
How do people handle installers/exe/bat/sh in maven?
Hi, I have a question for the people that use maven to create an application (as opposed to a library). How do you provide an easy start point for your application? Do you use webstart? Do you use the assembly plugin and add .bat and .sh files to it? Do you create an installer (with a maven plugin)? Something else you use? regards, Wim -- Vigilog - an open source log file viewer: http://vigilog.sourceforge.net Blog: http://www.jroller.com/page/Fester
Re: How do people handle installers/exe/bat/sh in maven?
For launch4j I simply used its Ant task that I called using the AntRun plugin. Good idea, I current use the maven plugin ( http://9stmaryrd.com/tools/launch4j-maven-plugin), but it is not maintained anymore it seems. -- Vigilog - an open source log file viewer: http://vigilog.sourceforge.net Blog: http://www.jroller.com/page/Fester
How to handle aqua laf.jar?
Hi, I'm trying to get jide-oss project in the repository on dev.java.net. The people of jidesoft have done this, but for Windows users, it does not work. The jide-oss pom has only 1 dependency: dependency groupIdaqua/groupId artifactIdaqua/artifactId version5.0/version scopesystem/scope systemPath${basedir}/libs/laf.jar/systemPath /dependency Maven complains with: Validation Errors: [DEBUG] For dependency Dependency {groupId=aqua, artifactId=aqua, version= 5.0, type=jar}: system-scoped dependency must specify an absolute path systemPath. [DEBUG] I tried adding optionaltrue/optional, but that gives the same problem. I also tried exclusion/ in my pom, but that did not help either. What is the best way to solve this? regards, Wim -- Vigilog - an open source log file viewer: http://vigilog.sourceforge.net Blog: http://www.jroller.com/page/Fester
Re: Why Maven is Hard?
What about not answering any questions on the mailinglist anymore, but only point to existing documentation. If there is no suitable docs for the question, put in a JIRA issue. That should improve the docs fast! regards, Wim 2007/9/27, Wayne Fay [EMAIL PROTECTED]: On 9/26/07, Tomasz Pik [EMAIL PROTECTED] wrote: Example - please, try to find out how to skip executing of tests during build starting from http://maven.apache.org OK, I'll bite... starting at http://maven.apache.org on the left, click on Wiki scroll down to Children, click on FAQs, see its not there click on previously answered questions (or click back and click on FAQs-1) oh look, there it is -- Testing How do I skip unit tests when building a project? Admittedly, I'm not sure why we have 2 FAQ pages in the Wiki, plus another FAQ on the main Maven site. But I also don't think this is all that horrible. Obviously you can't expect to find every answer this easily but common questions should be. So the next step seems (to me at least) to be determining what are those common questions, as I mentioned in Brian's thread on improving site docs. This is something that users like yourself must participate in if we hope to have any chance of success in this effort. (Also if you Google for maven skip unit test there's a number of hits right away. I personally feel that answers found via Google are no less valid than others, especially if you add the site:maven.apache.org directive. To say nothing of all the hits in the mail list archive if you search for this.) Wayne - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Vigilog - an open source log file viewer: http://vigilog.sourceforge.net Blog: http://www.jroller.com/page/Fester
Re: Maven repository
You need to say that your repository is a mirror of central, see http://maven.apache.org/guides/mini/guide-mirror-settings.html for more info. regards, Wim (also from Belgium ;)) 2007/8/28, De Vleeschauwer Nele [EMAIL PROTECTED]: Hi, I'm just setting up Maven on a developer's workstation. The developer has no access to the Internet and should therefore always retrieve the latest artifacts from a repository we've set up at our company (which has a connection to the internet). Even when I add the following part to the settings.xml file of the Maven installation on the developer's machine, each Maven command I execute from there still tries to connect to the Maven repository on the Internet. How can this be avoided ? (The repository I've set up is working fine, since I can connect with an Internet Explorer to it) profiles profile iddev/id repositories repository idcentral/id nameMaven Central Proxy Repository/name urlhttp://b2btst04/maven-central-proxy/url /repository /repositories pluginRepositories pluginRepository idcentral/id nameMaven Central Proxy Repository/name urlhttp://b2btst04/maven-central-proxy/url /pluginRepository /pluginRepositories /profile /profiles activeProfiles activeProfiledev/activeProfile /activeProfiles - Visit our website! http://www.nbb.be DISCLAIMER: The content of this e-mail message should not be construed as binding on the part of the National Bank of Belgium (NBB) unless otherwise and previously stated. The opinions expressed in this message are solely those of the author and do not necessarily reflect NBB viewpoints, particularly when the content of this message, or part thereof, is private by nature or does not fall within the professional scope of its author. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Vigilog - an open source log file viewer: http://vigilog.sourceforge.net Blog: http://www.jroller.com/page/Fester
Re: Maven repository
How did you set up the internal repository? Did you copy a local repository to some server and made it available through http, or are you using one of the proxy tools like proximity or archiva? regards, Wim 2007/8/29, De Vleeschauwer Nele [EMAIL PROTECTED]: Hi, Thanks for the tip, but it doesn't quite do the trick... I've added the following to my settings.xml: mirror idcentral/id mirrorOfcentral/mirrorOf nameMaven Central Proxy Repository/name urlhttp://b2btst04/maven-central-proxy/url /mirror /mirrors When I execute a maven command, our company's central repo is accessed (instead of the repo1.maven.org one), but when I take a network trace I see the following: GET /maven-central-proxy/org/apache/maven/plugins/maven-resources-plugin/mav en-metadata.xml HTTP/1.1\r\n Request Method: GET Request URI: /maven-central-proxy/org/apache/maven/plugins/maven-resources-plugin/mav en-metadata.xml Request Version: HTTP/1.1 This however returns a 404 Not Found error, since the specified directory doesn't contain a maven-metadata.xml but a maven-metadata-central.xml. How can I solve this ? Thanks for your input, Nele. -Original Message- From: Wim Deblauwe [mailto:[EMAIL PROTECTED] Sent: woensdag 29 augustus 2007 8:03 To: Maven Users List Subject: Re: Maven repository You need to say that your repository is a mirror of central, see http://maven.apache.org/guides/mini/guide-mirror-settings.html for more info. regards, Wim (also from Belgium ;)) 2007/8/28, De Vleeschauwer Nele [EMAIL PROTECTED]: Hi, I'm just setting up Maven on a developer's workstation. The developer has no access to the Internet and should therefore always retrieve the latest artifacts from a repository we've set up at our company (which has a connection to the internet). Even when I add the following part to the settings.xml file of the Maven installation on the developer's machine, each Maven command I execute from there still tries to connect to the Maven repository on the Internet. How can this be avoided ? (The repository I've set up is working fine, since I can connect with an Internet Explorer to it) profiles profile iddev/id repositories repository idcentral/id nameMaven Central Proxy Repository/name urlhttp://b2btst04/maven-central-proxy/url /repository /repositories pluginRepositories pluginRepository idcentral/id nameMaven Central Proxy Repository/name urlhttp://b2btst04/maven-central-proxy/url /pluginRepository /pluginRepositories /profile /profiles activeProfiles activeProfiledev/activeProfile /activeProfiles - Visit our website! http://www.nbb.be DISCLAIMER: The content of this e-mail message should not be construed as binding on the part of the National Bank of Belgium (NBB) unless otherwise and previously stated. The opinions expressed in this message are solely those of the author and do not necessarily reflect NBB viewpoints, particularly when the content of this message, or part thereof, is private by nature or does not fall within the professional scope of its author. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Vigilog - an open source log file viewer: http://vigilog.sourceforge.net Blog: http://www.jroller.com/page/Fester - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Vigilog - an open source log file viewer: http://vigilog.sourceforge.net Blog: http://www.jroller.com/page/Fester
Re: Maven repository
http://proximity.abstracthorizon.org/ is another you can use. or http://maven.apache.org/archiva/ , but I think proximity is more mature. regards, Wim 2007/8/29, Jo Vandermeeren [EMAIL PROTECTED]: Nele, Why don't you use a maven proxy to setup your company's central repository? Have a look at http://maven-proxy.codehaus.org/ It is rather easy to set up. The idea is to proxy central and/or other repositories, and cache the requested artifacts centrally.. Cheers Jo On 8/29/07, De Vleeschauwer Nele [EMAIL PROTECTED] wrote: Hi Wim, I just copied the repository from my laptop (that has a connection to the internet) to our company's repository server. I think this is not the correct way to do it, but I can't find any documentation on how I should set up a 'company central repository'. So any suggestions would be welcome... Kind regards, Nele. -Original Message- From: Wim Deblauwe [mailto:[EMAIL PROTECTED] Sent: woensdag 29 augustus 2007 9:28 To: Maven Users List Subject: Re: Maven repository How did you set up the internal repository? Did you copy a local repository to some server and made it available through http, or are you using one of the proxy tools like proximity or archiva? regards, Wim 2007/8/29, De Vleeschauwer Nele [EMAIL PROTECTED]: Hi, Thanks for the tip, but it doesn't quite do the trick... I've added the following to my settings.xml: mirror idcentral/id mirrorOfcentral/mirrorOf nameMaven Central Proxy Repository/name urlhttp://b2btst04/maven-central-proxy/url /mirror /mirrors When I execute a maven command, our company's central repo is accessed (instead of the repo1.maven.org one), but when I take a network trace I see the following: GET /maven-central-proxy/org/apache/maven/plugins/maven-resources-plugin/mav en-metadata.xml HTTP/1.1\r\n Request Method: GET Request URI: /maven-central-proxy/org/apache/maven/plugins/maven-resources-plugin/mav en-metadata.xml Request Version: HTTP/1.1 This however returns a 404 Not Found error, since the specified directory doesn't contain a maven-metadata.xml but a maven-metadata-central.xml. How can I solve this ? Thanks for your input, Nele. -Original Message- From: Wim Deblauwe [mailto:[EMAIL PROTECTED] Sent: woensdag 29 augustus 2007 8:03 To: Maven Users List Subject: Re: Maven repository You need to say that your repository is a mirror of central, see http://maven.apache.org/guides/mini/guide-mirror-settings.html for more info. regards, Wim (also from Belgium ;)) 2007/8/28, De Vleeschauwer Nele [EMAIL PROTECTED]: Hi, I'm just setting up Maven on a developer's workstation. The developer has no access to the Internet and should therefore always retrieve the latest artifacts from a repository we've set up at our company (which has a connection to the internet). Even when I add the following part to the settings.xml file of the Maven installation on the developer's machine, each Maven command I execute from there still tries to connect to the Maven repository on the Internet. How can this be avoided ? (The repository I've set up is working fine, since I can connect with an Internet Explorer to it) profiles profile iddev/id repositories repository idcentral/id nameMaven Central Proxy Repository/name urlhttp://b2btst04/maven-central-proxy/url /repository /repositories pluginRepositories pluginRepository idcentral/id nameMaven Central Proxy Repository/name urlhttp://b2btst04/maven-central-proxy/url /pluginRepository /pluginRepositories /profile /profiles activeProfiles activeProfiledev/activeProfile /activeProfiles - Visit our website! http://www.nbb.be DISCLAIMER: The content of this e-mail message should not be construed as binding on the part of the National Bank of Belgium (NBB) unless otherwise and previously stated. The opinions expressed in this message are solely those of the author and do not necessarily reflect NBB viewpoints, particularly when the content of this message, or part thereof, is private by nature or does not fall within the professional scope of its author. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Vigilog - an open source log file viewer: http://vigilog.sourceforge.net Blog: http://www.jroller.com/page
Re: maven assembly plugin to create a remote repository?
And how do you do this? 2007/8/23, Stephane Nicoll [EMAIL PROTECTED]: Hi, Yes, I'm doing this for one of my project but it's a bit messy with snapshots. Regardnig plugins, it's not possible as far as I know. Only the project's dependencies can be included in a repository. HTH, Stéphane On 8/22/07, Wim Deblauwe [EMAIL PROTECTED] wrote: Hi, is it possible to use the maven assembly plugin to create a remote repository? I have some custom artifacts that my build needs. I don't want to force my users to have to manually do 'mvn install:install-file' for each of those. I have seen you can create a local repository which you need to unzip then, but it would be easier if they can just include a new repository url. My project is an open-source sourceforge project, so I can only upload static files and not install something like archiva or proximity. 1) Is this possible? 2) Is it possible to also include the plugin versions? I'm using some SNAPSHOT versions of plugins, but I can't wait forever to release, so I would like to give those a custom version and make them available. regards, Wim -- Vigilog - an open source log file viewer: http://vigilog.sourceforge.net Blog: http://www.jroller.com/page/Fester -- Large Systems Suck: This rule is 100% transitive. If you build one, you suck -- S.Yegge - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Vigilog - an open source log file viewer: http://vigilog.sourceforge.net Blog: http://www.jroller.com/page/Fester
Re: maven assembly plugin to create a remote repository?
But according to the documentation of the assembly plugin[1]: This example demonstrates the creation of repository artifacts in an assembly so that the archive can easily be used to update an *internal* repository with the artifacts used by your project. I want to create a directory structure that I can upload to sourceforge and serve as a remote repository or is it the same structure? regards, Wim [1] http://maven.apache.org/plugins/maven-assembly-plugin/examples/single/using-repositories.html 2007/8/23, Stephane Nicoll [EMAIL PROTECTED]: You gather the dependencies you need in a project (either directly or transitively) and you add a repository section in your assembly descriptor, something like that: repositories repository outputDirectorybuild-integration/repository/outputDirectory scopetest/scope /repository /repositories Regards from a belgian fellow, Stéphane On 8/23/07, Wim Deblauwe [EMAIL PROTECTED] wrote: And how do you do this? 2007/8/23, Stephane Nicoll [EMAIL PROTECTED]: Hi, Yes, I'm doing this for one of my project but it's a bit messy with snapshots. Regardnig plugins, it's not possible as far as I know. Only the project's dependencies can be included in a repository. HTH, Stéphane On 8/22/07, Wim Deblauwe [EMAIL PROTECTED] wrote: Hi, is it possible to use the maven assembly plugin to create a remote repository? I have some custom artifacts that my build needs. I don't want to force my users to have to manually do 'mvn install:install-file' for each of those. I have seen you can create a local repository which you need to unzip then, but it would be easier if they can just include a new repository url. My project is an open-source sourceforge project, so I can only upload static files and not install something like archiva or proximity. 1) Is this possible? 2) Is it possible to also include the plugin versions? I'm using some SNAPSHOT versions of plugins, but I can't wait forever to release, so I would like to give those a custom version and make them available. regards, Wim -- Vigilog - an open source log file viewer: http://vigilog.sourceforge.net Blog: http://www.jroller.com/page/Fester -- Large Systems Suck: This rule is 100% transitive. If you build one, you suck -- S.Yegge - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Vigilog - an open source log file viewer: http://vigilog.sourceforge.net Blog: http://www.jroller.com/page/Fester -- Large Systems Suck: This rule is 100% transitive. If you build one, you suck -- S.Yegge - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Vigilog - an open source log file viewer: http://vigilog.sourceforge.net Blog: http://www.jroller.com/page/Fester
Re: maven assembly plugin to create a remote repository?
2007/8/23, Stephane Nicoll [EMAIL PROTECTED]: Well, you hit part of the actual problem we're facing as well. The documentation referred by your link is wrong. There's a flag that allows to include the metadata in order for the repository to be used as a standard remote repository ignorebut that is the official page of the plugin! I would expect some accurate information here. /ignore ok, thank you for that information :) snip includeMetadata If set to true, this property will trigger the creation of repository metadata which will allow the repository to be used as a functional remote repository. The default value is false snip Now the actual problem is to deploy this to your remote repository. The first time will work but for subsequent deployments, you'll need to merge the metadata and there's no tool out there that is stable enough to do that. We're working on the staging plugin and I do hope we'll find a solution. If you want to hack a bit, check the reposiorytools plugin in the mojo sandbox. For simple use cases, it will work. My open source project is very simple with only a few dependencies. I could live with fact that I wipe out the complete remote repository and upload all the dependencies again for now. So if I let the assembly plugin generate that zip file, unzip that file onto a directory that the site plugin will upload (target/site or target/staging), I should get a remote repository on my website. Is this correct? thank you for your help, regards, Wim Cheers, Stéphane On 8/23/07, Wim Deblauwe [EMAIL PROTECTED] wrote: But according to the documentation of the assembly plugin[1]: This example demonstrates the creation of repository artifacts in an assembly so that the archive can easily be used to update an *internal* repository with the artifacts used by your project. I want to create a directory structure that I can upload to sourceforge and serve as a remote repository or is it the same structure? regards, Wim [1] http://maven.apache.org/plugins/maven-assembly-plugin/examples/single/using-repositories.html 2007/8/23, Stephane Nicoll [EMAIL PROTECTED]: You gather the dependencies you need in a project (either directly or transitively) and you add a repository section in your assembly descriptor, something like that: repositories repository outputDirectorybuild-integration/repository/outputDirectory scopetest/scope /repository /repositories Regards from a belgian fellow, Stéphane On 8/23/07, Wim Deblauwe [EMAIL PROTECTED] wrote: And how do you do this? 2007/8/23, Stephane Nicoll [EMAIL PROTECTED]: Hi, Yes, I'm doing this for one of my project but it's a bit messy with snapshots. Regardnig plugins, it's not possible as far as I know. Only the project's dependencies can be included in a repository. HTH, Stéphane On 8/22/07, Wim Deblauwe [EMAIL PROTECTED] wrote: Hi, is it possible to use the maven assembly plugin to create a remote repository? I have some custom artifacts that my build needs. I don't want to force my users to have to manually do 'mvn install:install-file' for each of those. I have seen you can create a local repository which you need to unzip then, but it would be easier if they can just include a new repository url. My project is an open-source sourceforge project, so I can only upload static files and not install something like archiva or proximity. 1) Is this possible? 2) Is it possible to also include the plugin versions? I'm using some SNAPSHOT versions of plugins, but I can't wait forever to release, so I would like to give those a custom version and make them available. regards, Wim -- Vigilog - an open source log file viewer: http://vigilog.sourceforge.net Blog: http://www.jroller.com/page/Fester -- Large Systems Suck: This rule is 100% transitive. If you build one, you suck -- S.Yegge - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Vigilog - an open source log file viewer: http://vigilog.sourceforge.net Blog: http://www.jroller.com/page/Fester -- Large Systems Suck: This rule is 100% transitive. If you build one, you suck -- S.Yegge - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Vigilog - an open source log file viewer: http://vigilog.sourceforge.net Blog: http://www.jroller.com/page/Fester -- Large
Re: Maven 2 - Maven 1 converter
? why would anyone want to go back to the old maven version? 2007/8/21, Lukas Theussl [EMAIL PROTECTED]: Yeah! I want that too! :) -Lukas [EMAIL PROTECTED] wrote: I have found the maven 2 plugin to convert a project.xml (maven 1) to a pom.xml (maven 2). Is there also a maven 1 or maven 2 plugin, which converts a pom.xml to a project.xml? With regards, Nick Stolwijk - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Vigilog - an open source log file viewer: http://vigilog.sourceforge.net Blog: http://www.jroller.com/page/Fester
2.4-collab-SNAPSHOT of surefire?
Hi, is it still needed to use 2.4-collab-SNAPSHOT version of surefire if you use TestNG or is there already a better version? regards, Wim -- Vigilog - an open source log file viewer: http://vigilog.sourceforge.net Blog: http://www.jroller.com/page/Fester
maven assembly plugin to create a remote repository?
Hi, is it possible to use the maven assembly plugin to create a remote repository? I have some custom artifacts that my build needs. I don't want to force my users to have to manually do 'mvn install:install-file' for each of those. I have seen you can create a local repository which you need to unzip then, but it would be easier if they can just include a new repository url. My project is an open-source sourceforge project, so I can only upload static files and not install something like archiva or proximity. 1) Is this possible? 2) Is it possible to also include the plugin versions? I'm using some SNAPSHOT versions of plugins, but I can't wait forever to release, so I would like to give those a custom version and make them available. regards, Wim -- Vigilog - an open source log file viewer: http://vigilog.sourceforge.net Blog: http://www.jroller.com/page/Fester
Re: Hudson
We also use Hudson, mainly because it is so easy to install. I wanted to try continuum, but I gave up when installation did not seem to work very smooth. regards, Wim 2007/7/6, Ravi Luthra [EMAIL PROTECTED]: I use Hudson mainly because the interface is very awesome. The AJAX controls make the process very nice. Also setting up Hudson is literally automatic. Just save the war file in Tomcat's webapps directory. So easy. Software is getting easier and easier to install. I can't wait till we are back to the days of DOS like install (copy and run). Ravi On 7/6/07, Gregory Kick [EMAIL PROTECTED] wrote: I've used hudson and have been very happy with it. In my opinion, the biggest advantage over other CI servers is the ridiculously quick turn-around on bug fixes and requested enhancements. Kohsuke pushes out releases faster than anyone I've ever seen... On 7/6/07, Wendy Smoak [EMAIL PROTECTED] wrote: On 7/6/07, Milos Kleint [EMAIL PROTECTED] wrote: Like define a unique local repo for the project, to prevent local repository cross-pollination by other maven projects built on the same machine. FWIW, I haven't tried it yet, but you should be able to do that fairly easily with Continuum by adding -Dmaven.repo.local=/path/to/separate/repo to the arguments. Or even -s /path/to/alt-settings.xml if you want completely different settings. (I went through an exercise recently trying to figure out how to make sure official builds don't use anything in the 'sandbox' repository, but only the approved third-party artifacts.) -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Gregory Kick http://kickstyle.net/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Vigilog - an open source log file viewer: http://vigilog.sourceforge.net Blog: http://www.jroller.com/page/Fester
Re: How can i release a version of software with the existing version is SNAPSHOT?
Use the release plugin to do a release of your module/project 2007/7/7, Baz [EMAIL PROTECTED]: All, If the software that i am building is at version 0.1-SNAPSHOT, is it possible that I can build 1.0.0.0 in official build systems? What is the best way to handle this situation? Can I pass a flag to maven and let it change to 1.0.0.0 while compiling? Thanks. A. -- Vigilog - an open source log file viewer: http://vigilog.sourceforge.net Blog: http://www.jroller.com/page/Fester
Re: Reminder to vote for 2.0.8 issues
Can we vote for plugins? I would like to see a released surefire with support for the latest TestNG. regards, Wim 2007/6/29, Franz Fehringer [EMAIL PROTECTED]: I vote for MNG-2305. Franz Paul Spencer schrieb: Jason, Jira will not let you vote for an issue you created :( If it would, I would vote for MNG-2075 [1] Paul Spencer [1] http://jira.codehaus.org/browse/MNG-3075 Jason van Zyl wrote: Just a reminder for anyone lurking who wants issues addressed in 2.0.8 to vote for issues in JIRA. Thanks, Jason -- Jason van Zyl Founder and PMC Chair, Apache Maven jason at sonatype dot com -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Dr. Franz Fehringer (Dipl. Math.) Projektleiter Touristik-Systeme ISO Software Systeme GmbH Eichendorffstrasse 29 90491 Nürnberg Germany Tel.: +49/(911) - 99594-0 mailto:[EMAIL PROTECTED] http://www.isogmbh.de Amtsgericht Nürnberg HRB 18299 Geschäftsführer: Dipl.-Inform., Dipl.-Kaufm. Harald Goeb Sitz: Nürnberg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Vigilog - an open source log file viewer: http://vigilog.sourceforge.net Blog: http://www.jroller.com/page/Fester