[forge-issues] [JBoss JIRA] (FORGE-1164) `project remove-managed-dependency` does not remove managed dependency

Lincoln Baxter III (JIRA) jira-events at lists.jboss.org
Thu Sep 5 12:32:03 EDT 2013


     [ https://issues.jboss.org/browse/FORGE-1164?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Lincoln Baxter III updated FORGE-1164:
--------------------------------------

    Summary: `project remove-managed-dependency` does not remove managed dependency  (was: Cannot remove managed dependency)

    
> `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
>
> 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


More information about the forge-issues mailing list