[jbosstools-issues] [JBoss JIRA] (JBIDE-24129) download-devstudio profile breaks component builds

Pavol Srna (JIRA) issues at jboss.org
Thu Apr 6 09:21:00 EDT 2017


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

Pavol Srna commented on JBIDE-24129:
------------------------------------

First, let me explain the reason why we need the profile and how we use it. We run integration tests against core devstudio (all plugins) even if the itests are only for e.g. hibernate (or other component) and verify it integrates well with the whole product. We saw some plugin collision problems in the past. 

When tycho is about to run the itests it computes the target platform and installs com.jboss.devstudio.core.feature.feature.group from <devstudioRepository>https://devstudio.redhat.com/10.0/snapshots/updates/</devstudioRepository> into the running eclipse instance. This is defined in the download-devstudio profile. Then it installs itests and runs them.

This was completely fine and working when the itests have lived in integration-tests repository as a downstream project.The problem is when we move the itests into component repository and try to run them during the component build process. 

As you can see from the error message in the description, {{_com.jboss.devstudio.core.feature.feature.group_}} depends on {{_org.jboss.ide.eclipse.as.feature.feature.group_}} and tycho doesn’t resolve the feature from site because we are building the as unit locally. What we would need is to resolve as.feature from site, install {{_com.jboss.devstudio.core.feature.feature.group_}} and then update the plugins with locally build plugins. This seems not to be supported by tycho. 

We have two options how to approach the problem:

# itests run fine if you: cd into component/itests and run {code}mvn clean verify -PITests,download-devstudio{code} But will be disabled on component level by default.
# define all itests dependencies in MANIFEST. This has downsides. 
a) the list can be long  and tricky to maintain, 
b) most likely it will create new dependencies for the component e.g. to m2e, to some other eclipse wizards (plugins) that the itests use, or to server adapter ui for end to end tests. Because integration tests have been designed as downstream devstudio project/component. Therefore they rely on e.g maven import, or server adapter (for the end to end tests) even if the component doesn’t have direct dependencies on these plugins.


[~jeffmaury] How would you like to come across the problem? Option 1) seems best to me. 




> download-devstudio profile breaks component builds
> --------------------------------------------------
>
>                 Key: JBIDE-24129
>                 URL: https://issues.jboss.org/browse/JBIDE-24129
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: build, integration-tests
>    Affects Versions: 4.4.4.AM2
>            Reporter: Pavol Srna
>            Assignee: Pavol Srna
>            Priority: Critical
>             Fix For: 4.4.4.AM3
>
>
> We have used download-devstudio profile to run the integration tests against full devstudio in the past. This stopped working recently.
> {code}
> [ERROR] Cannot resolve project dependencies:
> [ERROR]   Software being installed: com.jboss.devstudio.core.feature.feature.group 10.4.0.v20170324-0935
> [ERROR]   Missing requirement: com.jboss.devstudio.core.rpm.feature.feature.group 10.4.0.v20170324-0935 requires 'org.jboss.ide.eclipse.as.feature.feature.group [3.2.4.v20170315-1707]' but it could not be found
> [ERROR]   Cannot satisfy dependency: com.jboss.devstudio.core.feature.feature.group 10.4.0.v20170324-0935 depends on: com.jboss.devstudio.core.rpm.feature.feature.group [10.4.0.v20170324-0935]
> [ERROR] 
> [ERROR] See http://wiki.eclipse.org/Tycho/Dependency_Resolution_Troubleshooting for help.
> [ERROR] Cannot resolve dependencies of MavenProject: org.jboss.tools.as.plugins:org.jboss.ide.eclipse.as.dmr:3.2.4-SNAPSHOT @ /Users/psrna/GitHub/jbosstools-server/as/plugins/org.jboss.ide.eclipse.as.dmr/pom.xml: See log for details -> [Help 1]
> [ERROR] 
> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR] 
> [ERROR] For more information about the errors and possible solutions, please read the following articles:
> [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MavenExecutionException
> {code}



--
This message was sent by Atlassian JIRA
(v7.2.3#72005)



More information about the jbosstools-issues mailing list