ContinuumException: could not find project group containing 6
when I started the build at the first time, all the project source files are checked out into a forlder called 6, then I received the following error message. Could anyone help me to figure out what this Exception mean and how to fix the problem? Thanks in advanced, Junping * Error Occurred org.apache.maven.continuum.ContinuumException: could not find project group containing 6 Show/hide Stack Trace org.apache.maven.continuum.ContinuumException: could not find project group containing 6 at org.apache.maven.continuum.DefaultContinuum.getProjectGroupByProjectId(D efaultContinuum.java:240) at org.apache.maven.continuum.web.action.ProjectViewAction.getProjectGroup( ProjectViewAction.java:87) at org.apache.maven.continuum.web.action.ProjectViewAction.execute(ProjectV iewAction.java:50) 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:324) at com.opensymphony.xwork.DefaultActionInvocation.invokeAction(DefaultActio nInvocation.java:364) at com.opensymphony.xwork.DefaultActionInvocation.invokeActionOnly(DefaultA ctionInvocation.java:216) at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvoc ation.java:190) at com.opensymphony.xwork.interceptor.DefaultWorkflowInterceptor.doIntercep t(DefaultWorkflowInterceptor.java:168) at com.opensymphony.xwork.interceptor.MethodFilterInterceptor.intercept(Met hodFilterInterceptor.java:86) at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvoc ation.java:188) at com.opensymphony.xwork.validator.ValidationInterceptor.doIntercept(Valid ationInterceptor.java:115) at com.opensymphony.xwork.interceptor.MethodFilterInterceptor.intercept(Met hodFilterInterceptor.java:86) at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvoc ation.java:188) at org.apache.maven.continuum.web.interceptor.ForceContinuumConfigurationIn terceptor.intercept(ForceContinuumConfigurationInterceptor.java:73) at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvoc ation.java:188) at org.codehaus.plexus.security.ui.web.interceptor.PolicyEnforcementInterce ptor.intercept(PolicyEnforcementInterceptor.java:102) at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvoc ation.java:188) at org.codehaus.plexus.security.ui.web.interceptor.SecureActionInterceptor. intercept(SecureActionInterceptor.java:174) at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvoc ation.java:188) at org.codehaus.plexus.xwork.interceptor.ExceptionMappingInterceptor.interc ept(ExceptionMappingInterceptor.java:58) at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvoc ation.java:188) at com.opensymphony.xwork.interceptor.DefaultWorkflowInterceptor.doIntercep t(DefaultWorkflowInterceptor.java:168) at com.opensymphony.xwork.interceptor.MethodFilterInterceptor.intercept(Met hodFilterInterceptor.java:86) at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvoc ation.java:188) at com.opensymphony.xwork.validator.ValidationInterceptor.doIntercept(Valid ationInterceptor.java:115) at com.opensymphony.xwork.interceptor.MethodFilterInterceptor.intercept(Met hodFilterInterceptor.java:86) at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvoc ation.java:188) at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInt erceptor.java:31) at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvoc ation.java:188) at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInt erceptor.java:31) at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvoc ation.java:188) at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInt erceptor.java:31) at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvoc ation.java:188) at com.opensymphony.webwork.interceptor.FileUploadInterceptor.intercept(Fil eUploadInterceptor.java:171) at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvoc ation.java:188) at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInt erceptor.java:31) at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvoc ation.java:188) at com.opensymphony.webwork.interceptor.debugging.DebuggingInterceptor.inte rcept(DebuggingInterceptor.java:147) at
Continuum Error : Cannot find parent
Hi folks, I have two projects with dependence, A depends of B and B depends of A. To build correctly this,I create a superpom .This is the structure of the projects: projectATrunk---pom.xml projectBTrunk---pom.xml parent--pom.xml Ok, the super pom have configurated their modules: modules module../projectA/trunk/module module../projectB/trunk/module /modules And each module know who is the parent: parent groupIdgroup.id/groupId artifactIdsuperpom/artifactId version1.1-SNAPSHOT/version relativePath../../parent/pom.xml/relativePath /parent This works,but when i try to add a project to continuum, continuum can't find the parent!!! Anyone knows how to tell to continuum who is the parent of this projects?? Thanks a lot 4 tjhe support. Javier -- View this message in context: http://www.nabble.com/Continuum-Error---%3A--Cannot-find-parent-tf4049310.html#a11501724 Sent from the Continuum - Users mailing list archive at Nabble.com.
Re: Merging and switching
On 09/07/07, Emmanuel Venisse [EMAIL PROTECTED] wrote: Thanks. Do you want to implement them? Hehe, I'd love to if I had the time! I'll let you know if I do get the chance in future. Mark
Re: 5 minute quickstart: The plugin 'org.apache.maven.plugins:maven-archetype-plugin' does not exist or no valid version could be found
Hi, I commented out the mirrors node in the settings.xml and in now works. (Woo hoo!) Thanks very much for your help :-) Rob. Wendy Smoak wrote: On 7/8/07, Robert Hadfield [EMAIL PROTECTED] wrote: Just further to my last note, I started tcpdump before running maven and I see a whole lot of HTTP 404's which makes me think the repository is the problem, rather than my install... ... addressApache/2 Server at vhost.ibiblio.org Port 80/address Have you configured a mirror? Try removing that configuration. By default Maven uses http://repo1.maven.org/maven2, which is working fine for me. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to define Custom properties for dependencies in Maven2 POM
Hi, I have gone through previously posted messages in ths forum for my query. but i haven't got any solution. Previously in Maven 1.x we used define custom properties for individual dependency in project.xml dependency idpostgresql-8.0-311.jdbc3/id jarpostgresql-8.0-311.jdbc3.jar/jar properties common.libtrue/common.lib shared.libtrue/shared.lib /properties /dependency and based on the property, we used to copy this dependency from repository location to appropriate folder in Tomcat e.g. server/lib or common/lib. Now in Maven 2.x, this property attribute has been removed from 4.0 xml scheama. How to proceed for this problem in Maven 2.x -- View this message in context: http://www.nabble.com/How-to-define-Custom-properties-for-dependencies-in-Maven2-POM-tf4047482s177.html#a11496847 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat Plugin with version 6.0.x
Is anyone knows how to start maven-tomcat plugin works with Apache Tomcat 6.0.x. I have checked that it works with Tomcat 5.5.3. -- Mustafa Sait ÖZEN
New maven user: The plugin 'org.apache.maven.plugins:maven-archetype-plugin' does not exist or no valid version could be found
Hi, I have tried several times now to get maven, just to try it out. I've been pretty disappointed at not being able to get going after 5 or 6 attempts over the last few months. I have followed the steps in the 5 minute guide (and the quickstart - I seem to get the same problem whatever I try). Maven in 5 minutes: Installation - done: cpc1-reig2-0-0-cust1000:~/Documents/workspace robhadfield$ mvn --version Maven version: 2.0.7 Java version: 1.5.0_07 OS name: mac os x version: 10.4.10 arch: i386 I have a direct (ISP) connection to the internet so I assume I don't need any special 'network setup' to be done. Next step, try mvn archetype:create -DgroupId=com.mycompany.app -DartifactId=my-app cpc1-reig2-0-0-cust1000:~/Documents/workspace robhadfield$ mvn archetype:create -DgroupId=com.mycompany.app -DartifactId=my-app [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'archetype'. [INFO] [ERROR] BUILD ERROR [INFO] [INFO] The plugin 'org.apache.maven.plugins:maven-archetype-plugin' does not exist or no valid version could be found [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: 1 second [INFO] Finished at: Sun Jul 08 10:27:19 BST 2007 [INFO] Final Memory: 1M/2M [INFO] env output shows: PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/bin/maven-2.0.7/bin PWD=/Users/robhadfield/Documents/workspace JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Home M2_HOME=/usr/local/bin/maven-2.0.7 I've found similar reports of these symptoms but occurring at the build stage (next step). I have no idea what I've done wrong here - everything looks like it is set correctly. I can't think of anything that should be different for my system. Can anyone help? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven Release Plugin release:branch goal
Do you have tried with branchName=branchName/projectName ? Emmanuel [EMAIL PROTECTED] a écrit : Hi Everyone, Is there anyway to tell the release plugin, when doing the branch goal, the directory where to place the code in the branch. For example the plugin copies your code to the branches/-DbranchName directory. I would like it to place the code in the branches/-DbranchName/projectName directory. I tried using the tagBase option but that didn't help. Thanks, David Williams 205-271-6159 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Cannot download parent pom from specified remote repository
Hi all. I have this problem. I have created a super pom in a project defined as: groupIdcom.sourcesense.alfresco/groupId artifactIdalfresco-base/artifactId packagingpom/packaging version1.0/version then I use it in my actual project in this way: parent groupIdcom.sourcesense.alfresco/groupId artifactIdalfresco-base/artifactId version1.0/version /parent I have made mvn install of parent-pom project and then the child project resolve correctly all dependancies. So I make a mvn deploy of parent-pom to share with others. Other team members cannot make it work because the parent-pom is not found on company repo. Note that there are a lot of dependencies in child project that were downloaded correctly. Looking the log it seems that maven2 tries to download the parent-pom just from repo1.maven.org ignoring the repo declared in pom.xml of child project. * LOG BEGINS *** [INFO] Scanning for projects... Downloading: http://repo1.maven.org/maven2/com/sourcesense/alfresco/alfresco-base/1.0/alfresco-base-1.0.pom [INFO] [ERROR] FATAL ERROR [INFO] [INFO] Failed to resolve artifact. GroupId: com.sourcesense.alfresco ArtifactId: alfresco-base Version: 1.0 Reason: Unable to download the artifact from any repository com.sourcesense.alfresco:alfresco-base:pom:1.0 from the specified remote repositories: central (http://repo1.maven.org/maven2), sourcesense (dav:https://dev.sourcesense.com/repos/dev/maven2) * LOG ENDS *** As you can see, it claims to try to download alfresco-base pom from my company repository but the first lines of the log tell me a different thing. What can I do? Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Where can I download the source code of a maven plugin?
Hi, I wanna read the source code of maven-release-plugin, but I counldn't find any source download link in maven project site. Who can tell me? thanks -- - Leo Liang E-mail: [EMAIL PROTECTED] Blog (tech learning): http://aleung.blogbus.com Blog (photography outdoor):http://sunnyday.cn2k.net Delicious bookmark: http://del.icio.us/aleung -
Re: Where can I download the source code of a maven plugin?
On 09/07/07, Leo Liang [EMAIL PROTECTED] wrote: Hi, I wanna read the source code of maven-release-plugin, but I counldn't find any source download link in maven project site. Who can tell me? I can. trunk: https://svn.apache.org/repos/asf/maven/release/trunk/maven-release-plugin/ last release: https://svn.apache.org/repos/asf/maven/release/tags/maven-release-3/ Referenced off: http://maven.apache.org/plugins/maven-release-plugin/source-repository.html Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Where can I download the source code of a maven plugin?
On 09/07/07, Mark Hobson [EMAIL PROTECTED] wrote: On 09/07/07, Leo Liang [EMAIL PROTECTED] wrote: Hi, I wanna read the source code of maven-release-plugin, but I counldn't find any source download link in maven project site. Who can tell me? I can. trunk: https://svn.apache.org/repos/asf/maven/release/trunk/maven-release-plugin/ last release: https://svn.apache.org/repos/asf/maven/release/tags/maven-release-3/ https probably won't help you much: trunk: http://svn.apache.org/repos/asf/maven/release/trunk/maven-release-plugin/ last release: http://svn.apache.org/repos/asf/maven/release/tags/maven-release-3/maven-release-plugin/ Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
release:perform deletes the current directory
I'm a ClearCase user. Once I execute mvn release:perform in a snapshot view, maven will remove the current directory. I know that release:perform goal will create a new snapshot view, load the sources into that view and perform release build. Why it must delete the files and directories in current directory? -- - Leo Liang E-mail: [EMAIL PROTECTED] Blog (tech learning): http://aleung.blogbus.com Blog (photography outdoor):http://sunnyday.cn2k.net Delicious bookmark: http://del.icio.us/aleung -
Cannot download parent pom from specified remote repository
Hi all. I have this problem. I have created a super pom in a project defined as: groupIdcom.sourcesense.alfresco/groupId artifactIdalfresco-base/artifactId packagingpom/packaging version1.0/version then I use it in my actual project in this way: parent groupIdcom.sourcesense.alfresco/groupId artifactIdalfresco-base/artifactId version1.0/version /parent I have made mvn install of parent-pom project and then the child project resolve correctly all dependancies. So I make a mvn deploy of parent-pom to share with others. Other team members cannot make it work because the parent-pom is not found on company repo. Note that there are a lot of dependencies in child project that were downloaded correctly. Looking the log it seems that maven2 tries to download the parent-pom just from repo1.maven.org ignoring the repo declared in pom.xml of child project. * LOG BEGINS *** [INFO] Scanning for projects... Downloading: http://repo1.maven.org/maven2/com/sourcesense/alfresco/alfresco-base/1.0/alfresco-base-1.0.pom [INFO] [ERROR] FATAL ERROR [INFO] [INFO] Failed to resolve artifact. GroupId: com.sourcesense.alfresco ArtifactId: alfresco-base Version: 1.0 Reason: Unable to download the artifact from any repository com.sourcesense.alfresco:alfresco-base:pom:1.0 from the specified remote repositories: central (http://repo1.maven.org/maven2), sourcesense (dav:https://dev.sourcesense.com/repos/dev/maven2) * LOG ENDS *** As you can see, it claims to try to download alfresco-base pom from my company repository but the first lines of the log tell me a different thing. What can I do? Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven Release Plugin release:branch goal
Emmanuel, I did try that and I got the directory doesn't exist message from SVN. I'll run it again to be sure. Thanks, David Emmanuel Venisse [EMAIL PROTECTED] 07/09/2007 02:47 AM Please respond to Maven Users List users@maven.apache.org To Maven Users List users@maven.apache.org cc Subject Re: Maven Release Plugin release:branch goal Do you have tried with branchName=branchName/projectName ? Emmanuel [EMAIL PROTECTED] a écrit : Hi Everyone, Is there anyway to tell the release plugin, when doing the branch goal, the directory where to place the code in the branch. For example the plugin copies your code to the branches/-DbranchName directory. I would like it to place the code in the branches/-DbranchName/projectName directory. I tried using the tagBase option but that didn't help. Thanks, David Williams 205-271-6159 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ CONFIDENTIALITY: This email (including any attachments) may contain confidential, proprietary and privileged information, and unauthorized disclosure or use is prohibited. If you received this email in error, please notify the sender and delete this email from your system. Thank you.
Re: Merging and switching
We don't have an issue for them so you can raise one. I'm not sure we'll can use them with other SCMs. If they aren't supported, we'd can do a working copyremove then a new checkout. Emmanuel Mark Hobson a écrit : Hi there, Has there been any discussion on supporting merging and switching in maven-scm? I'm thinking especially with regard to Subversion, although I'm not entirely sure if these operations map to all other SCMs. It'd be very handy to expose these in the plugin to supplement scm:branch, e.g.: mvn scm:merge -Dbranch=mybranch mvn scm:switch -Dbranch=mybranch I'll raise issues if this functionality makes sense. Cheers, Mark
Re: Cannot download parent pom from specified remote repository
Hi, You parent pom is like any artifact and you have to indicate to maven 2 where to find it. Since you have a corporate repository (via a maven proxy) you have two solutions : 1. Either you add a reference to your corporate repository in your pom.xml repositories repository idinhouse/id nameInhouse maven repository/name urlurl to your corporate repository/url releases enabledtrue/enabled /releases snapshots enabledfalse/enabled /snapshots /repository 2. or by specifying your corporate repository to maven 2 in your setting.xml mirrors mirror idCorporate Proxy/id mirrorOfcentral/mirrorOf namemy corporate repository/name urlurl to your corporate repository/url /mirror It's important to use the token central for the node mirrorOf. In general, the second solution is better when using a maven 2 proxy. HTH, Rémy
Re: Cannot download parent pom from specified remote repository
I know, there are a lot of dependencies that are downloaded from my company repository that is specified in the child project pom. As you can see in my log, there is a incoherence that I am trying to point out: Maven tries to download the parent pom just from repo1.maven.org: [INFO] Scanning for projects... Downloading: http://repo1.maven.org/maven2/com/sourcesense/alfresco/alfresco-base/1.0/alfresco-base-1.0.pom [INFO] --- and then give the Fatal Error. But after it tells that it cannot found artifact in both repos: -- from the specified remote repositories: central (http://repo1.maven.org/maven2), sourcesense (dav:https://dev.sourcesense.com/repos/dev/maven2) -- I suspect that it does not even try to download the parent pom artifact from my company repo. All other artifact are correclty downloaded and normally the download sequence is: first, specified repo, later the default repo, in fact this is a typical sequence: Downloading: https://dev.sourcesense.com/repos/dev/maven2/axis/axis-jaxrpc/1.4/axis-jaxrpc-1.4.pom Downloading: http://repo1.maven.org/maven2/axis/axis-jaxrpc/1.4/axis-jaxrpc-1.4.pom Downloading: https://dev.sourcesense.com/repos/dev/maven2/axis/axis-saaj/1.4/axis-saaj-1.4.pom Downloading: http://repo1.maven.org/maven2/axis/axis-saaj/1.4/axis-saaj-1.4.pom Finally: or I am missing something in configuration or there is a bug in the sequence: maven does not look for repositories defined in pom before looking for the parent project artifact. In fact if I already have the artifact in local repo, everything works. On 7/9/07, Rémy Sanlaville [EMAIL PROTECTED] wrote: Hi, You parent pom is like any artifact and you have to indicate to maven 2 where to find it. Since you have a corporate repository (via a maven proxy) you have two solutions : 1. Either you add a reference to your corporate repository in your pom.xml repositories repository idinhouse/id nameInhouse maven repository/name urlurl to your corporate repository/url releases enabledtrue/enabled /releases snapshots enabledfalse/enabled /snapshots /repository 2. or by specifying your corporate repository to maven 2 in your setting.xml mirrors mirror idCorporate Proxy/id mirrorOfcentral/mirrorOf namemy corporate repository/name urlurl to your corporate repository/url /mirror It's important to use the token central for the node mirrorOf. In general, the second solution is better when using a maven 2 proxy. HTH, Rémy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Plugin configuration for specific goals - doc error?
Hi all, As per the rather excellent guide available at Sonatypes website (http://www.sonatype.com/book/using-plugins.html#configuring_plugins): One is told that the following two compiler plugin configurations are synonymous: project ... build plugins plugin artifactIdmaven-compiler-plugin/artifactId configuration source1.4/source target1.4/target /configuration /plugin .. and project ... build plugins plugin artifactIdmaven-compiler-plugin/artifactId executions execution goals goalcompile/goal goaltestCompile/goal /goals configuration source1.4/source target1.4/target /configuration /execution /executions /plugin However from a number of trials using compiler plugin version 2.0.2 and maven 2.0.7 we have been unable to get this to work. The global style plugin configuration works, with both Mojos getting the correct configuration. The Goal set based configuration properly configures the 'compile' goal but does not configure the 'testCompile' goal. Varying where the testCompile goal is specified makes no difference. Are we correct in thinking that, as per the Sonatype docs, the goalsgoalcompile/goalgoaltestCompiler/goal/goals should work and result in both compile and testCompiler MOJOs being properly configured? Thanks, John -- View this message in context: http://www.nabble.com/Plugin-configuration-for-specific-goals---doc-error--tf4049555s177.html#a11502449 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to generate resources in test and include them into release JAR?
Hello! In my application some tests are performing lookup for test (sample) data, create and manage some mapping tables, which tables are verified by another tests and then needed to be included into main JAR file, generated by maven package/install goals. So I need to provide an ability to include some of files in src/test/resources into the main jar, could somebody please explain how would I do that? -- Eugene N Dzhurinsky - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Plugin configuration for specific goals - doc error?
Out of curiosity, does it make any difference if you specify iddefault/id in the plugin execution? It really shouldn't, but those id's are used as a basis for merging configurations, so if it were grabbing the wrong default value (or none at all), then merging your plugin configuration with something given in, say, the super-pom might get derailed... I'll take a closer look at this, but it's something to check quickly... -john On Jul 9, 2007, at 10:08 AM, jallen wrote: Hi all, As per the rather excellent guide available at Sonatypes website (http://www.sonatype.com/book/using-plugins.html#configuring_plugins): One is told that the following two compiler plugin configurations are synonymous: project ... build plugins plugin artifactIdmaven-compiler-plugin/artifactId configuration source1.4/source target1.4/target /configuration /plugin .. and project ... build plugins plugin artifactIdmaven-compiler-plugin/artifactId executions execution goals goalcompile/goal goaltestCompile/goal /goals configuration source1.4/source target1.4/target /configuration /execution /executions /plugin However from a number of trials using compiler plugin version 2.0.2 and maven 2.0.7 we have been unable to get this to work. The global style plugin configuration works, with both Mojos getting the correct configuration. The Goal set based configuration properly configures the 'compile' goal but does not configure the 'testCompile' goal. Varying where the testCompile goal is specified makes no difference. Are we correct in thinking that, as per the Sonatype docs, the goalsgoalcompile/goalgoaltestCompiler/goal/goals should work and result in both compile and testCompiler MOJOs being properly configured? Thanks, John -- View this message in context: http://www.nabble.com/Plugin- configuration-for-specific-goals---doc-error-- tf4049555s177.html#a11502449 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --- John Casey Committer and PMC Member, Apache Maven mail: jdcasey at commonjava dot org blog: http://www.ejlife.net/blogs/john
Maven deploy problem
Hi, I get this error when I try to deploy manualy the quartz jar to my repository. Any has idea? Alex. C:\mvn deploy:deploy-file -Durl=http://urlToRepository/reposit ory -DgroupId=quartz -DartifactId=quartz -Dversion=1.6.0 -Dpackaging=jar -Dfile= C:/quartz-1.6.0.jar -e + Error stacktraces are turned on. [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'deploy'. [INFO] - --- [INFO] Building Maven Default Project [INFO]task-segment: [deploy:deploy-file] (aggregator-style) [INFO] - --- [INFO] [deploy:deploy-file] Uploading: http://urlToRepository/repository/quartz/quartz/1.6. 0/quartz-1.6.0.jar 411K uploaded [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Error deploying artifact: Unable to transfer file. HttpURLConnection retu rned the response code: 409 [INFO] [INFO] Trace org.apache.maven.lifecycle.LifecycleExecutionException: Error deploying artifact : Unable to transfer file. HttpURLConnection returned the response code: 409 at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals (Defa ultLifecycleExecutor.java:559) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandalone Goal(DefaultLifecycleExecutor.java:488) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal (Defau ltLifecycleExecutor.java:458) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan dleFailures(DefaultLifecycleExecutor.java:306) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen ts(DefaultLifecycleExecutor.java:219) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute (DefaultLi fecycleExecutor.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. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java :315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java :430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) Caused by: org.apache.maven.plugin.MojoExecutionException: Error deploying artif act: Unable to transfer file. HttpURLConnection returned the response code: 409 at org.apache.maven.plugin.deploy.DeployFileMojo.execute (DeployFileMojo. java:243) at org.apache.maven.plugin.DefaultPluginManager.executeMojo (DefaultPlugi nManager.java:412) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals (Defa ultLifecycleExecutor.java:534) ... 16 more Caused by: org.apache.maven.artifact.deployer.ArtifactDeploymentException: Error deploying artifact: Unable to transfer file. HttpURLConnection returned the res ponse code: 409 at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy (Def aultArtifactDeployer.java:91) at org.apache.maven.plugin.deploy.DeployFileMojo.execute (DeployFileMojo. java:239) ... 18 more Caused by: org.apache.maven.wagon.TransferFailedException: Unable to transfer fi le. HttpURLConnection returned the response code: 409 at org.apache.maven.wagon.providers.http.LightweightHttpWagon.put (Lightw eightHttpWagon.java:143) at org.apache.maven.artifact.manager.DefaultWagonManager.putRemoteFile(D efaultWagonManager.java:180) at org.apache.maven.artifact.manager.DefaultWagonManager.putArtifact (Def aultWagonManager.java:109) at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy (Def aultArtifactDeployer.java:77) ... 19 more [INFO] [INFO] Total time: 1 second [INFO] Finished at: Mon Jul 09 11:28:01 EDT 2007 [INFO] Final Memory: 2M/5M [INFO]
Re: Plugin configuration for specific goals - doc error?
No change John, 'compile' MOJO gets properly configured 'testCompile' does not. Out of interest I notice that, unlike the 'compile' MOJO the 'testCompile' MOJO execution does not get postfixed with the execution id:- ... [DEBUG] (f) target = 1.5 [DEBUG] (f) verbose = false [DEBUG] -- end configuration -- [INFO] [compiler:compile {execution: default}] [DEBUG] Using compiler 'javac'. [DEBUG] Source directories: [D:\APT\projects\apt-metrics\apt-metrics-common\src\main\java] -versus- [DEBUG] (f) showWarnings = false [DEBUG] (f) staleMillis = 0 [DEBUG] (f) verbose = false [DEBUG] -- end configuration -- [INFO] [compiler:testCompile] [DEBUG] Using compiler 'javac'. [DEBUG] Source directories: [D:\APT\projects\apt-metrics\apt-metrics-common\src\test\java] This was produced from a plugin configuration thus: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-compiler-plugin/artifactId inheritedtrue/inherited executions execution iddefault/id goals goalcompile/goal goaltestCompile/goal /goals configuration source1.5/source target1.5/target /configuration /execution /executions /plugin Note, it does not seem to matter whether the configuration is attempted in the pluginsManagement area or the plugins area. cheers - John John Casey-5 wrote: Out of curiosity, does it make any difference if you specify iddefault/id in the plugin execution? It really shouldn't, but those id's are used as a basis for merging configurations, so if it were grabbing the wrong default value (or none at all), then merging your plugin configuration with something given in, say, the super-pom might get derailed... I'll take a closer look at this, but it's something to check quickly... -john On Jul 9, 2007, at 10:08 AM, jallen wrote: Hi all, As per the rather excellent guide available at Sonatypes website (http://www.sonatype.com/book/using-plugins.html#configuring_plugins): One is told that the following two compiler plugin configurations are synonymous: project ... build plugins plugin artifactIdmaven-compiler-plugin/artifactId configuration source1.4/source target1.4/target /configuration /plugin .. and project ... build plugins plugin artifactIdmaven-compiler-plugin/artifactId executions execution goals goalcompile/goal goaltestCompile/goal /goals configuration source1.4/source target1.4/target /configuration /execution /executions /plugin However from a number of trials using compiler plugin version 2.0.2 and maven 2.0.7 we have been unable to get this to work. The global style plugin configuration works, with both Mojos getting the correct configuration. The Goal set based configuration properly configures the 'compile' goal but does not configure the 'testCompile' goal. Varying where the testCompile goal is specified makes no difference. Are we correct in thinking that, as per the Sonatype docs, the goalsgoalcompile/goalgoaltestCompiler/goal/goals should work and result in both compile and testCompiler MOJOs being properly configured? Thanks, John -- View this message in context: http://www.nabble.com/Plugin- configuration-for-specific-goals---doc-error-- tf4049555s177.html#a11502449 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --- John Casey Committer and PMC Member, Apache Maven mail: jdcasey at commonjava dot org blog: http://www.ejlife.net/blogs/john -- View this message in context: http://www.nabble.com/Plugin-configuration-for-specific-goals---doc-error--tf4049555s177.html#a11504591 Sent from the Maven - Users mailing list archive at Nabble.com.
maven JDK issue finding tools.jar
I haave a JDeveloper ant script I want to run with Maven. I get no issues when I run this through JDeveloper. plugin artifactIdmaven-antrun-plugin/artifactId executions execution phasegenerate-sources/phase configuration tasks ant antfile=${basedir}/src/main/build.xml inheritRefs=true target name=compile/ /ant /tasks !--sourceRoot${project.build.directory }/generated-sources/main/java/sourceRoot testSourceRoot${project.build.directory }/generated-sources/test/java/testSourceRoot-- /configuration goals goalrun/goal /goals /execution /executions /plugin I get this error though when I run this through Maven: == compile: [echo] [echo] -- [echo] | Compiling bpel process MISFileIntakeProcess, revision 1.0 [echo] -- [echo] validating C:\viewstore\esp_lynx_dap\esp\dap\c2\bpel\mis-file-intake-bpel\src\main\bpel\MISFileIntakeProcess.bpel ... java.lang.NoClassDefFoundError: sun/tools/javac/Main at com.collaxa.cube.util.JavaHelper.javac(JavaHelper.java:203) at com.collaxa.cube.util.JavaHelper.javac(JavaHelper.java:174) at com.collaxa.cube.lang.compiler.CubeProcessor.compileGeneratedClasses( CubeProcessor.java:963) at com.collaxa.cube.lang.compiler.CubeProcessor.transformClientSide( CubeProcessor.java:572) at com.collaxa.cube.lang.compiler.CubeProcessor.transformClientSide( CubeProcessor.java:457) at com.collaxa.cube.lang.compiler.CubeParserHelper.compileClientSide (CubeParserHelper.java:83) at com.collaxa.cube.ant.taskdefs.Bpelc.execute(Bpelc.java:626) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java :275) at org.apache.tools.ant.Task.perform(Task.java:364) at org.apache.tools.ant.Target.execute(Target.java:341) at org.apache.tools.ant.Target.performTasks(Target.java:369) at org.apache.tools.ant.Project.executeSortedTargets(Project.java :1216) at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets( SingleCheckExecutor.java:37) at org.apache.tools.ant.Project.executeTargets(Project.java:1068) at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:382) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java :275) at org.apache.tools.ant.Task.perform(Task.java:364) at org.apache.tools.ant.Target.execute(Target.java:341) at org.apache.maven.plugin.antrun.AbstractAntMojo.executeTasks( AbstractAntMojo.java:108) at org.apache.maven.plugin.antrun.AntRunMojo.execute(AntRunMojo.java :83) at org.apache.maven.plugin.DefaultPluginManager.executeMojo( DefaultPluginManager.java:420) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals( DefaultLifecycleExecutor.java:539) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle (DefaultLifecycleExecutor.java:480) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal( DefaultLifecycleExecutor.java:459) 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:330) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:123) at org.apache.maven.cli.MavenCli.main(MavenCli.java:272) 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) -- --- Thanks, Mick Knutson http://www.baselogic.com http://www.blincmagazine.com http://www.djmick.com http://www.myspace.com/mickknutson http://www.myspace.com/djmick_dot_com http://www.myspace.com/sexybeotches http://www.thumpradio.com ---
Re: 5 minute quickstart: The plugin 'org.apache.maven.plugins:maven-archetype-plugin' does not exist or no valid version could be found
For the future, information like this (I configured a mirror in settings.xml) is useful to mention in your first email... ;-) Wayne On 7/9/07, Robert Hadfield [EMAIL PROTECTED] wrote: Hi, I commented out the mirrors node in the settings.xml and in now works. (Woo hoo!) Thanks very much for your help :-) Rob. Wendy Smoak wrote: On 7/8/07, Robert Hadfield [EMAIL PROTECTED] wrote: Just further to my last note, I started tcpdump before running maven and I see a whole lot of HTTP 404's which makes me think the repository is the problem, rather than my install... ... addressApache/2 Server at vhost.ibiblio.org Port 80/address Have you configured a mirror? Try removing that configuration. By default Maven uses http://repo1.maven.org/maven2, which is working fine for me. - 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]
How to get a plugin to see my log4j.xml
I'm trying to generate classes for a wsdl using the xfire-maven-plugin but I'm running into trouble. I need to get my log4j.xml onto the plugins classpath so that I can see it's logging output, but it won't pick it up like I would have expected from the src/main/resources directory. Is there a way to get the plugin to see the log4j.xml in the src/main/resources directory? Or if it should do this, is there a way to confirm what I'm doing wrong? my other log4j settings appear to work as expected in my tests so I'm doubting it's a config issue. Thanks! Ryan
How to use dependency:purge-local-repository
Hi, I'm trying to run mvn dependency:purge-local-repository -DreResolve=false and was expecting that my local repository will be cleaned up, but that's not happening. Am I missing something? Has someone have an example of using this goal? We use maven 2.0.5 on Linux. Thanks, Erez. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
how to get pom name into site documentation?
I want to take: nameMIS File Intake/name and add it to site.xml: menu name=${name} But want to know what to use? ${name} is not correct -- --- Thanks, Mick Knutson http://www.baselogic.com http://www.blincmagazine.com http://www.djmick.com http://www.myspace.com/mickknutson http://www.myspace.com/djmick_dot_com http://www.myspace.com/sexybeotches http://www.thumpradio.com ---
RE: Which technology stack are you using?
Perforce (Subversion at home) Maven (still some Ant migrating from, Maven should make things easier without resorting to Ant) Proximity Cruise Control (very easy, had trouble with Continuum) Eclipse Plugins: SpringIDE (had some problems with DEV milestone release of 2.0, but it has lots of extras including Spring webflow) Checkstyle (occasionally) PMD P4WASD (subversive at home for subversion, had trouble with subclipse) m2eclipse (use the DEV milestone, 0.0.10 has problems with parent pom update, use eclipse:eclipse to setup a new project, import it and then use m2eclipse from there) Jutils (generates toString ) Paul Sundling -Original Message- From: Trevor Spackman [mailto:[EMAIL PROTECTED] Sent: Friday, July 06, 2007 8:50 AM To: users@maven.apache.org Subject: Which technology stack are you using? So here's the question: what are YOU using? There have been a number of posts about what CAN be used, but only a couple of people have mentioned what they DO use. Why do I ask? We recently made the jump from CVS ant to Subversion maven. There have been a few growing pains, but things seem to have stabilized. Now I could use the advice of someone who has already been there. We're using maven-proxy for our internal repository - but we haven't been entirely pleased and want to look at alternatives. We also need to get a good CI system set up (yes, we don't have one :-(). We went for the obvious Continuum, but it's been nothing but headaches trying to make it play nicely. The questions: Which SCM are you using: CVS, Subversion or something else? I'll assume you're using maven as your build system... Which internal repo proxy are you using: maven-proxy, Archiva, Artifactory, Proximity, Gatekeeper? Which CI system are you using: Hudson, Bamboo, Continuum, Cruise Control? Which IDE do you use: Eclipse, IDEA? Which plugins for your IDE? And, most importantly, do you LIKE them? Are they friendly/easy to use? Do you wish you could change, but don't have the time/resources? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Use native CVS by default
How can I configure my POM so the SCM plugin will use the native CVS implementation by default? I'd rather not set this on the command line each time. Thanks, -- Daniel Siegmann FJA-US, Inc. 512 Seventh Ave., New York, NY 10018 (212) 840-2618 ext. 139 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
masking maven-xdoclet errors with hibernatedoclet
I keep getting these errors from my Generics within my code while running xdoclet with maven. How can I make these errors not show up, or correct this: Cobertura: Saved information on 13 classes. [INFO] Preparing findbugs:findbugs [INFO] [build-helper:add-source {execution: add-source}] [INFO] Source directory: C:\viewstore\esp_lynx_dap\esp\dap\utilities\common\common-jar\src\main\generated-sources added. [INFO] [smc:smc {execution: default}] [INFO] [xdoclet:xdoclet {execution: default}] [INFO] Initializing DocletTasks!!! [INFO] Executing tasks Jul 9, 2007 12:19:13 PM xdoclet.XDocletMain start INFO: Running hibernate/ Error parsing File C:\viewstore\esp_lynx_dap\esp\dap\utilities\common\common-jar\src\main\java\com\baselogic\util\ObjectViewer.java:Encountered : at line 29, column 29. Was expecting one of: [ ... ; ... , ... = ... Here is the line that the error is coming from: for ( Method method : methods ) { -- --- Thanks, Mick Knutson http://www.baselogic.com http://www.blincmagazine.com http://www.djmick.com http://www.myspace.com/mickknutson http://www.myspace.com/djmick_dot_com http://www.myspace.com/sexybeotches http://www.thumpradio.com ---
RE: Changelog with perforce
So nobody has a working perforce changelog config? Paul Sundling -Original Message- From: Sundling, Paul Sent: Thursday, July 05, 2007 1:41 PM To: users@maven.apache.org Subject: Changelog with perforce Does anyone have a working sample of a pom.xml that actually has a working changelog report with perforce? I saw an unanswered post on nabble from: http://www.nabble.com/Need-help-regarding-the-Changelog-plugin.-tf207798 0s177.html#a5723516 After lots of effort, I still can't get anything more than a blank report. The scm part must be setup correctly because 'mvn scm:status' correctly shows the files that are modified. Paul Sundling - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [ANN] Maven Ant Tasks 2.0.7 Released
Problemet med settings.xml ser no ut til å vere fiksa i Maven Ant Tasks 2.0.7 - frå releasenotes: [MANTTASKS-6 http://jira.codehaus.org/browse/MANTTASKS-6] - ant artifact doesn't read settings.xml Frode 2007/7/6, Jason van Zyl [EMAIL PROTECTED]: The Apache Maven team would like to announce the availability of the Maven Ant Tasks 2.0.7. You can find the binaries here: http://www.apache.org/dyn/closer.cgi/maven/binaries/maven-ant- tasks-2.0.7.jar You can find the release notes here: http://jira.codehaus.org/secure/ReleaseNote.jspa? projectId=11533styleName=Htmlversion=13521 Thanks, Jason -- Jason van Zyl Founder and PMC Chair, Apache Maven jason at sonatype dot com -- -- Mvh Frode
Checkstyle report fails on release, not site
I have a parent pom that all my projects inherent. It configures the checkstyle plugin like this: configuration configLocation ../theteam/checkstyle.xml /configLocation headerLocation ../theteam/header.txt /headerLocation /configuration This works fine when I use mvn site, but when I use mvn release:prepare I get this error Embedded error: Error rendering Maven report: Unable to find configuration file location. Unable to find location '../theteam/checkstyle.xml' as URL, File or Resource. So, why can it find it for the first command but not the second? -- Esse Quam Videre To Be, rather than to Seem
Re: Problem using custom announcement with changes plugin
Hi Dennis, Why not use /src/changes/ instead of /src/main/resources/ ? By default, for jar packaging anyway, everything /src/main/resources/ will be put into the artifact, but why would anybody ever want an email announcement template in the artifact? Just curious, Steve Dennis Lundberg wrote: Hi Paul, I committed a new page for the site that explains how to create and use a custom template for the announcement. As you sort of figured out already, the templateDirectory starts from /src/main/resources, i.e. not from ${basedir}. I have not deployed a new site yet, but you can have a look at the apt file in svn, until the site is deployed: http://svn.apache.org/repos/asf/maven/plugins/trunk/maven-changes-plugin/src/site/apt/examples/using-a-custom-announcement-template.apt Paul Spencer wrote: I am trying to configure the changes plugin, version 2.0-beta-2, to use a custom announcement.vm file. Setting templateDirectory in to /src/main/resources does not work. The command mvn changes:announcement-generate always fails with the following error message: ResourceManager : unable to find resource '/src/main/resources/announcement.vm' in any resource loader Belows is additional information related the the problem: *** * From POM.XML *** plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-changes-plugin/artifactId configuration templateannouncement.vm/template templateDirectory/src/main/resources/templateDirectory /configuration /plugin *** * Directory output *** Directory of C:\cvs\reporting-jsf\src\main\resources 04/20/2007 01:45 PMDIR . 04/20/2007 01:45 PMDIR .. 04/20/2007 01:45 PM 1,848 announcement.vm 04/18/2007 10:01 AM69 application.properties 09/20/2006 11:56 AM 206 implementations.properties 04/12/2007 04:40 PM 1,109 log4j.xml 4 File(s) 3,232 bytes 2 Dir(s) 67,573,653,504 bytes free C:\cvs_apms\apms-reporting-jsf *** * Maven debug output *** [INFO] ** [INFO] Starting Jakarta Velocity v1.4 [INFO] RuntimeInstance initializing. [INFO] Default Properties File: org\apache\velocity\runtime\defaults\velocity.properties [INFO] Default ResourceManager initializing. (class org.apache.velocity.runtime.resource.ResourceManagerImpl) [INFO] Resource Loader Instantiated: org.apache.maven.plugin.resource.loader.ProjectResourceLoader [INFO] ProjectResourceLoader : initialization starting. [INFO] path :C:\cvs\reporting-jsf\src\main\resources\ [INFO] ProjectResourceLoader : adding path 'C:\cvs\reporting-jsf\src\main\resources\' [INFO] ProjectResourceLoader : initialization complete. [INFO] Resource Loader Instantiated: org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader [INFO] ClasspathResourceLoader : initialization starting. [INFO] ClasspathResourceLoader : initialization complete. [INFO] ResourceCache : initialized. (class org.apache.velocity.runtime.resource.ResourceCacheImpl) [INFO] Default ResourceManager initialization complete. [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Literal [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Macro [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Parse [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Include [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Foreach [INFO] Created: 20 parsers. [INFO] Velocimacro : initialization starting. [INFO] Velocimacro : adding VMs from VM library template : VM_global_library.vm [ERROR] ResourceManager : unable to find resource 'VM_global_library.vm' in any resource loader. [INFO] Velocimacro : error using VM library template VM_global_library.vm : org.apache.velocity.exception.ResourceNotFoundException: Unable to find resource 'VM_global_library.vm' [INFO] Velocimacro : VM library template macro registration complete. [INFO] Velocimacro : allowInline = true : VMs can be defined inline in templates [INFO] Velocimacro : allowInlineToOverride = false : VMs defined inline may NOT replace previous VM definitions [INFO] Velocimacro : allowInlineLocal = false : VMs defined inline will be global in scope if allowed. [INFO] Velocimacro : messages on : VM system will output logging messages [INFO] Velocimacro : autoload off : VM system will not automatically reload global library macros [INFO] Velocimacro : initialization complete. [INFO] Velocity successfully started. [DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-changes-plugin:2.0-beta-2:announcement-generate' -- [DEBUG] (s) artifactId = reporting-jsf [DEBUG] (s) developmentTeam = reporting-jsf-team [DEBUG] (s) finalName = reporting-jsf-1.0.2-SNAPSHOT.war [DEBUG] (f)
Re: Lifecyle Question
So why doesn't a multi-module build collect the test-jars into the reactor classpath? Is this a known issue of some sort? I managed to crash into this headlong today... :) On 6/7/07, Eric Redmond [EMAIL PROTECTED] wrote: Sounds like one of your modules has a dependency on a project that generates a test-jar. Sorry to say, but you actually have to run mvn install - so the test-jar can be packaged and installed so the module that requires it can access it. It works via mvn compile because no test is run, hence no test scope dependencies. Eric On 6/7/07, Mac Systems [EMAIL PROTECTED] wrote: Hello Maven Users, i'd like to how this can happen: I have an Multiprojekt: mvn compile work well, all is compiled! If i do mvn package i get an Error that some package and test-jar not found. Can someone explain a bit how this can happen ? greets, Jens - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Eric Redmond http://www.sonatype.com -- My friends tell me I have an intimacy problem. But they don't really know me. -- Garry Shandling Anyone who has the power to make you believe absurdities has the power to make you commit injustices. -- Voltaire
Re: how to get pom name into site documentation?
Hi Mick, From http://docs.codehaus.org/display/MAVENUSER/MavenPropertiesGuide: ${project.name} or ${pom.name} refers to the name of the project. Steve Mick Knutson wrote: I want to take: nameMIS File Intake/name and add it to site.xml: menu name=${name} But want to know what to use? ${name} is not correct - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Telling Maven to not append project hierarchy to parent's scm
So I've configured my scm in a company super POM as such: scm connectionscm:perforce:${perforce.host}:${perforce.port}:${perforce.pa th}/connection developerConnectionscm:perforce:${perforce.host}:${perforce.port}:${pe rforce.path} /developerConnection urlhttp://${perforce.host}:${perforce.web.port}/@md=damp;cd=//amp;cd f=${perforce.path}amp;[EMAIL PROTECTED]/url /scm I want child projects to only define the property 'perforce.path'. This would work the way I want but Maven appends project.name to 'project.scm.connection'. Any ideas for how I can tell maven or the scm plugin to use the connection url as-is since perforce.path will be overridden by each project? Thanks, Brian
Re: Use native CVS by default
Hi Daniel, The plugin docs reveal all; from http://maven.apache.org/scm/plugins/examples/scm-advance-features.html: If you want to change the default scm provider implementation, for exemple you want to use the native cvs instead of the pure java implementation, you must configure your plugin like that: [...] build [...] plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-scm-plugin/artifactId configuration providerImplementations cvscvs_native/cvs /providerImplementations /configuration /plugin [...] /plugins [...] /build [...] Steve Siegmann Daniel, NY wrote: How can I configure my POM so the SCM plugin will use the native CVS implementation by default? I'd rather not set this on the command line each time. Thanks, -- Daniel Siegmann FJA-US, Inc. 512 Seventh Ave., New York, NY 10018 (212) 840-2618 ext. 139 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Assembly problem: Error Not a v4.0.0 POM
Hi John, I'm also interested in this fix for the assembly plugin. Could you kindly commit it, or at least post it here so we can apply it locally? Thanks, George Chris Helck wrote: Was this ever fixed? I still see it in maven 2.0.6 -- am about to try with 2.0.7. I don't see any direct mention of the problem in the jira thingy. Thanks, Christopher Helck -Original Message- From: John Casey [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 08, 2007 3:53 PM To: Maven Users List Subject: Re: Assembly problem: Error Not a v4.0.0 POM Okay, I've found the problem; it's in the assembly plugin, where I'm not using the correct method to retrieve the transitive POM set (there is one that allows stub models when it detects a non-4.0.0 POM, and another that doesn't). I'm fixing it now, but it won't be released for a little while (there are several more things that need to go into that release). Thanks, and sorry for the inconvenience. -john On 5/8/07, Chris Helck [EMAIL PROTECTED] wrote: I'm using maven 2.0.4. Assembly plugin is 2.2-beta-1. I'll be happy to supply more data it needed. Stack trace is below. Thanks, Christopher Helck [INFO] -- -- [DEBUG] Trace org.apache.maven.lifecycle.LifecycleExecutionException: Failed to create assembly: Error retrieving POM of module-dependency: ebs:pps:jar:3.0.2; Reason: Not a v4.0.0 POM. at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defau lt LifecycleExecutor.java:559) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLif ec ycle(DefaultLifecycleExecutor.java:475) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defaul tL ifecycleExecutor.java:454) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHand le Failures(DefaultLifecycleExecutor.java:306) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegment s( DefaultLifecycleExecutor.java:273) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLif ec 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.j av a:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccess or 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) Caused by: org.apache.maven.plugin.MojoExecutionException: Failed to create assembly: Error retrieving POM of module-dependency: ebs:pps:jar:3.0.2; Reason: Not a v4.0.0 POM. at org.apache.maven.plugin.assembly.mojos.AbstractAssemblyMojo.execute(Ab st ractAssemblyMojo.java:302) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugin Ma nager.java:412) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defau lt LifecycleExecutor.java:534) ... 16 more Caused by: org.apache.maven.plugin.assembly.archive.ArchiveCreationException: Error retrieving POM of module-dependency: ebs:pps:jar:3.0.2; Reason: Not a v4.0.0 POM. at org.apache.maven.plugin.assembly.archive.task.AddDependencySetsTask.ad dD ependencySet(AddDependencySetsTask.java:114) at org.apache.maven.plugin.assembly.archive.task.AddDependencySetsTask.ex ec ute(AddDependencySetsTask.java:90) at org.apache.maven.plugin.assembly.archive.phase.DependencySetAssemblyPh as e.execute(DependencySetAssemblyPhase.java:54) at org.apache.maven.plugin.assembly.archive.DefaultAssemblyArchiver.creat eA rchive(DefaultAssemblyArchiver.java:98) at org.apache.maven.plugin.assembly.mojos.AbstractAssemblyMojo.execute(Ab st ractAssemblyMojo.java:278) ... 18 more Caused by: org.apache.maven.project.InvalidProjectModelException: Not a v4.0.0 POM. at org.apache.maven.project.DefaultMavenProjectBuilder.readModel(DefaultM av enProjectBuilder.java:1299) at org.apache.maven.project.DefaultMavenProjectBuilder.readModel(DefaultM av enProjectBuilder.java:1270) at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepos it ory(DefaultMavenProjectBuilder.java:471) at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromRepositor y( DefaultMavenProjectBuilder.java:225)
[m2] ejbModule artifact not a project dependency?
I have an ejb module: dependency groupIdorg.delta.esp-dap.utilities.services/groupId artifactIdlogging-mdb/artifactId version1.0.0.0/version typeejb/type /dependency That I am trying to include into an ear: plugin artifactIdmaven-ear-plugin/artifactId configuration version1.4/version archive manifest addClasspathtrue/addClasspath /manifest /archive modules ejbModule groupIdorg.delta.esp-dap.utilities.services /groupId artifactIdlogging-mdb/artifactId uri/uri /ejbModule /modules /configuration /plugin And I keep getting this: [ERROR] BUILD FAILURE [INFO] [INFO] Artifact[ejb:org.delta.esp-dap.utilities.services:logging-mdb] is not a dependency of the project. [INFO] [INFO] Trace org.apache.maven.BuildFailureException: Artifact[ejb: org.delta.esp-dap.utilities.services:logging-mdb] is not a dependency of the project. at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals( DefaultLifecycleExecutor.java:560) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle (DefaultLifecycleExecutor.java:480) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal( DefaultLifecycleExecutor.java:459) 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:330) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:123) at org.apache.maven.cli.MavenCli.main(MavenCli.java:272) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke( NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke( DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java :315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java :430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) Caused by: org.apache.maven.plugin.MojoFailureException: Artifact[ejb: org.delta.esp-dap.utilities.services:logging-mdb] is not a dependency of the project at org.apache.maven.plugin.ear.AbstractEarModule.resolveArtifact( AbstractEarModule.java:109) at org.apache.maven.plugin.ear.AbstractEarMojo.execute( AbstractEarMojo.java:171) at org.apache.maven.plugin.ear.GenerateApplicationXmlMojo.execute( GenerateApplicationXmlMojo.java:96) at org.apache.maven.plugin.DefaultPluginManager.executeMojo( DefaultPluginManager.java:420) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals( DefaultLifecycleExecutor.java:539) ... 16 more -- --- Thanks, Mick Knutson http://www.baselogic.com http://www.blincmagazine.com http://www.djmick.com http://www.myspace.com/mickknutson http://www.myspace.com/djmick_dot_com http://www.myspace.com/sexybeotches http://www.thumpradio.com ---
How to diagnose false unsatisfied dependency messages?
So my build just started complaining of the lack of commons-io-1.2.jar, which is obviously not something we internally build. Furthermore, it IS available on our internal repository from which the script succesfully downloads other dependencies. Even further furthermore, I just hacked at .maven/repository and plopped commons-io-1.2.jar and it's .md5 into the right place and the script still complains of an unsatisfied dependency. Nuked .maven/cache just for fun and it seemed to make no difference. We have no explicit dependencies on commons-io, it appears to be something that one of the reporting plugins wants to use. Did nothing to the repository or cache prior to the problem cropping up, but I did nuke the entire source directory, as we were suspicious that there was some cruft lying around (and surviving clean calls) breaking other things. Apparently some of that cruft was duct-taping things together. Thoughts on how to diagnose what's really going on? TIA, Brian
Re: New maven user: The plugin 'org.apache.maven.plugins:maven-archetype-plugin' does not exist or no valid version could be found
Hi Robert, Try cleaning out your repo by deleting all versions of the maven-archetype-plugin (including metadata and pom files). Then execute archetype:create again. Sometimes, its because the artifact or metadata got corrupted. HTH, Deng Robert Hadfield wrote: Hi, I have tried several times now to get maven, just to try it out. I've been pretty disappointed at not being able to get going after 5 or 6 attempts over the last few months. I have followed the steps in the 5 minute guide (and the quickstart - I seem to get the same problem whatever I try). Maven in 5 minutes: Installation - done: cpc1-reig2-0-0-cust1000:~/Documents/workspace robhadfield$ mvn --version Maven version: 2.0.7 Java version: 1.5.0_07 OS name: mac os x version: 10.4.10 arch: i386 I have a direct (ISP) connection to the internet so I assume I don't need any special 'network setup' to be done. Next step, try mvn archetype:create -DgroupId=com.mycompany.app -DartifactId=my-app cpc1-reig2-0-0-cust1000:~/Documents/workspace robhadfield$ mvn archetype:create -DgroupId=com.mycompany.app -DartifactId=my-app [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'archetype'. [INFO] [ERROR] BUILD ERROR [INFO] [INFO] The plugin 'org.apache.maven.plugins:maven-archetype-plugin' does not exist or no valid version could be found [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: 1 second [INFO] Finished at: Sun Jul 08 10:27:19 BST 2007 [INFO] Final Memory: 1M/2M [INFO] env output shows: PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/bin/maven-2.0.7/bin PWD=/Users/robhadfield/Documents/workspace JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Home M2_HOME=/usr/local/bin/maven-2.0.7 I've found similar reports of these symptoms but occurring at the build stage (next step). I have no idea what I've done wrong here - everything looks like it is set correctly. I can't think of anything that should be different for my system. Can anyone help? - 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: next javadoc plugin release?
Any update when the javadoc plugin will be released? Mark Mark Proctor wrote: The Javadoc plugin is currently broken for doclet usage. I fixed the bug and carlos applied my patch, http://jira.codehaus.org/browse/MJAVADOC-115 - vincent is taking time to work on xwiki so won't be doing any plugin maintenance. Any idea when this will be released, who can do this now with vincent awol? It's not an enhancement, but a pretty serious bug fix, so hoping that it will get prioritised. I've got a release coming up soon and really want to have doclets working in maven, without having to maintain my own INTERNAL fork of the plugin, which is a real pain for open source projects. Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]