[JBoss JIRA] (FORGE-2051) Installing various Java EE Facets duplicate dependencies in build descriptor
by Lincoln Baxter III (JIRA)
[ https://issues.jboss.org/browse/FORGE-2051?page=com.atlassian.jira.plugin... ]
Lincoln Baxter III updated FORGE-2051:
--------------------------------------
Description:
{code}
project-new --named blahhh
javaee-setup --javaEEVersion 7
jpa-new-entity --named Blahhhhh
{code}
Even though the javax.enterprise:javaee-api is installed, individual specifications still add their own duplicate provided APIs. This should not be the case. EE* should satisfy all spec dependency requirements.
{code}
apply from: 'forge.gradle'
apply plugin: 'war'
apply plugin: 'java'
repositories {
mavenCentral()
}
version = "1.0.0-SNAPSHOT"
group = "org.gradleTest"
archiveName 'gradleTest'
dependencies {
direct group: "javax", name: "javaee-api"
direct group: "org.hibernate.javax.persistence", name: "hibernate-jpa-2.0-api"
direct group: "javax.enterprise", name: "cdi-api"
direct group: "org.jboss.spec.javax.faces", name: "jboss-jsf-api_2.0_spec"
}
allprojects {
dependencies {
managed configuration: "compile", group: "javax", name: "javaee-api", version: "7.0"
managed configuration: "import", group: "org.jboss.spec", name: "jboss-javaee-6.0", version: "3.0.2.Final", ext: "pom"
managed configuration: "compile", group: "org.hibernate.javax.persistence", name: "hibernate-jpa-2.0-api", version: "1.0.1.Final"
managed configuration: "compile", group: "javax.enterprise", name: "cdi-api", version: "1.0-SP4"
managed configuration: "compile", group: "org.jboss.spec.javax.faces", name: "jboss-jsf-api_2.0_spec", version: "1.0.0.Final"
}
}
{code}
was:
Even though the javax.enterprise:javaee-api is installed, individual specifications still add their own duplicate provided APIs. This should not be the case. EE* should satisfy all spec dependency requirements.
{code}
apply from: 'forge.gradle'
apply plugin: 'war'
apply plugin: 'java'
repositories {
mavenCentral()
}
version = "1.0.0-SNAPSHOT"
group = "org.gradleTest"
archiveName 'gradleTest'
dependencies {
direct group: "javax", name: "javaee-api"
direct group: "org.hibernate.javax.persistence", name: "hibernate-jpa-2.0-api"
direct group: "javax.enterprise", name: "cdi-api"
direct group: "org.jboss.spec.javax.faces", name: "jboss-jsf-api_2.0_spec"
}
allprojects {
dependencies {
managed configuration: "compile", group: "javax", name: "javaee-api", version: "7.0"
managed configuration: "import", group: "org.jboss.spec", name: "jboss-javaee-6.0", version: "3.0.2.Final", ext: "pom"
managed configuration: "compile", group: "org.hibernate.javax.persistence", name: "hibernate-jpa-2.0-api", version: "1.0.1.Final"
managed configuration: "compile", group: "javax.enterprise", name: "cdi-api", version: "1.0-SP4"
managed configuration: "compile", group: "org.jboss.spec.javax.faces", name: "jboss-jsf-api_2.0_spec", version: "1.0.0.Final"
}
}
{code}
> Installing various Java EE Facets duplicate dependencies in build descriptor
> ----------------------------------------------------------------------------
>
> Key: FORGE-2051
> URL: https://issues.jboss.org/browse/FORGE-2051
> Project: Forge
> Issue Type: Bug
> Components: Builtin Plugins, Java EE
> Affects Versions: 2.11.0.Final
> Reporter: Lincoln Baxter III
> Fix For: 2.x Future
>
>
> {code}
> project-new --named blahhh
> javaee-setup --javaEEVersion 7
> jpa-new-entity --named Blahhhhh
> {code}
> Even though the javax.enterprise:javaee-api is installed, individual specifications still add their own duplicate provided APIs. This should not be the case. EE* should satisfy all spec dependency requirements.
> {code}
> apply from: 'forge.gradle'
> apply plugin: 'war'
> apply plugin: 'java'
> repositories {
> mavenCentral()
> }
> version = "1.0.0-SNAPSHOT"
> group = "org.gradleTest"
> archiveName 'gradleTest'
> dependencies {
> direct group: "javax", name: "javaee-api"
> direct group: "org.hibernate.javax.persistence", name: "hibernate-jpa-2.0-api"
> direct group: "javax.enterprise", name: "cdi-api"
> direct group: "org.jboss.spec.javax.faces", name: "jboss-jsf-api_2.0_spec"
> }
> allprojects {
> dependencies {
> managed configuration: "compile", group: "javax", name: "javaee-api", version: "7.0"
> managed configuration: "import", group: "org.jboss.spec", name: "jboss-javaee-6.0", version: "3.0.2.Final", ext: "pom"
> managed configuration: "compile", group: "org.hibernate.javax.persistence", name: "hibernate-jpa-2.0-api", version: "1.0.1.Final"
> managed configuration: "compile", group: "javax.enterprise", name: "cdi-api", version: "1.0-SP4"
> managed configuration: "compile", group: "org.jboss.spec.javax.faces", name: "jboss-jsf-api_2.0_spec", version: "1.0.0.Final"
> }
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
10 years, 2 months
[JBoss JIRA] (FORGE-2051) Installing various Java EE Facets duplicate dependencies in build descriptor
by Lincoln Baxter III (JIRA)
Lincoln Baxter III created FORGE-2051:
-----------------------------------------
Summary: Installing various Java EE Facets duplicate dependencies in build descriptor
Key: FORGE-2051
URL: https://issues.jboss.org/browse/FORGE-2051
Project: Forge
Issue Type: Bug
Components: Builtin Plugins, Java EE
Affects Versions: 2.11.0.Final
Reporter: Lincoln Baxter III
Fix For: 2.x Future
Even though the javax.enterprise:javaee-api is installed, individual specifications still add their own duplicate provided APIs. This should not be the case. EE* should satisfy all spec dependency requirements.
{code}
apply from: 'forge.gradle'
apply plugin: 'war'
apply plugin: 'java'
repositories {
mavenCentral()
}
version = "1.0.0-SNAPSHOT"
group = "org.gradleTest"
archiveName 'gradleTest'
dependencies {
direct group: "javax", name: "javaee-api"
direct group: "org.hibernate.javax.persistence", name: "hibernate-jpa-2.0-api"
direct group: "javax.enterprise", name: "cdi-api"
direct group: "org.jboss.spec.javax.faces", name: "jboss-jsf-api_2.0_spec"
}
allprojects {
dependencies {
managed configuration: "compile", group: "javax", name: "javaee-api", version: "7.0"
managed configuration: "import", group: "org.jboss.spec", name: "jboss-javaee-6.0", version: "3.0.2.Final", ext: "pom"
managed configuration: "compile", group: "org.hibernate.javax.persistence", name: "hibernate-jpa-2.0-api", version: "1.0.1.Final"
managed configuration: "compile", group: "javax.enterprise", name: "cdi-api", version: "1.0-SP4"
managed configuration: "compile", group: "org.jboss.spec.javax.faces", name: "jboss-jsf-api_2.0_spec", version: "1.0.0.Final"
}
}
{code}
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
10 years, 2 months
[JBoss JIRA] (FORGE-2050) Strange FacesFacet not installed error when creating new Gradle scaffolding
by Lincoln Baxter III (JIRA)
Lincoln Baxter III created FORGE-2050:
-----------------------------------------
Summary: Strange FacesFacet not installed error when creating new Gradle scaffolding
Key: FORGE-2050
URL: https://issues.jboss.org/browse/FORGE-2050
Project: Forge
Issue Type: Feature Request
Components: Build Tools - Gradle, Scaffold
Affects Versions: 2.11.0.Final
Reporter: Lincoln Baxter III
Fix For: 2.x Future
{code}project-new --named gradleTest --buildSystem Gradle
javaee-setup --javaEEVersion 7
jpa-new-entity --named Raj
track-changes
scaffold-generate --targets org.gradleTest.model.Raj
{code}
{code}[Raj.java]$ scaffold-generate --targets org.gradleTest.model.Raj
***ERROR*** Error while executing 'Scaffold: Generate'
org.jboss.forge.addon.facets.FacetNotFoundException: No Facet of type [interface org.jboss.forge.addon.javaee.faces.FacesFacet] is installed.
at org.jboss.forge.addon.facets.AbstractFaceted.getFacet(AbstractFaceted.java:51)
at org.jboss.forge.addon.scaffold.faces.FacesAccessStrategy.<init>(FacesAccessStrategy.java:27)
at org.jboss.forge.addon.scaffold.faces.FacesScaffoldProvider.getAccessStrategy(FacesScaffoldProvider.java:440)
at org.jboss.forge.addon.scaffold.faces.FacesScaffoldProvider.setupWebXML(FacesScaffoldProvider.java:582)
at org.jboss.forge.addon.scaffold.faces.FacesScaffoldProvider.setup(FacesScaffoldProvider.java:211)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor$1.call(ClassLoaderInterceptor.java:87)
at org.jboss.forge.furnace.util.ClassLoaders.executeIn(ClassLoaders.java:42)
at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor.invoke(ClassLoaderInterceptor.java:103)
at org.jboss.forge.addon.scaffold.spi.ScaffoldProvider_$$_javassist_4af7763e-4fcb-46fd-80d7-96b39281ad5e.setup(ScaffoldProvider_$$_javassist_4af7763e-4fcb-46fd-80d7-96b39281ad5e.java)
at org.jboss.forge.addon.scaffold.impl.ui.ScaffoldExecuteGenerationStep.execute(ScaffoldExecuteGenerationStep.java:69)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor$1.call(ClassLoaderInterceptor.java:87)
at org.jboss.forge.furnace.util.ClassLoaders.executeIn(ClassLoaders.java:42)
at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor.invoke(ClassLoaderInterceptor.java:103)
at org.jboss.forge.addon.scaffold.impl.ui.ScaffoldExecuteGenerationStep_$$_javassist_69f2767c-ef84-4499-a7e4-e2744dab8956.execute(ScaffoldExecuteGenerationStep_$$_javassist_69f2767c-ef84-4499-a7e4-e2744dab8956.java)
at org.jboss.forge.addon.ui.impl.controller.WizardCommandControllerImpl.execute(WizardCommandControllerImpl.java:153)
at org.jboss.forge.addon.ui.impl.controller.NoUIWizardControllerDecorator.execute(NoUIWizardControllerDecorator.java:152)
at org.jboss.forge.addon.shell.aesh.CommandAdapter.execute(CommandAdapter.java:74)
at org.jboss.aesh.console.AeshConsoleImpl$AeshConsoleCallbackImpl.execute(AeshConsoleImpl.java:325)
at org.jboss.aesh.console.AeshProcess.run(AeshProcess.java:40)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
***ERROR*** No Facet of type [interface org.jboss.forge.addon.javaee.faces.FacesFacet] is installed.
[Raj.java]$
{code}
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
10 years, 2 months