You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@uima.apache.org by "Peter Klügl (Created JIRA)" <de...@uima.apache.org> on 2012/01/20 16:59:40 UTC

[jira] [Created] (UIMA-2353) Convert TextMarker projects to maven

Convert TextMarker projects to maven
------------------------------------

                 Key: UIMA-2353
                 URL: https://issues.apache.org/jira/browse/UIMA-2353
             Project: UIMA
          Issue Type: Task
          Components: TextMarker
            Reporter: Peter Klügl
            Assignee: Peter Klügl


The TextMarker projects in the sandbox have to become maven projects. The engine projects should be a normal maven project whereas the other projects also need to be plugin projects.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Closed] (UIMA-2353) Convert TextMarker projects to maven

Posted by "Peter Klügl (Closed JIRA)" <de...@uima.apache.org>.
     [ https://issues.apache.org/jira/browse/UIMA-2353?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Peter Klügl closed UIMA-2353.
-----------------------------

    Resolution: Fixed

Task is done. There are still some issues but those should be fixed when the build process is improved or a release version of the TextMarker is prepared.
                
> Convert TextMarker projects to maven
> ------------------------------------
>
>                 Key: UIMA-2353
>                 URL: https://issues.apache.org/jira/browse/UIMA-2353
>             Project: UIMA
>          Issue Type: Task
>          Components: TextMarker
>            Reporter: Peter Klügl
>            Assignee: Peter Klügl
>
> The TextMarker projects in the sandbox have to become maven projects. The engine projects should be a normal maven project whereas the other projects also need to be plugin projects.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Commented] (UIMA-2353) Convert TextMarker projects to maven

Posted by "Peter Klügl (Commented JIRA)" <de...@uima.apache.org>.
    [ https://issues.apache.org/jira/browse/UIMA-2353?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13207616#comment-13207616 ] 

Peter Klügl commented on UIMA-2353:
-----------------------------------

Now a problem occurs again of that I thought I solved it yesterday. I am looking forward to any hints or advice because I already tried several solution that should have worked.

The ide plugin needs antlr. The uimaj-textmarker project has a maven dependency for antlr. The engine fetcher plugin is similar to the runtime plugin: It adds the uimaj-textmarker project and its dependencies to its jar and exports all packages. The ide plugin depends now on the engine plugin and imports the antlr package. All projects compile but at runtime I get java.lang.ClassNotFoundException: org.antlr.runtime.CharStream.

Overall I just need the ide plugin to have access to antlr, but the classes do not need to be provided by the engine plugin. Is there for example a way to include a normal (single) jar to a plugin build by maven? A "include" in the configuration of the goal "unpack-dependencies" did not work for me.

Any suggestions (Jörn, Marshall)?
                
> Convert TextMarker projects to maven
> ------------------------------------
>
>                 Key: UIMA-2353
>                 URL: https://issues.apache.org/jira/browse/UIMA-2353
>             Project: UIMA
>          Issue Type: Task
>          Components: TextMarker
>            Reporter: Peter Klügl
>            Assignee: Peter Klügl
>
> The TextMarker projects in the sandbox have to become maven projects. The engine projects should be a normal maven project whereas the other projects also need to be plugin projects.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Commented] (UIMA-2353) Convert TextMarker projects to maven

Posted by "Peter Klügl (Commented JIRA)" <de...@uima.apache.org>.
    [ https://issues.apache.org/jira/browse/UIMA-2353?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13209249#comment-13209249 ] 

Peter Klügl commented on UIMA-2353:
-----------------------------------

The classpath for the engine plugin works now correctly... without any changes.
                
> Convert TextMarker projects to maven
> ------------------------------------
>
>                 Key: UIMA-2353
>                 URL: https://issues.apache.org/jira/browse/UIMA-2353
>             Project: UIMA
>          Issue Type: Task
>          Components: TextMarker
>            Reporter: Peter Klügl
>            Assignee: Peter Klügl
>
> The TextMarker projects in the sandbox have to become maven projects. The engine projects should be a normal maven project whereas the other projects also need to be plugin projects.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Commented] (UIMA-2353) Convert TextMarker projects to maven

Posted by "Peter Klügl (Commented JIRA)" <de...@uima.apache.org>.
    [ https://issues.apache.org/jira/browse/UIMA-2353?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13198788#comment-13198788 ] 

Peter Klügl commented on UIMA-2353:
-----------------------------------

The method was in the Text class, I think. I had a compile error with 3.2, but not with 3.3. of the .views dependency. Besides that, I haven't investigated it more precisely.

I started last week to add the plugin bundles of an Indigo installation to my local maven repository in order to reach a state where at least I can build the project on my local machine.

I think we will need some special solution or workaround if not for the normal eclipse plugin dependency but then for the DLTK dependency. I haven't found any maven artifacts at all for that. Maybe I'll ask the DLTK developers about it.

I will take a look at the links you provided, but all further work has to wait because I am otherwise occupied till the 13th of February.
                
> Convert TextMarker projects to maven
> ------------------------------------
>
>                 Key: UIMA-2353
>                 URL: https://issues.apache.org/jira/browse/UIMA-2353
>             Project: UIMA
>          Issue Type: Task
>          Components: TextMarker
>            Reporter: Peter Klügl
>            Assignee: Peter Klügl
>
> The TextMarker projects in the sandbox have to become maven projects. The engine projects should be a normal maven project whereas the other projects also need to be plugin projects.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Commented] (UIMA-2353) Convert TextMarker projects to maven

Posted by "Marshall Schor (Commented) (JIRA)" <de...@uima.apache.org>.
    [ https://issues.apache.org/jira/browse/UIMA-2353?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13195098#comment-13195098 ] 

Marshall Schor commented on UIMA-2353:
--------------------------------------

There's a very long thread about having eclipse artifacts for maven users here: https://bugs.eclipse.org/bugs/show_bug.cgi?id=283745.  It looks like it's going in the right direction, but may not be available yet.

I looked at Eclipse 3.7 (Indigo) http://help.eclipse.org/indigo/topic/org.eclipse.platform.doc.isv/reference/api/index-files/index-19.html for the method "setMessage(...)" and didn't find one in a package org.eclipse.ui.views ...  Are you sure you've got the right package/method?

There's probably a very clumsy workaround we can cobble together that would mimic what maven does for this, using some other source, like an eclipse update site.  
                
> Convert TextMarker projects to maven
> ------------------------------------
>
>                 Key: UIMA-2353
>                 URL: https://issues.apache.org/jira/browse/UIMA-2353
>             Project: UIMA
>          Issue Type: Task
>          Components: TextMarker
>            Reporter: Peter Klügl
>            Assignee: Peter Klügl
>
> The TextMarker projects in the sandbox have to become maven projects. The engine projects should be a normal maven project whereas the other projects also need to be plugin projects.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Commented] (UIMA-2353) Convert TextMarker projects to maven

Posted by "Peter Klügl (Commented JIRA)" <de...@uima.apache.org>.
    [ https://issues.apache.org/jira/browse/UIMA-2353?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13207700#comment-13207700 ] 

Peter Klügl commented on UIMA-2353:
-----------------------------------

What I also tried now:
- <Embed-Dependency>*;scope=compile</Embed-Dependency> without inline for adding the antlr lib to the bundle classpath
- unpack-dependencies for the antlr artifact for adding it to the plugin jar
- added a new plugin exporting the antlr stuff and added it to the required bundles of the ide plugin

nothing worked...
                
> Convert TextMarker projects to maven
> ------------------------------------
>
>                 Key: UIMA-2353
>                 URL: https://issues.apache.org/jira/browse/UIMA-2353
>             Project: UIMA
>          Issue Type: Task
>          Components: TextMarker
>            Reporter: Peter Klügl
>            Assignee: Peter Klügl
>
> The TextMarker projects in the sandbox have to become maven projects. The engine projects should be a normal maven project whereas the other projects also need to be plugin projects.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Commented] (UIMA-2353) Convert TextMarker projects to maven

Posted by "Peter Klügl (Commented JIRA)" <de...@uima.apache.org>.
    [ https://issues.apache.org/jira/browse/UIMA-2353?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13208436#comment-13208436 ] 

Peter Klügl commented on UIMA-2353:
-----------------------------------

If I somehow include the antlr classes in the ide plugin, then I get a ClassNotFoundException for the TextMarkerLexer class. This happens if I start eclipse with my development eclipse. If I drop the built plugins into a clean installation (with uima and dltk) then I get a ClassNotFoundException for the Platform class. Not to mention that the dependencies are of course present in the manifests.

I am starting to wonder why the uimaj-core/uimaj-ep-runtime/uimaj-ep-cas-editor combination works at all since I adapted the build process one-on-one. I asked all of my colleagues that know something about maven with the result that its maybe a problem of m2e. Jörn how did you get your plugins working?
                
> Convert TextMarker projects to maven
> ------------------------------------
>
>                 Key: UIMA-2353
>                 URL: https://issues.apache.org/jira/browse/UIMA-2353
>             Project: UIMA
>          Issue Type: Task
>          Components: TextMarker
>            Reporter: Peter Klügl
>            Assignee: Peter Klügl
>
> The TextMarker projects in the sandbox have to become maven projects. The engine projects should be a normal maven project whereas the other projects also need to be plugin projects.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Commented] (UIMA-2353) Convert TextMarker projects to maven

Posted by "Peter Klügl (Commented JIRA)" <de...@uima.apache.org>.
    [ https://issues.apache.org/jira/browse/UIMA-2353?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13194914#comment-13194914 ] 

Peter Klügl commented on UIMA-2353:
-----------------------------------

I'm now at the end of my non-existent maven knowledge...

Is there away to include dependencies to artifacts that are not included in the public repository?
I using code of org.eclipse.ui.views >3.3, but only 3.2 is available (also see the CAS Editor plugins). Do I need to remove that functionality (Text.setMessage())? I can't imagine that there isn't an official way to build plugins upon 3.3
                
> Convert TextMarker projects to maven
> ------------------------------------
>
>                 Key: UIMA-2353
>                 URL: https://issues.apache.org/jira/browse/UIMA-2353
>             Project: UIMA
>          Issue Type: Task
>          Components: TextMarker
>            Reporter: Peter Klügl
>            Assignee: Peter Klügl
>
> The TextMarker projects in the sandbox have to become maven projects. The engine projects should be a normal maven project whereas the other projects also need to be plugin projects.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Commented] (UIMA-2353) Convert TextMarker projects to maven

Posted by "Peter Klügl (Commented JIRA)" <de...@uima.apache.org>.
    [ https://issues.apache.org/jira/browse/UIMA-2353?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13207000#comment-13207000 ] 

Peter Klügl commented on UIMA-2353:
-----------------------------------

What I've done now:
- installed the DLTK Core Frameworks of the Indigo release
- added all bundles to me local maven repository with eclipse:make-artifacts
- removed 1.6 stuff (@override)
- extracted the engine code to a normal maven project
- converted all other projects to maven-eclipse-plugin projects

The projects compile now and the IDE works overall, but the rule tests of the IDE concerning a TextMarker project do not return correct annotations yet.
                
> Convert TextMarker projects to maven
> ------------------------------------
>
>                 Key: UIMA-2353
>                 URL: https://issues.apache.org/jira/browse/UIMA-2353
>             Project: UIMA
>          Issue Type: Task
>          Components: TextMarker
>            Reporter: Peter Klügl
>            Assignee: Peter Klügl
>
> The TextMarker projects in the sandbox have to become maven projects. The engine projects should be a normal maven project whereas the other projects also need to be plugin projects.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Commented] (UIMA-2353) Convert TextMarker projects to maven

Posted by "Peter Klügl (Commented JIRA)" <de...@uima.apache.org>.
    [ https://issues.apache.org/jira/browse/UIMA-2353?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13208620#comment-13208620 ] 

Peter Klügl commented on UIMA-2353:
-----------------------------------

I pinned at least one of the problems down to the fact that the engine project has not any classes in its classpath. I can not see any difference to the runtime plugin. It worked for me when I added the built plugin jar of the target folder to the bundle classpath what is not really a solution.

Marshall, can you give me a hint why the bundle-classpath of the runtime plugin does not need to be set to the built plugin jar, or how the classloader can find the classes? An empty bundle classpath pointing to the root of the plugin should not be able to resolve the built jar, I think.
                
> Convert TextMarker projects to maven
> ------------------------------------
>
>                 Key: UIMA-2353
>                 URL: https://issues.apache.org/jira/browse/UIMA-2353
>             Project: UIMA
>          Issue Type: Task
>          Components: TextMarker
>            Reporter: Peter Klügl
>            Assignee: Peter Klügl
>
> The TextMarker projects in the sandbox have to become maven projects. The engine projects should be a normal maven project whereas the other projects also need to be plugin projects.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira