Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Nov 25 2014 08:49
    jexp opened #161
  • Nov 25 2014 08:46
    jexp opened #160
  • Nov 25 2014 08:44
    jexp opened #159
  • Nov 25 2014 08:42
    jexp opened #158
  • Nov 25 2014 08:09

    DirkMahler on master

    #124 prepare scanning of web.xm… (compare)

  • Nov 24 2014 20:42
    jensnerche opened #157
  • Nov 24 2014 20:36
    jensnerche opened #156
  • Nov 24 2014 14:08
    DirkMahler closed #154
  • Nov 24 2014 13:37

    DirkMahler on master

    #126 use goal und execution id … Merge remote-tracking branch 'o… #154 fix build problem (compare)

  • Nov 24 2014 13:05

    DirkMahler on master

    #154 renamed plugin junit4 to j… (compare)

  • Nov 24 2014 10:00
    DirkMahler assigned #154
  • Nov 24 2014 09:59
    DirkMahler labeled #154
  • Nov 24 2014 08:38
    CrystalMethod commented #155
  • Nov 24 2014 06:51
    CrystalMethod opened #155
  • Nov 24 2014 06:41
    CrystalMethod opened #154
  • Nov 20 2014 20:57
    CrystalMethod commented #153
  • Nov 20 2014 17:04

    DirkMahler on master

    #124 improve WAR scanning (compare)

  • Nov 20 2014 16:58
    DirkMahler commented #153
  • Nov 20 2014 16:56
    DirkMahler closed #91
  • Nov 20 2014 16:56
    DirkMahler commented #91
Dario Louzado
@louzadod
Maven database is already integrated in our daily process. I merge all maven repos (POMs) from our Hudson jobs and then run the POM scan pointing to a single directory. Daily.
Each job has a dedicated maven repo and performs a "clean install" into it.
The processos is very simple and clear.
process
Dirk Mahler
@DirkMahler
@all Hi everybody, it has been a long way to go but finally jQAssistant 1.0.0 is now available. You can find the official announcement here: http://jqassistant.org/jqassistant-1-0-0-released/
As always your feedback is highly welcome - bug reports, feature requests, ideas or code contributions! And now have fun using it!
Dario Louzado
@louzadod
@DirkMahler , congratulations for the 1.0.0 release!
Dirk Mahler
@DirkMahler
@louzadod Thanks, it's just the beginning ;-)
Dario Louzado
@louzadod
Hi, I'm trying to perform a simple query. I want to ensure no web application packages Apache Xerces: MATCH (a:Maven{type:'war'})-[r:DEPENDS_ON]->(b:Artifact {group:'xerces',name:'xercesImpl'}) RETURN r
but, when I put {type:'war'} neo4j returns nothing.
Dirk Mahler
@DirkMahler
@louzadod Hi, are you scanning from the Maven plugin or using the command line client?
Dirk Mahler
@DirkMahler
Can you try this one:
match
(a:Artifact{type:'war'})-[r:DEPENDS_ON]->(b:Artifact {group:'xerces',name:'xercesImpl'})
return
  r
Dario Louzado
@louzadod
strange.
In my db, I have one war depending on xerces, but result is always empty.
When I perform a match
(a:Artifact{type:'war'})-[r:DEPENDS_ON]->(b:Artifact {group:'xerces',name:'xercesImpl'})
return
r
sorry: match
(a:Artifact)-[r:DEPENDS_ON]->(b:Artifact {group:'xerces',name:'xercesImpl'})
return
r
the war is in the list.
when I add {type:'war'}, the list becames empty.
Dario Louzado
@louzadod
I tried this one. But it didn't work: match
(a:Artifact{type:'war'}) WITH a match(a)-[:DEPENDS_ON]->(b:Artifact{name:'xercesImpl'}) return a.fqn
Dirk Mahler
@DirkMahler
@louzadod I tried the same query (using another artifact name as filter) - it returnded results for me. Two questions:
  1. How are you performing the scan - Maven or CLI?
  2. can you try if the following query returns just any result " match (a:Artifact{type:'war'}) WITH a match(a)-[:DEPENDS_ON]->(b:Artifact) return a.fqn"?
Dario Louzado
@louzadod
I'm using CLI pom scanner.
Your latest query returned no results.
Dario Louzado
@louzadod
I tried this query: match (c:Artifact{name:'xercesImpl'})<-[x:DEPENDS_ON]-(a:File)-[r:DESCRIBES]->(b:Maven{type:'war'}) return b.fqn;
It returns only one case. But I have many more cases. In most of then, xercesImpl is a transitive dependency.
Dirk Mahler
@DirkMahler
@louzadod Sorry for the late response: retrieving artifact dependencies is difficult in the context of the CLI scanner. POM files are scanned but without access to the Maven infrastructure it's not possible to resolve the dependencies between artifacts.
Do you have a chance to execute the scan using the Maven plugin?
(i.e. do you have a Maven project?)
Dario Louzado
@louzadod
@DirkMahler , what about scanning a local repository using URL "file:///path/to/maven/repo" ?
Dirk Mahler
@DirkMahler
@louzadod This could be possible, the command line would be something like "jqassistant.sh scan -u maven:local-repository::file://path/to/repo". Implementation could re-use logic that's currently created for scanning remote repos. Feel free to create a ticket in the issue tracker ;-)
Dario Louzado
@louzadod
@DirkMahler , thank you.
Dario Louzado
@louzadod
@DirkMahler , I avoid using maven plugin, in my case, because I want to generate a global database involving all company projects.
Kontext E
@kontext-e
Do I understand it correctly: to give rules in adoc, they have to be given comma separated in only one line: [role=group,includesConstraints="module-structure:ApiMustNotDependOnImplementation(blocker), other:OtherConstraint, another:AnotherConstraint, and:SoOn"] ?
Dirk Mahler
@DirkMahler
@kontext-e Yes, that's currently a limitation.
I would have preferred something like that:
```
[[default]]
[role=group]
  • <<myrule:Rule>>
````
But couldn't extract the references from AsciiDoc.
Kontext E
@kontext-e
Hm, for the prototype I'm currently working on it'll be ok. But I doubt that it will work in production. The line will become too long, it will be hard to keep the overview and some editors have serious problems with very long lines. Do you use the AsciiDoctor parser or did you do your own one?
Dirk Mahler
@DirkMahler
Using asciidoctorJ to parse the documents.
Maybe we should create a sample document and pass it as a feature request to asciidoctorj
Dario Louzado
@louzadod
@DirkMahler , guten morgen.
Could you please share the URL for 1.1.0-RC1 version? I can't find it in the main web site.
?
Dirk Mahler
@DirkMahler
Some issues have already been identified (and fixed), see here https://github.com/buschmais/jqassistant/issues?q=is%3Aissue+milestone%3A1.1.0+is%3Aclosed
Dario Louzado
@louzadod
@DirkMahler , thank you. I will take a look.
Dario Louzado
@louzadod
I'm playing with 1.1.0-RC1 version. Trying to scan a maven repo using "file:" scheme. jqassistant.sh scan -u maven:repository::file:///path-to-mvn-repo -s /path-to-neo4j-db
The following exception is thrown: Caused by: java.lang.ClassCastException: sun.net.www.protocol.file.FileURLConnection cannot be cast to java.net.HttpURLConnection
at org.apache.maven.wagon.providers.http.LightweightHttpWagon.fillInputData(LightweightHttpWagon.java:130)
at org.apache.maven.wagon.StreamWagon.getInputStream(StreamWagon.java:116)
at org.apache.maven.wagon.StreamWagon.getIfNewer(StreamWagon.java:88)
at org.apache.maven.wagon.StreamWagon.get(StreamWagon.java:61)
at org.apache.maven.index.updater.WagonHelper$WagonFetcher.retrieve(WagonHelper.java:219)
at org.apache.maven.index.updater.WagonHelper$WagonFetcher.retrieve(WagonHelper.java:201)
at org.apache.maven.index.updater.DefaultIndexUpdater.downloadIndexProperties(DefaultIndexUpdater.java:459)
at org.apache.maven.index.updater.DefaultIndexUpdater.access$000(DefaultIndexUpdater.java:76)
at org.apache.maven.index.updater.DefaultIndexUpdater$IndexAdaptor.setProperties(DefaultIndexUpdater.java:589)
at org.apache.maven.index.updater.DefaultIndexUpdater.fetchAndUpdateIndex(DefaultIndexUpdater.java:814)
at org.apache.maven.index.updater.DefaultIndexUpdater.fetchAndUpdateIndex(DefaultIndexUpdater.java:157)
at com.buschmais.jqassistant.plugin.m2repo.impl.scanner.MavenIndex.updateIndex(MavenIndex.java:218)
at com.buschmais.jqassistant.plugin.m2repo.impl.scanner.MavenRepositoryScannerPlugin.scan(MavenRepositoryScannerPlugin.java:100)
at com.buschmais.jqassistant.plugin.m2repo.impl.scanner.MavenRepositoryScannerPlugin.scan(MavenRepositoryScannerPlugin.java:77)
at com.buschmais.jqassistant.plugin.m2repo.impl.scanner.MavenRepositoryScannerPlugin.scan(MavenRepositoryScannerPlugin.java:28)
at com.buschmais.jqassistant.core.scanner.impl.ScannerImpl.scan(ScannerImpl.java:77)
Is there anyway to tell Maven to use File Wagon Provider? I think this is the problem.
Dirk Mahler
@DirkMahler
@louzadod The problem most likely is that the m2repo scanner plugin of jQA tries to read the index from the repository and assumes it's a remote repo and you should see the error already with 1.0.0. We would need to implement explicit support for local repositories - if you need that please create an issue on github.
Dario Louzado
@louzadod
@DirkMahler , I need local repository support because I'm scanning Hudson jobs directly. For each job, there is a ".maven" directory containing the maven repo. I'll file the issue there. Thank you again.
Dario Louzado
@louzadod
Hello folks. Is it possible to scan a remote Maven repository using less concepts than the default? Do the scan process get faster and resulting neo4j db smaller? Thanks in advance.