ltearno / pom-explorer

A tool to aid managing lots of maven projects
MIT License
371 stars 65 forks source link

Command graph export #8

Closed marcelo-lucio-onofre closed 8 years ago

marcelo-lucio-onofre commented 8 years ago

Dear,

The command "graph export" return Error ! : null. I download from master.

Stacktrace: image

ltearno commented 8 years ago

Hi and thanks for your report. The target directory was not generated before trying to generate the export file. So now this should work.

Can you confirm please ?

Also as a note, you may want to try the dev branch and provide with some feedback about the ui improvments. If you do, thanks a lot !!

marcelo-lucio-onofre commented 8 years ago

Hi ltearno,

The generate files (graphml) open incorret diagram image

ltearno commented 8 years ago

Hi,

once you generate the graphml file and open it in yEd, you are not yet completely finished, because yEd needs to be instructed what it has to display from the graph data.

So once you have opened the graph file in yed, you can do the following :

Edit > Properties mapper...

Select the line in the table and click on the "Apply" button

Then select the "New configuration (Edge)" line on the left of the dialog box.

Click the first line in the table and click on the "Apply" button.

Then click OK to close the dialog box.

Now normally, all nodes are correctly presented in the yEd editor, the only remaining thing to do is to organize the nodes. You can do this by chicking on Layout > Hierarchical > OK.

You should then get something usable...

Please note that two files are generated when you use the "graph export" command. One is working at the maven project level (pom.xml files), and the other (with "repos" in the name) corresponds to git repositories dependencies, if your projects use git for version control.

Hope this helps you !

marcelo-lucio-onofre commented 8 years ago

Thanks ltearno!! Its work!!! You know why the labels are not filled with name of the dependency

ltearno commented 8 years ago

With the instruction i gave you, i get a graph like this, with the labels filled with the name of the dependency.

image

Once again there is a file related to git repositories dependencies, which would not contain maven dependencies but aggregate them by repository. With this file, you don't have dependency name.

But if you use the file without "repo" in the name, you should definitely have the dependency names, as shown in the screenshot.

Maybe there is a point i didn't get correctly ?

marcelo-lucio-onofre commented 8 years ago

Without "repo" name the generate graph is: image

Dependency names are "Vertex Label"

image

ltearno commented 8 years ago

Could you please send me the graphml file ? So i can investigate in more details ? You can send it by email for privacy... M'y email is ltearno@gmail.com

Thanks

Le ven. 8 janv. 2016 17:50, marcelolucio1982 notifications@github.com a écrit :

Without "repo" name the generate graph is: [image: image] https://cloud.githubusercontent.com/assets/3787982/12203615/f7dc78a4-b616-11e5-9e7f-31c5bfc2811d.png

Dependency names are "Vertex Label"

[image: image] https://cloud.githubusercontent.com/assets/3787982/12203646/26337482-b617-11e5-9ee0-2f5677fdc9d8.png

— Reply to this email directly or view it on GitHub https://github.com/ltearno/pom-explorer/issues/8#issuecomment-170053037.

ltearno commented 8 years ago

Please can you confim the issue is closed on your side ?

Thanks