[forge-issues] [JBoss JIRA] (FORGE-1164) Cannot remove managed dependency

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


    [ https://issues.jboss.org/browse/FORGE-1164?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12802001#comment-12802001 ] 

Lincoln Baxter III commented on FORGE-1164:
-------------------------------------------

I believe the real issue here is that the `project remove-managed-dependency` command is not properly parsing the coordinates of your `pom` import.  This is probably a bug in that command.
                
> Cannot 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