jqassistant eclipse rcp tycho osgi issue

29 views
Skip to first unread message

Raphael Geissler

unread,
Aug 1, 2022, 3:04:02 AM8/1/22
to jQAssistant
Hi all,

I am very new to jqassistant and struggling with analyzing osgi bundles of an eclipse rcp tycho build. I can't see any obvious error, but in the end there no osgi-bundle information in neo4j.

To be able to reproduce the issue I prepared an official tycho demo an added the jqassistant configuration to the pom.xml.

To reproduce the issue you can clone this repo:
https://github.com/rage5474/jqassistant-tycho-osgi-issue/tree/master

And switch to this branch:
git checkout jqassistant_tycho_osgi

Then you have to switch the directory:
cd demo/itp04-rcp

Now you can install the product (this also triggers jqassistant):
mvn install

Finally you can run the neo4j server with:
mvn jqassistant:server -Djqassistant.skip=false

Now open a browser and go to:
http://localhost:7474

I can see different information, but nothing from osgi manifest.

My config in the pom.xml looks like this:
            <plugin>
                <groupId>com.buschmais.jqassistant</groupId>
                <artifactId>jqassistant-maven-plugin</artifactId>
                <version>1.11.1</version>
                <executions>
                  <execution>
                    <id>default-cli</id>
                    <goals>
                      <goal>scan</goal>
                      <goal>analyze</goal>
                    </goals>
                    <configuration>
                      <failOnSeverity>BLOCKER</failOnSeverity>
                      <concepts>
                        <concept>osgi-bundle:*</concept>
                      </concepts>
                    </configuration>
                  </execution>
                </executions>
                <configuration>
                  <storeLifecycle>MODULE</storeLifecycle>  
                  <useExecutionRootAsProjectRoot>true</useExecutionRootAsProjectRoot>
                </configuration>
            </plugin>

So is this a bug or do I have a wrong configuration?

Thanks for your help,

Raphael

Raphael Geissler

unread,
Aug 8, 2022, 4:54:00 AM8/8/22
to jQAssistant
Hi *,

I noticed that the jqassistant maven plugin is only scanning target/classes, but the created jar (that shall be scanned) is located in target folder, not in target/classes. Is there a way to configure that target is also scanned?

Thanks for your help,

Raphael

Raphael Geissler

unread,
Aug 8, 2022, 5:09:43 AM8/8/22
to jQAssistant
Hi *,

I have seen that I can add the target folder by adding this to my pom.xml:
            <scanIncludes>
                <scanInclude>
                    <path>${project.build.directory}</path>
                    <scope>java:classpath</scope>
                </scanInclude>
            </scanIncludes>

But it is still scanning target/classes what makes no sense in my case. It only increases the scan time. Can I skip the folder target/classes somehow? Where is it specified?

Raphael
Reply all
Reply to author
Forward
0 new messages