[
https://issues.jboss.org/browse/FORGE-1164?page=com.atlassian.jira.plugin...
]
Antonio Goncalves commented on FORGE-1164:
------------------------------------------
This is not vital, I can always do stuff manually. I'm trying to automate migrating
from Java EE 6 to 7 but some tasks can be manual. If you find it for 1.4.1 just before
JavaOne, good ;o) if not, it's not a big issue.
`project remove-managed-dependency` does not remove managed
dependency
----------------------------------------------------------------------
Key: FORGE-1164
URL:
https://issues.jboss.org/browse/FORGE-1164
Project: Forge
Issue Type: Bug
Affects Versions: 1.4.0.Final
Reporter: Antonio Goncalves
Fix For: 1.x Future
I want to turn a Forge project from being Java EE 6 to Java EE 7 centric. One of these
tasks is to change the dependencies in the {{pom.xml}}. So I add the
{{javax:javaee-api:7.0}} to the pom and list the managed dependencies :
{code}
$ project list-managed-dependencies
org.jboss.spec : jboss-javaee-6.0 : 3.0.2.Final : pom : import
org.hibernate : hibernate-validator : 5.1.0.Alpha1 : jar : provided
javax : javaee-api : 7.0 : jar : provided
{code}
If I remove the added {{javax:javaee-api:7.0}}, it works. But if I want to remove the
{{org.jboss.spec:jboss-javaee-6.0}}, the console says it doesn't exist :
{code}
$ project remove-managed-dependency org.jboss.spec:jboss-javaee-6.0
Managed dependency [org.jboss.spec:jboss-javaee-6.0:::] not found in project...
{code}
I even tried adding version, scope and so on, but it doesn't work :
{code}
$ project remove-managed-dependency
? [[ groupId :artifactId {:version :scope :packaging} ] (of type
org.jboss.forge.project.dependencies.Dependency)]:
org.jboss.spec:jboss-javaee-6.0:3.0.2.Final:pom:import
Managed dependency [org.jboss.spec:jboss-javaee-6.0:import::3.0.2.Final] not found in
project...
{code}
PS : same occur in Forge 1.3.3-Final
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira