<warFile>target/ROOT</warFile> or something like that should help but the
folder will be copied.

server.xml should be in src/main/tomee/conf by default.

just added a parameter (on trunk) skipCurrentProject to be able to avoid
the copy of current artifact even when the packaging type is not pom.

so what you should do (once you'll get the new version):
1) create a src/main/tomee/conf/server.xml (take the one you have in
target/apache-tomee/conf
2) add in this server.xml the context pointing to target/ROOT (use maven
filtering and ${project.basedir} to get the absolute path to avoid headache
;))
3) mvn tomee:run :)

Just ran the deployment of the snapshot, should be available in some
minutes (usually it takes about 10mn)

If you can give some feedback on it uit sill be wonderful.

- Romain


2012/6/8 zeeman <[email protected]>

> Did you try providing an exploded war to warFile parameter of mvn plugin?
>
> I did not use warFile param, I was using ROOT as final name. So I would use
> warFile and the name of my project? ROOT in this case since it's folder's
> name?
>
> I do have a Maven POM project. Where should I locate the server.xml to
> avoid
> copying exploded war to Tomee?
>
> For eclipse, Tomcat adapter and Maven, see this
>
> http://stackoverflow.com/questions/6356421/maven-tomcat-projects-in-eclipse-indigo-3-7
>
>
>
>
> Romain Manni-Bucau wrote
> >
> > Did you try providing an exploded war to warFile parameter of mvn plugin?
> >
> > Using ROOT as final name can help too.
> >
> > And to avoid copy create a pom project and provide a custom server.xml
> > with
> > your context, it should do the trick.
> >
> > About eclipse you got mvn issues i guess more than wtp ones, maybe m2e
> > extra was not installed?
> >
> > - Romain
> > Le 8 juin 2012 07:33, "zeeman" &lt;hamzah0@&gt; a écrit :
> >
> >> Hi David,
> >>
> >> I simply followed different guides, ones from Tomee docs and
> >> stackoverflow.
> >> These guides tend to leave out some details and that's where I got
> stuck.
> >> For example, by default Eclipse Tomcat adapter works with a WebContent
> >> folder, but Maven expects web pages to be at src/main/webapp. It's a
> long
> >> story to find the exact cause and then do it in Eclipse. Also, my
> project
> >> runs in root context (/), but Tomcat Eclipse adapter does not seem to
> >> work
> >> well with this.
> >>
> >> Also, Tomcat Eclipse adapter does not copy web-inf/lib. It has to be
> >> configured manually.
> >>
> >> The part that took me the longest was to figure out how to get Hibernate
> >> to
> >> work with Tomee. With trial and error I got it to work. It'll be a good
> >> idea
> >> to release builds with Hibernate profile or have a guide on using that.
> >> Tomee docs is outdated (Hibernate 3.6 is old) and confuses more than it
> >> helps in this regard :)
> >>
> >> However, one part that made my work a little easier is the Tomee Maven
> >> plugin. One great addition would be to support exploded wars so there is
> >> no
> >> need to create a war.
> >>
> >> I have posted my migration issues to Tomee here
> >>
> >>
> http://openejb.979440.n4.nabble.com/JSF2-project-migrated-from-Jboss-AS7-to-Tomee-not-working-td4655453.html
> >>
> >> The quick and dirty fix was to remove some of the navigation rules that
> >> used
> >> to work on AS7. I got few things to work. But the app remains unusable
> >> for
> >> other issues mentioned in above link.
> >>
> >> I'm willing to work with you and Myfaces community to get issues
> >> resolved.
> >> I
> >> love Apache products and don't mind giving back to the community. There
> >> is
> >> a
> >> big project that needs to be released in a month. So far testing has
> been
> >> on
> >> AS7 and it's fine. However, management is a fan of open source and is
> >> open
> >> to release on Tomee.
> >>
> >> The backend (EJBs, JPA, CDI, etc...) works like a charm. So only UI
> >> issues
> >> remaining. I'm the architect on the project and if I show a working
> >> project
> >> most likely management will bless Tomee and you guys can put the company
> >> in
> >> "who uses Tomee" section. We can use my thread link above for details so
> >> we
> >> don't hijack this thread. I appreciate all the help.
> >>
> >> Zee
> >>
> >> --
> >> View this message in context:
> >>
> http://openejb.979440.n4.nabble.com/Feedback-on-TomEE-1-0-0-tp4655483p4655502.html
> >> Sent from the OpenEJB User mailing list archive at Nabble.com.
> >>
> >
>
> --
> View this message in context:
> http://openejb.979440.n4.nabble.com/Feedback-on-TomEE-1-0-0-tp4655483p4655513.html
> Sent from the OpenEJB User mailing list archive at Nabble.com.
>

Reply via email to