This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 227535 - Java EE 7 Maven project must declare javaee-api dependency with provided scope
Summary: Java EE 7 Maven project must declare javaee-api dependency with provided scope
Status: VERIFIED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: Maven (show other bugs)
Version: 7.3.1
Hardware: All All
: P3 normal (vote)
Assignee: Martin Janicek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-15 16:08 UTC by Petr Jiricka
Modified: 2013-05-09 13:44 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Jiricka 2013-03-15 16:08:09 UTC
1. Create a Java EE 7 Maven web project
2. The following dependency is in pom.xml:
    <dependencies>
        <dependency>
            <groupId>javax</groupId>
            <artifactId>javaee-web-api</artifactId>
            <version>7.0-b78</version>
        </dependency>
    </dependencies>

=> This dependency should have <scope>provided</scope>, like it has for Java EE 6.
Comment 1 Martin Janicek 2013-03-15 18:00:32 UTC
Does not sounds like a P2 issue given the fact that workarround is pretty simple (putting <scope>provided</scope> to the pom.xml)
I'll fix it together with the next archetype update..
Comment 2 Martin Janicek 2013-04-08 08:35:05 UTC
I'll fix this one together (within the same patch) with the issue 228358
Comment 3 Martin Janicek 2013-04-11 09:27:30 UTC
Fixed in: web-main #1e2ef6df3668 (javaee7 branch)
Comment 4 Marian Mirilovic 2013-05-03 09:12:05 UTC
I expect, this is already in release73 -> '73patch2-fixed'
Comment 5 Martin Janicek 2013-05-03 09:13:03 UTC
For sure, thanks!