]
George Gastaldi closed FORGE-1164.
----------------------------------
Fix Version/s: (was: 1.x Future)
Resolution: Out of Date
Fixed in Forge 2.x
`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
Security Level: Public(Everyone can see)
Affects Versions: 1.4.0.Final
Reporter: Antonio Goncalves
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