[jbosstools-issues] [JBoss JIRA] (JBIDE-26035) Conversion to OSGi not going so well

Nick Boldt (JIRA) issues at jboss.org
Wed May 23 10:13:00 EDT 2018


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

Nick Boldt commented on JBIDE-26035:
------------------------------------

compilation fails because you're restricting the build from seeing commons-io to test-time, not compile-time.

{code}
diff --git a/api/pom.xml b/api/pom.xml
index 77212cf..754fb49 100644
--- a/api/pom.xml
+++ b/api/pom.xml
@@ -86,7 +86,7 @@
                        <groupId>org.apache.commons</groupId>
                        <artifactId>commons-io</artifactId>
                        <version>1.3.2</version>
-                       <scope>test</scope>
+                       <scope>compile</scope>
                </dependency>
        </dependencies>
 </project>
{code}

> Conversion to OSGi not going so well
> ------------------------------------
>
>                 Key: JBIDE-26035
>                 URL: https://issues.jboss.org/browse/JBIDE-26035
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: stack-server-protocol
>            Reporter: Rob Stryker
>            Assignee: Rob Stryker
>             Fix For: 4.6.0.AM2
>
>
> Branch:  https://github.com/robstryker/org.jboss.tools.ssp/tree/osgi_branch1
> Instructions: `mvn clean install` 
> Compilation fails to find the jars packaged inside the bundle. A basic line or two has been added to the Activator to try to use the classes in these libs, however it is failing to compile. 
> {code}
> [INFO] -------------------------------------------------------------
> [ERROR] COMPILATION ERROR : 
> [INFO] -------------------------------------------------------------
> [ERROR] /home/rob/code/eclipse/lsp/lsp4j-chat-app/api/src/main/java/org/jboss/tools/ssp/api/Activator.java:[3,29] package org.apache.commons.io does not exist
> [ERROR] /home/rob/code/eclipse/lsp/lsp4j-chat-app/api/src/main/java/org/jboss/tools/ssp/api/Activator.java:[21,30] cannot find symbol
>   symbol:   class DirectoryWalker
>   location: class org.jboss.tools.ssp.api.Activator
> [INFO] 2 errors 
> [INFO] -------------------------------------------------------------
> {code}



--
This message was sent by Atlassian JIRA
(v7.5.0#75005)


More information about the jbosstools-issues mailing list