[
https://issues.jboss.org/browse/FORGE-1948?page=com.atlassian.jira.plugin...
]
Michal Matloka updated FORGE-1948:
----------------------------------
Description:
Execution of the following commands
{noformat}
[bin]$ project-new --named forge-demo --topLevelPackage com.packtpub.wflydevelop
ment.appendix projectFolder forge-demo
***SUCCESS*** Project named 'forge-demo' has been created.
[forge-demo]$ jpa-setup --jpaVersion 2.1 --provider HIBERNATE --container WILDFL
Y --dbType POSTGRES --dataSourceName ja-va:jboss/datasources/PostgreSqlDS
***SUCCESS*** Persistence (JPA) is installed.
[persistence.xml]$
{noformat}
Results in pom.xml:
{noformat}
<?xml version="1.0" encoding="UTF-8"?>
<project
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd"
xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<groupId>com.packtpub.wflydevelopment.appendix</groupId>
<artifactId>forge-demo</artifactId>
<version>1.0.0-SNAPSHOT</version>
<packaging>war</packaging>
<properties>
<maven.compiler.source>1.7</maven.compiler.source>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.target>1.7</maven.compiler.target>
</properties>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.jboss.spec</groupId>
<artifactId>jboss-javaee-6.0</artifactId>
<version>3.0.2.Final</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>org.hibernate.javax.persistence</groupId>
<artifactId>hibernate-jpa-2.1-api</artifactId>
<version>1.0.0.Draft-16</version>
<scope>provided</scope>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<dependency>
<groupId>org.hibernate.javax.persistence</groupId>
<artifactId>hibernate-jpa-2.1-api</artifactId>
<scope>provided</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<artifactId>maven-war-plugin</artifactId>
<version>2.4</version>
<configuration>
<failOnMissingWebXml>false</failOnMissingWebXml>
</configuration>
</plugin>
</plugins>
</build>
</project>
{noformat}
I rather expected to get javaee 7 api instead of jboss-javaee-6.0 ;)
was:
Execution of the following commands
{noformat}
[bin]$ project-new --named forge-demo --topLevelPackage com.packtpub.wflydevelop
ment.appendix projectFolder forge-demo
***SUCCESS*** Project named 'forge-demo' has been created.
[forge-demo]$ jpa-setup --jpaVersion 2.1 --provider HIBERNATE --container WILDFL
Y --dbType POSTGRES --dataSourceName ja-va:jboss/datasources/PostgreSqlDS
***SUCCESS*** Persistence (JPA) is installed.
[persistence.xml]$
{noformat}
Results in pom.xml:
{noformat}
<?xml version="1.0" encoding="UTF-8"?>
<project
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd"
xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<groupId>com.packtpub.wflydevelopment.appendix</groupId>
<artifactId>forge-demo</artifactId>
<version>1.0.0-SNAPSHOT</version>
<packaging>war</packaging>
<properties>
<maven.compiler.source>1.7</maven.compiler.source>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.target>1.7</maven.compiler.target>
</properties>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.jboss.spec</groupId>
<artifactId>jboss-javaee-6.0</artifactId>
<version>3.0.2.Final</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>org.hibernate.javax.persistence</groupId>
<artifactId>hibernate-jpa-2.1-api</artifactId>
<version>1.0.0.Draft-16</version>
<scope>provided</scope>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<dependency>
<groupId>org.hibernate.javax.persistence</groupId>
<artifactId>hibernate-jpa-2.1-api</artifactId>
<scope>provided</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<artifactId>maven-war-plugin</artifactId>
<version>2.4</version>
<configuration>
<failOnMissingWebXml>false</failOnMissingWebXml>
</configuration>
</plugin>
</plugins>
</build>
</project>
{noformat}
Avoid adding JavaEE6 pom when JavaEE7 artifacts are installed?
--------------------------------------------------------------
Key: FORGE-1948
URL:
https://issues.jboss.org/browse/FORGE-1948
Project: Forge
Issue Type: Bug
Security Level: Public(Everyone can see)
Affects Versions: 2.7.0.Final
Reporter: Michal Matloka
Execution of the following commands
{noformat}
[bin]$ project-new --named forge-demo --topLevelPackage com.packtpub.wflydevelop
ment.appendix projectFolder forge-demo
***SUCCESS*** Project named 'forge-demo' has been created.
[forge-demo]$ jpa-setup --jpaVersion 2.1 --provider HIBERNATE --container WILDFL
Y --dbType POSTGRES --dataSourceName ja-va:jboss/datasources/PostgreSqlDS
***SUCCESS*** Persistence (JPA) is installed.
[persistence.xml]$
{noformat}
Results in pom.xml:
{noformat}
<?xml version="1.0" encoding="UTF-8"?>
<project
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd"
xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<groupId>com.packtpub.wflydevelopment.appendix</groupId>
<artifactId>forge-demo</artifactId>
<version>1.0.0-SNAPSHOT</version>
<packaging>war</packaging>
<properties>
<maven.compiler.source>1.7</maven.compiler.source>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.target>1.7</maven.compiler.target>
</properties>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.jboss.spec</groupId>
<artifactId>jboss-javaee-6.0</artifactId>
<version>3.0.2.Final</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>org.hibernate.javax.persistence</groupId>
<artifactId>hibernate-jpa-2.1-api</artifactId>
<version>1.0.0.Draft-16</version>
<scope>provided</scope>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<dependency>
<groupId>org.hibernate.javax.persistence</groupId>
<artifactId>hibernate-jpa-2.1-api</artifactId>
<scope>provided</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<artifactId>maven-war-plugin</artifactId>
<version>2.4</version>
<configuration>
<failOnMissingWebXml>false</failOnMissingWebXml>
</configuration>
</plugin>
</plugins>
</build>
</project>
{noformat}
I rather expected to get javaee 7 api instead of jboss-javaee-6.0 ;)
--
This message was sent by Atlassian JIRA
(v6.2.6#6264)