{"action":"created","issue":{"url":"https://api.github.com/repos/fabric8io/fabric8/issues/4092","labels_url":"https://api.github.com/repos/fabric8io/fabric8/issues/4092/labels{/name}","comments_url":"https://api.github.com/repos/fabric8io/fabric8/issues/4092/comments","events_url":"https://api.github.com/repos/fabric8io/fabric8/issues/4092/events","html_url":"https://github.com/fabric8io/fabric8/issues/4092","id":85133385,"number":4092,"title":"inconsistencies with the archetype generation","user":{"login":"christian-posta","id":53201,"avatar_url":"https://avatars.githubusercontent.com/u/53201?v=3","gravatar_id":"","url":"https://api.github.com/users/christian-posta","html_url":"https://github.com/christian-posta","followers_url":"https://api.github.com/users/christian-posta/followers","following_url":"https://api.github.com/users/christian-posta/following{/other_user}","gists_url":"https://api.github.com/users/christian-posta/gists{/gist_id}","starred_url":"https://api.github.com/users/christian-posta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/christian-posta/subscriptions","organizations_url":"https://api.github.com/users/christian-posta/orgs","repos_url":"https://api.github.com/users/christian-posta/repos","events_url":"https://api.github.com/users/christian-posta/events{/privacy}","received_events_url":"https://api.github.com/users/christian-posta/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/fabric8io/fabric8/labels/maven","name":"maven","color":"006b75"},{"url":"https://api.github.com/repos/fabric8io/fabric8/labels/V2","name":"V2","color":"fbca04"}],"state":"open","locked":false,"assignee":{"login":"davsclaus","id":477100,"avatar_url":"https://avatars.githubusercontent.com/u/477100?v=3","gravatar_id":"","url":"https://api.github.com/users/davsclaus","html_url":"https://github.com/davsclaus","followers_url":"https://api.github.com/users/davsclaus/followers","following_url":"https://api.github.com/users/davsclaus/following{/other_user}","gists_url":"https://api.github.com/users/davsclaus/gists{/gist_id}","starred_url":"https://api.github.com/users/davsclaus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davsclaus/subscriptions","organizations_url":"https://api.github.com/users/davsclaus/orgs","repos_url":"https://api.github.com/users/davsclaus/repos","events_url":"https://api.github.com/users/davsclaus/events{/privacy}","received_events_url":"https://api.github.com/users/davsclaus/received_events","type":"User","site_admin":false},"milestone":null,"comments":4,"created_at":"2015-06-04T14:53:55Z","updated_at":"2015-06-08T13:52:58Z","closed_at":null,"body":"so the archetypes are automatically generated using the [archetype-builder](https://github.com/fabric8io/fabric8/tree/master/tooling/archetype-builder) from the [quickstarts](https://github.com/fabric8io/quickstarts/tree/master/quickstarts) which are all real projects. \r\n\r\nWhen the archetypes actually get generated on a build, some inconsistencies happen:\r\n\r\nfor the java-camel-cdi-archetype, if you look inside src/test/java you'll see the AppKubernetesTest is at the wrong java package (i.e., if i specified org.foo when creating the archetype, the AppKubernetesTest.java file is at io.fabric8.tests.integration.org.foo .. which is wrong. everything in the src/main/java looks right) Additionally, the package declaration in the java file is wrong (says io.fabric8.tests.integration). Ideally the packages would be org.foo.tests.integration and the correct package would be reflected in the java source file. If you look at AppKubernetesTest.java that gets processed after trying to build the archetype, it does not have the ${package} placeholders in it.\r\n\r\nAlso, for the java-camel-spring-archetype, the test/src is missing altogether. \r\n\r\nThere may be others, but these are the ones I noticed.\r\n\r\nFrom the source code, the relevant area seems to be https://github.com/fabric8io/fabric8/blob/master/tooling/archetype-builder/src/main/java/io/fabric8/tooling/archetype/builder/ArchetypeBuilder.java#L300\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/fabric8io/fabric8/issues/comments/110003088","html_url":"https://github.com/fabric8io/fabric8/issues/4092#issuecomment-110003088","issue_url":"https://api.github.com/repos/fabric8io/fabric8/issues/4092","id":110003088,"user":{"login":"christian-posta","id":53201,"avatar_url":"https://avatars.githubusercontent.com/u/53201?v=3","gravatar_id":"","url":"https://api.github.com/users/christian-posta","html_url":"https://github.com/christian-posta","followers_url":"https://api.github.com/users/christian-posta/followers","following_url":"https://api.github.com/users/christian-posta/following{/other_user}","gists_url":"https://api.github.com/users/christian-posta/gists{/gist_id}","starred_url":"https://api.github.com/users/christian-posta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/christian-posta/subscriptions","organizations_url":"https://api.github.com/users/christian-posta/orgs","repos_url":"https://api.github.com/users/christian-posta/repos","events_url":"https://api.github.com/users/christian-posta/events{/privacy}","received_events_url":"https://api.github.com/users/christian-posta/received_events","type":"User","site_admin":false},"created_at":"2015-06-08T13:52:58Z","updated_at":"2015-06-08T13:52:58Z","body":"@davsclaus okay thx for tackling these. i'll check the latest code. Is the idea to have the archetypes inherit from a BOM once they've been created? Or are they 100% standalone projects?"}}