Well, I created an empty project via project-new , using the group / artifact identifiers then copy to my pom.xml . After cdi-setup completed successfully, I got a new version of pom.
4 new dependencies added:
<dependency> <groupId>javax.enterprise</groupId> <artifactId>cdi-api</artifactId> <scope>provided</scope> </dependency> <dependency> <groupId>javax.annotation</groupId> <artifactId>jsr250-api</artifactId> <scope>provided</scope> </dependency> <dependency> <groupId>javax.inject</groupId> <artifactId>javax.inject</artifactId> <scope>provided</scope> </dependency> <dependency> <groupId>org.jboss.spec.javax.interceptor</groupId> <artifactId>jboss-interceptors-api_1.1_spec</artifactId> <scope>provided</scope> </dependency>
As well as the dependency section:
<dependencyManagement> <dependencies> <dependency> <groupId>org.jboss.spec</groupId> <artifactId>jboss-javaee-6.0</artifactId> <version>3.0.3.Final</version> <type>pom</type> <scope>import</scope> </dependency> <dependency> <groupId>javax.annotation</groupId> <artifactId>jsr250-api</artifactId> <version>1.0</version> <scope>provided</scope> </dependency> </dependencies> </dependencyManagement>
Full, new pom.xml , cdi-setup post:
<?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.megchemsa</groupId> <artifactId>edsnext</artifactId> <version>1.0-SNAPSHOT</version> <packaging>war</packaging> <name>${project.artifactId}</name> <description>EDSNext</description> <url>http://jsf-spec.java.net/</url> <build> <finalName>${project.artifactId}</finalName> <plugins> <plugin> <artifactId>maven-compiler-plugin</artifactId> <version>3.6.1</version> <configuration> <source>1.6</source> <target>1.6</target> </configuration> </plugin> <plugin> <artifactId>maven-war-plugin</artifactId> <version>3.1.0</version> <configuration> <failOnMissingWebXml>false</failOnMissingWebXml> </configuration> </plugin> </plugins> </build> <properties> <spec.snapshot.version>2.2</spec.snapshot.version> </properties> <dependencies> <dependency> <groupId>org.hibernate</groupId> <artifactId>hibernate-core</artifactId> <version>5.2.10.Final</version> <scope>provided</scope> </dependency> <dependency> <groupId>org.primefaces</groupId> <artifactId>primefaces</artifactId> <version>6.1</version> </dependency> <dependency> <groupId>org.primefaces.themes</groupId> <artifactId>all-themes</artifactId> <version>1.0.10</version> </dependency> <dependency> <groupId>com.sun.faces</groupId> <artifactId>jsf-api</artifactId> <version>2.2.14</version> </dependency> <dependency> <groupId>com.sun.faces</groupId> <artifactId>jsf-impl</artifactId> <version>2.2.14</version> </dependency> <dependency> <groupId>javax</groupId> <artifactId>javaee-api</artifactId> <version>7.0</version> </dependency> <dependency> <groupId>org.apache.pdfbox</groupId> <artifactId>pdfbox</artifactId> <version>2.0.7</version> </dependency> <dependency> <groupId>javax.el</groupId> <artifactId>javax.el-api</artifactId> <version>3.0.1-b04</version> </dependency> <dependency> <groupId>javax.servlet.jsp.jstl</groupId> <artifactId>jstl-api</artifactId> <version>1.2</version> </dependency> <dependency> <groupId>javax.servlet</groupId> <artifactId>javax.servlet-api</artifactId> <version>3.1.0</version> <scope>provided</scope> </dependency> <dependency> <groupId>org.omnifaces</groupId> <artifactId>omnifaces</artifactId> <version>2.6.3</version> </dependency> <dependency> <groupId>org.jboss.weld</groupId> <artifactId>weld-api</artifactId> <version>3.0.Final</version> </dependency> <dependency> <groupId>org.jboss.weld</groupId> <artifactId>weld-core-impl</artifactId> <version>3.0.0.Final</version> </dependency> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.12</version> <scope>test</scope> </dependency> <dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId> <version>5.1.42</version> </dependency> <dependency> <groupId>javax.enterprise</groupId> <artifactId>cdi-api</artifactId> <scope>provided</scope> </dependency> <dependency> <groupId>javax.annotation</groupId> <artifactId>jsr250-api</artifactId> <scope>provided</scope> </dependency> <dependency> <groupId>javax.inject</groupId> <artifactId>javax.inject</artifactId> <scope>provided</scope> </dependency> <dependency> <groupId>org.jboss.spec.javax.interceptor</groupId> <artifactId>jboss-interceptors-api_1.1_spec</artifactId> <scope>provided</scope> </dependency> </dependencies> <repositories> <repository> <id>java.net-maven2-SNAPSHOT-repository</id> <name>Java.net SNAPSHOT-Repository for Maven</name> <url>https://maven.java.net/content/repositories/snapshots/</url> <layout>default</layout> </repository> <repository> <id>java.net-maven2-repository</id> <name>Java.net Repository for Maven</name> <url>https://maven.java.net/content/repositories/releases/</url> <layout>default</layout> </repository> </repositories> <dependencyManagement> <dependencies> <dependency> <groupId>org.jboss.spec</groupId> <artifactId>jboss-javaee-6.0</artifactId> <version>3.0.3.Final</version> <type>pom</type> <scope>import</scope> </dependency> <dependency> <groupId>javax.annotation</groupId> <artifactId>jsr250-api</artifactId> <version>1.0</version> <scope>provided</scope> </dependency> </dependencies> </dependencyManagement> </project>
I suppose Iβm unlikely to reproduce the problem, as it seems to be related to the previous forge operation performed on your project. My bare project just has the advantage of starting from scratch (and without code).
As mentioned in the comments above, we both installed the same add-ons. I performed a second run through the project setup using my network interface to ensure that cdi-setup does not extend over the network to get something that was blocked from your location - that maybe it was done earlier and cached in my maven repository.
I hope this leads you to the hump, or at least a little closer to figuring out the source of the problem. I could not dig up any problems similar to you.
EDIT # 1:
Well, org.jboss.forge.addon.javaee.cdi.CDIFacetImpl_1_1 has not changed since 2016, so I assume this code is to blame:
@Override public boolean isInstalled() { boolean installed = super.isInstalled(); if (installed) { try { XMLResource xmlResource = (XMLResource) getConfigFile(); line 78-> installed = "1.1".equals(xmlResource.getXmlSource().getAttribute("version")); } catch (FileNotFoundException e) { installed = false; } } return installed; }
I donβt know which configuration file is being downloaded here, but it looks like your installation is somehow damaged, or your Maven repository has a damaged file. I was not able to remove add-ons, so I can not offer you to reinstall the javaee plugin.
Perhaps try downloading the distribution again, unzip it to another directory and try running forge from there? I would also rename your ~/.forge to ~/.forge.bak . Also rm -r ~/.m2/repository/* for completeness.
Also, I have no ideas. The next step is to go to the Forge Issues website , register and retype there.