{"action":"closed","issue":{"url":"https://api.github.com/repos/stoicflame/enunciate/issues/611","repository_url":"https://api.github.com/repos/stoicflame/enunciate","labels_url":"https://api.github.com/repos/stoicflame/enunciate/issues/611/labels{/name}","comments_url":"https://api.github.com/repos/stoicflame/enunciate/issues/611/comments","events_url":"https://api.github.com/repos/stoicflame/enunciate/issues/611/events","html_url":"https://github.com/stoicflame/enunciate/issues/611","id":213377697,"number":611,"title":"Support multiple enunciate configuration without re-scanning the code ","user":{"login":"patvong","id":7417421,"avatar_url":"https://avatars3.githubusercontent.com/u/7417421?v=3","gravatar_id":"","url":"https://api.github.com/users/patvong","html_url":"https://github.com/patvong","followers_url":"https://api.github.com/users/patvong/followers","following_url":"https://api.github.com/users/patvong/following{/other_user}","gists_url":"https://api.github.com/users/patvong/gists{/gist_id}","starred_url":"https://api.github.com/users/patvong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/patvong/subscriptions","organizations_url":"https://api.github.com/users/patvong/orgs","repos_url":"https://api.github.com/users/patvong/repos","events_url":"https://api.github.com/users/patvong/events{/privacy}","received_events_url":"https://api.github.com/users/patvong/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-03-10T15:53:41Z","updated_at":"2017-03-10T16:01:47Z","closed_at":"2017-03-10T16:01:47Z","body":"I'm currently using enunciate mainly to be able to use the generated `swagger.json` file that I process myself to create the HTML document for my APIs.\r\nUsing the maven plugin, I have multiple executions:\r\n```\r\n<plugin>\r\n\t<groupId>com.webcohesion.enunciate</groupId>\r\n\t<artifactId>enunciate-maven-plugin</artifactId>\r\n\t<configuration>\r\n\t\t<docsDir>${project.build.directory}/documentation/generated</docsDir>\r\n\t\t<sourcepath-includes>\r\n\t\t\t<include>\r\n\t\t\t\t<groupId>org.springframework.hateoas</groupId>\r\n\t\t\t</include>\r\n\t\t</sourcepath-includes>\r\n\t\t<sources>\r\n\t\t\t<source>${project.build.directory}/generated-sources/delombok</source>\r\n\t\t</sources>\r\n\t</configuration>\r\n\t<executions>\r\n\t\t<execution>\r\n\t\t\t<id>api-A</id>\r\n\t\t\t<goals>\r\n\t\t\t\t<goal>assemble</goal>\r\n\t\t\t</goals>\r\n\t\t\t<configuration>\r\n\t\t\t\t<configFile>src/main/resources/enunciate/enunciate-api-A.xml</configFile>\r\n\t\t\t\t<docsSubdir>api-A-enunciate</docsSubdir>\r\n\t\t\t</configuration>\r\n\t\t</execution>\r\n\t\t<execution>\r\n\t\t\t<id>api-B</id>\r\n\t\t\t<goals>\r\n\t\t\t\t<goal>assemble</goal>\r\n\t\t\t</goals>\r\n\t\t\t<configuration>\r\n\t\t\t\t<configFile>src/main/resources/enunciate/enunciate-api-B.xml</configFile>\r\n\t\t\t\t<docsSubdir>api-B-enunciate</docsSubdir>\r\n\t\t\t</configuration>\r\n\t\t</execution>\r\n\t</executions>\r\n</plugin>\r\n```\r\nI was wondering if it would be feasible to scan the code only once in order to produce different `swagger.json` file?\r\nCurrently it can take 10s to scan the code and I have more than 30 different enunciate configurations on the same code."}}
{"actor":{"display_login":"stoicflame"}}