[jbosstools-issues] [JBoss JIRA] (JBTIS-407) Cannot update all BPMN2 features from 7.0.3.GA to 7.1.0.CR2

Fred Bricon (JIRA) issues at jboss.org
Mon Mar 9 17:20:19 EDT 2015


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

Fred Bricon commented on JBTIS-407:
-----------------------------------

If you need to make the new feature able to update from the old feature name, you need to add some incantations to a p2.inf file at the root of your feature directory (don't forget to add it to build.properties)  :

https://github.com/eclipse/m2e.wtp/blob/master/org.eclipse.m2e.wtp.feature/p2.inf

For BPMN2, that'd look like :

{noformat}
units.1.id=org.eclipse.bpmn2
units.1.properties.0.name=org.eclipse.equinox.p2.name
units.1.properties.0.value=This version of BPMN2 cannot be installed on top of the already installed BPMN2 7.0.x. Uninstall the previous version of BPMN2 and try the install again.
units.1.properties.1.name=maven-classifier
units.1.properties.1.value=p2inf
units.1.version=$version$
units.1.singleton=true
units.1.provides.0.namespace=osgi.bundle
units.1.provides.0.name=org.eclipse.bpmn2
units.1.provides.0.version=$version$

requires.0.namespace=osgi.bundle
requires.0.name=org.eclipse.bpmn2
requires.0.range=[$version$, $version$]

update.matchExp=providedCapabilities.exists(pc | pc.namespace \=\= 'org.eclipse.equinox.p2.iu' && (pc.name \=\= 'org.eclipse.bpmn2.feature.feature.group' || pc.name \=\= 'org.eclipse.bpmn2.feature.group' && pc.version < '$version$'))

{noformat}

See https://bugs.eclipse.org/bugs/show_bug.cgi?id=394156 for further references

> Cannot update all BPMN2 features from 7.0.3.GA to 7.1.0.CR2
> -----------------------------------------------------------
>
>                 Key: JBTIS-407
>                 URL: https://issues.jboss.org/browse/JBTIS-407
>             Project: JBoss Tools Integration Stack
>          Issue Type: Bug
>          Components: distribution
>    Affects Versions: 7.1.0.CR2
>         Environment: Installed: JBDS 7.1.1.GA + JBDS-IS 7.0.3.GA
> Update to: JBDS-IS 7.1.0.CR2
>            Reporter: Andrej Podhradsky
>            Assignee: Robert (Bob) Brodt
>            Priority: Blocker
>
> The follwoing error orrcurs when updating from JBDS-IS 7.0.3.GA to JBDS-IS 7.1.0.CR2
> Cannot complete the install because of a conflicting dependency.
>   Software being installed: BPMN2 Metamodel 1.0.0.Final (org.eclipse.bpmn2.feature.group 1.0.0.Final)
>   Software currently installed: BPMN2 Project Feature 0.7.0.201308220617 (org.eclipse.bpmn2.feature.feature.group 0.7.0.201308220617)
>   Only one of the following can be installed at once: 
>     BPMN2 Edit Support 0.7.0.201308220617 (org.eclipse.bpmn2.edit 0.7.0.201308220617)
>     BPMN2 Edit Support 1.0.0.Final (org.eclipse.bpmn2.edit 1.0.0.Final)
>   Cannot satisfy dependency:
>     From: BPMN2 Project Feature 0.7.0.201308220617 (org.eclipse.bpmn2.feature.feature.group 0.7.0.201308220617)
>     To: org.eclipse.bpmn2.edit [0.7.0.201308220617]
>   Cannot satisfy dependency:
>     From: BPMN2 Metamodel 1.0.0.Final (org.eclipse.bpmn2.feature.group 1.0.0.Final)
>     To: org.eclipse.bpmn2.edit [1.0.0.Final]



--
This message was sent by Atlassian JIRA
(v6.3.11#6341)


More information about the jbosstools-issues mailing list