RE: Error in changes:annoucement-mail goal
1. I'll check that. 2. It is an internal machine, so won't have a valid nslookup result. Ben -Original Message- From: Dennis Lundberg [mailto:[EMAIL PROTECTED] Sent: 02 February 2008 17:07 To: Maven Users List Subject: Re: Error in changes:annoucement-mail goal Two more things to check: 1. The debug output shows that you are using 2.0-beta-2: [DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-changes-plugin:2.0-beta-2:anno uncement-generate' -- Please make sure that you have configured the version 2.0-beta-3 correctly. 2. Is the URL really valid? Running 'nslookup dev1.wa' returns 'Non-existent domain'. Ben Lidgey wrote: I am getting an error when trying to do a mvn changes:announcement-mail that says: [ERROR] BUILD ERROR [INFO] -- -- [INFO] One or more required plugin parameters are invalid/missing for 'changes:announcement-generate' [0] inside the definition for plugin: 'maven-changes-plugin'specify the following: configuration ... urlVALUE/url /configuration -OR- on the command line, specify: '-Dproject.url=VALUE' [INFO] -- -- BUT, the changes plugin in the pom.xml is configured as plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-changes-plugin/artifactId version2.0-beta-3/version inheritedfalse/inherited executions execution goals goalannouncement-generate/goal /goals idannouncement-generate/id /execution execution goals goalannouncement-mail/goal /goals idannouncement-mail/id /execution /executions configuration urlhttp://dev1.wa:8280/maven-proxy/repository/inuknetworks/I nukPlatform2ParentServiceProject//url smtpHost smtpserver /smtpHost smtpPort implementation=java.lang.Integer 25 /smtpPort toAddresses toAddress implementation=java.lang.String javateamemail /toAddress /toAddresses introduction Common Web Service parent project. /introduction urlDownload http://dev1.wa:8280/internal/inuknetworks/InukPlatform2ParentS erviceProject/ /urlDownload /configuration /plugin When I run it with -X it shows [DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-changes-plugin:2.0-beta-2:anno uncement-generate' -- [DEBUG] (s) artifactId = InukPlatform2ParentServiceProject [DEBUG] (s) developmentTeam = InukPlatform2ParentServiceProject-team [DEBUG] (s) finalName = InukPlatform2ParentServiceProject-1.0.4-SNAPSHOT.pom [DEBUG] (f) generateJiraAnnouncement = false [DEBUG] (s) groupId = inuknetworks [DEBUG] (s) introduction = Common Web Service parent project. [DEBUG] (f) jiraXML = c:\Development\Projects\utils\InukPlatform2ParentServiceProjec t\target/jira-announcement.xml [DEBUG] (f) nbEntries = 25 [DEBUG] (s) outputDirectory = c:\Development\Projects\utils\InukPlatform2ParentServiceProjec t\target/announcement [DEBUG] (s) packaging = pom [DEBUG] (f) project = [EMAIL PROTECTED] [DEBUG] (f) resolutionId = Fixed [DEBUG] (f) setting = [EMAIL PROTECTED] [DEBUG] (f) statusId = Closed [DEBUG] (f) template = announcement.vm [DEBUG] (f) templateDirectory = org/apache/maven/plugin/announcement [DEBUG] (s) url = http://dev1.wa:8280/maven-proxy/repository/inuknetworks/InukPl atform2ParentServiceProject/ [DEBUG] (s) urlDownload = http://dev1.wa:8280/internal/inuknetworks/InukPlatform2ParentS erviceProject/ [DEBUG] (s) version = 1.0.4-SNAPSHOT [DEBUG] (s) xmlPath = c:\Development\Projects\utils\InukPlatform2ParentServiceProjec t/src/changes/changes.xml [DEBUG] -- end configuration -- [INFO] [changes:announcement-generate] Which clearly shows the url defined. Any idea what is going on here? I am using mvn 2.0.7. Ben Lidgey Senior Software Engineer e: [EMAIL PROTECTED] Inuk Networks Limited Enterprise House Navigation Park Abercynon CF45 4SN t: +44 (0)844 546 0100 f: +44 (0)844 546 0200 w: www.inuknetworks.com This e-mail is confidential and intended solely for the use of the individual(s) to whom it is addressed. Any views or opinions expressed are those of the author. If you are not the intended recipient, please
Sync problems with repo1.maven.org and ibiblio?
Hello, If I take a look at http://repo1.maven.org/maven2/org/codehaus/groovy/groovy-all/1.5.4/ all files are properly presents. But at http://mirrors.ibiblio.org/pub/mirrors/maven2/org/codehaus/groovy/groovy-all/1.5.4/ the folder is empty. Is that a sync problem? Can anyone check this. Thanks Thorsten - Thorsten Kamann Software-Architect, Coach http://www.itemis.de http://www.thorsten-kamann.de Please visit the Fornax-Platform, the development platform for MDSD related component and tools: http://www.fornax-platform.org/ -- View this message in context: http://www.nabble.com/Sync-problems-with-repo1.maven.org-and-ibiblio--tp15264337s177p15264337.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: ignoring test dependencies when you run maven with maven.test.skip=true
Rohnny Moland [EMAIL PROTECTED] schrieb: Hello, I was reading this: http://maven.apache.org/guides/mini/guide-attached-tests.html. It works fine if I build my project and run the tests, but what if I want to just build my project and skip the tests? I get a dependency resolution error then, because my test dependency cannot be found. I know 2 possible solutions: 1) Create a profile and include my test dependency in it. This is misuse of a profile in my opinion. 2) Deploy the test dependency in a local repository and only depend on it as a binary. I dont really understand why the reactor does not ignore dependencies with scope=test, when you run maven with the skip test option set to true. Isnt this how it should be? No, it's working as designed. Tests can take a long time to run, so it's useful to sometimes skip that. But compiling them is not normally something that people want to skip; checking in code that breaks the compilation of tests should almost always be a build failure. If you read the surefire documentation, it explicitly says that *running* of the tests is skipped, not compiling. And anyway, the surefire plugin has the responsibility for running the tests, but it is the maven-compiler-plugin that has the responsibility for compiling them. You can disable compilation of tests by excluding classes in the maven-compiler-plugin configuration, but I don't think that will block downloading of test dependencies. In your case, putting the test dependencies in a separate profile would seem to be the appropriate solution. It doesn't seem like an abuse of profiles to me; you have two alternative configurations one of which has some dependencies that the other does not. That seems a quite reasonable use of a profile. Regards, Simon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ignoring test dependencies when you run maven with maven.test.skip=true
Build your project with maven.test.skip.exec=true This will build the required test-jar dependencies but skip test execution. 2008/2/4, Rohnny Moland [EMAIL PROTECTED]: Hello, I was reading this: http://maven.apache.org/guides/mini/guide-attached-tests.html. It works fine if I build my project and run the tests, but what if I want to just build my project and skip the tests? I get a dependency resolution error then, because my test dependency cannot be found. I know 2 possible solutions: 1) Create a profile and include my test dependency in it. This is misuse of a profile in my opinion. 2) Deploy the test dependency in a local repository and only depend on it as a binary. I dont really understand why the reactor does not ignore dependencies with scope=test, when you run maven with the skip test option set to true. Isnt this how it should be? Regards, Rohnny. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
ignoring test dependencies when you run maven with maven.test.skip=true
Hello, I was reading this: http://maven.apache.org/guides/mini/guide-attached-tests.html. It works fine if I build my project and run the tests, but what if I want to just build my project and skip the tests? I get a dependency resolution error then, because my test dependency cannot be found. I know 2 possible solutions: 1) Create a profile and include my test dependency in it. This is misuse of a profile in my opinion. 2) Deploy the test dependency in a local repository and only depend on it as a binary. I dont really understand why the reactor does not ignore dependencies with scope=test, when you run maven with the skip test option set to true. Isnt this how it should be? Regards, Rohnny. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Error in changes:annoucement-mail goal
1. Changing to 2.0-beta-3 works for me. Thanks for all your help. Ben -Original Message- From: Dennis Lundberg [mailto:[EMAIL PROTECTED] Sent: 02 February 2008 17:07 To: Maven Users List Subject: Re: Error in changes:annoucement-mail goal Two more things to check: 1. The debug output shows that you are using 2.0-beta-2: [DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-changes-plugin:2.0-beta-2:anno uncement-generate' -- Please make sure that you have configured the version 2.0-beta-3 correctly. 2. Is the URL really valid? Running 'nslookup dev1.wa' returns 'Non-existent domain'. Ben Lidgey wrote: I am getting an error when trying to do a mvn changes:announcement-mail that says: [ERROR] BUILD ERROR [INFO] -- -- [INFO] One or more required plugin parameters are invalid/missing for 'changes:announcement-generate' [0] inside the definition for plugin: 'maven-changes-plugin'specify the following: configuration ... urlVALUE/url /configuration -OR- on the command line, specify: '-Dproject.url=VALUE' [INFO] -- -- BUT, the changes plugin in the pom.xml is configured as plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-changes-plugin/artifactId version2.0-beta-3/version inheritedfalse/inherited executions execution goals goalannouncement-generate/goal /goals idannouncement-generate/id /execution execution goals goalannouncement-mail/goal /goals idannouncement-mail/id /execution /executions configuration urlhttp://dev1.wa:8280/maven-proxy/repository/inuknetworks/I nukPlatform2ParentServiceProject//url smtpHost smtpserver /smtpHost smtpPort implementation=java.lang.Integer 25 /smtpPort toAddresses toAddress implementation=java.lang.String javateamemail /toAddress /toAddresses introduction Common Web Service parent project. /introduction urlDownload http://dev1.wa:8280/internal/inuknetworks/InukPlatform2ParentS erviceProject/ /urlDownload /configuration /plugin When I run it with -X it shows [DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-changes-plugin:2.0-beta-2:anno uncement-generate' -- [DEBUG] (s) artifactId = InukPlatform2ParentServiceProject [DEBUG] (s) developmentTeam = InukPlatform2ParentServiceProject-team [DEBUG] (s) finalName = InukPlatform2ParentServiceProject-1.0.4-SNAPSHOT.pom [DEBUG] (f) generateJiraAnnouncement = false [DEBUG] (s) groupId = inuknetworks [DEBUG] (s) introduction = Common Web Service parent project. [DEBUG] (f) jiraXML = c:\Development\Projects\utils\InukPlatform2ParentServiceProjec t\target/jira-announcement.xml [DEBUG] (f) nbEntries = 25 [DEBUG] (s) outputDirectory = c:\Development\Projects\utils\InukPlatform2ParentServiceProjec t\target/announcement [DEBUG] (s) packaging = pom [DEBUG] (f) project = [EMAIL PROTECTED] [DEBUG] (f) resolutionId = Fixed [DEBUG] (f) setting = [EMAIL PROTECTED] [DEBUG] (f) statusId = Closed [DEBUG] (f) template = announcement.vm [DEBUG] (f) templateDirectory = org/apache/maven/plugin/announcement [DEBUG] (s) url = http://dev1.wa:8280/maven-proxy/repository/inuknetworks/InukPl atform2ParentServiceProject/ [DEBUG] (s) urlDownload = http://dev1.wa:8280/internal/inuknetworks/InukPlatform2ParentS erviceProject/ [DEBUG] (s) version = 1.0.4-SNAPSHOT [DEBUG] (s) xmlPath = c:\Development\Projects\utils\InukPlatform2ParentServiceProjec t/src/changes/changes.xml [DEBUG] -- end configuration -- [INFO] [changes:announcement-generate] Which clearly shows the url defined. Any idea what is going on here? I am using mvn 2.0.7. Ben Lidgey Senior Software Engineer e: [EMAIL PROTECTED] Inuk Networks Limited Enterprise House Navigation Park Abercynon CF45 4SN t: +44 (0)844 546 0100 f: +44 (0)844 546 0200 w: www.inuknetworks.com This e-mail is confidential and intended solely for the use of the individual(s) to whom it is addressed. Any views or opinions expressed are those of the author. If you are not the intended recipient, please be advised that any
LifecycleExecutionException: Missing distribution management information in the project
Hello; I'm in my first project with maven2, when trying to deploy my projet on a remot server i have this exception : [exec] org.apache.maven.lifecycle.LifecycleExecutionException: Missing distribution management information in the project [exec] at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals( DefaultLifecycleExecutor.java:564) [exec] at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal( DefaultLifecycleExecutor.java:493) [exec] at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal( DefaultLifecycleExecutor.java:463) [exec] at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures (DefaultLifecycleExecutor.java:311) [exec] at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments( DefaultLifecycleExecutor.java:278) [exec] at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute( DefaultLifecycleExecutor.java:143) [exec] at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java :333) [exec] at org.apache.maven.DefaultMaven.execute(DefaultMaven.java :126) [exec] at org.apache.maven.cli.MavenCli.main(MavenCli.java:282) [exec] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [exec] at sun.reflect.NativeMethodAccessorImpl.invoke( NativeMethodAccessorImpl.java:39) [exec] at sun.reflect.DelegatingMethodAccessorImpl.invoke( DelegatingMethodAccessorImpl.java:25) [exec] at java.lang.reflect.Method.invoke(Method.java:597) [exec] at org.codehaus.classworlds.Launcher.launchEnhanced( Launcher.java:315) [exec] at org.codehaus.classworlds.Launcher.launch(Launcher.java :255) [exec] at org.codehaus.classworlds.Launcher.mainWithExitCode( Launcher.java:430) [exec] at org.codehaus.classworlds.Launcher.main(Launcher.java:375) [exec] Caused by: org.apache.maven.plugin.MojoExecutionException: Missing distribution management information in the project [exec] at org.apache.maven.plugins.site.SiteDeployMojo.execute( SiteDeployMojo.java:119) [exec] at org.apache.maven.plugin.DefaultPluginManager.executeMojo( DefaultPluginManager.java:447) [exec] at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals( DefaultLifecycleExecutor.java:539) [exec] ... 16 more I dont inderstend witch distribution i must specifiy in my pom.xml ? any help please. Thx.
help:active-profiles listing two times the same profile
Hi all, I have a profile defined in settings.xml and active by default. When I ask for the active-profiles, it gets listed twice. Is that anything to worry about? Thanks, L -- Dott. Lorenzo Bigagli PIN - Polo Universitario di Prato dell'Università di Firenze i: Piazza dell'Università I-59100 Prato (PO), Italia t: +39 0574 602535 f: +39 0574 602524 m: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: disable default repository http://repo1.maven.org
stupid me, forgot to search correctly. i just need to override repository id 'central'. aldana wrote: i am trying to speed up builds with archiva (-caching of dependencies), so lookup of them won't take so long. problem is that default repository (http://repo1.maven.org) is still directly included. is there a way to switch this off? direct connection is not neccessary because archiva is referencing it indirectly as a repository proxy connector already. thanks for information. -- View this message in context: http://www.nabble.com/disable-default-repository-http%3A--repo1.maven.org-tp15265669s177p15265672.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]
disable default repository http://repo1.maven.org
i am trying to speed up builds with archiva (-caching of dependencies), so lookup of them won't take so long. problem is that default repository (http://repo1.maven.org) is still directly included. is there a way to switch this off? direct connection is not neccessary because archiva is referencing it indirectly as a repository proxy connector already. thanks for information. -- View this message in context: http://www.nabble.com/disable-default-repository-http%3A--repo1.maven.org-tp15265669s177p15265669.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]
Facing problems during maven -o site
Hi When I am running mavn site I am getting below exception, I have no clue as to how should I fix this. Maven version used is 2.0.4 Thank you very much, Mukund [INFO] [site:site] [ERROR] JIRA Report only supports JIRA. JIRA Report will not be generated. [INFO] artifact org.apache.maven.skins:maven-default-skin: checking for updates from central [INFO] Skipped Maven Surefire Report report, file surefire-report.html already exists for the English version. [INFO] Skipped QALab Main Report report, file qalab/index.html already exists for the English version. [INFO] Generating Continuous Integration report. [INFO] Generating Dependencies report. [INFO] [ERROR] FATAL ERROR [INFO] [INFO] null [INFO] [INFO] Trace java.lang.NullPointerException at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(Defau ltArtifactResolver.java:82) at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(Defau ltArtifactResolver.java:63) at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromReposit ory(DefaultMavenProjectBuilder.java:467) at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromRepository( DefaultMavenProjectBuilder.java:225) at org.apache.maven.report.projectinfo.DependenciesReport$DependenciesRende rer.getMavenProjectFromRepository(DependenciesReport.java:362) at org.apache.maven.report.projectinfo.DependenciesReport$DependenciesRende rer.renderBody(DependenciesReport.java:242) at org.apache.maven.reporting.AbstractMavenReportRenderer.render(AbstractMa venReportRenderer.java:65) at org.apache.maven.report.projectinfo.DependenciesReport.executeReport(Dep endenciesReport.java:157) at org.apache.maven.reporting.AbstractMavenReport.generate(AbstractMavenRep ort.java:98) at org.apache.maven.plugins.site.ReportDocumentRenderer.renderDocument(Repo rtDocumentRenderer.java:139) at org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.renderModule(Def aultSiteRenderer.java:269) at org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.render(DefaultSi teRenderer.java:101) at org.apache.maven.plugins.site.SiteMojo.renderLocale(SiteMojo.java:129) at org.apache.maven.plugins.site.SiteMojo.execute(SiteMojo.java:96) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginMa nager.java:412) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Default LifecycleExecutor.java:534) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifec ycle(DefaultLifecycleExecutor.java:475) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultL ifecycleExecutor.java:454) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandle Failures(DefaultLifecycleExecutor.java:306) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments( DefaultLifecycleExecutor.java:273) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifec ycleExecutor.java:140) 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.jav a:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor Impl.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) [INFO] [INFO] Total time: 1 minute 36 seconds [INFO] Finished at: Mon Feb 04 11:31:38 IST 2008 [INFO] Final Memory: 64M/508M [INFO] This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. Any unauthorised review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly prohibited and may be unlawful.
Re: ignoring test dependencies when you run maven with maven.test.skip=true
Simon Kitching [EMAIL PROTECTED] schrieb: Tests can take a long time to run, so it's useful to sometimes skip that. But compiling them is not normally something that people want to skip; checking in code that breaks the compilation of tests should almost always be a build failure. If you read the surefire documentation, it explicitly says that *running* of the tests is skipped, not compiling. And anyway, the surefire plugin has the responsibility for running the tests, but it is the maven-compiler-plugin that has the responsibility for compiling them. nicolas de loof [EMAIL PROTECTED] schrieb: Build your project with maven.test.skip.exec=true This will build the required test-jar dependencies but skip test execution. Thanks for pointing that out Nicolas. All this time, I had not realised that maven.test.skip was also skipping compilation of test classes! The primary documentation on the surefire plugin is not at all clear on this issue, BTW. But after drilling down into the plugin-documentation under the project reports, it does indeed say so. And in compiler plugin, after drilling down into project-reports | plugin-documenation it can be seen that this plugin uses the same flag to disable compilation of test classes - interesting. BTW, just to clarify: I misunderstood the original email in this thread: the original poster *wanted* to compile the unit tests but not run them, and was surprised when maven.test.skip also prevented compilation. As Nicolas points out, maven.test.skip.exec is the right thing to use in that case. Regards, Simon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: including content into apt files
Use the file parameter instead of url, eg: %{snippet|id=myid|file=src/main/resources/help/basichelp.txt} HTH, -Lukas Kallin Nagelberg wrote: Hi Everyone, I've been tasked with creating some .apt documentation for a new maven built project. Ideally, I'd like to have a lot of the site documentation come from files in my src/main/resources directory. I've read about using the snippet macro, but I can't get it to access the artifacts resources. I've tried something like this but it doesn't work: %{snippet|id=myid|url=file:///./src/main/resources/help/basichelp.txt} Any ideas would be appreciated! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ignoring test dependencies when you run maven with maven.test.skip=true
Thanks. maven.test.skip.exec=true is what I was looking for. Thanks again, Rohnny On Feb 4, 2008 11:31 AM, Simon Kitching [EMAIL PROTECTED] wrote: Simon Kitching [EMAIL PROTECTED] schrieb: Tests can take a long time to run, so it's useful to sometimes skip that. But compiling them is not normally something that people want to skip; checking in code that breaks the compilation of tests should almost always be a build failure. If you read the surefire documentation, it explicitly says that *running* of the tests is skipped, not compiling. And anyway, the surefire plugin has the responsibility for running the tests, but it is the maven-compiler-plugin that has the responsibility for compiling them. nicolas de loof [EMAIL PROTECTED] schrieb: Build your project with maven.test.skip.exec=true This will build the required test-jar dependencies but skip test execution. Thanks for pointing that out Nicolas. All this time, I had not realised that maven.test.skip was also skipping compilation of test classes! The primary documentation on the surefire plugin is not at all clear on this issue, BTW. But after drilling down into the plugin-documentation under the project reports, it does indeed say so. And in compiler plugin, after drilling down into project-reports | plugin-documenation it can be seen that this plugin uses the same flag to disable compilation of test classes - interesting. BTW, just to clarify: I misunderstood the original email in this thread: the original poster *wanted* to compile the unit tests but not run them, and was surprised when maven.test.skip also prevented compilation. As Nicolas points out, maven.test.skip.exec is the right thing to use in that case. Regards, Simon - 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: including content into apt files
Which doxia version are you using? The file parameter was added in doxia-1.0-alpha-9 (ie site-plugin 2.0-beta-6). -Lukas Kallin Nagelberg wrote: Thanks Lukas, You know I tried that, but I keep getting the error that 'url' is a required parameters :S On Feb 4, 2008 5:32 AM, Lukas Theussl [EMAIL PROTECTED] wrote: Use the file parameter instead of url, eg: %{snippet|id=myid|file=src/main/resources/help/basichelp.txt} HTH, -Lukas Kallin Nagelberg wrote: Hi Everyone, I've been tasked with creating some .apt documentation for a new maven built project. Ideally, I'd like to have a lot of the site documentation come from files in my src/main/resources directory. I've read about using the snippet macro, but I can't get it to access the artifacts resources. I've tried something like this but it doesn't work: %{snippet|id=myid|url=file:///./src/main/resources/help/basichelp.txt} Any ideas would be appreciated! - 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: ignoring test dependencies when you run maven with maven.test.skip=true
If you really wanted to not include the test dependencies, you could define a separate profile that is actived only when maven.test.skip is not true and then includes the dependencies. Stefan Rohnny Moland wrote: Thanks. maven.test.skip.exec=true is what I was looking for. Thanks again, Rohnny On Feb 4, 2008 11:31 AM, Simon Kitching [EMAIL PROTECTED] wrote: Simon Kitching [EMAIL PROTECTED] schrieb: Tests can take a long time to run, so it's useful to sometimes skip that. But compiling them is not normally something that people want to skip; checking in code that breaks the compilation of tests should almost always be a build failure. If you read the surefire documentation, it explicitly says that *running* of the tests is skipped, not compiling. And anyway, the surefire plugin has the responsibility for running the tests, but it is the maven-compiler-plugin that has the responsibility for compiling them. nicolas de loof [EMAIL PROTECTED] schrieb: Build your project with maven.test.skip.exec=true This will build the required test-jar dependencies but skip test execution. Thanks for pointing that out Nicolas. All this time, I had not realised that maven.test.skip was also skipping compilation of test classes! The primary documentation on the surefire plugin is not at all clear on this issue, BTW. But after drilling down into the plugin-documentation under the project reports, it does indeed say so. And in compiler plugin, after drilling down into project-reports | plugin-documenation it can be seen that this plugin uses the same flag to disable compilation of test classes - interesting. BTW, just to clarify: I misunderstood the original email in this thread: the original poster *wanted* to compile the unit tests but not run them, and was surprised when maven.test.skip also prevented compilation. As Nicolas points out, maven.test.skip.exec is the right thing to use in that case. Regards, Simon - 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] -- best regards, Stefan Seidel software developer VUB Printmedia GmbH Chopinstraße 4 D-04103 Leipzig Germany tel. +49 (341) 9 60 50 07 fax. +49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web. www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss Neudorf, Dr. Christian Preuss Neudorf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
problem downloading dependencies of pom-type
hi, downloading jar's using archiva (as proxy) works fine (both release and snapshots). but downloading referenced pom (as parent) fails. i had a look at 'Repository Scanning' menu and pom is included (**/*.pom). could this be a bug or do i need to set pom download somewhere else too? i am using archiva 1.0.1. -- View this message in context: http://www.nabble.com/problem-downloading-dependencies-of-pom-type-tp15268095p15268095.html Sent from the archiva-users mailing list archive at Nabble.com.
Re: including content into apt files
Please attach a small test project to jira (http://jira.codehaus.org/browse/DOXIA), it works for me. Just to be sure: the macro line is not indented in your apt source, right? (that would explain why the line is interpreted as an anchor). -Lukas Kallin Nagelberg wrote: Ok, so I added a dependency to site plugin 2.0-beta-6 and now i can use the file parameter like you suggested. However, the generated html is not including the file like I expect. Instead it is doing the following: %a name=snippet|id=myid|file=src/main/resources/help/basichelp.txtsnippet|id=myid|file=src/main/resources/help/basichelp.txt/a given the apt: %{snippet|id=myid|file=src/main/resources/help/basichelp.txt} On Feb 4, 2008 8:55 AM, Lukas Theussl [EMAIL PROTECTED] wrote: Which doxia version are you using? The file parameter was added in doxia-1.0-alpha-9 (ie site-plugin 2.0-beta-6). -Lukas Kallin Nagelberg wrote: Thanks Lukas, You know I tried that, but I keep getting the error that 'url' is a required parameters :S On Feb 4, 2008 5:32 AM, Lukas Theussl [EMAIL PROTECTED] wrote: Use the file parameter instead of url, eg: %{snippet|id=myid|file=src/main/resources/help/basichelp.txt} HTH, -Lukas Kallin Nagelberg wrote: Hi Everyone, I've been tasked with creating some .apt documentation for a new maven built project. Ideally, I'd like to have a lot of the site documentation come from files in my src/main/resources directory. I've read about using the snippet macro, but I can't get it to access the artifacts resources. I've tried something like this but it doesn't work: %{snippet|id=myid|url=file:///./src/main/resources/help/basichelp.txt} Any ideas would be appreciated! - 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: including content into apt files
Ok, so I added a dependency to site plugin 2.0-beta-6 and now i can use the file parameter like you suggested. However, the generated html is not including the file like I expect. Instead it is doing the following: %a name=snippet|id=myid|file=src/main/resources/help/basichelp.txtsnippet|id=myid|file=src/main/resources/help/basichelp.txt/a given the apt: %{snippet|id=myid|file=src/main/resources/help/basichelp.txt} On Feb 4, 2008 8:55 AM, Lukas Theussl [EMAIL PROTECTED] wrote: Which doxia version are you using? The file parameter was added in doxia-1.0-alpha-9 (ie site-plugin 2.0-beta-6). -Lukas Kallin Nagelberg wrote: Thanks Lukas, You know I tried that, but I keep getting the error that 'url' is a required parameters :S On Feb 4, 2008 5:32 AM, Lukas Theussl [EMAIL PROTECTED] wrote: Use the file parameter instead of url, eg: %{snippet|id=myid|file=src/main/resources/help/basichelp.txt} HTH, -Lukas Kallin Nagelberg wrote: Hi Everyone, I've been tasked with creating some .apt documentation for a new maven built project. Ideally, I'd like to have a lot of the site documentation come from files in my src/main/resources directory. I've read about using the snippet macro, but I can't get it to access the artifacts resources. I've tried something like this but it doesn't work: %{snippet|id=myid|url=file:///./src/main/resources/help/basichelp.txt} Any ideas would be appreciated! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] Filtering web.xml?
Hello, I had similar problem with a webapp I developed few months ago, so I used this war filtering feature to add build number and deploy time and other informations to jsp files as comment tags filtered by maven. Regards, -- Arnaud Bailly, PhD OQube - Software Engineering http://www.oqube.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: including content into apt files
Kallin Nagelberg wrote: I found out that configuring the dependency wasn't enough. I had to explicitly indicate to use the latest site plugin in a plugin tag. That being said, there are still some issues: 1. Nothing is actually included. There is just an empty div. when I use: %{snippet|id=myid|file=src/main/resources/help/basichelp.txt} There definitely is a file at src/main/resources/help/basichelp.txt with some content. And this file contains START SNIPPET: myid and END SNIPPET: myid as demarcators of the snippet you want to include? See http://maven.apache.org/doxia/macros/index.html 2. If I don't put that snippet on the first line of the file then it is treated as text and not interpreted. IMO that's the expected behavior (even though I don't see where it's documented right now), as otherwise it would not be possible to distinguish macros from anchors in apt files. HTH, -Lukas On Feb 4, 2008 9:49 AM, Lukas Theussl [EMAIL PROTECTED] wrote: Please attach a small test project to jira (http://jira.codehaus.org/browse/DOXIA), it works for me. Just to be sure: the macro line is not indented in your apt source, right? (that would explain why the line is interpreted as an anchor). -Lukas Kallin Nagelberg wrote: Ok, so I added a dependency to site plugin 2.0-beta-6 and now i can use the file parameter like you suggested. However, the generated html is not including the file like I expect. Instead it is doing the following: %a name=snippet|id=myid|file=src/main/resources/help/basichelp.txtsnippet|id=myid|file=src/main/resources/help/basichelp.txt/a given the apt: %{snippet|id=myid|file=src/main/resources/help/basichelp.txt} On Feb 4, 2008 8:55 AM, Lukas Theussl [EMAIL PROTECTED] wrote: Which doxia version are you using? The file parameter was added in doxia-1.0-alpha-9 (ie site-plugin 2.0-beta-6). -Lukas Kallin Nagelberg wrote: Thanks Lukas, You know I tried that, but I keep getting the error that 'url' is a required parameters :S On Feb 4, 2008 5:32 AM, Lukas Theussl [EMAIL PROTECTED] wrote: Use the file parameter instead of url, eg: %{snippet|id=myid|file=src/main/resources/help/basichelp.txt} HTH, -Lukas Kallin Nagelberg wrote: Hi Everyone, I've been tasked with creating some .apt documentation for a new maven built project. Ideally, I'd like to have a lot of the site documentation come from files in my src/main/resources directory. I've read about using the snippet macro, but I can't get it to access the artifacts resources. I've tried something like this but it doesn't work: %{snippet|id=myid|url=file:///./src/main/resources/help/basichelp.txt} Any ideas would be appreciated! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2] how to set log4j system properties for the axis2 maven plugin
Hi all, I know that questions regarding setting log4j and system properties were asked many times, however I could not find anything that works for me. I am trying to make the axis2 plugin run during my build, and I am getting this error: [INFO] [axis2-wsdl2code:wsdl2code {execution: default}] log4j:WARN No appenders could be found for logger (org.apache.axis2.i18n.Project ResourceBundle). log4j:WARN Please initialize the log4j system properly. java.io.FileNotFoundException: at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.init(FileInputStream.java:106) at java.io.FileInputStream.init(FileInputStream.java:66) at org.apache.axis2.wsdl.codegen.CodegenConfigLoader.loadConfig(CodegenC onfigLoader.java:161) at org.apache.axis2.wsdl.codegen.CodeGenConfiguration.init(CodeGenConf iguration.java:371) at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.init(CodeGenerat ionEngine.java:85) at org.apache.axis2.maven2.wsdl2code.WSDL2CodeMojo.execute(WSDL2CodeMojo .java:396) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi nManager.java:443) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa ultLifecycleExecutor.java:539) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi fecycle(DefaultLifecycleExecutor.java:480) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau ltLifecycleExecutor.java:459) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan dleFailures(DefaultLifecycleExecutor.java:311) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen ts(DefaultLifecycleExecutor.java:278) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi fecycleExecutor.java:143) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125) at org.apache.maven.cli.MavenCli.main(MavenCli.java:280) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) 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) [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Error parsing WSDL The only way to make enable log4j logging was to invoke Maven with: mvn -Dlog4j.configuration=file:///C:\my-log4j.properties I tried to put that property in the settings.xml and in the pom.xml with no success. What is the correct way to specify Java system properties not using the -D command line parameter? TIA, Adrian. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: including content into apt files
I found out that configuring the dependency wasn't enough. I had to explicitly indicate to use the latest site plugin in a plugin tag. That being said, there are still some issues: 1. Nothing is actually included. There is just an empty div. when I use: %{snippet|id=myid|file=src/main/resources/help/basichelp.txt} There definitely is a file at src/main/resources/help/basichelp.txt with some content. 2. If I don't put that snippet on the first line of the file then it is treated as text and not interpreted. On Feb 4, 2008 9:49 AM, Lukas Theussl [EMAIL PROTECTED] wrote: Please attach a small test project to jira (http://jira.codehaus.org/browse/DOXIA), it works for me. Just to be sure: the macro line is not indented in your apt source, right? (that would explain why the line is interpreted as an anchor). -Lukas Kallin Nagelberg wrote: Ok, so I added a dependency to site plugin 2.0-beta-6 and now i can use the file parameter like you suggested. However, the generated html is not including the file like I expect. Instead it is doing the following: %a name=snippet|id=myid|file=src/main/resources/help/basichelp.txtsnippet|id=myid|file=src/main/resources/help/basichelp.txt/a given the apt: %{snippet|id=myid|file=src/main/resources/help/basichelp.txt} On Feb 4, 2008 8:55 AM, Lukas Theussl [EMAIL PROTECTED] wrote: Which doxia version are you using? The file parameter was added in doxia-1.0-alpha-9 (ie site-plugin 2.0-beta-6). -Lukas Kallin Nagelberg wrote: Thanks Lukas, You know I tried that, but I keep getting the error that 'url' is a required parameters :S On Feb 4, 2008 5:32 AM, Lukas Theussl [EMAIL PROTECTED] wrote: Use the file parameter instead of url, eg: %{snippet|id=myid|file=src/main/resources/help/basichelp.txt} HTH, -Lukas Kallin Nagelberg wrote: Hi Everyone, I've been tasked with creating some .apt documentation for a new maven built project. Ideally, I'd like to have a lot of the site documentation come from files in my src/main/resources directory. I've read about using the snippet macro, but I can't get it to access the artifacts resources. I've tried something like this but it doesn't work: %{snippet|id=myid|url=file:///./src/main/resources/help/basichelp.txt} Any ideas would be appreciated! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [m2] Filtering web.xml?
Wayne: I thought having packagingwar/packaging in your pom.xml was a shortcut to calling war:war, with Maven filling in the requried parameters. If I'm wrong about that, what's the difference? Just more elaborate customizability with war:war? Also, the plugin documentation is a little sparse, so I'm not sure which of these parameters will help me. I see that you can specify the location of webXML, and I see that there's a filters parameter, but Maven already knows where web.xml is, and puts it in the right spot by default; it only gets confused and misplaces the file when I try to use filters. Also, the documentation for Fitlers only says it's used in interpolation of the pom.xml, whereas I need to filter web.xml. Thanks, ~Dan Allen PS: What's an overlay? That sounds potentially useful, but the parameter Overlays is just explained as specifies overlays. -Original Message- From: Wayne Fay [mailto:[EMAIL PROTECTED] Sent: Friday, February 01, 2008 6:36 PM To: Maven Users List Subject: Re: [m2] Filtering web.xml? The war plugin has a configuration you can use for this webXml: http://maven.apache.org/plugins/maven-war-plugin/war-mojo.html That should do it... Wayne On 2/1/08, Allen, Daniel [EMAIL PROTECTED] wrote: I'm building a web application (packaging WAR), and I need to run the web.xml file through a filter to set certain configutation values. I tried adding it to a resource tag, but that causes Maven to make a copy of it and put it in WEB-INF/classes subdirectory with all of the rest of the resources. I tried setting targetPath to WEB-INF, but then Maven creates WEB-INF/classes/WEB-INF, and puts it in the deeper of the two. I expect that this is because the phase where the the resources tag is processed is before the phase where the WAR file (and thus the WEB-INF directory I wish to target) is created. I'm guessing the generate-sources and package phases, respectively? So, how can I get maven to filter web.xml, but still put it where it needs to go in the WAR structure? Thanks in advance, ~DVA -- This message may contain confidential, proprietary, or legally privileged information. No confidentiality or privilege is waived by any transmission to an unintended recipient. If you are not an intended recipient, please notify the sender and delete this message immediately. Any views expressed in this message are those of the sender, not those of any entity within the KBC Financial Products group of companies (together referred to as KBC FP). This message does not create any obligation, contractual or otherwise, on the part of KBC FP. It is not an offer (or solicitation of an offer) of, or a recommendation to buy or sell, any financial product. Any prices or other values included in this message are indicative only, and do not necessarily represent current market prices, prices at which KBC FP would enter into a transaction, or prices at which similar transactions may be carried on KBC FP's own books. The information contained in this message is provided as is, without representations or warranties, express or implied, of any kind. Past performance is not indicative of future returns. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- This message may contain confidential, proprietary, or legally privileged information. No confidentiality or privilege is waived by any transmission to an unintended recipient. If you are not an intended recipient, please notify the sender and delete this message immediately. Any views expressed in this message are those of the sender, not those of any entity within the KBC Financial Products group of companies (together referred to as KBC FP). This message does not create any obligation, contractual or otherwise, on the part of KBC FP. It is not an offer (or solicitation of an offer) of, or a recommendation to buy or sell, any financial product. Any prices or other values included in this message are indicative only, and do not necessarily represent current market prices, prices at which KBC FP would enter into a transaction, or prices at which similar transactions may be carried on KBC FP's own books. The information contained in this message is provided as is, without representations or warranties, express or implied, of any kind. Past performance is not indicative of future returns. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [maven-release-plugin] release-prepare does not update parent-SNAPSHOT-dependency. issue?
Hi , have you already create a new issue in JIRA ??? Bye dhoffer wrote: I do/did understand you meant to say release:prepare. I do however see this message when using 2.0.8 w/ release-plugin 2.0-beta-7 and I do NOT have SNAPSHOT dependencies. What I do have are dependencies using version ranges w/o SNAPSHOTS. I suspect I am getting tripped up by the never-ending maven version range bugs. Daniel Niklas wrote: Hi Dave, dhoffer wrote: Just wondering, did you figure this out? I too have this problem and I don't have any snapshot dependencies parent or otherwise. I wrongly wrote release-perform, but in fact i talked about release:prepare! Sorry for the confusion! If you don't have any SNAPSHOT dependencies, you cannot have this problem, because this problem ist about resolving SNAPSHOT dependencies by the goal *release:prepare*. dhoffer wrote: I would like to know what was intended by this feature. I have never seen it before 2.0-beta-7 and I can find no documentation of it. I would go back and use 2.0-beta-6 but that does not work with maven 2.0.8 if using version ranges. You will see this feature when you run *release:prepare* and you have SNAPSHOT dependencies in your pom. The plugin then asks you: There are still some remaining snapshot dependencies.: Do you want to resolve them now? (yes/no) no: : Any other suggestions? Daniel -- View this message in context: http://www.nabble.com/-maven-release-plugin--release-perform-does-not-update-parent-SNAPSHOT-dependency.-issue--tp14917104s177p15268887.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: including content into apt files
Thanks Lukas, You know I tried that, but I keep getting the error that 'url' is a required parameters :S On Feb 4, 2008 5:32 AM, Lukas Theussl [EMAIL PROTECTED] wrote: Use the file parameter instead of url, eg: %{snippet|id=myid|file=src/main/resources/help/basichelp.txt} HTH, -Lukas Kallin Nagelberg wrote: Hi Everyone, I've been tasked with creating some .apt documentation for a new maven built project. Ideally, I'd like to have a lot of the site documentation come from files in my src/main/resources directory. I've read about using the snippet macro, but I can't get it to access the artifacts resources. I've tried something like this but it doesn't work: %{snippet|id=myid|url=file:///./src/main/resources/help/basichelp.txt} Any ideas would be appreciated! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [m2] Filtering web.xml?
Nevermind about the overlays; I found a docs page on that. -Original Message- From: Allen, Daniel Sent: Monday, February 04, 2008 11:08 AM To: Maven Users List Subject: RE: [m2] Filtering web.xml? Wayne: I thought having packagingwar/packaging in your pom.xml was a shortcut to calling war:war, with Maven filling in the requried parameters. If I'm wrong about that, what's the difference? Just more elaborate customizability with war:war? Also, the plugin documentation is a little sparse, so I'm not sure which of these parameters will help me. I see that you can specify the location of webXML, and I see that there's a filters parameter, but Maven already knows where web.xml is, and puts it in the right spot by default; it only gets confused and misplaces the file when I try to use filters. Also, the documentation for Fitlers only says it's used in interpolation of the pom.xml, whereas I need to filter web.xml. Thanks, ~Dan Allen PS: What's an overlay? That sounds potentially useful, but the parameter Overlays is just explained as specifies overlays. -Original Message- From: Wayne Fay [mailto:[EMAIL PROTECTED] Sent: Friday, February 01, 2008 6:36 PM To: Maven Users List Subject: Re: [m2] Filtering web.xml? The war plugin has a configuration you can use for this webXml: http://maven.apache.org/plugins/maven-war-plugin/war-mojo.html That should do it... Wayne On 2/1/08, Allen, Daniel [EMAIL PROTECTED] wrote: I'm building a web application (packaging WAR), and I need to run the web.xml file through a filter to set certain configutation values. I tried adding it to a resource tag, but that causes Maven to make a copy of it and put it in WEB-INF/classes subdirectory with all of the rest of the resources. I tried setting targetPath to WEB-INF, but then Maven creates WEB-INF/classes/WEB-INF, and puts it in the deeper of the two. I expect that this is because the phase where the the resources tag is processed is before the phase where the WAR file (and thus the WEB-INF directory I wish to target) is created. I'm guessing the generate-sources and package phases, respectively? So, how can I get maven to filter web.xml, but still put it where it needs to go in the WAR structure? Thanks in advance, ~DVA -- This message may contain confidential, proprietary, or legally privileged information. No confidentiality or privilege is waived by any transmission to an unintended recipient. If you are not an intended recipient, please notify the sender and delete this message immediately. Any views expressed in this message are those of the sender, not those of any entity within the KBC Financial Products group of companies (together referred to as KBC FP). This message does not create any obligation, contractual or otherwise, on the part of KBC FP. It is not an offer (or solicitation of an offer) of, or a recommendation to buy or sell, any financial product. Any prices or other values included in this message are indicative only, and do not necessarily represent current market prices, prices at which KBC FP would enter into a transaction, or prices at which similar transactions may be carried on KBC FP's own books. The information contained in this message is provided as is, without representations or warranties, express or implied, of any kind. Past performance is not indicative of future returns. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- This message may contain confidential, proprietary, or legally privileged information. No confidentiality or privilege is waived by any transmission to an unintended recipient. If you are not an intended recipient, please notify the sender and delete this message immediately. Any views expressed in this message are those of the sender, not those of any entity within the KBC Financial Products group of companies (together referred to as KBC FP). This message does not create any obligation, contractual or otherwise, on the part of KBC FP. It is not an offer (or solicitation of an offer) of, or a recommendation to buy or sell, any financial product. Any prices or other values included in this message are indicative only, and do not necessarily represent current market prices, prices at which KBC FP would enter into a transaction, or prices at which similar transactions may be carried on KBC FP's own books. The information contained in this message is provided as is, without representations or warranties, express or implied, of any kind. Past performance is not indicative of future returns. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- This message may contain confidential, proprietary, or legally privileged information. No confidentiality or privilege is waived by any transmission to an
Re: Maven Invoker Plugin help
Okay, on one machine I am running maven-2.0.7 and when the i.t. project fails, the main project still reports success. On another machine I am using maven-2.0.8 and when the i.t. project fails, the main project build correctly reports failure. I am mentioning it here for anyone who searches the mailing lists with failing i.t. projects being reported as success--the solution is to upgrade to maven-2.0.8 :) Thanks again Olivier for your help. -David On Feb 1, 2008 4:41 PM, Olivier Lamy [EMAIL PROTECTED] wrote: If building your maven project failed, the invoker will report this (line starting with : ...FAILED) If not we have an issue here in the invoker plugin. -- Olivier 2008/2/1, David Siefert [EMAIL PROTECTED]: Thank you very much Olivier, I am now able to invoke the integration test projects from my main project just like the maven-jar-plugin does. I have another issue: a beanshell script is required to report whether or not the build has failed or succeeded. Why can't the build failure of the maven project be reported to the invoker plugin so I do not have to do this? Thanks! -David On Jan 23, 2008 12:41 PM, Olivier Lamy [EMAIL PROTECTED] wrote: Hi, You can have a look at the its in some maven plugins (jar plugin [1]) to see how we organize execution of the maven-invoker-plugin. Look at the pom and the profile called integration-tests. But IMHO the maven-invoker-plugin is for maven plugins not for jar artifacts. -- Olivier |1] https://svn.apache.org/repos/asf/maven/plugins/trunk/maven-jar-plugin/ 2008/1/23, David Siefert [EMAIL PROTECTED]: Hi, I am trying to get my integration tests to run as part of the main project build using the maven-invoker-plugin. However it is impossible (at least without some hacking) to have the IT projects run because of the maven build lifecycle. compile package -- JAR created integration-test -- invoke maven it projects [FAILS: Cannot load artifact that was built during package phase] verify -- Reports success anyway even though build has failed due to above artifact issue! I could see a possible solution: use ant task to copy the project artifact, or use a systemPath dependency--however this could be error prone (location of the artifact). Any suggestions? Thanks, David - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: What is the different between using ant tasks and antrun plugin?
Wayne, thanks. On 1/31/08, Wayne Fay [EMAIL PROTECTED] wrote: Use ant-tasks if you want to integrate certain Maven functions into your ant build.xml scripts. This is for people who want to keep using Ant as their primary build tool. I don't think you want to do this. Use antrun plugin if you want to call ant tasks from your Maven build. This is for people who are trying to use Maven as their primary build tool. I think this is what you're trying to do. Wayne On 2/1/08, Baz [EMAIL PROTECTED] wrote: Hi, I am trying to execute some existing ant build.xml files with maven 2. I am confuse if i should use antrun plugin ( http://maven.apache.org/plugins/maven-antrun-plugin/) or ant tasks ( http://maven.apache.org/ant-tasks.html) Can someone help to explain? Thanks. A. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: eclipse:eclipse PDE version naming for incubator projects - changing a hyphen into a period, causing an error
This seems a bug. I opened a Jira issue http://jira.codehaus.org/browse/MECLIPSE-385, attached a patch and an updated test case. One issue may be the way I fixed it: I fixed a method getNormalizedVersion in EclipseOSGiManifestWriter, but that class is marked deprecated - so it may need to be fixed elsewhere. -Marshall Marshall Schor wrote: We have a maven version for our incubating project which looks like: 2.3.0.incubating-SNAPSHOT The dot before incubating is there to make the format fit the Eclipse syntax of major.minor.micro.qualifier When eclipse:eclipse updates the MANIFEST.MF, it changes this version to: 2.3.0.incubating.SNAPSHOT This causes Eclipse 3.3 to complain that the format (which now contains 5 sections, separated by periods) is invalid. Can I set some configuration parameter to get eclipse:eclipse to not change the last - before SNAPSHOT to a period? -Marshall Schor - 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]
Ant plugin fails after ugrading from maven 2.0.7 to 2.0.8
I've been working on an ant plugin here: http://svn.apache.org/viewvc/commons/sandbox/commons-build-plugin/ It was working fine on maven 2.0.7 but after I upgraded to maven 2.0.8 it started throwing an IllegalArgumentException (see stack trace below) when I try to run any of the three goals. Any ideas Niall [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'commons'. [INFO] [INFO] Building Commons Chain [INFO]task-segment: [commons:jira-page] [INFO] [INFO] [commons:jira-page] [INFO] [ERROR] FATAL ERROR [INFO] [INFO] null Illegal character in path at index 18: file:/C:/Documents and Settings/Niall Pemberton/.m2/repository/org/apache/ant/ant/1.7.0/ant-1.7.0.jar [INFO] [INFO] Trace java.lang.IllegalArgumentException at java.net.URI.create(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.tools.ant.launch.Locator.fromURI(Locator.java:162) at org.apache.tools.ant.launch.Locator.getResourceSource(Locator.java:119) at org.apache.tools.ant.launch.Locator.getClassSource(Locator.java:90) at org.apache.tools.ant.Project.setAntLib(Project.java:313) at org.apache.tools.ant.Project.initProperties(Project.java:309) at org.apache.tools.ant.Project.init(Project.java:295) at org.codehaus.plexus.component.factory.ant.AntScriptInvoker.initializeProject(AntScriptInvoker.java:251) at org.codehaus.plexus.component.factory.ant.AntScriptInvoker.invoke(AntScriptInvoker.java:174) at org.apache.maven.script.ant.AntMojoWrapper.execute(AntMojoWrapper.java:52) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:447) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:493) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:463) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:333) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:126) at org.apache.maven.cli.MavenCli.main(MavenCli.java:282) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) 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: java.net.URISyntaxException: Illegal character in path at index 18: file:/C:/Documents and Settings/Niall Pemberton/.m2/repository/org/apache/ant/ant/1.7.0/ant-1.7.0.jar at java.net.URI$Parser.fail(Unknown Source) at java.net.URI$Parser.checkChars(Unknown Source) at java.net.URI$Parser.parseHierarchical(Unknown Source) at java.net.URI$Parser.parse(Unknown Source) at java.net.URI.init(Unknown Source) ... 32 more [INFO] [INFO] Total time: 1 second [INFO] Finished at: Mon Feb 04 18:45:53 GMT 2008 [INFO] Final Memory: 4M/8M [INFO] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: maven-plugin-management-plugin versions?
Where did you find this plugin? Tom Davies wrote: Hi, I'm using a snapshot build of this plugin to test my plugin. Is there going to be a non-snapshot release, or is this a deprecated way of testing plugins? Thanks, Tom -- ATLASSIAN - http://www.atlassian.com Our products help over 8,500 customers in more than 95 countries to collaborate -- Dennis Lundberg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: PMD pom example
raghu121 wrote: Hi, Am looking for a PMD pom.xml example for Maven2 The first place I would look for this is the usage page for the PMD plugin: http://maven.apache.org/plugins/maven-pmd-plugin/usage.html It is considered good practice to read the documentation before asking questions on the user list. -- Dennis Lundberg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [m2] Filtering web.xml?
Ok, finally found the right page of the plugin docs with the info I needed. I do stand by my comment about the documentation, within the limited scope of the parameters page... a lot of them are documented like they're self-explanatory, but if you're not familiar with the workings of the plugin, they're anything but. Even little touches like having the overlays parameter's documentation link to the overlays explanation page would be helpful. I don't suppose there's a wiki or something that the documents are generated from that I could go to and add that, is there? I may not know enough yet to seriously contribute to the documents, but I can manage small chores like cross-referencing. ;) Anyway, thanks for the link, Wayne. ~Dan Allen -Original Message- From: Allen, Daniel Sent: Monday, February 04, 2008 11:58 AM To: Maven Users List Subject: RE: [m2] Filtering web.xml? Nevermind about the overlays; I found a docs page on that. -Original Message- From: Allen, Daniel Sent: Monday, February 04, 2008 11:08 AM To: Maven Users List Subject: RE: [m2] Filtering web.xml? Wayne: I thought having packagingwar/packaging in your pom.xml was a shortcut to calling war:war, with Maven filling in the requried parameters. If I'm wrong about that, what's the difference? Just more elaborate customizability with war:war? Also, the plugin documentation is a little sparse, so I'm not sure which of these parameters will help me. I see that you can specify the location of webXML, and I see that there's a filters parameter, but Maven already knows where web.xml is, and puts it in the right spot by default; it only gets confused and misplaces the file when I try to use filters. Also, the documentation for Fitlers only says it's used in interpolation of the pom.xml, whereas I need to filter web.xml. Thanks, ~Dan Allen PS: What's an overlay? That sounds potentially useful, but the parameter Overlays is just explained as specifies overlays. -Original Message- From: Wayne Fay [mailto:[EMAIL PROTECTED] Sent: Friday, February 01, 2008 6:36 PM To: Maven Users List Subject: Re: [m2] Filtering web.xml? The war plugin has a configuration you can use for this webXml: http://maven.apache.org/plugins/maven-war-plugin/war-mojo.html That should do it... Wayne On 2/1/08, Allen, Daniel [EMAIL PROTECTED] wrote: I'm building a web application (packaging WAR), and I need to run the web.xml file through a filter to set certain configutation values. I tried adding it to a resource tag, but that causes Maven to make a copy of it and put it in WEB-INF/classes subdirectory with all of the rest of the resources. I tried setting targetPath to WEB-INF, but then Maven creates WEB-INF/classes/WEB-INF, and puts it in the deeper of the two. I expect that this is because the phase where the the resources tag is processed is before the phase where the WAR file (and thus the WEB-INF directory I wish to target) is created. I'm guessing the generate-sources and package phases, respectively? So, how can I get maven to filter web.xml, but still put it where it needs to go in the WAR structure? Thanks in advance, ~DVA -- This message may contain confidential, proprietary, or legally privileged information. No confidentiality or privilege is waived by any transmission to an unintended recipient. If you are not an intended recipient, please notify the sender and delete this message immediately. Any views expressed in this message are those of the sender, not those of any entity within the KBC Financial Products group of companies (together referred to as KBC FP). This message does not create any obligation, contractual or otherwise, on the part of KBC FP. It is not an offer (or solicitation of an offer) of, or a recommendation to buy or sell, any financial product. Any prices or other values included in this message are indicative only, and do not necessarily represent current market prices, prices at which KBC FP would enter into a transaction, or prices at which similar transactions may be carried on KBC FP's own books. The information contained in this message is provided as is, without representations or warranties, express or implied, of any kind. Past performance is not indicative of future returns. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- This message may contain confidential, proprietary, or legally privileged information. No confidentiality or privilege is waived by any transmission to an unintended recipient. If you are not an intended recipient, please notify the sender and delete this message immediately. Any views expressed in this message are those of the sender, not those of any entity within the KBC Financial Products group of companies (together referred to as KBC FP). This message does not create any obligation, contractual or otherwise, on the part of KBC FP.
RE: build profiles
When I was doing profiles for the first time, I noticed that anything I put in profiles.xml was active by default, and that my dev profile overrode my live release profile. This may be your problem. Try adding: activation activeByDefaultfalse/activeByDefault /activation to the dev profile that is currently overriding the other. In fact, this may or may not be regarded by the community as a best practice, (I'm new at Maven too), but for a project where only one profile should ever be active at a time, I add those lines to all the profiles, and then just explicitly call the one I want at the command line with '-P profile_name'. Hope that helps. ~Dan Allen -Original Message- From: amit kumar [mailto:[EMAIL PROTECTED] Sent: Monday, February 04, 2008 1:58 PM To: Maven Users List Subject: build profiles Hi, I am trying to have different build profiles for my development environment and integration environment. All I want is to have different destination directories. My project has sub-modules and at the time of Integration when I run the maven build for the parent project, the destination directory that I want at the integration environment gets overridden by the sub module directory tag. I have tried something like this. ParentProject -pom.xmlhave a profile with destination directory say C:\final -Child1destination directory in the build tag D:\dev -Child2 When I run mvn install -P profile1. The C:\final gets overridden by D:\dev. How shall I go about it? regards, Amit - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- This message may contain confidential, proprietary, or legally privileged information. No confidentiality or privilege is waived by any transmission to an unintended recipient. If you are not an intended recipient, please notify the sender and delete this message immediately. Any views expressed in this message are those of the sender, not those of any entity within the KBC Financial Products group of companies (together referred to as KBC FP). This message does not create any obligation, contractual or otherwise, on the part of KBC FP. It is not an offer (or solicitation of an offer) of, or a recommendation to buy or sell, any financial product. Any prices or other values included in this message are indicative only, and do not necessarily represent current market prices, prices at which KBC FP would enter into a transaction, or prices at which similar transactions may be carried on KBC FP's own books. The information contained in this message is provided as is, without representations or warranties, express or implied, of any kind. Past performance is not indicative of future returns. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Checking out and building on remote machine using continuum
Hi, Thanks for your response. I am able to check out the code from the SVN repository. I am particularly interested in using a remote build machine. Is it possible to do a remote build using Continuum? If so, could you kindly let me know how I can do this? Thanks a lot for your time. -Buvana Wendy Smoak-3 wrote: On Jan 28, 2008 5:52 PM, Buvana Jayaraman [EMAIL PROTECTED] wrote: I am new to Continuum and trying to set up a shell project. Continuum is installed on the same machine as the SVN repositories. But I would like to use another machine for the build. Is there a way to check out and build the code on a remote machine using Continuum? When you add a Shell project, there is a field for the scm url. http://maven.apache.org/continuum/docs/1.1/user_guides/managing_project/addProject.html#Shell_Project -- Wendy -- View this message in context: http://www.nabble.com/Re%3A-Checking-out-and-building-on-remote-machine-using-continuum-tp15154734p15273448.html Sent from the Continuum - Users mailing list archive at Nabble.com.
Re: .m2/settings.xml
Thanks a ton! On Feb 4, 2008 12:17 PM, Tomasz Pik [EMAIL PROTECTED] wrote: On Feb 4, 2008 7:00 PM, amit kumar [EMAIL PROTECTED] wrote: Hi, where is .m2/settings.xml? I saw this first in the maven plugin for eclipse. It keeps looking for %USER_HOME%/.m2/settings.xml. But I can not find this file inside the .m2 folder. Do I have to create it manually? Or it is supposed to be generated at the time of .m2 folder gets created. You need to create it manually. This may also help: http://maven.apache.org/settings.html Regards, Tomek - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: .m2/settings.xml
On Feb 4, 2008 7:00 PM, amit kumar [EMAIL PROTECTED] wrote: Hi, where is .m2/settings.xml? I saw this first in the maven plugin for eclipse. It keeps looking for %USER_HOME%/.m2/settings.xml. But I can not find this file inside the .m2 folder. Do I have to create it manually? Or it is supposed to be generated at the time of .m2 folder gets created. You need to create it manually. This may also help: http://maven.apache.org/settings.html Regards, Tomek - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: .m2/settings.xml
On 2/4/08, amit kumar [EMAIL PROTECTED] wrote: where is .m2/settings.xml? I saw this first in the maven plugin for eclipse. It keeps looking for %USER_HOME%/.m2/settings.xml. But I can not find this file inside the .m2 folder. Do I have to create it manually? Or it is supposed to be generated at the time of .m2 folder gets created. Amit settings.xml allows overriding the default settings for the location of the repository, proxy server access, and more. You must create the file if you need these overrides. Maven could be improved by providing a sample file with every possible setting either inactive or set to the default (like httpd.conf from a popular software package.) %USER_HOME% is your home directory. On real OSes, this is usually /home/{username}. Bash allows quick access with the tilde '~' so try cd ~. Directory starting with a period may be hidden so use ls -A to show all files. On Microsoft OSes, the home directory is C:\Documents and Settings\{username}. Use double-quotes because Microsoft uses spaces to prevent normal people from typing the path correctly. Directories starting with a period may be hidden so change Folder Options to Show all files. solprovider - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Achiva and Proximity
Sure - since both use repositories stored in the file system you can configure Archiva to point at the disk location of the repositories when you add managed repositories. They'll be scanned and indexed after they are added. Archiva doesn't however have an option for importing configuration from Proximity. Cheers, Brett On 04/02/2008, SlinnHawkins, Jon (ELS-CAM) [EMAIL PROTECTED] wrote: Hi All, Is it possible to migrate an existing Proximity repository to use Archiva ? Many thanks Jon This email is from Elsevier Limited, a company registered in England and Wales with company number 1982084, whose registered office is The Boulevard, Langford Lane, Kidlington, Oxford, OX5 1GB, United Kingdom. -- Brett Porter Blog: http://www.devzuz.org/blogs/bporter/
Re: eclipse:eclipse PDE version naming for incubator projects - changing a hyphen into a period, causing an error
you should look into the Apache Felix bundle plugin. It has a bundle:manifest goal that will generate the OSGi manifest, that's why the eclipse pluign class is deprecated Check Adding OSGi metadata to existing projects without changing the packaging type http://felix.apache.org/site/maven-bundle-plugin-bnd.html On Feb 4, 2008 9:27 AM, Marshall Schor [EMAIL PROTECTED] wrote: This seems a bug. I opened a Jira issue http://jira.codehaus.org/browse/MECLIPSE-385, attached a patch and an updated test case. One issue may be the way I fixed it: I fixed a method getNormalizedVersion in EclipseOSGiManifestWriter, but that class is marked deprecated - so it may need to be fixed elsewhere. -Marshall Marshall Schor wrote: We have a maven version for our incubating project which looks like: 2.3.0.incubating-SNAPSHOT The dot before incubating is there to make the format fit the Eclipse syntax of major.minor.micro.qualifier When eclipse:eclipse updates the MANIFEST.MF, it changes this version to: 2.3.0.incubating.SNAPSHOT This causes Eclipse 3.3 to complain that the format (which now contains 5 sections, separated by periods) is invalid. Can I set some configuration parameter to get eclipse:eclipse to not change the last - before SNAPSHOT to a period? -Marshall Schor - 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] -- I could give you my word as a Spaniard. No good. I've known too many Spaniards. -- The Princess Bride - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: bootstrapping repos
Lorenzo Bigagli [EMAIL PROTECTED] schrieb: I put all the repositories in a parent pom, but now of course all children poms look for their father in the central (and fail)... Am I doomed to bootstrap the repositories info in the settings, too? Yep. At least the one repository that contains the parent is needed (assuming child modules cannot locate the parent on the local disk via the relativePath attribute). Once the parent pom can be found, then the other repos it defines become available. Regards, Simon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: build profiles
So... you're saying that your profile (profile1, according to your example command-line call below) is defined in/for the parent POM? I think I'm not 100% understanding your setup. Could you give me a more detailed explanation of what profiles and properties you have defined, where those are, and which ones you do and don't want active? In fact, if you have some web space somewhere, maybe you could just upload your POMs and link to them? -Original Message- From: amit kumar [mailto:[EMAIL PROTECTED] Sent: Monday, February 04, 2008 2:33 PM To: Maven Users List Subject: Re: build profiles Currently i am not using any profile(tag) for sub modules, I am just mentioning directory tag inside build tag. Do i need to have separate profile to do that? regards, Amit On Feb 4, 2008 1:03 PM, Allen, Daniel [EMAIL PROTECTED] wrote: When I was doing profiles for the first time, I noticed that anything I put in profiles.xml was active by default, and that my dev profile overrode my live release profile. This may be your problem. Try adding: activation activeByDefaultfalse/activeByDefault /activation to the dev profile that is currently overriding the other. In fact, this may or may not be regarded by the community as a best practice, (I'm new at Maven too), but for a project where only one profile should ever be active at a time, I add those lines to all the profiles, and then just explicitly call the one I want at the command line with '-P profile_name'. Hope that helps. ~Dan Allen -Original Message- From: amit kumar [mailto:[EMAIL PROTECTED] Sent: Monday, February 04, 2008 1:58 PM To: Maven Users List Subject: build profiles Hi, I am trying to have different build profiles for my development environment and integration environment. All I want is to have different destination directories. My project has sub-modules and at the time of Integration when I run the maven build for the parent project, the destination directory that I want at the integration environment gets overridden by the sub module directory tag. I have tried something like this. ParentProject -pom.xmlhave a profile with destination directory say C:\final -Child1destination directory in the build tag D:\dev -Child2 When I run mvn install -P profile1. The C:\final gets overridden by D:\dev. How shall I go about it? regards, Amit - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- This message may contain confidential, proprietary, or legally privileged information. No confidentiality or privilege is waived by any transmission to an unintended recipient. If you are not an intended recipient, please notify the sender and delete this message immediately. Any views expressed in this message are those of the sender, not those of any entity within the KBC Financial Products group of companies (together referred to as KBC FP). This message does not create any obligation, contractual or otherwise, on the part of KBC FP. It is not an offer (or solicitation of an offer) of, or a recommendation to buy or sell, any financial product. Any prices or other values included in this message are indicative only, and do not necessarily represent current market prices, prices at which KBC FP would enter into a transaction, or prices at which similar transactions may be carried on KBC FP's own books. The information contained in this message is provided as is, without representations or warranties, express or implied, of any kind. Past performance is not indicative of future returns. - 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] -- This message may contain confidential, proprietary, or legally privileged information. No confidentiality or privilege is waived by any transmission to an unintended recipient. If you are not an intended recipient, please notify the sender and delete this message immediately. Any views expressed in this message are those of the sender, not those of any entity within the KBC Financial Products group of companies (together referred to as KBC FP). This message does not create any obligation, contractual or otherwise, on the part of KBC FP. It is not an offer (or solicitation of an offer) of, or a recommendation to buy or sell, any financial product. Any prices or other values included in this message are indicative only, and do not necessarily represent current market prices, prices at which KBC FP would enter into a transaction, or prices at which similar transactions may
Re: Ant plugin fails after ugrading from maven 2.0.7 to 2.0.8
Perhaps related, but still don't know how I resolve this or why it occurs after upgrading: http://jira.codehaus.org/browse/MANTRUN-68 Niall On Feb 4, 2008 6:51 PM, Niall Pemberton [EMAIL PROTECTED] wrote: I've been working on an ant plugin here: http://svn.apache.org/viewvc/commons/sandbox/commons-build-plugin/ It was working fine on maven 2.0.7 but after I upgraded to maven 2.0.8 it started throwing an IllegalArgumentException (see stack trace below) when I try to run any of the three goals. Any ideas Niall [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'commons'. [INFO] [INFO] Building Commons Chain [INFO]task-segment: [commons:jira-page] [INFO] [INFO] [commons:jira-page] [INFO] [ERROR] FATAL ERROR [INFO] [INFO] null Illegal character in path at index 18: file:/C:/Documents and Settings/Niall Pemberton/.m2/repository/org/apache/ant/ant/1.7.0/ant-1.7.0.jar [INFO] [INFO] Trace java.lang.IllegalArgumentException at java.net.URI.create(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.tools.ant.launch.Locator.fromURI(Locator.java:162) at org.apache.tools.ant.launch.Locator.getResourceSource(Locator.java:119) at org.apache.tools.ant.launch.Locator.getClassSource(Locator.java:90) at org.apache.tools.ant.Project.setAntLib(Project.java:313) at org.apache.tools.ant.Project.initProperties(Project.java:309) at org.apache.tools.ant.Project.init(Project.java:295) at org.codehaus.plexus.component.factory.ant.AntScriptInvoker.initializeProject(AntScriptInvoker.java:251) at org.codehaus.plexus.component.factory.ant.AntScriptInvoker.invoke(AntScriptInvoker.java:174) at org.apache.maven.script.ant.AntMojoWrapper.execute(AntMojoWrapper.java:52) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:447) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:493) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:463) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:333) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:126) at org.apache.maven.cli.MavenCli.main(MavenCli.java:282) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) 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: java.net.URISyntaxException: Illegal character in path at index 18: file:/C:/Documents and Settings/Niall Pemberton/.m2/repository/org/apache/ant/ant/1.7.0/ant-1.7.0.jar at java.net.URI$Parser.fail(Unknown Source) at java.net.URI$Parser.checkChars(Unknown Source) at java.net.URI$Parser.parseHierarchical(Unknown Source) at java.net.URI$Parser.parse(Unknown Source) at java.net.URI.init(Unknown Source) ... 32 more [INFO] [INFO] Total time: 1 second [INFO] Finished at: Mon Feb 04 18:45:53 GMT 2008 [INFO] Final Memory: 4M/8M [INFO] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: .m2/settings.xml
There's also a sample settings.xml file in the directory that Maven installs to, under the /conf subdirectory. It contains pretty much everything you might need to put into your settings, in commented-out generic form. ~Dan Allen -Original Message- From: amit kumar [mailto:[EMAIL PROTECTED] Sent: Monday, February 04, 2008 1:00 PM To: Maven Users List Subject: .m2/settings.xml Hi, where is .m2/settings.xml? I saw this first in the maven plugin for eclipse. It keeps looking for %USER_HOME%/.m2/settings.xml. But I can not find this file inside the .m2 folder. Do I have to create it manually? Or it is supposed to be generated at the time of .m2 folder gets created. Amit - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- This message may contain confidential, proprietary, or legally privileged information. No confidentiality or privilege is waived by any transmission to an unintended recipient. If you are not an intended recipient, please notify the sender and delete this message immediately. Any views expressed in this message are those of the sender, not those of any entity within the KBC Financial Products group of companies (together referred to as KBC FP). This message does not create any obligation, contractual or otherwise, on the part of KBC FP. It is not an offer (or solicitation of an offer) of, or a recommendation to buy or sell, any financial product. Any prices or other values included in this message are indicative only, and do not necessarily represent current market prices, prices at which KBC FP would enter into a transaction, or prices at which similar transactions may be carried on KBC FP's own books. The information contained in this message is provided as is, without representations or warranties, express or implied, of any kind. Past performance is not indicative of future returns. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven Invoker Plugin help
Yeap. It's a know issue in windoze env with mvn 2.0.7 (http://jira.codehaus.org/browse/MNG-2685). -- Olivier 2008/2/4, David Siefert [EMAIL PROTECTED]: Okay, on one machine I am running maven-2.0.7 and when the i.t. project fails, the main project still reports success. On another machine I am using maven-2.0.8 and when the i.t. project fails, the main project build correctly reports failure. I am mentioning it here for anyone who searches the mailing lists with failing i.t. projects being reported as success--the solution is to upgrade to maven-2.0.8 :) Thanks again Olivier for your help. -David On Feb 1, 2008 4:41 PM, Olivier Lamy [EMAIL PROTECTED] wrote: If building your maven project failed, the invoker will report this (line starting with : ...FAILED) If not we have an issue here in the invoker plugin. -- Olivier 2008/2/1, David Siefert [EMAIL PROTECTED]: Thank you very much Olivier, I am now able to invoke the integration test projects from my main project just like the maven-jar-plugin does. I have another issue: a beanshell script is required to report whether or not the build has failed or succeeded. Why can't the build failure of the maven project be reported to the invoker plugin so I do not have to do this? Thanks! -David On Jan 23, 2008 12:41 PM, Olivier Lamy [EMAIL PROTECTED] wrote: Hi, You can have a look at the its in some maven plugins (jar plugin [1]) to see how we organize execution of the maven-invoker-plugin. Look at the pom and the profile called integration-tests. But IMHO the maven-invoker-plugin is for maven plugins not for jar artifacts. -- Olivier |1] https://svn.apache.org/repos/asf/maven/plugins/trunk/maven-jar-plugin/ 2008/1/23, David Siefert [EMAIL PROTECTED]: Hi, I am trying to get my integration tests to run as part of the main project build using the maven-invoker-plugin. However it is impossible (at least without some hacking) to have the IT projects run because of the maven build lifecycle. compile package -- JAR created integration-test -- invoke maven it projects [FAILS: Cannot load artifact that was built during package phase] verify -- Reports success anyway even though build has failed due to above artifact issue! I could see a possible solution: use ant task to copy the project artifact, or use a systemPath dependency--however this could be error prone (location of the artifact). Any suggestions? Thanks, David - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
.m2/settings.xml
Hi, where is .m2/settings.xml? I saw this first in the maven plugin for eclipse. It keeps looking for %USER_HOME%/.m2/settings.xml. But I can not find this file inside the .m2 folder. Do I have to create it manually? Or it is supposed to be generated at the time of .m2 folder gets created. Amit - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: build profiles
Currently i am not using any profile(tag) for sub modules, I am just mentioning directory tag inside build tag. Do i need to have separate profile to do that? regards, Amit On Feb 4, 2008 1:03 PM, Allen, Daniel [EMAIL PROTECTED] wrote: When I was doing profiles for the first time, I noticed that anything I put in profiles.xml was active by default, and that my dev profile overrode my live release profile. This may be your problem. Try adding: activation activeByDefaultfalse/activeByDefault /activation to the dev profile that is currently overriding the other. In fact, this may or may not be regarded by the community as a best practice, (I'm new at Maven too), but for a project where only one profile should ever be active at a time, I add those lines to all the profiles, and then just explicitly call the one I want at the command line with '-P profile_name'. Hope that helps. ~Dan Allen -Original Message- From: amit kumar [mailto:[EMAIL PROTECTED] Sent: Monday, February 04, 2008 1:58 PM To: Maven Users List Subject: build profiles Hi, I am trying to have different build profiles for my development environment and integration environment. All I want is to have different destination directories. My project has sub-modules and at the time of Integration when I run the maven build for the parent project, the destination directory that I want at the integration environment gets overridden by the sub module directory tag. I have tried something like this. ParentProject -pom.xmlhave a profile with destination directory say C:\final -Child1destination directory in the build tag D:\dev -Child2 When I run mvn install -P profile1. The C:\final gets overridden by D:\dev. How shall I go about it? regards, Amit - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- This message may contain confidential, proprietary, or legally privileged information. No confidentiality or privilege is waived by any transmission to an unintended recipient. If you are not an intended recipient, please notify the sender and delete this message immediately. Any views expressed in this message are those of the sender, not those of any entity within the KBC Financial Products group of companies (together referred to as KBC FP). This message does not create any obligation, contractual or otherwise, on the part of KBC FP. It is not an offer (or solicitation of an offer) of, or a recommendation to buy or sell, any financial product. Any prices or other values included in this message are indicative only, and do not necessarily represent current market prices, prices at which KBC FP would enter into a transaction, or prices at which similar transactions may be carried on KBC FP's own books. The information contained in this message is provided as is, without representations or warranties, express or implied, of any kind. Past performance is not indicative of future returns. - 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]
bootstrapping repos
I put all the repositories in a parent pom, but now of course all children poms look for their father in the central (and fail)... Am I doomed to bootstrap the repositories info in the settings, too? I remember a thread about something similar, but I haven't been able to dig it out from the list archives... Could anyone point me rigth? -- Dott. Lorenzo Bigagli PIN - Polo Universitario di Prato dell'Università di Firenze i: Piazza dell'Università I-59100 Prato (PO), Italia t: +39 0574 602535 f: +39 0574 602524 m: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
parent inheritence (site plugin)
Hi User Group, I have a project with some submodules and generating the site of the whole project through executing of the parents level. I want to display the parent in the left navigation bar. I found the only way is to do this is the element menu ref=parent inherit=bottom/ in the parent which is inheritanced through the childs. This works only for the goal site:stage but not for my normal goal site site:deploy. I don't want to stage the site. My goal (site site:deploy) works fine unless the parent link in the sidebar. I tried out with some versions (last one: 2.0-beta-7-20071130.000106-1) but there is no difference. Is there another way of creating a link in the childs site to the parent site? Why is site:stage the only goal which works for me? --- rgds Martin Ritz BTC AG - Unit Softwaredevelopment mailto:[EMAIL PROTECTED]
Re: including content into apt files
Ok thanks for all the help. So, currently, it's impossible to have multiple includes throughout an apt file? On Feb 4, 2008 10:27 AM, Lukas Theussl [EMAIL PROTECTED] wrote: Kallin Nagelberg wrote: I found out that configuring the dependency wasn't enough. I had to explicitly indicate to use the latest site plugin in a plugin tag. That being said, there are still some issues: 1. Nothing is actually included. There is just an empty div. when I use: %{snippet|id=myid|file=src/main/resources/help/basichelp.txt} There definitely is a file at src/main/resources/help/basichelp.txt with some content. And this file contains START SNIPPET: myid and END SNIPPET: myid as demarcators of the snippet you want to include? See http://maven.apache.org/doxia/macros/index.html 2. If I don't put that snippet on the first line of the file then it is treated as text and not interpreted. IMO that's the expected behavior (even though I don't see where it's documented right now), as otherwise it would not be possible to distinguish macros from anchors in apt files. HTH, -Lukas On Feb 4, 2008 9:49 AM, Lukas Theussl [EMAIL PROTECTED] wrote: Please attach a small test project to jira (http://jira.codehaus.org/browse/DOXIA), it works for me. Just to be sure: the macro line is not indented in your apt source, right? (that would explain why the line is interpreted as an anchor). -Lukas Kallin Nagelberg wrote: Ok, so I added a dependency to site plugin 2.0-beta-6 and now i can use the file parameter like you suggested. However, the generated html is not including the file like I expect. Instead it is doing the following: %a name=snippet|id=myid|file=src/main/resources/help/basichelp.txtsnippet|id=myid|file=src/main/resources/help/basichelp.txt/a given the apt: %{snippet|id=myid|file=src/main/resources/help/basichelp.txt} On Feb 4, 2008 8:55 AM, Lukas Theussl [EMAIL PROTECTED] wrote: Which doxia version are you using? The file parameter was added in doxia-1.0-alpha-9 (ie site-plugin 2.0-beta-6). -Lukas Kallin Nagelberg wrote: Thanks Lukas, You know I tried that, but I keep getting the error that 'url' is a required parameters :S On Feb 4, 2008 5:32 AM, Lukas Theussl [EMAIL PROTECTED] wrote: Use the file parameter instead of url, eg: %{snippet|id=myid|file=src/main/resources/help/basichelp.txt} HTH, -Lukas Kallin Nagelberg wrote: Hi Everyone, I've been tasked with creating some .apt documentation for a new maven built project. Ideally, I'd like to have a lot of the site documentation come from files in my src/main/resources directory. I've read about using the snippet macro, but I can't get it to access the artifacts resources. I've tried something like this but it doesn't work: %{snippet|id=myid|url=file:///./src/main/resources/help/basichelp.txt} Any ideas would be appreciated! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2] Listing of online repositories?
Hi, all. The systems security people are being a bit of a pain in the ass about Maven, as it calls out to the internet at large. So, I was wondering where in the installation I can find a full listing of the repository mirrors that Maven knows about and checks by default. Also, if there is a way to remove some of the default mirrors, to pare down the amount of security auditing paperwork that needs to be done, that would be extremely helpful. By the way, we have already set up our own repository within the intranet. We'd just like to be able to keep one or two external ones available, so that we can have Maven fetch indirect dependencies we may not know about when we make use of a new artifact. Thanks, ~Dan Allen -- This message may contain confidential, proprietary, or legally privileged information. No confidentiality or privilege is waived by any transmission to an unintended recipient. If you are not an intended recipient, please notify the sender and delete this message immediately. Any views expressed in this message are those of the sender, not those of any entity within the KBC Financial Products group of companies (together referred to as KBC FP). This message does not create any obligation, contractual or otherwise, on the part of KBC FP. It is not an offer (or solicitation of an offer) of, or a recommendation to buy or sell, any financial product. Any prices or other values included in this message are indicative only, and do not necessarily represent current market prices, prices at which KBC FP would enter into a transaction, or prices at which similar transactions may be carried on KBC FP's own books. The information contained in this message is provided as is, without representations or warranties, express or implied, of any kind. Past performance is not indicative of future returns.
Re: including content into apt files
You can have as many as you want if you distinguish them with a unique id, see an example here: http://svn.apache.org/viewvc/maven/doxia/site/src/site/apt/book/index.apt?revision=574085view=markup HTH, -Lukas Kallin Nagelberg wrote: Ok thanks for all the help. So, currently, it's impossible to have multiple includes throughout an apt file? On Feb 4, 2008 10:27 AM, Lukas Theussl [EMAIL PROTECTED] wrote: Kallin Nagelberg wrote: I found out that configuring the dependency wasn't enough. I had to explicitly indicate to use the latest site plugin in a plugin tag. That being said, there are still some issues: 1. Nothing is actually included. There is just an empty div. when I use: %{snippet|id=myid|file=src/main/resources/help/basichelp.txt} There definitely is a file at src/main/resources/help/basichelp.txt with some content. And this file contains START SNIPPET: myid and END SNIPPET: myid as demarcators of the snippet you want to include? See http://maven.apache.org/doxia/macros/index.html 2. If I don't put that snippet on the first line of the file then it is treated as text and not interpreted. IMO that's the expected behavior (even though I don't see where it's documented right now), as otherwise it would not be possible to distinguish macros from anchors in apt files. HTH, -Lukas On Feb 4, 2008 9:49 AM, Lukas Theussl [EMAIL PROTECTED] wrote: Please attach a small test project to jira (http://jira.codehaus.org/browse/DOXIA), it works for me. Just to be sure: the macro line is not indented in your apt source, right? (that would explain why the line is interpreted as an anchor). -Lukas Kallin Nagelberg wrote: Ok, so I added a dependency to site plugin 2.0-beta-6 and now i can use the file parameter like you suggested. However, the generated html is not including the file like I expect. Instead it is doing the following: %a name=snippet|id=myid|file=src/main/resources/help/basichelp.txtsnippet|id=myid|file=src/main/resources/help/basichelp.txt/a given the apt: %{snippet|id=myid|file=src/main/resources/help/basichelp.txt} On Feb 4, 2008 8:55 AM, Lukas Theussl [EMAIL PROTECTED] wrote: Which doxia version are you using? The file parameter was added in doxia-1.0-alpha-9 (ie site-plugin 2.0-beta-6). -Lukas Kallin Nagelberg wrote: Thanks Lukas, You know I tried that, but I keep getting the error that 'url' is a required parameters :S On Feb 4, 2008 5:32 AM, Lukas Theussl [EMAIL PROTECTED] wrote: Use the file parameter instead of url, eg: %{snippet|id=myid|file=src/main/resources/help/basichelp.txt} HTH, -Lukas Kallin Nagelberg wrote: Hi Everyone, I've been tasked with creating some .apt documentation for a new maven built project. Ideally, I'd like to have a lot of the site documentation come from files in my src/main/resources directory. I've read about using the snippet macro, but I can't get it to access the artifacts resources. I've tried something like this but it doesn't work: %{snippet|id=myid|url=file:///./src/main/resources/help/basichelp.txt} Any ideas would be appreciated! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
War Overlays and resources filtering
Hi, I have multiple web applications who share common resources. So I use the war overlays mechanism ( http://maven.apache.org/plugins/maven-war-plugin/overlays.html) All seems ok except for common properties files that I want to filter when creating the web applications. For instance : My common war war-common.war -- WEB-INF\classes\application.properties (which contains for instance title.main=Prototype ${project.name}) I would like to create the web application mywebapp1 mywebapp1.war -- WEB-INF\classes\application.properties (which contains the filtering property title.main=Prototype myweapp1) But I didn't find how to do it. Rémy
Re: .m2/settings.xml
Okay. actually that's the file I copied into .m2 folder thinking as of a temporary workaround.(now realise this is how it should be). Thanks. On Feb 4, 2008 12:22 PM, Allen, Daniel [EMAIL PROTECTED] wrote: There's also a sample settings.xml file in the directory that Maven installs to, under the /conf subdirectory. It contains pretty much everything you might need to put into your settings, in commented-out generic form. ~Dan Allen -Original Message- From: amit kumar [mailto:[EMAIL PROTECTED] Sent: Monday, February 04, 2008 1:00 PM To: Maven Users List Subject: .m2/settings.xml Hi, where is .m2/settings.xml? I saw this first in the maven plugin for eclipse. It keeps looking for %USER_HOME%/.m2/settings.xml. But I can not find this file inside the .m2 folder. Do I have to create it manually? Or it is supposed to be generated at the time of .m2 folder gets created. Amit - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- This message may contain confidential, proprietary, or legally privileged information. No confidentiality or privilege is waived by any transmission to an unintended recipient. If you are not an intended recipient, please notify the sender and delete this message immediately. Any views expressed in this message are those of the sender, not those of any entity within the KBC Financial Products group of companies (together referred to as KBC FP). This message does not create any obligation, contractual or otherwise, on the part of KBC FP. It is not an offer (or solicitation of an offer) of, or a recommendation to buy or sell, any financial product. Any prices or other values included in this message are indicative only, and do not necessarily represent current market prices, prices at which KBC FP would enter into a transaction, or prices at which similar transactions may be carried on KBC FP's own books. The information contained in this message is provided as is, without representations or warranties, express or implied, of any kind. Past performance is not indicative of future returns. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: build profiles
Heh. I should take my own advice--when I was reviewing the profiles intro I linked you to, it says: Profiles in pom.xml On the other hand, if your profiles can be reasonably specified inside the POM, you have many more options. The trade-off, of course, is that you can only modify that project and it's sub-modules. Since these profiles are specified inline, and therefore have a better chance of preserving portability, it's reasonable to say you can add more information to them without the risk of that information being unavailable to other users. Profiles specified in the POM can modify the following POM elements: * repositories * pluginRepositories * dependencies * plugins * properties (not actually available in the main POM, but used behind the scenes) * modules * reporting * dependencyManagement * distributionManagement ---* a subset of the build element, which consists of: o defaultGoal o resources o testResources o finalName Note that directory isn't listed among those. So, while I still think you should have more than just the one profile to avoid confusing defaults and precedences, one thing you'll have to do is put the directory name into a property and then in your pom.xml files, have build directory${whatever.you.called.the.directory.property}/directory . . . /build ~DVA -Original Message- From: amit kumar [mailto:[EMAIL PROTECTED] Sent: Monday, February 04, 2008 3:18 PM To: Maven Users List Subject: Re: build profiles Actually the current setup is the most basic I guess. I was just trying to separate development environment(destination directory for the sub modules) an integration environment( the profile I want to use to specify a location which would get inherited by every sub module so that all of them could be at one place.) For sub modules I am define like. build directoryC:\Final/directory /build For parent project(parent of all) I am defining a profile( i think I would have to, to achieve this separation) which would be used when build would be triggered at the time ot Continuous Integration. I am not defining anything else in this profile besides the destination directory. profiles profile idint/id build directoryC:\Diff/directory /build /profile /profiles something like mvn -P int Amit On Feb 4, 2008 1:47 PM, Allen, Daniel [EMAIL PROTECTED] wrote: So... you're saying that your profile (profile1, according to your example command-line call below) is defined in/for the parent POM? I think I'm not 100% understanding your setup. Could you give me a more detailed explanation of what profiles and properties you have defined, where those are, and which ones you do and don't want active? In fact, if you have some web space somewhere, maybe you could just upload your POMs and link to them? -Original Message- From: amit kumar [mailto:[EMAIL PROTECTED] Sent: Monday, February 04, 2008 2:33 PM To: Maven Users List Subject: Re: build profiles Currently i am not using any profile(tag) for sub modules, I am just mentioning directory tag inside build tag. Do i need to have separate profile to do that? regards, Amit On Feb 4, 2008 1:03 PM, Allen, Daniel [EMAIL PROTECTED] wrote: When I was doing profiles for the first time, I noticed that anything I put in profiles.xml was active by default, and that my dev profile overrode my live release profile. This may be your problem. Try adding: activation activeByDefaultfalse/activeByDefault /activation to the dev profile that is currently overriding the other. In fact, this may or may not be regarded by the community as a best practice, (I'm new at Maven too), but for a project where only one profile should ever be active at a time, I add those lines to all the profiles, and then just explicitly call the one I want at the command line with '-P profile_name'. Hope that helps. ~Dan Allen -Original Message- From: amit kumar [mailto:[EMAIL PROTECTED] Sent: Monday, February 04, 2008 1:58 PM To: Maven Users List Subject: build profiles Hi, I am trying to have different build profiles for my development environment and integration environment. All I want is to have different destination directories. My project has sub-modules and at the time of Integration when I run the maven build for the parent project, the destination directory that I want at the integration environment gets overridden by the sub module directory tag. I have tried something like this. ParentProject -pom.xmlhave a profile with destination directory say C:\final -Child1destination directory in the build tag D:\dev -Child2 When I run mvn install -P profile1. The C:\final gets overridden by D:\dev.
RE: build profiles
I *think* properties straight from a POM override those from a profile. (Anyone more expert than myself, please correct me if I'm wrong) I would recommend moving the submodules' directory settings into a profile also, so that you can explicitly state at the command line which you want active. If the child and parent need to go to different places during the same build, consider having a separate profiles.xml, whose profile elements would contain properties for each different directory (and then you could refer to them in the pom as ${properties}: directory${build.directory.for.this.pom}/directory). I'm not completely sure how you should be arranging them, since I don't know the details of your project. But I think consistency in having the directory set by a profile in all cases would fix your issue of unwanted precendence order. Anyway, check out http://maven.apache.org/guides/introduction/introduction-to-profiles.htm l if you haven't already. Aside from a pretty good explanation of how profiles work, one of the most useful things in there is the command 'mvn help:active-profiles', which will list what profiles are active, so you can see if any are being activated when they shouldn't. Hope that helps, ~Dan Allen -Original Message- From: amit kumar [mailto:[EMAIL PROTECTED] Sent: Monday, February 04, 2008 3:18 PM To: Maven Users List Subject: Re: build profiles Actually the current setup is the most basic I guess. I was just trying to separate development environment(destination directory for the sub modules) an integration environment( the profile I want to use to specify a location which would get inherited by every sub module so that all of them could be at one place.) For sub modules I am define like. build directoryC:\Final/directory /build For parent project(parent of all) I am defining a profile( i think I would have to, to achieve this separation) which would be used when build would be triggered at the time ot Continuous Integration. I am not defining anything else in this profile besides the destination directory. profiles profile idint/id build directoryC:\Diff/directory /build /profile /profiles something like mvn -P int Amit On Feb 4, 2008 1:47 PM, Allen, Daniel [EMAIL PROTECTED] wrote: So... you're saying that your profile (profile1, according to your example command-line call below) is defined in/for the parent POM? I think I'm not 100% understanding your setup. Could you give me a more detailed explanation of what profiles and properties you have defined, where those are, and which ones you do and don't want active? In fact, if you have some web space somewhere, maybe you could just upload your POMs and link to them? -Original Message- From: amit kumar [mailto:[EMAIL PROTECTED] Sent: Monday, February 04, 2008 2:33 PM To: Maven Users List Subject: Re: build profiles Currently i am not using any profile(tag) for sub modules, I am just mentioning directory tag inside build tag. Do i need to have separate profile to do that? regards, Amit On Feb 4, 2008 1:03 PM, Allen, Daniel [EMAIL PROTECTED] wrote: When I was doing profiles for the first time, I noticed that anything I put in profiles.xml was active by default, and that my dev profile overrode my live release profile. This may be your problem. Try adding: activation activeByDefaultfalse/activeByDefault /activation to the dev profile that is currently overriding the other. In fact, this may or may not be regarded by the community as a best practice, (I'm new at Maven too), but for a project where only one profile should ever be active at a time, I add those lines to all the profiles, and then just explicitly call the one I want at the command line with '-P profile_name'. Hope that helps. ~Dan Allen -Original Message- From: amit kumar [mailto:[EMAIL PROTECTED] Sent: Monday, February 04, 2008 1:58 PM To: Maven Users List Subject: build profiles Hi, I am trying to have different build profiles for my development environment and integration environment. All I want is to have different destination directories. My project has sub-modules and at the time of Integration when I run the maven build for the parent project, the destination directory that I want at the integration environment gets overridden by the sub module directory tag. I have tried something like this. ParentProject -pom.xmlhave a profile with destination directory say C:\final -Child1destination directory in the build tag D:\dev -Child2 When I run mvn install -P profile1. The C:\final gets overridden by D:\dev. How shall I go about it? regards, Amit - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional
build profiles
Hi, I am trying to have different build profiles for my development environment and integration environment. All I want is to have different destination directories. My project has sub-modules and at the time of Integration when I run the maven build for the parent project, the destination directory that I want at the integration environment gets overridden by the sub module directory tag. I have tried something like this. ParentProject -pom.xmlhave a profile with destination directory say C:\final -Child1destination directory in the build tag D:\dev -Child2 When I run mvn install -P profile1. The C:\final gets overridden by D:\dev. How shall I go about it? regards, Amit - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Checking out and building on remote machine using continuum
if you mean have continuum execute a build remotely on another machine the answer is no, continuum can't do that, though its been tossed around as a feature for the next major version of continuum supported natively that is...since your talking shellscripts then anything is possible if you want to invest the scripting time to make something like that happen :P jesse On Feb 4, 2008 12:31 PM, new-user [EMAIL PROTECTED] wrote: Hi, Thanks for your response. I am able to check out the code from the SVN repository. I am particularly interested in using a remote build machine. Is it possible to do a remote build using Continuum? If so, could you kindly let me know how I can do this? Thanks a lot for your time. -Buvana Wendy Smoak-3 wrote: On Jan 28, 2008 5:52 PM, Buvana Jayaraman [EMAIL PROTECTED] wrote: I am new to Continuum and trying to set up a shell project. Continuum is installed on the same machine as the SVN repositories. But I would like to use another machine for the build. Is there a way to check out and build the code on a remote machine using Continuum? When you add a Shell project, there is a field for the scm url. http://maven.apache.org/continuum/docs/1.1/user_guides/managing_project/addProject.html#Shell_Project -- Wendy -- View this message in context: http://www.nabble.com/Re%3A-Checking-out-and-building-on-remote-machine-using-continuum-tp15154734p15273448.html Sent from the Continuum - Users mailing list archive at Nabble.com. -- jesse mcconnell [EMAIL PROTECTED]
Basic Repository Proxying settings
I find the settings in the documentation about repository proxying to be unclear. Here is what I'm trying to do: I want to force all my maven repository lookups to go through archiva - but I want it to behave just like a default maven installation except that I want my own deployments to be reside on my own repository managed by archiva. What maven/archiva settings would be required to make this happen? Thank you, - Doug -- View this message in context: http://www.nabble.com/Basic-Repository-Proxying-settings-tp15275126p15275126.html Sent from the archiva-users mailing list archive at Nabble.com.
maven-war-plugin
I'm working with maven 2 and using the war plugin. In my project I have a module that depends on another module. So if module B depends on module A, when I run the package goal, nodule A's war structure is overlayed on module B's war. Is there anyway to stop this from occurring? There are unnecessary directories and files being added, bloating the war. -- View this message in context: http://www.nabble.com/maven-war-plugin-tp15278096s177p15278096.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: Deploying Plugin to Other sites
I've checked out and built the maven-stage-plugin but now received the following error and not sure what to make of it. Any help would be appreciated: [INFO] Unpacking zip file on the target machine. [INFO] [ERROR] FATAL ERROR [INFO] [INFO] org.apache.maven.wagon.providers.file.FileWagon [INFO] [INFO] Trace java.lang.ClassCastException: org.apache.maven.wagon.providers.file.FileWagon at org.apache.maven.plugins.stage.DefaultRepositoryCopier.copy(DefaultRepositoryCopier.java:252) at org.apache.maven.plugins.stage.CopyRepositoryMojo.execute(CopyRepositoryMojo.java:93) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:447) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:493) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:463) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:224) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:333) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:126) at org.apache.maven.cli.MavenCli.main(MavenCli.java:282) 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) [INFO] [INFO] Total time: 6 seconds [INFO] Finished at: Mon Feb 04 12:34:29 PST 2008 [INFO] Final Memory: 2M/6M [INFO] Brian E Fox wrote: You'll have to check it out from the sandbox and build it. It does work pretty well though, we use it for the maven releases. -Original Message- From: nadias [mailto:[EMAIL PROTECTED] Sent: Friday, February 01, 2008 9:12 PM To: users@maven.apache.org Subject: RE: Deploying Plugin to Other sites How can I get this plugin? It says it hasnt' been release yet. THanks. Brian E Fox wrote: If you aren't actually changing the g:a:v info, then you could use the stage plugin to move it. -Original Message- From: nadias [mailto:[EMAIL PROTECTED] Sent: Friday, February 01, 2008 7:38 PM To: users@maven.apache.org Subject: RE: Deploying Plugin to Other sites What about deploying to a central repository instead of having to recompile from source from a remote site? Brian E Fox wrote: Change the distributionManagment urls and redeploy -Original Message- From: nadias [mailto:[EMAIL PROTECTED] Sent: Friday, February 01, 2008 7:21 PM To: users@maven.apache.org Subject: Deploying Plugin to Other sites Hello, How can a plugin that was compiled and built at one site be deployed to other sites? Thanks. -- View this message in context: http://www.nabble.com/Deploying-Plugin-to-Other-sites-tp15237040s177p152 37040.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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Deploying-Plugin-to-Other-sites-tp15237040s177p152 37978.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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View
Re: [m2.0.7] Null pointer exception with war:exploded
Hi, Have a look at your configuration, directory element is missing : webResources resource directoryHERE PUT A DIRECTORY/directory filteringtrue/filtering includes include*.xml/include /includes /resource /webResources -- Olivier 2008/2/4, Allen, Daniel [EMAIL PROTECTED]: Hi, all. Thanks to everyone who helped me out with finding and configuring the war plugin. I believe that I have the settings correct to do what I need now. However, when I try and run mvn -P dev clean package, I get a null pointer exception. The War plugin source is available only by Subversion, which I do not have and am not allowed to install without prior approval (yay, bureaucracy), so I'm afraid I can't check out precisely what the problem is here. I don't know what would or wouldn't be helpful, so I just copied my whole POM down below, along with the profiles.xml file that defines the dev profile referenced above. Any help or advice would be great--I'm pretty sure that this plugin is what I need to solve my previous problems with Maven. ~Dan Allen [INFO] Building jar: H:\workspace\insurancederiv3\target\com.kbcfp.insurancederiv-0.2.jar [INFO] [war:exploded {execution: WarPackaging}] [INFO] Exploding webapp [INFO] Assembling webapp[com.kbcfp.insurancederiv] in [H:\workspace\insurancederiv3\target\com.kbcfp.insurancederiv-0.2] [INFO] Processing war project [INFO] [ERROR] FATAL ERROR [INFO] [INFO] null [INFO] [INFO] Trace java.lang.NullPointerException at java.io.File.init(File.java:222) at org.apache.maven.plugin.war.packaging.WarProjectPackagingTask.handleWebR esources(WarProjectPackagingTask.java:88) at org.apache.maven.plugin.war.packaging.WarProjectPackagingTask.performPac kaging(WarProjectPackagingTask.java:64) at org.apache.maven.plugin.war.AbstractWarMojo.buildWebapp(AbstractWarMojo. java:364) at org.apache.maven.plugin.war.AbstractWarMojo.buildExplodedWebapp(Abstract WarMojo.java:317) at org.apache.maven.plugin.war.WarExplodedMojo.execute(WarExplodedMojo.java :40) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginMa nager.java:447) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Default LifecycleExecutor.java:539) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifec ycle(DefaultLifecycleExecutor.java:480) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultL ifecycleExecutor.java:459) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandle Failures(DefaultLifecycleExecutor.java:311) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments( DefaultLifecycleExecutor.java:278) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifec ycleExecutor.java:143) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:333) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:126) at org.apache.maven.cli.MavenCli.main(MavenCli.java:282) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav a:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor Impl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) 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) __ My POM: __ ?xml version=1.0 encoding=UTF-8? project modelVersion4.0.0/modelVersion artifactIdcom.kbcfp.insurancederiv/artifactId nameinsurancederiv/name version0.2/version reports reportjutils-lint4j-plugin/report reportmaven-statcvs-plugin/report reportmaven-changelog-plugin/report reportmaven-changes-plugin/report reportmaven-checkstyle-plugin/report reportmaven-developer-activity-plugin/report reportmaven-file-activity-plugin/report reportmaven-javadoc-plugin/report reportmaven-jdepend-plugin/report reportmaven-junit-report-plugin/report reportmaven-license-plugin/report reportmaven-pmd-plugin/report reportmaven-tasklist-plugin/report reportmaven-faq-plugin/report
conditional dependencies
Hi there, I am using conditional dependencies in the form that I use variables in the dependencies and profiles to set these variables. Now I currently wonder what to do if a dependency is only required under specific situations. E.g. stax or jsr250 is included in java6 while you need dependencies on external artifacts for java5. Has someone experience with that? Is it best to use a variable for the scope and set it to provided for java6? Or is it possible to add a dependency into the profile section? Thanks Jörg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: question about maven-rar-plugin
Hi, Have try defining this in your pom packagingrar/packaging ? rar packaging is define in maven core. -- Olivier 2008/2/4, Stephen Connolly [EMAIL PROTECTED]: Why does this plugin not define a packaging of type rar? All the other JavaEE plugins: war, ear, ejb, etc define a packaging. What was the rational behind having this behave differently? Thanks, -Stephen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2] Differences development / Deployment
Hi there, i have got a little problem (or misunderstanding) with Maven 2: I have configured an entry for my issueManagement with an URL in the POM. Ok...so far so good... But i would like to have different URL's if i'm working on my development machine (local) and if i deploy/release a state to the internet to make it available to other people... e.g. the following entry is needed if i release/deploy a state of my work: issueManagement systemTracking/system urlhttp://supose.soebes.de//url /issueManagement and the following entry is needed if i'm working on my developement machine (LAN) issueManagement systemTracking/system urlhttp://svn.traveler/supose//url /issueManagement Does there exist a good way to handle such kind of situation ? Thanks in advance for your help Kind regards Karl Heinz Marbaise -- SoftwareEntwicklung Beratung SchulungTel.: +49 (0) 2405 / 415 893 Dipl.Ing.(FH) Karl Heinz MarbaiseICQ#: 135949029 Hauptstrasse 177 USt.IdNr: DE191347579 52146 Würselen http://www.soebes.de - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [m2.0.7] Null pointer exception with war:exploded
Thanks, it works correctly now! I was afraid I'd found an actual internal error or something--glad it was just something small on my part. ~Dan Allen -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Olivier Lamy Sent: Monday, February 04, 2008 4:00 PM To: Maven Users List Subject: Re: [m2.0.7] Null pointer exception with war:exploded Hi, Have a look at your configuration, directory element is missing : webResources resource directoryHERE PUT A DIRECTORY/directory filteringtrue/filtering includes include*.xml/include /includes /resource /webResources -- Olivier 2008/2/4, Allen, Daniel [EMAIL PROTECTED]: Hi, all. Thanks to everyone who helped me out with finding and configuring the war plugin. I believe that I have the settings correct to do what I need now. However, when I try and run mvn -P dev clean package, I get a null pointer exception. The War plugin source is available only by Subversion, which I do not have and am not allowed to install without prior approval (yay, bureaucracy), so I'm afraid I can't check out precisely what the problem is here. I don't know what would or wouldn't be helpful, so I just copied my whole POM down below, along with the profiles.xml file that defines the dev profile referenced above. Any help or advice would be great--I'm pretty sure that this plugin is what I need to solve my previous problems with Maven. ~Dan Allen [INFO] Building jar: H:\workspace\insurancederiv3\target\com.kbcfp.insurancederiv-0.2.jar [INFO] [war:exploded {execution: WarPackaging}] [INFO] Exploding webapp [INFO] Assembling webapp[com.kbcfp.insurancederiv] in [H:\workspace\insurancederiv3\target\com.kbcfp.insurancederiv-0.2] [INFO] Processing war project [INFO] [ERROR] FATAL ERROR [INFO] [INFO] null [INFO] [INFO] Trace java.lang.NullPointerException at java.io.File.init(File.java:222) at org.apache.maven.plugin.war.packaging.WarProjectPackagingTask.handleWebR esources(WarProjectPackagingTask.java:88) at org.apache.maven.plugin.war.packaging.WarProjectPackagingTask.performPac kaging(WarProjectPackagingTask.java:64) at org.apache.maven.plugin.war.AbstractWarMojo.buildWebapp(AbstractWarMojo. java:364) at org.apache.maven.plugin.war.AbstractWarMojo.buildExplodedWebapp(Abstract WarMojo.java:317) at org.apache.maven.plugin.war.WarExplodedMojo.execute(WarExplodedMojo.java :40) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginMa nager.java:447) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Default LifecycleExecutor.java:539) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifec ycle(DefaultLifecycleExecutor.java:480) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultL ifecycleExecutor.java:459) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandle Failures(DefaultLifecycleExecutor.java:311) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments( DefaultLifecycleExecutor.java:278) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifec ycleExecutor.java:143) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:333) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:126) at org.apache.maven.cli.MavenCli.main(MavenCli.java:282) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav a:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor Impl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) 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) __ My POM: __ ?xml version=1.0 encoding=UTF-8? project modelVersion4.0.0/modelVersion artifactIdcom.kbcfp.insurancederiv/artifactId nameinsurancederiv/name version0.2/version reports reportjutils-lint4j-plugin/report reportmaven-statcvs-plugin/report reportmaven-changelog-plugin/report reportmaven-changes-plugin/report reportmaven-checkstyle-plugin/report
[m2.0.7] Null pointer exception with war:exploded
Hi, all. Thanks to everyone who helped me out with finding and configuring the war plugin. I believe that I have the settings correct to do what I need now. However, when I try and run mvn -P dev clean package, I get a null pointer exception. The War plugin source is available only by Subversion, which I do not have and am not allowed to install without prior approval (yay, bureaucracy), so I'm afraid I can't check out precisely what the problem is here. I don't know what would or wouldn't be helpful, so I just copied my whole POM down below, along with the profiles.xml file that defines the dev profile referenced above. Any help or advice would be great--I'm pretty sure that this plugin is what I need to solve my previous problems with Maven. ~Dan Allen [INFO] Building jar: H:\workspace\insurancederiv3\target\com.kbcfp.insurancederiv-0.2.jar [INFO] [war:exploded {execution: WarPackaging}] [INFO] Exploding webapp [INFO] Assembling webapp[com.kbcfp.insurancederiv] in [H:\workspace\insurancederiv3\target\com.kbcfp.insurancederiv-0.2] [INFO] Processing war project [INFO] [ERROR] FATAL ERROR [INFO] [INFO] null [INFO] [INFO] Trace java.lang.NullPointerException at java.io.File.init(File.java:222) at org.apache.maven.plugin.war.packaging.WarProjectPackagingTask.handleWebR esources(WarProjectPackagingTask.java:88) at org.apache.maven.plugin.war.packaging.WarProjectPackagingTask.performPac kaging(WarProjectPackagingTask.java:64) at org.apache.maven.plugin.war.AbstractWarMojo.buildWebapp(AbstractWarMojo. java:364) at org.apache.maven.plugin.war.AbstractWarMojo.buildExplodedWebapp(Abstract WarMojo.java:317) at org.apache.maven.plugin.war.WarExplodedMojo.execute(WarExplodedMojo.java :40) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginMa nager.java:447) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Default LifecycleExecutor.java:539) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifec ycle(DefaultLifecycleExecutor.java:480) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultL ifecycleExecutor.java:459) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandle Failures(DefaultLifecycleExecutor.java:311) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments( DefaultLifecycleExecutor.java:278) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifec ycleExecutor.java:143) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:333) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:126) at org.apache.maven.cli.MavenCli.main(MavenCli.java:282) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav a:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor Impl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) 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) __ My POM: __ ?xml version=1.0 encoding=UTF-8? project modelVersion4.0.0/modelVersion artifactIdcom.kbcfp.insurancederiv/artifactId nameinsurancederiv/name version0.2/version reports reportjutils-lint4j-plugin/report reportmaven-statcvs-plugin/report reportmaven-changelog-plugin/report reportmaven-changes-plugin/report reportmaven-checkstyle-plugin/report reportmaven-developer-activity-plugin/report reportmaven-file-activity-plugin/report reportmaven-javadoc-plugin/report reportmaven-jdepend-plugin/report reportmaven-junit-report-plugin/report reportmaven-license-plugin/report reportmaven-pmd-plugin/report reportmaven-tasklist-plugin/report reportmaven-faq-plugin/report reportmaven-simian-plugin/report /reports !-- the version control repository and http url for online access the connection element has the form: scm:system:system specific connection string -- scm connectionscm:cvs:pserver:[EMAIL PROTECTED]:/proj/webgroup/repository:i nsurancederiv/connection urlhttp://webgroup.london.kbcfp.com:8000/cgi-bin/cvsweb.cgi/insuranced eriv//url /scm !-- any
Re: War Overlays and resources filtering
Overlay configuration has a filtered element. overlay groupIdzipGroupId/groupId artifactIdzipArtifactId/artifactId targetPathscripts/targetPath filteredtrue/filtered /overlay If it doesn't work please load an issue. -- Olivier 2008/2/4, Rémy Sanlaville [EMAIL PROTECTED]: Hi, I have multiple web applications who share common resources. So I use the war overlays mechanism ( http://maven.apache.org/plugins/maven-war-plugin/overlays.html) All seems ok except for common properties files that I want to filter when creating the web applications. For instance : My common war war-common.war -- WEB-INF\classes\application.properties (which contains for instance title.main=Prototype ${project.name}) I would like to create the web application mywebapp1 mywebapp1.war -- WEB-INF\classes\application.properties (which contains the filtering property title.main=Prototype myweapp1) But I didn't find how to do it. Rémy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: including content into apt files
Oh, I thought when you said: 2. If I don't put that snippet on the first line of the file then it is treated as text and not interpreted. IMO that's the expected behavior (even though I don't see where it's documented right now), as otherwise it would not be possible to distinguish macros from anchors in apt files. you meant that the snippet would only work on the first line. On Feb 4, 2008 10:52 AM, Lukas Theussl [EMAIL PROTECTED] wrote: You can have as many as you want if you distinguish them with a unique id, see an example here: http://svn.apache.org/viewvc/maven/doxia/site/src/site/apt/book/index.apt?revision=574085view=markup HTH, -Lukas Kallin Nagelberg wrote: Ok thanks for all the help. So, currently, it's impossible to have multiple includes throughout an apt file? On Feb 4, 2008 10:27 AM, Lukas Theussl [EMAIL PROTECTED] wrote: Kallin Nagelberg wrote: I found out that configuring the dependency wasn't enough. I had to explicitly indicate to use the latest site plugin in a plugin tag. That being said, there are still some issues: 1. Nothing is actually included. There is just an empty div. when I use: %{snippet|id=myid|file=src/main/resources/help/basichelp.txt} There definitely is a file at src/main/resources/help/basichelp.txt with some content. And this file contains START SNIPPET: myid and END SNIPPET: myid as demarcators of the snippet you want to include? See http://maven.apache.org/doxia/macros/index.html 2. If I don't put that snippet on the first line of the file then it is treated as text and not interpreted. IMO that's the expected behavior (even though I don't see where it's documented right now), as otherwise it would not be possible to distinguish macros from anchors in apt files. HTH, -Lukas On Feb 4, 2008 9:49 AM, Lukas Theussl [EMAIL PROTECTED] wrote: Please attach a small test project to jira (http://jira.codehaus.org/browse/DOXIA), it works for me. Just to be sure: the macro line is not indented in your apt source, right? (that would explain why the line is interpreted as an anchor). -Lukas Kallin Nagelberg wrote: Ok, so I added a dependency to site plugin 2.0-beta-6 and now i can use the file parameter like you suggested. However, the generated html is not including the file like I expect. Instead it is doing the following: %a name=snippet|id=myid|file=src/main/resources/help/basichelp.txtsnippet|id=myid|file=src/main/resources/help/basichelp.txt/a given the apt: %{snippet|id=myid|file=src/main/resources/help/basichelp.txt} On Feb 4, 2008 8:55 AM, Lukas Theussl [EMAIL PROTECTED] wrote: Which doxia version are you using? The file parameter was added in doxia-1.0-alpha-9 (ie site-plugin 2.0-beta-6). -Lukas Kallin Nagelberg wrote: Thanks Lukas, You know I tried that, but I keep getting the error that 'url' is a required parameters :S On Feb 4, 2008 5:32 AM, Lukas Theussl [EMAIL PROTECTED] wrote: Use the file parameter instead of url, eg: %{snippet|id=myid|file=src/main/resources/help/basichelp.txt} HTH, -Lukas Kallin Nagelberg wrote: Hi Everyone, I've been tasked with creating some .apt documentation for a new maven built project. Ideally, I'd like to have a lot of the site documentation come from files in my src/main/resources directory. I've read about using the snippet macro, but I can't get it to access the artifacts resources. I've tried something like this but it doesn't work: %{snippet|id=myid|url=file:///./src/main/resources/help/basichelp.txt} Any ideas would be appreciated! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [c 1.1] issues with adding build definition....
1. Why does this ony start happening once I added then deleted another Build Definition? 2. How do turn notification on again? Here is my declaration: ciManagement systemcontinuum/system urlhttp://rc-sun.ut.dentegra.lab:8080/continuum/url notifiers notifier typemail/type configuration address[EMAIL PROTECTED]/address /configuration sendOnErrortrue/sendOnError sendOnFailuretrue/sendOnFailure sendOnSuccesstrue/sendOnSuccess sendOnWarningtrue/sendOnWarning /notifier /notifiers /ciManagement On Feb 1, 2008 6:08 PM, Wendy Smoak [EMAIL PROTECTED] wrote: On Feb 1, 2008 5:06 PM, Mick Knutson [EMAIL PROTECTED] wrote: What does this mean: *2806710 [pool-1-thread-1] INFO org.codehaus.plexus.notification.notifier.Notifier:mail - Same state, not sending message. That the state (success, failure, or error) hasn't changed, so Continuum does not feel the need to send an email to tell you nothing happened. (If you want it to always send mail no matter what, I think you can change that in one of the xml files.) -- Wendy -- Thanks, Mick Knutson http://www.baselogic.com http://www.blincmagazine.com http://www.djmick.com http://www.myspace.com/mickknutson http://www.myspace.com/BLiNCMagazine http://tahoe.baselogic.com ---
Re: Error Using Maven-Stage-Plugin
What command line parameters did you use? We need more context to be able to help you... nadias wrote: I'm getting the following error when trying to use the maven-stage-plugin (mvn stage:copy) and not sure what to make of it. Any help would be appreciated: . . . [INFO] Unpacking zip file on the target machine. [INFO] [ERROR] FATAL ERROR [INFO] [INFO] org.apache.maven.wagon.providers.file.FileWagon [INFO] [INFO] Trace java.lang.ClassCastException: org.apache.maven.wagon.providers.file.FileWagon at org.apache.maven.plugins.stage.DefaultRepositoryCopier.copy(DefaultRepositoryCopier.java:252) at org.apache.maven.plugins.stage.CopyRepositoryMojo.execute(CopyRepositoryMojo.java:93) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:447) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:493) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:463) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:224) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:333) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:126) at org.apache.maven.cli.MavenCli.main(MavenCli.java:282) 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) [INFO] [INFO] Total time: 6 seconds [INFO] Finished at: Mon Feb 04 12:34:29 PST 2008 [INFO] Final Memory: 2M/6M [INFO] -- Dennis Lundberg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: maven-war-plugin
I see 2 ways to avoid this problem. 1.) I assume that war A includes a kind of 'common logic', right? If so, this may also be extracted into a separate module, thus you have no dependency to a war anymore... 2.) You can use the exclude mechanism of the maven-war-plugin. LieGrü, strub --- tadamski [EMAIL PROTECTED] schrieb: I'm working with maven 2 and using the war plugin. In my project I have a module that depends on another module. So if module B depends on module A, when I run the package goal, nodule A's war structure is overlayed on module B's war. Is there anyway to stop this from occurring? There are unnecessary directories and files being added, bloating the war. Heute schon einen Blick in die Zukunft von E-Mails wagen? www.yahoo.de/mail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Error Using Maven-Stage-Plugin
I'm getting the following error when trying to use the maven-stage-plugin (mvn stage:copy) and not sure what to make of it. Any help would be appreciated: . . . [INFO] Unpacking zip file on the target machine. [INFO] [ERROR] FATAL ERROR [INFO] [INFO] org.apache.maven.wagon.providers.file.FileWagon [INFO] [INFO] Trace java.lang.ClassCastException: org.apache.maven.wagon.providers.file.FileWagon at org.apache.maven.plugins.stage.DefaultRepositoryCopier.copy(DefaultRepositoryCopier.java:252) at org.apache.maven.plugins.stage.CopyRepositoryMojo.execute(CopyRepositoryMojo.java:93) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:447) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:493) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:463) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:224) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:333) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:126) at org.apache.maven.cli.MavenCli.main(MavenCli.java:282) 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) [INFO] [INFO] Total time: 6 seconds [INFO] Finished at: Mon Feb 04 12:34:29 PST 2008 [INFO] Final Memory: 2M/6M [INFO] -- View this message in context: http://www.nabble.com/Error-Using-Maven-Stage-Plugin-tp15278854s177p15278854.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]
question about maven-rar-plugin
Why does this plugin not define a packaging of type rar? All the other JavaEE plugins: war, ear, ejb, etc define a packaging. What was the rational behind having this behave differently? Thanks, -Stephen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to debug transitive dependencies
I am getting some strange unrelated jar files inside my war package. Could somebody tell me how can I debug the transitive resolution process and eliminate unrelated jar files? Thanks Arash -- You can not depend on your eyes when your imagination is out of focus.
Re: Error Using Maven-Stage-Plugin
It stops at the Upload the zip file to the target repository since I see the zipped file but the following steps are not completed: # # Unpack the zip file on the target machine # Delete the zip file from the target repository # Run the rename script on the target machine # Delete the rename script from the target repository nadias wrote: I used: mvn stage:copy -Dversion=2.0 -Dsource=file:/path/to/local/repo/plugin -Dtarget=file:/path/to/remote/repo/plugin2 Dennis Lundberg-2 wrote: What command line parameters did you use? We need more context to be able to help you... nadias wrote: I'm getting the following error when trying to use the maven-stage-plugin (mvn stage:copy) and not sure what to make of it. Any help would be appreciated: . . . [INFO] Unpacking zip file on the target machine. [INFO] [ERROR] FATAL ERROR [INFO] [INFO] org.apache.maven.wagon.providers.file.FileWagon [INFO] [INFO] Trace java.lang.ClassCastException: org.apache.maven.wagon.providers.file.FileWagon at org.apache.maven.plugins.stage.DefaultRepositoryCopier.copy(DefaultRepositoryCopier.java:252) at org.apache.maven.plugins.stage.CopyRepositoryMojo.execute(CopyRepositoryMojo.java:93) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:447) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:493) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:463) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:224) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:333) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:126) at org.apache.maven.cli.MavenCli.main(MavenCli.java:282) 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) [INFO] [INFO] Total time: 6 seconds [INFO] Finished at: Mon Feb 04 12:34:29 PST 2008 [INFO] Final Memory: 2M/6M [INFO] -- Dennis Lundberg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Error-Using-Maven-Stage-Plugin-tp15278854s177p15280410.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: build profiles
Actually the current setup is the most basic I guess. I was just trying to separate development environment(destination directory for the sub modules) an integration environment( the profile I want to use to specify a location which would get inherited by every sub module so that all of them could be at one place.) For sub modules I am define like. build directoryC:\Final/directory /build For parent project(parent of all) I am defining a profile( i think I would have to, to achieve this separation) which would be used when build would be triggered at the time ot Continuous Integration. I am not defining anything else in this profile besides the destination directory. profiles profile idint/id build directoryC:\Diff/directory /build /profile /profiles something like mvn -P int Amit On Feb 4, 2008 1:47 PM, Allen, Daniel [EMAIL PROTECTED] wrote: So... you're saying that your profile (profile1, according to your example command-line call below) is defined in/for the parent POM? I think I'm not 100% understanding your setup. Could you give me a more detailed explanation of what profiles and properties you have defined, where those are, and which ones you do and don't want active? In fact, if you have some web space somewhere, maybe you could just upload your POMs and link to them? -Original Message- From: amit kumar [mailto:[EMAIL PROTECTED] Sent: Monday, February 04, 2008 2:33 PM To: Maven Users List Subject: Re: build profiles Currently i am not using any profile(tag) for sub modules, I am just mentioning directory tag inside build tag. Do i need to have separate profile to do that? regards, Amit On Feb 4, 2008 1:03 PM, Allen, Daniel [EMAIL PROTECTED] wrote: When I was doing profiles for the first time, I noticed that anything I put in profiles.xml was active by default, and that my dev profile overrode my live release profile. This may be your problem. Try adding: activation activeByDefaultfalse/activeByDefault /activation to the dev profile that is currently overriding the other. In fact, this may or may not be regarded by the community as a best practice, (I'm new at Maven too), but for a project where only one profile should ever be active at a time, I add those lines to all the profiles, and then just explicitly call the one I want at the command line with '-P profile_name'. Hope that helps. ~Dan Allen -Original Message- From: amit kumar [mailto:[EMAIL PROTECTED] Sent: Monday, February 04, 2008 1:58 PM To: Maven Users List Subject: build profiles Hi, I am trying to have different build profiles for my development environment and integration environment. All I want is to have different destination directories. My project has sub-modules and at the time of Integration when I run the maven build for the parent project, the destination directory that I want at the integration environment gets overridden by the sub module directory tag. I have tried something like this. ParentProject -pom.xmlhave a profile with destination directory say C:\final -Child1destination directory in the build tag D:\dev -Child2 When I run mvn install -P profile1. The C:\final gets overridden by D:\dev. How shall I go about it? regards, Amit - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- This message may contain confidential, proprietary, or legally privileged information. No confidentiality or privilege is waived by any transmission to an unintended recipient. If you are not an intended recipient, please notify the sender and delete this message immediately. Any views expressed in this message are those of the sender, not those of any entity within the KBC Financial Products group of companies (together referred to as KBC FP). This message does not create any obligation, contractual or otherwise, on the part of KBC FP. It is not an offer (or solicitation of an offer) of, or a recommendation to buy or sell, any financial product. Any prices or other values included in this message are indicative only, and do not necessarily represent current market prices, prices at which KBC FP would enter into a transaction, or prices at which similar transactions may be carried on KBC FP's own books. The information contained in this message is provided as is, without representations or warranties, express or implied, of any kind. Past performance is not indicative of future returns. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Multiple environment build; old story for new comer
Thanks for your reply. The point is having a handful of properties, managing them inside an xml file making it really long and difficult. Can't we simply load a property file for each profile and define the properties there? hi arash, as far as i am aware (i've only been using maven for about 6 months so i'm no real authority on it) but the easiest way to accomplish is to have the properties defined in the environment profiles, eg in your main pom: profile idbuild/id activation property nameenv/name valuebuild/value /property /activation properties ... /properties /profile Unfortunately i don't think it's possible to activate other profiles within this profile, so you couldn't have a generic environment profile which was activated by all other specific env profiles. What you can do however is 'override' this parent profile in module poms. This allows for a module to add env config into the same profile which can all be activated using the same command line parameter. I found this good in keeping module config in the module pom. Reading http://maven.apache.org/guides/introduction/introduction-to-profiles.html section Profile Pitfalls, Maven promotes that env config should reside in the pom so that the project can always be built without relying on external property configuration. I've found this to be fine for everything but the env passwords which should be the only thing required to be configured outside the project in the build's settings.xml file, eg: profile idbuild/id activation property nameenv/name valuebuild/value /property /activation properties database.passwordAbCdEfG/database.password /properties /profile This has worked for me with local, dev, build, staging and prod environments. At first i found defining properties for each environment seperatly a bit of overhead but it does pay off with the simplicity and inherant flexibility of being able to change any property for a specific environment independently. The other great benefit is being able to change the build in this profile, so for example the build profile can automatically create the user and database during the build - something you might not want happening for prod. Cam Arash Bizhan zadeh wrote: Hi all, I know it is a well known issue but I am really stuck! I am in the process of migrating some Java applications build system to Maven 2. developers need to build the applications for different environment like local/staging/QA/prod. in the old build system we have one property file including all the environment related properties and we used to pass it to build and get the job done. These parameters includes actual values for filtered variables as well as paths and plug in properties (ie. webapps.root for cargo plugin) I created different profiles for different environment and everything was going on well until I noticed that I can not load the property files inside maven. Each profile needs to load one of the environment specific property files; so that the rest of the maven could use it. could somebody shed a light on this problem and guide me to load my property file in maven, or tell me about any other solution. regards, Arash -- You can not depend on your eyes when your imagination is out of focus.
Re: Error Using Maven-Stage-Plugin
I used: mvn stage:copy -Dversion=1.0-SNAPSHOT -Dsource=file:/path/to/local/repo/plugin -Dtarget=file:/path/to/remote/repo/plugin2 Dennis Lundberg-2 wrote: What command line parameters did you use? We need more context to be able to help you... nadias wrote: I'm getting the following error when trying to use the maven-stage-plugin (mvn stage:copy) and not sure what to make of it. Any help would be appreciated: . . . [INFO] Unpacking zip file on the target machine. [INFO] [ERROR] FATAL ERROR [INFO] [INFO] org.apache.maven.wagon.providers.file.FileWagon [INFO] [INFO] Trace java.lang.ClassCastException: org.apache.maven.wagon.providers.file.FileWagon at org.apache.maven.plugins.stage.DefaultRepositoryCopier.copy(DefaultRepositoryCopier.java:252) at org.apache.maven.plugins.stage.CopyRepositoryMojo.execute(CopyRepositoryMojo.java:93) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:447) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:493) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:463) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:224) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:333) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:126) at org.apache.maven.cli.MavenCli.main(MavenCli.java:282) 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) [INFO] [INFO] Total time: 6 seconds [INFO] Finished at: Mon Feb 04 12:34:29 PST 2008 [INFO] Final Memory: 2M/6M [INFO] -- Dennis Lundberg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Error-Using-Maven-Stage-Plugin-tp15278854s177p15280275.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: question about maven-rar-plugin
And all these other packagings are defined in maven-core too. http://svn.apache.org/viewvc/maven/components/branches/maven-2.0.x/maven-core/src/main/resources/META-INF/plexus/components.xml?revision=522316view=markup On Feb 4, 2008 10:13 PM, Olivier Lamy [EMAIL PROTECTED] wrote: Hi, Have try defining this in your pom packagingrar/packaging ? rar packaging is define in maven core. -- Olivier 2008/2/4, Stephen Connolly [EMAIL PROTECTED]: Why does this plugin not define a packaging of type rar? All the other JavaEE plugins: war, ear, ejb, etc define a packaging. What was the rational behind having this behave differently? Thanks, -Stephen - 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: problem with custom check in checkstyle plugin
On Sep 11, 2007 11:38 PM, Michael Fortin [EMAIL PROTECTED] wrote: Hello. I've been trying to get a custom check installed and can't get it run. I've followed the directions from the maven site almost to the letter but it keeps failing on the packagenames.xml. If I take my custom check out of the checkstyle.xml it still fails but on another check. It seems to find the file packagenames.xml but not load it. CLI output and files are below. Any help would be greatly appreciated. Did you solve this? I was having similar issues. maven file: ... build extensions extension groupIdcom.monetizeit/groupId artifactIdcheckstyle/artifactId version1.0-SNAPSHOT/version /extension /extensions Delete the extesions since it is not needed (I couldn't even get it to work), use a dependency in the build/plugins sections: e.g checkstyle:checkstyle-patch-1882332:4.3 contains my custom check. build plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-checkstyle-plugin/artifactId dependencies dependency groupIdcheckstyle/groupId artifactIdcheckstyle-patch-1882332/artifactId version4.3/version /dependency /dependencies ... reporting plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-checkstyle-plugin/artifactId configuration configLocationsrc/main/config/checkstyle.xml/configLocation packageNamesLocationsrc/main/config/checkstyle-packages.xml/packageNamesLocation /configuration /plugin /plugins /reporting Your reporting section is fine, but you may want to consider referencing a packagenames file which you bundle in with your custom check. Then you can remove the need to fully qualify your check in the checkstyle.xml e.g module name=com.monetizeit.checkstyle.BlanklineCheck / can become module name=BlanklineCheck / Once you put in package name=com.monetizeit.checkstyle/ into your packagenames.xml file. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: maven-plugin-management-plugin versions?
On 05/02/2008, at 6:08 AM, Dennis Lundberg wrote: Where did you find this plugin? It is used for integration testing the maven-clover-plugin. The source lives here: http://svn.apache.org/repos/asf/maven/sandbox/trunk/plugins/maven-plugin-management-plugin/ It looks out of date -- for instance the scm attributes look incorrect. Tom -- ATLASSIAN - http://www.atlassian.com Our products help over 8,500 customers in more than 95 countries to collaborate - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Error Using Maven-Stage-Plugin
On Feb 4, 2008 4:29 PM, nadias [EMAIL PROTECTED] wrote: I used: mvn stage:copy -Dversion=1.0-SNAPSHOT -Dsource=file:/path/to/local/repo/plugin -Dtarget=file:/path/to/remote/repo/plugin2 AFAIK it only supports copying from http:// to scp:// urls (but maybe something has changed.) http://maven.apache.org/plugins/maven-stage-plugin/usage.html Also keep in mind that this plugin has not yet been released; use only if you like the bleeding edge. :) -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Error Using Maven-Stage-Plugin
I'm not sure that the file: protocol is supported. The plugin uses Maven Wagon internally, and it makes scp calls to the target wagon. nadias wrote: I used: mvn stage:copy -Dversion=1.0-SNAPSHOT -Dsource=file:/path/to/local/repo/plugin -Dtarget=file:/path/to/remote/repo/plugin2 Dennis Lundberg-2 wrote: What command line parameters did you use? We need more context to be able to help you... nadias wrote: I'm getting the following error when trying to use the maven-stage-plugin (mvn stage:copy) and not sure what to make of it. Any help would be appreciated: . . . [INFO] Unpacking zip file on the target machine. [INFO] [ERROR] FATAL ERROR [INFO] [INFO] org.apache.maven.wagon.providers.file.FileWagon [INFO] [INFO] Trace java.lang.ClassCastException: org.apache.maven.wagon.providers.file.FileWagon at org.apache.maven.plugins.stage.DefaultRepositoryCopier.copy(DefaultRepositoryCopier.java:252) at org.apache.maven.plugins.stage.CopyRepositoryMojo.execute(CopyRepositoryMojo.java:93) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:447) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:493) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:463) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:224) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:333) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:126) at org.apache.maven.cli.MavenCli.main(MavenCli.java:282) 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) [INFO] [INFO] Total time: 6 seconds [INFO] Finished at: Mon Feb 04 12:34:29 PST 2008 [INFO] Final Memory: 2M/6M [INFO] -- Dennis Lundberg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Dennis Lundberg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: eclipse:eclipse PDE version naming for incubator projects - changing a hyphen into a period, causing an error
Carlos Sanchez wrote: you should look into the Apache Felix bundle plugin. It has a bundle:manifest goal that will generate the OSGi manifest, that's why the eclipse pluign class is deprecated Check Adding OSGi metadata to existing projects without changing the packaging type http://felix.apache.org/site/maven-bundle-plugin-bnd.html Thanks. I've setup to use the maven-bundle-plugin It seems to be working. I've noticed that it, too, converts the maven version to the same invalid Eclipse version. Can you suggest where the code is that would need patching? -Marshall On Feb 4, 2008 9:27 AM, Marshall Schor [EMAIL PROTECTED] wrote: This seems a bug. I opened a Jira issue http://jira.codehaus.org/browse/MECLIPSE-385, attached a patch and an updated test case. One issue may be the way I fixed it: I fixed a method getNormalizedVersion in EclipseOSGiManifestWriter, but that class is marked deprecated - so it may need to be fixed elsewhere. -Marshall Marshall Schor wrote: We have a maven version for our incubating project which looks like: 2.3.0.incubating-SNAPSHOT The dot before incubating is there to make the format fit the Eclipse syntax of major.minor.micro.qualifier When eclipse:eclipse updates the MANIFEST.MF, it changes this version to: 2.3.0.incubating.SNAPSHOT This causes Eclipse 3.3 to complain that the format (which now contains 5 sections, separated by periods) is invalid. Can I set some configuration parameter to get eclipse:eclipse to not change the last - before SNAPSHOT to a period? -Marshall Schor - 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: How to debug transitive dependencies
On Tue, 05 Feb 2008 10:03:56 Arash Bizhan zadeh wrote: I am getting some strange unrelated jar files inside my war package. Could somebody tell me how can I debug the transitive resolution process and eliminate unrelated jar files? Thanks Arash mvn dependency:resolve -X -- Michael McCallum Enterprise Engineer mailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Sync problems with repo1.maven.org and ibiblio?
i'm looking into it On Feb 4, 2008 1:16 AM, thorque [EMAIL PROTECTED] wrote: Hello, If I take a look at http://repo1.maven.org/maven2/org/codehaus/groovy/groovy-all/1.5.4/ all files are properly presents. But at http://mirrors.ibiblio.org/pub/mirrors/maven2/org/codehaus/groovy/groovy-all/1.5.4/ the folder is empty. Is that a sync problem? Can anyone check this. Thanks Thorsten - Thorsten Kamann Software-Architect, Coach http://www.itemis.de http://www.thorsten-kamann.de Please visit the Fornax-Platform, the development platform for MDSD related component and tools: http://www.fornax-platform.org/ -- View this message in context: http://www.nabble.com/Sync-problems-with-repo1.maven.org-and-ibiblio--tp15264337s177p15264337.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] -- I could give you my word as a Spaniard. No good. I've known too many Spaniards. -- The Princess Bride - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to debug transitive dependencies
try mvn -npu -npu,--no-plugin-updates Suppress upToDate check for any relevant registered plugins which jars are being included that are not supposed to be included? M- - Original Message - From: Michael McCallum [EMAIL PROTECTED] To: Maven Users List users@maven.apache.org Sent: Monday, February 04, 2008 6:11 PM Subject: Re: How to debug transitive dependencies On Tue, 05 Feb 2008 10:03:56 Arash Bizhan zadeh wrote: I am getting some strange unrelated jar files inside my war package. Could somebody tell me how can I debug the transitive resolution process and eliminate unrelated jar files? Thanks Arash mvn dependency:resolve -X -- Michael McCallum Enterprise Engineer mailto:[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: Error Using Maven-Stage-Plugin
Does maven-deploy-plugin also use Wagon internally, but file:/ can be used? Dennis Lundberg-2 wrote: I'm not sure that the file: protocol is supported. The plugin uses Maven Wagon internally, and it makes scp calls to the target wagon. nadias wrote: I used: mvn stage:copy -Dversion=1.0-SNAPSHOT -Dsource=file:/path/to/local/repo/plugin -Dtarget=file:/path/to/remote/repo/plugin2 Dennis Lundberg-2 wrote: What command line parameters did you use? We need more context to be able to help you... nadias wrote: I'm getting the following error when trying to use the maven-stage-plugin (mvn stage:copy) and not sure what to make of it. Any help would be appreciated: . . . [INFO] Unpacking zip file on the target machine. [INFO] [ERROR] FATAL ERROR [INFO] [INFO] org.apache.maven.wagon.providers.file.FileWagon [INFO] [INFO] Trace java.lang.ClassCastException: org.apache.maven.wagon.providers.file.FileWagon at org.apache.maven.plugins.stage.DefaultRepositoryCopier.copy(DefaultRepositoryCopier.java:252) at org.apache.maven.plugins.stage.CopyRepositoryMojo.execute(CopyRepositoryMojo.java:93) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:447) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:493) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:463) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:224) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:333) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:126) at org.apache.maven.cli.MavenCli.main(MavenCli.java:282) 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) [INFO] [INFO] Total time: 6 seconds [INFO] Finished at: Mon Feb 04 12:34:29 PST 2008 [INFO] Final Memory: 2M/6M [INFO] -- Dennis Lundberg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Dennis Lundberg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Error-Using-Maven-Stage-Plugin-tp15278854s177p15281344.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: Error Using Maven-Stage-Plugin
Thanks. Does the maven-deploy-plugin use the wagon plugin as well (but can use file:/)? Wendy Smoak-3 wrote: On Feb 4, 2008 4:29 PM, nadias [EMAIL PROTECTED] wrote: I used: mvn stage:copy -Dversion=1.0-SNAPSHOT -Dsource=file:/path/to/local/repo/plugin -Dtarget=file:/path/to/remote/repo/plugin2 AFAIK it only supports copying from http:// to scp:// urls (but maybe something has changed.) http://maven.apache.org/plugins/maven-stage-plugin/usage.html Also keep in mind that this plugin has not yet been released; use only if you like the bleeding edge. :) -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Error-Using-Maven-Stage-Plugin-tp15278854s177p15281340.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: Error Using Maven-Stage-Plugin
On Feb 4, 2008 5:50 PM, nadias [EMAIL PROTECTED] wrote: Does maven-deploy-plugin also use Wagon internally, but file:/ can be used? Yes, the deploy plugin can use file:// urls. -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Error Using Maven-Stage-Plugin
Is the deploy plugin also using wagon? Or is it using something else to deploy? (Just trying to understand the inner workings of this...) Wendy Smoak-3 wrote: On Feb 4, 2008 5:50 PM, nadias [EMAIL PROTECTED] wrote: Does maven-deploy-plugin also use Wagon internally, but file:/ can be used? Yes, the deploy plugin can use file:// urls. -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Error-Using-Maven-Stage-Plugin-tp15278854s177p15281527.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: Using Custom Developed Checkstyle Check Modules
On Nov 19, 2007 9:30 PM, DanBarker85 [EMAIL PROTECTED] wrote: Thanks for your response. Adding the jar as an extension in the build was the original option I chose, as was detailed in the Maven tutorial. I think i've tried all combinations, but maybe it doesn't find the jar file I found extensions didn't work, but a dependency in the build/plugins sections did: e.g checkstyle:checkstyle-patch-1882332:4.3 contains my custom check. build plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-checkstyle-plugin/artifactId dependencies dependency groupIdcheckstyle/groupId artifactIdcheckstyle-patch-1882332/artifactId version4.3/version /dependency /dependencies [ERROR] Unable to process package names location: com/name/maven/checks/packagenames.xml java.io.IOException: Unable to find location 'com/name/maven/checks/packagenames.xml' as URL, File or Resource. When you run with -X you can see what file Maven is trying to resolve for your packagenames.xml. Double check that your custom check jar contains this file. (Mine was in the wrong location initiallly) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Updating Meta Data
What is the command that updates the metadata when we use Maven's deploy:deploy? Thanks. -- View this message in context: http://www.nabble.com/Updating-Meta-Data-tp15282046s177p15282046.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: Updating Meta Data
On Feb 4, 2008 6:57 PM, nadias [EMAIL PROTECTED] wrote: What is the command that updates the metadata when we use Maven's deploy:deploy? -DupdateReleaseInfo=true perhaps? http://maven.apache.org/plugins/maven-deploy-plugin/deploy-mojo.html And you probably want 'mvn deploy' (the lifecycle phase) rather than 'mvn deploy:deploy' (plugin:goal syntax). -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Achiva and Proximity
That process (dropping in new directories to an archiva instance) is exactly what I'm doing - works very nicely. One tidbit that I noticed in version 1.0 is that if you have established an internal repository and then add *to it* after the fact, the artifacts don't always get indexed properly. I found that getting the directory in place prior to launching archiva for the first time (I was shoving all my artifacts into the default internal repository) worked to resolve that issue. -joe -Original Message- Sent: Monday, February 04, 2008 9:15 AM To: [EMAIL PROTECTED] Subject: Re: Achiva and Proximity Sure - since both use repositories stored in the file system you can configure Archiva to point at the disk location of the repositories when you add managed repositories. They'll be scanned and indexed after they are added. Archiva doesn't however have an option for importing configuration from Proximity. Cheers, Brett On 04/02/2008, SlinnHawkins, Jon (ELS-CAM) [EMAIL PROTECTED] wrote: Hi All, Is it possible to migrate an existing Proximity repository to use Archiva ? Many thanks Jon This email is from Elsevier Limited, a company registered in England and Wales with company number 1982084, whose registered office is The Boulevard, Langford Lane, Kidlington, Oxford, OX5 1GB, United Kingdom. -- Brett Porter Blog: http://www.devzuz.org/blogs/bporter/
RE: Continuum renamed and moved my projects?
Wendy, I created two project groups project group A and Project group B. In project group A, I added a maven2 project abc-r4, and in Project group B, I added maven2 project abc-r3. Both projects represent the same product, but each project represents different code, so project abc-4 represents the main code of the trunk and abc-r3 project represents the code from a branch in Subversion. After I did the above, when I attempted to build project abc-3 that represents the branch, Continuum did the following: 1. It moved abc-r4 project from project group project group A to the second project group Project group B. When I opened project group A it was empty! 2. In project group Project group B, Continuum renamed both projects to have the same name? So now, the two projects are called abc. When I click on each project to see the properties, I see each project SCM URL is set correctly to the point to the right line of code inside Subversion repository, one is set to the trunk, and the other is set to a branch. I think there must be some configuration that I need to set inside Continuum to allow it to maintain the structure that I set? I'm not sure yet what do I need to set to accomplish this goal? Maybe it's something I need to set under the Administration choices? What I'm trying to do is simple, I just want to add two projects of the same product, one represents the main line of code and the other one represents a branch. Sameh -Original Message- From: Wendy Smoak [mailto:[EMAIL PROTECTED] Sent: Friday, February 01, 2008 6:03 PM To: [EMAIL PROTECTED] Subject: Re: Continuum renamed and moved my projects? On Feb 1, 2008 6:38 PM, Tawfik, Sameh E [EMAIL PROTECTED] wrote: Now when I run a build, Continuum did the following: 1. It moved the project under the trunk code group to be under the second group that is I set to point to the branch? 2. In the group that points to the branch, Continuum renamed both projects to have the same name? What do you mean when you say Continuum moved and renamed the projects? -- Wendy This email and any files transmitted with it are confidential, proprietary and intended solely for the individual or entity to whom they are addressed. If you have received this email in error please delete it immediately.
RE: [c 1.1] issues with adding build definition....
To make Continuum always send an email at the end of the build cycle, do the following: 1. Edit \continuum-1.1\apps\continuum\webapp\WEB-INF\classes\META-INF\plexus\app lication.xml 2. Search for alwaysSend string, and change the value from false to true as follow: Original value: alwaysSendfalse/alwaysSend Change to: alwaysSendtrue/alwaysSend Sameh -Original Message- From: Wendy Smoak [mailto:[EMAIL PROTECTED] Sent: Friday, February 01, 2008 6:09 PM To: [EMAIL PROTECTED] Subject: Re: [c 1.1] issues with adding build definition On Feb 1, 2008 5:06 PM, Mick Knutson [EMAIL PROTECTED] wrote: What does this mean: *2806710 [pool-1-thread-1] INFO org.codehaus.plexus.notification.notifier.Notifier:mail - Same state, not sending message. That the state (success, failure, or error) hasn't changed, so Continuum does not feel the need to send an email to tell you nothing happened. (If you want it to always send mail no matter what, I think you can change that in one of the xml files.) -- Wendy This email and any files transmitted with it are confidential, proprietary and intended solely for the individual or entity to whom they are addressed. If you have received this email in error please delete it immediately.
Re: How to debug transitive dependencies
I got the problem. Strangely myfaces and portlet APIs were ended up in my war file. The problem was that I mentioned commons-chaining in pom as a dependency, and it is depend on those jar files; I removed the explicit dependency to it and strangely, now I have it in my war file but not the dependencies to myfaces and ...! Though I could not completely figure out how transitive dependency works and why this happened?! On Feb 4, 2008 6:19 PM, Martin Gainty [EMAIL PROTECTED] wrote: try mvn -npu -npu,--no-plugin-updates Suppress upToDate check for any relevant registered plugins which jars are being included that are not supposed to be included? M- - Original Message - From: Michael McCallum [EMAIL PROTECTED] To: Maven Users List users@maven.apache.org Sent: Monday, February 04, 2008 6:11 PM Subject: Re: How to debug transitive dependencies On Tue, 05 Feb 2008 10:03:56 Arash Bizhan zadeh wrote: I am getting some strange unrelated jar files inside my war package. Could somebody tell me how can I debug the transitive resolution process and eliminate unrelated jar files? Thanks Arash mvn dependency:resolve -X -- Michael McCallum Enterprise Engineer mailto:[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] -- You can not depend on your eyes when your imagination is out of focus.