Comments (6)
- Issue Imported From: javaee/firstcup#10
- Original Issue Raised By:@deglans
- Original Issue Assigned To: Unassigned
from jakartaee-firstcup.
@deglans Commented
After many research it's same to be javaee-api the most correct answer...
from jakartaee-firstcup.
@deglans Commented
Sorry, i have accidentally close the issue...
from jakartaee-firstcup.
@bshannon Commented
If you're building a Java EE application for deployment to a Java EE application server,
then compiling against the javaee-api jar file is the right thing to do. Be sure to list it as
a "provided" dependency since you don't want that jar file included in your application
at runtime.
from jakartaee-firstcup.
@deglans Commented
Do you mean this (https://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html):
provided
This is much likecompile
, but indicates you expect the JDK or a container to provide the dependency at runtime. For example, when building a web application for the Java Enterprise Edition, you would set the dependency on the Servlet API and related Java EE APIs to scopeprovided
because the web container provides those classes. This scope is only available on the compilation and test classpath, and is not transitive.
So the pom.xml become:
<dependency>
<groupId>javax</groupId>
<artifactId>javaee-api</artifactId>
<version>8.0</version>
<type>jar</type>
<scope>provided</scope>
</dependency>
Is that right?
I think this explanation should be included in the tutorial....
from jakartaee-firstcup.
@bshannon Commented
Yes.
from jakartaee-firstcup.
Related Issues (12)
- Place holder issue for Pull Request 1
- Place holder issue for Pull Request 2
- Place holder issue for Pull Request 3
- Place holder issue for Pull Request 4
- Place holder issue for Pull Request 5
- Place holder issue for Pull Request 6
- Place holder issue for Pull Request 7
- Place holder issue for Pull Request 8
- Place holder issue for Pull Request 9
- References in tutorial point to old links or versions HOT 3
- Chage the old Java EE terms for the new Jakarta EE terms
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jakartaee-firstcup.