RE: Problem using Maven2 eclipse plugin
Nicolas: I found this link on the MyEclipse User List ([EMAIL PROTECTED]) and it fixed that problem for me. http://jira.codehaus.org/browse/MNGECLIPSE-124 Tom. -Original Message- From: Nicolas Lanquetin [mailto:[EMAIL PROTECTED] Sent: Monday, October 23, 2006 9:26 AM To: users@maven.apache.org Subject: Problem using Maven2 eclipse plugin Hey there, I've tried to use the maven2 plugin 0.0.9 in eclipse 3.2.1 and 3.3M2 via the update site. After succesful installation and restart of eclipse I go to Window > Preferences > Maven2 to check if Maven is installed well and I get : "An error has occured when creating this preference page." Furthermore I cannot enable my Project for Maven2. I've tried with a very fresh installation of Eclipse 3.2.1 and 3.3M2 Any idea? Cheers, Nicolas - 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]
Searching Maven List
Hi: Can anyone recommend a tool for searching the Maven user list archives? I usually use http://marc.theaimsgroup.com/?w=2 for Apache projects but the Maven User List is not included there. Thanks in advance. Tom. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Removing jsp-api-2.0.jar from delpoyed webapp
Thanks again Wayne, mvn -X helped me find the problem. I appreciate the help and also that of others on this list who have helped me get familiar with maven. Thanks you. Tom. -Original Message- From: Wayne Fay [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 03, 2006 11:08 AM To: Maven Users List Subject: Re: Removing jsp-api-2.0.jar from delpoyed webapp Try mvn -X and use the text dependency tree to identify which artifacts are pulling in that dependency. It might not be coming from where you think it is. I'll take a wild guess here and say you've got a J2EE multi-module project and while the WAR module is properly excluding the jsp-api, the EAR module is not, and so you're getting that jar bundled in. You will need to specify the exclude in both poms. Wayne On 10/3/06, Tom Hurley <[EMAIL PROTECTED]> wrote: > Thanks Wayne, > > I've tried both of those options but the jar is still being included. Its > making me say bad words... > > Any other suggestions? > > Thanks. > > Tom. > > > > Tom Hurley, Senior Lead Developer > Insightful Corp, 206-283-8802 x369 > > -Original Message- > From: Wayne Fay [mailto:[EMAIL PROTECTED] > Sent: Tuesday, October 03, 2006 10:48 AM > To: Maven Users List > Subject: Re: Removing jsp-api-2.0.jar from delpoyed webapp > > You have 2 options: > 1. Add an excludes node to the dependency node which is bringing in > this unwanted artifact. > 2. Specify the jsp-api-2.0 as a dependency with scope "provided" in your pom. > > Wayne > > On 10/3/06, Tom Hurley <[EMAIL PROTECTED]> wrote: > > Hi, > > > > I am having a problem with the Maven's transitive dependency mechanism. > It's > > a fantastic feature but I would like to be able to prevent it including a > > particular jar. > > > > I am creating a web app and deploying it to Tomcat. In my case one of the > 3rd > > party libraries results in the inclusion of jsp-api-2.0.jar in my > WEB-INF\lib > > folder. This is a shared library in Tomcat's common\lib folder and its > > inclusion with my application causes known problems when running my > > application. If I delete the jar everything works okay. > > > > Is there any way to either stop the dependency mechanism including this jar > > or can I flag it to Maven to exclude it? Someone else must have come up > > against this problem. > > > > Thanks in advance for any help or suggestions. > > > > Tom. > > > > > > - > > 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: Removing jsp-api-2.0.jar from delpoyed webapp
Thanks Wayne, I've tried both of those options but the jar is still being included. Its making me say bad words... Any other suggestions? Thanks. Tom. Tom Hurley, Senior Lead Developer Insightful Corp, 206-283-8802 x369 -Original Message- From: Wayne Fay [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 03, 2006 10:48 AM To: Maven Users List Subject: Re: Removing jsp-api-2.0.jar from delpoyed webapp You have 2 options: 1. Add an excludes node to the dependency node which is bringing in this unwanted artifact. 2. Specify the jsp-api-2.0 as a dependency with scope "provided" in your pom. Wayne On 10/3/06, Tom Hurley <[EMAIL PROTECTED]> wrote: > Hi, > > I am having a problem with the Maven's transitive dependency mechanism. It's > a fantastic feature but I would like to be able to prevent it including a > particular jar. > > I am creating a web app and deploying it to Tomcat. In my case one of the 3rd > party libraries results in the inclusion of jsp-api-2.0.jar in my WEB-INF\lib > folder. This is a shared library in Tomcat's common\lib folder and its > inclusion with my application causes known problems when running my > application. If I delete the jar everything works okay. > > Is there any way to either stop the dependency mechanism including this jar > or can I flag it to Maven to exclude it? Someone else must have come up > against this problem. > > Thanks in advance for any help or suggestions. > > Tom. > > > - > 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]
Removing jsp-api-2.0.jar from delpoyed webapp
Hi, I am having a problem with the Maven's transitive dependency mechanism. It's a fantastic feature but I would like to be able to prevent it including a particular jar. I am creating a web app and deploying it to Tomcat. In my case one of the 3rd party libraries results in the inclusion of jsp-api-2.0.jar in my WEB-INF\lib folder. This is a shared library in Tomcat's common\lib folder and its inclusion with my application causes known problems when running my application. If I delete the jar everything works okay. Is there any way to either stop the dependency mechanism including this jar or can I flag it to Maven to exclude it? Someone else must have come up against this problem. Thanks in advance for any help or suggestions. Tom. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Excluding depencencies inherited from parent
Thanks Neeraj, I'm not sure I understand what you are telling me though. I was hoping there might be some sort of ... that could permanently be part of the project's pom file. I am relative new to Maven so my understanding migh not be correct. Tom. -Original Message- From: Neeraj Bisht [mailto:[EMAIL PROTECTED] Sent: Saturday, September 30, 2006 4:44 AM To: Maven Users List Subject: Re: Excluding depencencies inherited from parent yes it is possible by giving the scope of dependeny as a runtime On 9/30/06, Tom Hurley <[EMAIL PROTECTED]> wrote: > > Hi: > > Is it possible to exclude dependencies inherited from a parent pom in a > child's pom. > > I have a multi level project where each project inherits dependencies from > its parent. However in one of the children, one of its dependencies is > causing some problems with one of the inherited dependencies. Is it > possible > to exclude this? > > Any help would be greatly appreciated. > > Thanks, > > Tom. > > > - > 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]
Excluding depencencies inherited from parent
Hi: Is it possible to exclude dependencies inherited from a parent pom in a child's pom. I have a multi level project where each project inherits dependencies from its parent. However in one of the children, one of its dependencies is causing some problems with one of the inherited dependencies. Is it possible to exclude this? Any help would be greatly appreciated. Thanks, Tom. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
All files not being copied when deploying
Hi, I have a web application and when I deploy, only some of my files are being copied from my webapp directory to the target directory. I get the following error which makes sense as the files are not being copied. [INFO] [war:war] [INFO] Exploding webapp... [INFO] Copy webapp webResources to D:\maven\rainier\IDRS\client\ManagementPortal\target\ManagementPortal [INFO] Assembling webapp ManagementPortal in D:\maven\rainier\IDRS\client\ManagementPortal\target\ManagementPortal [INFO] Generating war D:\maven\rainier\IDRS\client\ManagementPortal\target\ManagementPortal.war [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Error assembling WAR: Deployment descriptor: D:\maven\rainier\IDRS\client\ManagementPortal\target\ManagementPortal\ -INF\web.xml does not exist. Why are some and not all of the files being copied? I am new to maven and would appreciate any help in understanding why this is happening. Thanks in advance. Tom. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [m2] Creating site docs on multi-module project
Ian: >OK, I found the index and summary components of the info-report plugin. So >that's ok. >I guess the main documentation is out of date. Can you share where you found this information? I've just arrived at this problem and would also just like to access the default generated site for now. Thanks, Tom. -Original Message- From: Orford, Ian [mailto:[EMAIL PROTECTED] Sent: 15 September 2006 14:51 To: 'Maven Users List' Subject: RE: [m2] Creating site docs on multi-module project That's great, thanks... 1. I like the idea of configuring maven-info-reports-plugin. At the moment, I've just added the bits suggested in http://maven.apache.org/plugins/maven-project-info-reports-plugin/howto.html . It generates all 7 bits. I cant see any documentation about how to generate the index.html though. 2. Great. Next question is about SCP. Are there any useful pointers on how to get this to work? All I get is some strange error: [INFO] [site:deploy] Session error: java.lang.ArrayIndexOutOfBoundsException: 2 To be honest, I'm not surprised it doesn't work - I've not specified a username anywhere. But the exception doesn't help me much. Thanks again, Ian -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Geoffrey De Smet Sent: 15 September 2006 13:47 To: users@maven.apache.org Subject: Re: [m2] Creating site docs on multi-module project Orford, Ian wrote, On 2006-09-15 2:16 PM: > Hi all, > > This may well be a newbie question. > > I've got a parent directory/pom which has sub-modules. I haven't > created a src/site/site.xml file - I'm hoping the defaults will be > good enough for a first attempt. > > Question 1 - I don't get an index.html. In the sub-modules, the > generated site works well. I can swap from one page to another, > however there is no index.html. Is that normal? 2 choices - Create a index.apt (or xdoc) - Or configure the maven-info-reports-plugin to generate an index.html > > Question 2 - when I build the site from the top level, it > automatically includes links for the sub-modules. This is exactly what > I want. However the linkls don't work. The links point to > /target/site//index.html which doesn't exist. The > module's site seems to have been generated in /target/site > (and as per Q1 doesn't have an index.html file). What's going wrong? That's normal. Once you deploy the entire site the links will work. > > Thanks, Ian > -- > > > -- > -- The information contained herein is confidential and is > intended solely for the addressee. Access by any other party is > unauthorised without the express written permission of the sender. If > you are not the intended recipient, please contact the sender either > via the company switchboard on +44 (0)20 7623 8000, or via e-mail > return. If you have received this e-mail in error or wish to read our > e-mail disclaimer statement and monitoring policy, please refer to > http://www.dresdnerkleinwort.com/disc/email/ or contact the sender. > -- > -- > > -- With kind regards, Geoffrey De Smet - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- The information contained herein is confidential and is intended solely for the addressee. Access by any other party is unauthorised without the express written permission of the sender. If you are not the intended recipient, please contact the sender either via the company switchboard on +44 (0)20 7623 8000, or via e-mail return. If you have received this e-mail in error or wish to read our e-mail disclaimer statement and monitoring policy, please refer to http://www.dresdnerkleinwort.com/disc/email/ or contact the sender. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- - --- The information contained herein is confidential and is intended solely for the addressee. Access by any other party is unauthorised without the express written permission of the sender. If you are not the intended recipient, please contact the sender either via the company switchboard on +44 (0)20 7623 8000, or via e-mail return. If you have received this e-mail in error or wish to read our e-mail disclaimer statement and monitoring policy, please refer to http://www.dresdnerkleinwort.com/disc/email/ or contact the sender. - ---
RE: [m2] Creating site docs on multi-module project
>OK, I found the index and summary components of the info-report plugin. So >that's ok. >I guess the main documentation is out of date. Where did you find this? Tom. -Original Message- From: Orford, Ian [mailto:[EMAIL PROTECTED] Sent: 15 September 2006 14:51 To: 'Maven Users List' Subject: RE: [m2] Creating site docs on multi-module project That's great, thanks... 1. I like the idea of configuring maven-info-reports-plugin. At the moment, I've just added the bits suggested in http://maven.apache.org/plugins/maven-project-info-reports-plugin/howto.html . It generates all 7 bits. I cant see any documentation about how to generate the index.html though. 2. Great. Next question is about SCP. Are there any useful pointers on how to get this to work? All I get is some strange error: [INFO] [site:deploy] Session error: java.lang.ArrayIndexOutOfBoundsException: 2 To be honest, I'm not surprised it doesn't work - I've not specified a username anywhere. But the exception doesn't help me much. Thanks again, Ian -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Geoffrey De Smet Sent: 15 September 2006 13:47 To: users@maven.apache.org Subject: Re: [m2] Creating site docs on multi-module project Orford, Ian wrote, On 2006-09-15 2:16 PM: > Hi all, > > This may well be a newbie question. > > I've got a parent directory/pom which has sub-modules. I haven't > created a src/site/site.xml file - I'm hoping the defaults will be > good enough for a first attempt. > > Question 1 - I don't get an index.html. In the sub-modules, the > generated site works well. I can swap from one page to another, > however there is no index.html. Is that normal? 2 choices - Create a index.apt (or xdoc) - Or configure the maven-info-reports-plugin to generate an index.html > > Question 2 - when I build the site from the top level, it > automatically includes links for the sub-modules. This is exactly what > I want. However the linkls don't work. The links point to > /target/site//index.html which doesn't exist. The > module's site seems to have been generated in /target/site > (and as per Q1 doesn't have an index.html file). What's going wrong? That's normal. Once you deploy the entire site the links will work. > > Thanks, Ian > -- > > > -- > -- The information contained herein is confidential and is > intended solely for the addressee. Access by any other party is > unauthorised without the express written permission of the sender. If > you are not the intended recipient, please contact the sender either > via the company switchboard on +44 (0)20 7623 8000, or via e-mail > return. If you have received this e-mail in error or wish to read our > e-mail disclaimer statement and monitoring policy, please refer to > http://www.dresdnerkleinwort.com/disc/email/ or contact the sender. > -- > -- > > -- With kind regards, Geoffrey De Smet - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- The information contained herein is confidential and is intended solely for the addressee. Access by any other party is unauthorised without the express written permission of the sender. If you are not the intended recipient, please contact the sender either via the company switchboard on +44 (0)20 7623 8000, or via e-mail return. If you have received this e-mail in error or wish to read our e-mail disclaimer statement and monitoring policy, please refer to http://www.dresdnerkleinwort.com/disc/email/ or contact the sender. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- - --- The information contained herein is confidential and is intended solely for the addressee. Access by any other party is unauthorised without the express written permission of the sender. If you are not the intended recipient, please contact the sender either via the company switchboard on +44 (0)20 7623 8000, or via e-mail return. If you have received this e-mail in error or wish to read our e-mail disclaimer statement and monitoring policy, please refer to http://www.dresdnerkleinwort.com/disc/email/ or contact the sender. - --- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Running mvn at any level of a multi-level project while still using inheritance
Hi: I am new to Maven so this issue is probably due to a misunderstanding on my part so any help would be greatly appreciated. I have a multi-level project structure (4 levels) i.e. applications--> common --> server --> project 1 ... --> project n --> client --> project 1 ... --> project m Each project (lowest level) produces a jar file so the packaging in each of their pom files is set to jar. There is a pom file at each level whose packaging is set to pom so that I can inherit settings and plugins at each level from the level above. Everything works fine when I am at the project (i.e. lowest) level in my tree. If however, I am at, say the server level (one level up from the project level) and I want to do a 'mvn package' to package all of the projects underneath I get the following error message: GroupId: applications ArtifactId: common Version: 1.0-SNAPSHOT Reason: Unable to download the artifact from any repository applications:common:pom:1.0-SNAPSHOT from the specified remote repositories: central (http://repo1.maven.org/maven2) [INFO] [INFO] Trace org.apache.maven.reactor.MavenExecutionException: Cannot find parent: applications:common for project: applications.common:server:pom:1.0-SNAPSHOT at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:365) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:278) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115) at org.apache.maven.cli.MavenCli.main(MavenCli.java:256) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl. java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) This kind of makes sense, since the packaging for the pom file at this level is not going to create anything to be placed in the repository, or does it? How can I achieve what I am trying to do? i.e while at any level be able to run mvn on all levels underneath when the pom at the level I'm working at has a parent? In my first iteration I only had 2 levels and I was able to run mvn at the top level for the level underneath. Thanks in advance for any help of references to examples of what I am trying to do. Tom. Tom Hurley Senior Lead Developer Insighful Corp 1700 Westlake Ave N., #500 Seattle, WA 98109 (Work): 206-283-8802 x369 (Fax): 206-283-8691 (Cell): 206-661-6930