From users-return-264689-archive-asf-public=cust-asf.ponee.io@tomcat.apache.org Wed May 9 18:17:59 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id BDEB6180649 for ; Wed, 9 May 2018 18:17:58 +0200 (CEST) Received: (qmail 66766 invoked by uid 500); 9 May 2018 16:17:56 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 66755 invoked by uid 99); 9 May 2018 16:17:56 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 May 2018 16:17:56 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 64593C0334 for ; Wed, 9 May 2018 16:17:56 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.13 X-Spam-Level: ** X-Spam-Status: No, score=2.13 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id qTsnoO6-jHp5 for ; Wed, 9 May 2018 16:17:54 +0000 (UTC) Received: from mail-ua0-f169.google.com (mail-ua0-f169.google.com [209.85.217.169]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id E26145F5B1 for ; Wed, 9 May 2018 16:17:53 +0000 (UTC) Received: by mail-ua0-f169.google.com with SMTP id i2so23389881uah.0 for ; Wed, 09 May 2018 09:17:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=8aggI4FneP+DAFbR5R8VZiTulrL7/T9xeZ5eXUrXTGs=; b=uc2Wkpeh3S4bhBM8k5L5CZ0M/+mN0QKhOKqlLkMN+dbGN3ByWjFIbevbbuezqpA7Lt Hcy+z4agH168464Y3TENs/aPDCmMszDsjkfyemZEgQH7WfAx/gsx6IYVcLN7n8+J7jGA qtiAFdE3f6r/8L3qnurBukx5liLkOzCzA+iks3MdgVdouMYdOVZfg3R8VsaXiOj53tjO X6yJ4yl2b1T1nTeUMIkAZktiNN3jfZfmUozGPiAmv7affPGYHmCVHm335LlAXQN2+6FS Xfdamsn6W6OBL9oSi4pWnv79hv5pXOW1Wl6jwkO1lkC6vImFc3OcNyaEM/B7V4O5JonF Y/ZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=8aggI4FneP+DAFbR5R8VZiTulrL7/T9xeZ5eXUrXTGs=; b=Xw6UQscYHmURBsTdrStiBaJ3JVVpodJWzBlD2L84mrQ80ExFUd4s3yNhF5+1KqaMP1 WmZB5oQiOILIyLNEVoSucOhIyhp2CWxzj2eEO9KNV14opIrefrdMp0oVVUNsk+It+o2l 57AbDbF5mWyn5vll+L07OjyI6cjIe5bck+dmP/XOXZzgpPpWOpg2ARrSKxrprWclgF/Q U8Hm7MzH/rDXOZ2MNBYuf7lW+7t33a9Y9pQmpi/noue3eZZiD55W2r3yBJNPDh/RPYSd HUvrbndYCG9CG0CU06WDkRkSUsPQysf9yZj+nPncRAR4nXnz7wO8QbWehUsQdy2uAK77 ZALA== X-Gm-Message-State: ALQs6tAK+8VQqZ07buPU0f/1o8MEeHIl7j674ami+hj+k7HrJobZroV8 3a7m7OJC4pbrm6NLHcYa4/G2YjWuKV0wqtrgGFH28A== X-Google-Smtp-Source: AB8JxZpOB8XvtwBI/GwcnGDL+Jrw5vJKOS+8HlqXdhkpVRsE2eudBWV/tok1WLy1Uv169zvDLDJO3fMHp3+kozGAx+I= X-Received: by 10.176.4.167 with SMTP id 36mr35586124uaw.9.1525882666622; Wed, 09 May 2018 09:17:46 -0700 (PDT) MIME-Version: 1.0 Received: by 10.103.39.196 with HTTP; Wed, 9 May 2018 09:17:46 -0700 (PDT) In-Reply-To: References: From: =?UTF-8?Q?Luis_Rodr=C3=ADguez_Fern=C3=A1ndez?= Date: Wed, 9 May 2018 18:17:46 +0200 Message-ID: Subject: Re: Which maven provided dependencies to target Tomcat ? To: Tomcat Users List Content-Type: multipart/alternative; boundary="94eb2c12590e5025aa056bc83e09" --94eb2c12590e5025aa056bc83e09 Content-Type: text/plain; charset="UTF-8" Hello Xavier, Perhaps you can have a look here: https://wiki.apache.org/tomcat/Specifications. Me, I have: javax javaee-web-api 7.0 provided Hope it helps, Luis 2018-05-09 16:35 GMT+02:00 Xavier Dupont : > Hi guys. > > If I want to target the Java EE full profile, I use go here > https://mvnrepository.com/artifact/javax/javaee-api/8.0 and get the > following XML snippet. > > > javax > javaee-api > 8.0 > provided > > > If I want to target the Java EE web profile, I use this url instead > https://mvnrepository.com/artifact/javax/javaee-web-api/8.0 > > And if I only need a subset of JSRs included in the javaee web profile, > they are all nicely included in the list of compile dependencies, this is > all very nice. > > Since tomcat only supports a subset of the web profile, which dependencies > should be added in maven ? > > Here's the full list for the Java EE 7 Web profile. > > javax.annotation:javax.annotation-api:1.2 > javax.ejb:javax.ejb-api:3.2 > javax.el:javax.el-api:3.0.0 > javax.enterprise:cdi-api:1.1 > javax.faces:javax.faces-api:2.2 > javax.inject:javax.inject:1 > javax.interceptor:javax.interceptor-api:1.2 > javax.json:javax.json-api:1.0 > javax.servlet:javax.servlet-api:3.1.0 > javax.servlet.jsp:javax.servlet.jsp-api:2.3.1 > javax.servlet.jsp.jstl:javax.servlet.jsp.jstl-api:1.2.1 > javax.transaction:javax.transaction-api:1.2 > javax.validation:validation-api:1.1.0.Final > javax.websocket:javax.websocket-api:1.0 > javax.ws.rs:javax.ws.rs-api:2.0 > org.eclipse.persistence:javax.persistence:2.1.0 > org.glassfish:javax.faces:2.2.0 > > I ask because I couldn't find the answer on the web, and it seems to me > that many sources are actually quite wrong and how it should be done. > I believe this should appear in a section of the tomcat documentation, at > least for versions 6, 7, and 8 of Java EE, which Tomcat seems to track. > > Xavier. > -- "Ever tried. Ever failed. No matter. Try Again. Fail again. Fail better." - Samuel Beckett --94eb2c12590e5025aa056bc83e09--