Update Documentation on Integration Test Resources
Hi guys, I would just like to inform you guys that your documentation does not talk about the directory src/it/resources being the test resources for integration tests. Can this be updated please? Tony -- View this message in context: http://www.nabble.com/Update-Documentation-on-Integration-Test-Resources-tf2677018s177.html#a7466082 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Plugin's page link is ambiguous
The plugin's page is under the hyperlink alias By Category. Shouldn't sorting by category be more of a drop down box instead. Can the alias be renamed back to plugins? -- View this message in context: http://www.nabble.com/Plugin%27s-page-link-is-ambiguous-tf2592965s177.html#a7231855 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
XSLT patch for project.xml?
Hi, Just for interest - has anyone made an XSLT patch for project.xml - pom.xml? Regards, Tony -- View this message in context: http://www.nabble.com/XSLT-patch-for-project.xml--tf2593509s177.html#a7233347 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: [m2] Artifact not resolving for internal repository
thanks for the help. I found the bug http://jira.codehaus.org/browse/MNG-714 Changes will be commited in 2.1 Wayne Fay wrote: Have you tried -o for offline, just to see if it works? Or perhaps instead -npu as this is a plugin and not a random artifact/dependency? Wayne On 10/8/06, Tony Truong [EMAIL PROTECTED] wrote: Hi, I am currently creating a plugin that runs on an empty directory (i.e. no pom.xml). When I run this mojo, it tries to find the plugin in the central repository only. I want Maven 2 to find my plugin in an internal repository without needing to specify a pom.xml. I have tried the following for settings.xml: * created pluginRepository configuration * created repository configuration along with pluginRepository Here is the stacktrace: mvn atlassian-archetype:create -X + Error stacktraces are turned on. Maven version: 2.0.4 [DEBUG] Building Maven user-level plugin registry from: 'C:\Documents and Settings\x\.m2\plugin-registry.xml' [DEBUG] Building Maven global-level plugin registry from: 'c:\maven-2.0.4\conf\plugin-registry.xml' [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'atlassian-archetype'. [DEBUG] maven-atlassian-archetype-plugin: using locally installed snapshot [DEBUG] Artifact not found - using stub model: Unable to determine the latest version org.apache.maven.plugins:maven-atlassian-archetype-plugin:pom:LATEST [DEBUG] Using defaults for missing POM org.apache.maven.plugins:maven-atlassian-archetype-plugin:pom:LATEST [DEBUG] maven-atlassian-archetype-plugin: using locally installed snapshot [DEBUG] Artifact not found - using stub model: Unable to determine the release version org.apache.maven.plugins:maven-atlassian-archetype-plugin:pom:RELEASE [DEBUG] Using defaults for missing POM org.apache.maven.plugins:maven-atlassian-archetype-plugin:pom:RELEASE [INFO] [ERROR] BUILD ERROR [INFO] [INFO] The plugin 'org.apache.maven.plugins:maven-atlassian-archetype-plugin' does not exist or no valid version could be found [INFO] [DEBUG] Trace org.apache.maven.lifecycle.LifecycleExecutionException: The plugin 'org.apache.maven.plugins:maven-atlassian-archetype-plugin' does not exist or no valid ver sion could be found at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1281) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(DefaultLifecycleExecutor.java:1517) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListByAggregationNeeds(DefaultLifecycleExecutor.java:381) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:135) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115) at org.apache.maven.cli.MavenCli.main(MavenCli.java:256) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) Caused by: org.apache.maven.plugin.version.PluginVersionNotFoundException: The plugin 'org.apache.maven.plugins:maven-atlassian-archetype-plugin' does not ex ist or no valid version could be found at org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePluginVersion(DefaultPluginVersionManager.java:225) at org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePluginVersion(DefaultPluginVersionManager.java:87) at org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPluginManager.java:158) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1252) ... 14 more [INFO] [INFO] Total time: 1 second [INFO] Finished at: Mon Oct 09 12:17:55 EST 2006 [INFO] Final Memory: 1M/2M [INFO] -- View this message in context: http://www.nabble.com/-m2--Artifact-not-resolving-for-internal-repository-tf2407517.html#a6710806 Sent from the Maven - Users mailing list archive at Nabble.com
[m2] Artifact not resolving for internal repository
Hi, I am currently creating a plugin that runs on an empty directory (i.e. no pom.xml). When I run this mojo, it tries to find the plugin in the central repository only. I want Maven 2 to find my plugin in an internal repository without needing to specify a pom.xml. I have tried the following for settings.xml: * created pluginRepository configuration * created repository configuration along with pluginRepository Here is the stacktrace: mvn atlassian-archetype:create -X + Error stacktraces are turned on. Maven version: 2.0.4 [DEBUG] Building Maven user-level plugin registry from: 'C:\Documents and Settings\x\.m2\plugin-registry.xml' [DEBUG] Building Maven global-level plugin registry from: 'c:\maven-2.0.4\conf\plugin-registry.xml' [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'atlassian-archetype'. [DEBUG] maven-atlassian-archetype-plugin: using locally installed snapshot [DEBUG] Artifact not found - using stub model: Unable to determine the latest version org.apache.maven.plugins:maven-atlassian-archetype-plugin:pom:LATEST [DEBUG] Using defaults for missing POM org.apache.maven.plugins:maven-atlassian-archetype-plugin:pom:LATEST [DEBUG] maven-atlassian-archetype-plugin: using locally installed snapshot [DEBUG] Artifact not found - using stub model: Unable to determine the release version org.apache.maven.plugins:maven-atlassian-archetype-plugin:pom:RELEASE [DEBUG] Using defaults for missing POM org.apache.maven.plugins:maven-atlassian-archetype-plugin:pom:RELEASE [INFO] [ERROR] BUILD ERROR [INFO] [INFO] The plugin 'org.apache.maven.plugins:maven-atlassian-archetype-plugin' does not exist or no valid version could be found [INFO] [DEBUG] Trace org.apache.maven.lifecycle.LifecycleExecutionException: The plugin 'org.apache.maven.plugins:maven-atlassian-archetype-plugin' does not exist or no valid ver sion could be found at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1281) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(DefaultLifecycleExecutor.java:1517) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListByAggregationNeeds(DefaultLifecycleExecutor.java:381) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:135) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115) at org.apache.maven.cli.MavenCli.main(MavenCli.java:256) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) Caused by: org.apache.maven.plugin.version.PluginVersionNotFoundException: The plugin 'org.apache.maven.plugins:maven-atlassian-archetype-plugin' does not ex ist or no valid version could be found at org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePluginVersion(DefaultPluginVersionManager.java:225) at org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePluginVersion(DefaultPluginVersionManager.java:87) at org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPluginManager.java:158) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1252) ... 14 more [INFO] [INFO] Total time: 1 second [INFO] Finished at: Mon Oct 09 12:17:55 EST 2006 [INFO] Final Memory: 1M/2M [INFO] -- View this message in context: http://www.nabble.com/-m2--Artifact-not-resolving-for-internal-repository-tf2407517.html#a6710806 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2] surefire and integration tests - discrepancy
Hi all, I am currently running functional tests with surefire + cargo and IntelliJ IDEA. I have set both to the same container (tomcat5). When the tests are executed, I seem to get failures in surefire + cargo that does not appear on IDEA. Could this be a test environment issue or a bug in surefire (or in cargo)? NOTE: Both are using the same jdk + junit version. Tony. -- View this message in context: http://www.nabble.com/-m2--surefire-and-integration-tests---discrepancy-tf2138839.html#a5902585 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [m2] surefire and integration tests - discrepancy
This is the test case: public void testExportPdfWithPng() throws Exception { String confDir = getTestProperty(basedir); File image; //if statement included for compatability with maven 2 and IDEA if (confDir == null) { image = new File(src/test/etc/starryNight.png); } else { image = new File(confDir + /src/test/etc/starryNight.png); } rpcCreateTestPage(rpcGetAdminToken()); rpcEditPage(rpcGetAdminToken(), TESTSPACE_KEY, TESTPAGE_TITLE, TESTPAGE_TITLE, ! + image.getName() +!); viewPage(TESTSPACE_KEY, TESTPAGE_TITLE); attachFile(image, Vincent van Gogh (1889)); viewPage(TESTSPACE_KEY, TESTPAGE_TITLE); clickLinkWithText(Info); clickLinkWithText(PDF); long imageLength = image.length(); int contentLength = getDialog().getResponse().getContentLength(); assertTrue(PDF should be bigger than included image ( + imageLength + bytes), but was only + contentLength + bytes, contentLength imageLength); } This is the error im getting: [ stacktrace ] --- junit.framework.AssertionFailedError: PDF should be bigger than included image (616766 bytes), but was only 212647 bytes This test runs under IDEA with the same container deployed (i.e. Tomcat 5.5.17 jdk1.4 patched). This test case passes under IDEA. Tony vmassol wrote: Hi Tony, It's not supposed to happen. You need to give us more information so that we can be of any help. Like the error you're getting, your test case, whether there are any environment variables required by your tests, etc. Thanks -Vincent -Original Message- From: Tony Truong [mailto:[EMAIL PROTECTED] Sent: lundi 21 août 2006 09:53 To: users@maven.apache.org Subject: [m2] surefire and integration tests - discrepancy Hi all, I am currently running functional tests with surefire + cargo and IntelliJ IDEA. I have set both to the same container (tomcat5). When the tests are executed, I seem to get failures in surefire + cargo that does not appear on IDEA. Could this be a test environment issue or a bug in surefire (or in cargo)? NOTE: Both are using the same jdk + junit version. Tony. -- View this message in context: http://www.nabble.com/-m2--surefire-and- integration-tests---discrepancy-tf2138839.html#a5902585 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] p5.vert.ukl.yahoo.com uncompressed Mon Aug 21 07:27:01 GMT 2006 ___ Découvrez un nouveau moyen de poser toutes vos questions quelque soit le sujet ! Yahoo! Questions/Réponses pour partager vos connaissances, vos opinions et vos expériences. http://fr.answers.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/-m2--surefire-and-integration-tests---discrepancy-tf2138839.html#a5902875 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] Executing a Test First
Hi franz, Thanks franz! The solution to the problem was to create two executions and bind it to the same phase. In each execution, specify a different ID. Case solved. franz see wrote: Tony Truong wrote: Hi Franz, Thanks for you quick reply. For one thing, -Dtest only runs one singular test. What I want though is to run that specified test, then have it execute the rest of the tests. It would also be desirable if I could specify this in the pom rather than in command line/runtime. Tony. franz see wrote: Tony Truong wrote: To all, I need to run a specific JWebunit test before the other tests, since this JWebunit test sets up the web app environment. How would I be able to do this with the surefire plugin? Tony. Good day to you, Tony, add -Dtest=[test class name] to your mvn command. Cheers, Franz Good day to you, Tony, Sorry about that, my bad. Anyway, here's another suggestion. Try binding the test goal to the test-compile phase (the phase right before test) and to the test phase. Also, specify that the only test you would run during the test-compile is that specific JWebunit test case. Specifically, try adding this project [...] build pluginManagement plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-surefire-plugin/artifactId executions execution id1/id phasetest-compile/phase goals goaltest/goal /goals configuration test[...your initial test...] /configuration /execution execution id2/id goals goaltest/goal /goals /execution /executions /plugin /plugins /pluginManagement /build [...] /project -- View this message in context: http://www.nabble.com/-m2--Executing-a-Test-First-tf2101214.html#a5791954 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2] Executing a Test First
To all, I need to run a specific JWebunit test before the other tests, since this JWebunit test sets up the web app environment. How would I be able to do this with the surefire plugin? Tony. -- View this message in context: http://www.nabble.com/-m2--Executing-a-Test-First-tf2101214.html#a5790831 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] Executing a Test First
Hi Franz, Thanks for you quick reply. For one thing, -Dtest only runs one singular test. What I want though is to run that specified test, then have it execute the rest of the tests. It would also be desirable if I could specify this in the pom rather than in command line/runtime. franz see wrote: Tony Truong wrote: To all, I need to run a specific JWebunit test before the other tests, since this JWebunit test sets up the web app environment. How would I be able to do this with the surefire plugin? Tony. Good day to you, Tony, add -Dtest=[test class name] to your mvn command. Cheers, Franz -- View this message in context: http://www.nabble.com/-m2--Executing-a-Test-First-tf2101214.html#a5791217 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] Calling goals outside a plugin
dcabasson wrote: I guess you can't do that out of the box in Maven 2. Executing maven foo:bar, is equivalent to calling the foo plugin with the bar mojo. So I guess you would have to create a scripting (ant) plugin. That's not that difficult, and it's well documented here: http://maven.apache.org/guides/plugin/guide-ant-plugin-development.html Good luck! Denis. Thanks for replying I have had a look at those and can already make simple ant scripts. What I want though, is to be able to invoke mojos from other targets. To give a better example: I have plugin A (Ant Script) and plugin B (Unknown). plugin A has 'target1', plugin B has 'target2'. In the middle of 'target1', I want it to invoke 'target2' If there's a java way of implementing this, that would also be ideal. -- View this message in context: http://www.nabble.com/-m2--Calling-goals-outside-a-plugin-tf1970783.html#a5463364 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]