Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jakartaee-platform-dev] History of Mojarra dependency?

Like you said, this API jar has a compile dependency on com.sun.faces classes.
The build unpacks all sources and attaches them to have the maven-compiler-plugin compile everything.

I'm not sure how you got it to work without the dependency on Mojarra.

If I comment out the dependency, I get compilation errors:

diff --git a/jakartaee-web-api/pom.xml b/jakartaee-web-api/pom.xml
index c2b11ea..187240a 100644
--- a/jakartaee-web-api/pom.xml
+++ b/jakartaee-web-api/pom.xml
@@ -107,12 +107,12 @@
         <!-- work around for GLASSFISH-19861  -->
-        <dependency>
+<!--        <dependency>
-        </dependency>
+        </dependency> -->

[ERROR] /Users/rgrecour/workspaces/jakartaee-api/jakartaee-web-api/target/sources-dependency/javax/faces/component/[19,33] package com.sun.faces.util does not exist
[ERROR] /Users/rgrecour/workspaces/jakartaee-api/jakartaee-web-api/target/sources-dependency/javax/faces/component/[19,1] static import only from classes and interfaces
[ERROR] /Users/rgrecour/workspaces/jakartaee-api/jakartaee-web-api/target/sources-dependency/javax/faces/component/[20,33] package com.sun.faces.util does not exist
[ERROR] /Users/rgrecour/workspaces/jakartaee-api/jakartaee-web-api/target/sources-dependency/javax/faces/component/[20,1] static import only from classes and interfaces

On 3/4/20 2:54 PM, Kevin Sutter wrote:
This question is probably targeted at Bill, but while I was looking to update the pom in jakartaee-api for a Jakarta EE 9 Milestone/RC API, I came across this dependency on Mojarra:

        <!-- work around for GLASSFISH-19861  -->

I know all about the JSF API being dependent on Mojarra, but we're already bringing in the JSF API as a separate dependency.  I looked up the Issue that is referencedand it was closed back in 2013...  It looks like there was a discussion between Ed and Bill about whether this dependency on com.sun.faces had to be removed or not...  The end result looks like leaving these references was an okay operation for Mojarra.

But, I'm confused as to what this is doing for the generation of the API jar files.  Whether I have this dependency in or out of the pom, it looks to still generate the API jar files (without the com.sun.faces classes).  Any ideas?

Kevin Sutter
STSM, MicroProfile and Jakarta EE architect @ IBM
e-mail:  sutter@xxxxxxxxxx     Twitter:  @kwsutter
phone: tl-553-3620 (office), 507-253-3620 (office)    

jakartaee-platform-dev mailing list
To change your delivery options, retrieve your password, or unsubscribe from this list, visit;!!GqivPVa7Brio!ODjV_T1Yb1t7oF2V5BmI-5E943iuf1qpCBfmd-GFh1KIgdmd8bM3CmLvUud-KdxyC7bl$ 

Back to the top