Different behavior of Maven 2 and 3 on Flat Projekt Layout
. build is platform dependent! [INFO] skip non existing resourceDirectory D:\Eclipse_Workspaces\maven-3.5.2\xx.yy.app.module2\src\test\resources [INFO] [compiler:testCompile {execution: default-testCompile}] [INFO] No sources to compile [INFO] [surefire:test {execution: default-test}] [INFO] No tests to run. [INFO] [jar:jar {execution: default-jar}] [INFO] Building jar: D:\Eclipse_Workspaces\maven-3.5.2\xx.yy.app.module2\target\xx.yy.app.module2-1.0.0-SNAPSHOT.jar [INFO] [INFO] [INFO] [INFO] Reactor Summary: [INFO] [INFO] Application Parent SUCCESS [3.453s] [INFO] Module 1 .. SUCCESS [1.953s] [INFO] Module 2 .. SUCCESS [0.125s] [INFO] [INFO] [INFO] BUILD SUCCESSFUL [INFO] [INFO] Total time: 5 seconds [INFO] Finished at: Tue Apr 27 09:21:48 CEST 2010 [INFO] Final Memory: 14M/34M [INFO] --- cut --- The same behavoir i have running it on plain Maven. Does maven 3 don't allow flat multi project layout? how can i resolve this Problem? Thanks Robert -- Robert Einsle rob...@einsle.de http://www.einsle.de - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Maven profiles change Files
Hy List, i use maven2 profiles and resource-filtering for my Deployment to set the right Variables in my config-Files. But, can i change complete Files of my target war? Especially i've /META-INF/context.xml here i will have an Test / Developement file an an Productive File. Can i change the complete File? Thanks Robert - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: JSP Precompile and WebSphere
Hy Jerry, this is my only war-Project in Workspace. I'ts the only maven-Project in Workspace. Robert Jerry Thome schrieb: > We have a simple web app. We test locally using Tomcat and then deploy > through various lifecycles which run WebSphere 6.1. Our JSP precompile > process doesn't do anything IBM / WAS specific. Some of our JSPs are very > simple, and some are used by Spring. > > We followed the instructions exactly as outlined here: > http://mojo.codehaus.org/jspc-maven-plugin/usage.html Well, we are using > JDK 1.5 so we specify that via properties. > > > org.codehaus.mojo > jspc-maven-plugin > > > jspc > > compile > > > ${compileSource} > ${compileSource} > ${compileSource} > > > > > > org.apache.maven.plugins > maven-war-plugin > > ${basedir}/target/jspweb.xml > > > > > Then, depending on the J2EE spec you're using, you need to include the > right dependencies. Make sure to include the jsp-runtime jar too. > > >javax.servlet >jsp-api >2.0 >provided > > > javax.servlet > jstl > 1.1.2 > > > taglibs > standard > 1.1.2 > > > > tomcat > jasper-runtime > 5.5.15 > > > We didn't change the WAS deployment descripters either. Prior to using > this precompile feature, we let WebSphere auto-compile. > > I won't guarantee this will work for you, but this is all that we did. > > Good luck. > > > > > > asokan02 > > 04/07/2009 10:06 AM > Please respond to > "Maven Users List" > > > > To > users@maven.apache.org > cc > > Subject > RE: JSP Precompile and WebSphere > > > > > > > > Hello Jerry > > Is it possible to precompile JSPs for WebSphere using the jspc-maven > plugin without a WebSphere installation on the machine that the comipation > is done on? We do not have WAS installed on the our continuum servers and > hence have been stuck compiling JSPs at deployment time. IBM's response > to our question was that the only option is to run the jspBatch compiler > that comes with WAS6.1. Could you please post the details of how you got > the jspc-maven plugin to precompile JSPs for WebSphere? > > Thanks > > > > BTW, thanks for the info Martin. > > To follow-up, we had to add a couple dependencies to the WAR in order for > the precompiled JSPs to work under WebSphere. That's it. The JSP > servlets generated from WebSphere were a bit different than what's > generated by our Maven2 project. The source extends different classes. > Since our classes now extend org.apache.jasper.runtime.HttpJspBase and not > > IBM HttpJspBase classes, we had to add the jasper-runtime dependency... > and maybe 1 or 2 others. > > So, not a big deal. It makes sense, I just had to think through it. > > Thanks. > > > > > > - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Packaging of "provided" Dependencie in war
Hy Kyle, i tried it several Times. But i will try again *gg* and ... mail-1.4.jar, activation-1.1.jar and servlet-api-2.2.jar are in WEB-INF/lib-directory ob war-File. I tried this time run Mavon from outside of eclipse on command-line. Robert Kyle Bober schrieb: > Restarting you development environment will not remove the maven target > directory and artifacts. Try running the following Maven command 'mvn clean > package' and check the contents of the > target//WEB-INF/lib > > -Kyle > > On Wed, Apr 8, 2009 at 9:27 AM, Robert Einsle wrote: > > >> Hy, >> >> i think i run it several times, incl restart of my Developementenvironment. >> >> Robert >> >> Kyle Bober schrieb: >> >>> That should work the way you have it configured. Did you run the clean >>> goal after you changed the dependency scope to provided. This will >>> make sure that a previous build that may have contained the >>> dependencies is completely removed. >>> >>> -Kyle >>> >>> On Wed, Apr 8, 2009 at 5:22 AM, Robert Einsle >> <mailto:rob...@einsle.de>> wrote: >>> >>> Hy List, >>> >>> i've configured dependencies (libraries) als Scope "provided", and >>> would aspect they are not packed to the destination war-File. >>> >>> --- cut --- >>> >>> javax.servlet >>> servlet-api >>> 2.2 >>> provided >>> >>> >>> javax.mail >>> mail >>> 1.4 >>> provided >>> >>> >>> javax.activation >>> activation >>> 1.1 >>> provided >>> >>> --- cut --- >>> >>> but these 3 Libraries are in my destination war-File. >>> >>> >>> >>> How can i configure this Dependencies in right way that they are >>> provided for compile, but are not in my destination war-File?? >>> >>> Thanks a lot. >>> >>> Robert >>> >>> >>> >>> >>> -- >>> -Act as if it were impossible to fail >>> > > > >
Re: Packaging of "provided" Dependencie in war
Hy, i think i run it several times, incl restart of my Developementenvironment. Robert Kyle Bober schrieb: > That should work the way you have it configured. Did you run the clean > goal after you changed the dependency scope to provided. This will > make sure that a previous build that may have contained the > dependencies is completely removed. > > -Kyle > > On Wed, Apr 8, 2009 at 5:22 AM, Robert Einsle <mailto:rob...@einsle.de>> wrote: > > Hy List, > > i've configured dependencies (libraries) als Scope "provided", and > would aspect they are not packed to the destination war-File. > > --- cut --- > > javax.servlet > servlet-api > 2.2 > provided > > > javax.mail > mail > 1.4 > provided > > > javax.activation > activation > 1.1 > provided > > --- cut --- > > but these 3 Libraries are in my destination war-File. > > > > How can i configure this Dependencies in right way that they are > provided for compile, but are not in my destination war-File?? > > Thanks a lot. > > Robert > > > > > -- > -Act as if it were impossible to fail
Packaging of "provided" Dependencie in war
Hy List, i've configured dependencies (libraries) als Scope "provided", and would aspect they are not packed to the destination war-File. --- cut --- javax.servlet servlet-api 2.2 provided javax.mail mail 1.4 provided javax.activation activation 1.1 provided --- cut --- but these 3 Libraries are in my destination war-File. How can i configure this Dependencies in right way that they are provided for compile, but are not in my destination war-File?? Thanks a lot. Robert
Dependencie of war-developemant
Hy List, i'm developing an war-Application, sending Mail with commons-email. So i add commons-email as dependencie of my pom.xml --- cut --- org.apache.commons commons-email 1.1 --- cut --- but commons-email dependy on mail.jar, and activation.jar. So ist adds mail.jar and activation.jar on my Projectdependency. My Developemen-Environment is Eclipse with WTP. Here when i start my Application-Server, i recieved the Message: --- cut --- 2009-04-06 11:13:53,296 ERROR [main] ContextLoader M[initWebApplicationContext] - Context initialization failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name '/index.html' defined in ServletContext resource [/WEB-INF/spring-servlet.xml]: Initialization of bean failed; nested exception is org.springframework.beans.TypeMismatchException: Failed to convert property value of type [javax.mail.Session] to required type [javax.mail.Session] for property 'mailSession'; nested exception is java.lang.IllegalArgumentException: Cannot convert value of type [javax.mail.Session] to required type [javax.mail.Session] for property 'mailSession': no matching editors or conversion strategy found at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:480) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409) at java.security.AccessController.doPrivileged(Native Method) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:380) at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255) at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199) at org.springframework.web.context.ContextLoaderServlet.init(ContextLoaderServlet.java:81) at javax.servlet.GenericServlet.init(GenericServlet.java:212) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1172) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:992) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4058) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4371) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) at org.apache.catalina.core.StandardHost.start(StandardHost.java:719) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) at org.apache.catalina.core.StandardService.start(StandardService.java:516) at org.apache.catalina.core.StandardServer.start(StandardServer.java:710) at org.apache.catalina.startup.Catalina.start(Catalina.java:578) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413) Caused by: org.springframework.beans.TypeMismatchException: Failed to convert property value of type [javax.mail.Session] to required type [javax.mail.Session] for property 'mailSession'; nested exception is java.lang.IllegalArgumentException: Cannot convert value of type [javax.mail.Session] to required type [javax.mail.Session] for property 'mailSession': no matching editors or conversion strategy found at org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:391) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.convertForProperty(AbstractAutowireCapableBeanFactory.java:1289) at org.springframework.
Build-Environment
Hy List, i will change my Build-Environment of Elipse-Plugins to Maven and here i hav a few Questions how to set up this Environment. We have 3 types of Libraries / Modules / Plugins: - third-Party Libraries als Plugins - Base-Classes for Developement of diferent Modules - The Modules / Plugins for our Projects. How can i handle this third-Party-Plugins? Until now we handle it with Eclipse "Plugin from existent Jar-File" Function. Can i handle it with the Maven Build-Life.Cycle? We need it to repack because of the Plugin- Header. We need the Base-Classes for diferent types of Projects, Plugin- Projects, Web-Projects and so on. Until now we develope this Classes als Plugins, distribute it via an Eclipse-Update-Site. For our Web- Projects (War) we copy this Libraries to our War-Porject (WEB-INF/lib) Folders. I think we can do it in Future over Maven Repositories as addition to our Eclipse-Update-Site. Is it an good Idea? Are there another Posibilities? For the Plugins, i think we should maven tycho. Is it already Stable? Until now i dont get it run. I set it up like http://docs.codehaus.org/display/M2ECLIPSE/Tycho+project+overview , but it wil not work. Has anybody it run? Thanks a lot. Robert - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org