{"action":"created","issue":{"url":"https://api.github.com/repos/flopma/crowd-jaas/issues/2","labels_url":"https://api.github.com/repos/flopma/crowd-jaas/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/flopma/crowd-jaas/issues/2/comments","events_url":"https://api.github.com/repos/flopma/crowd-jaas/issues/2/events","html_url":"https://github.com/flopma/crowd-jaas/issues/2","id":83596411,"number":2,"title":"mvn package build is not completing with the pom.xml from your repository","user":{"login":"pgporada","id":2382565,"avatar_url":"https://avatars.githubusercontent.com/u/2382565?v=3","gravatar_id":"","url":"https://api.github.com/users/pgporada","html_url":"https://github.com/pgporada","followers_url":"https://api.github.com/users/pgporada/followers","following_url":"https://api.github.com/users/pgporada/following{/other_user}","gists_url":"https://api.github.com/users/pgporada/gists{/gist_id}","starred_url":"https://api.github.com/users/pgporada/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pgporada/subscriptions","organizations_url":"https://api.github.com/users/pgporada/orgs","repos_url":"https://api.github.com/users/pgporada/repos","events_url":"https://api.github.com/users/pgporada/events{/privacy}","received_events_url":"https://api.github.com/users/pgporada/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-01T16:42:48Z","updated_at":"2015-06-01T17:05:14Z","closed_at":null,"body":"I received the following error when running mvn package\r\n```\r\n[INFO] Scanning for projects...\r\n[INFO]                                                                         \r\n[INFO] ------------------------------------------------------------------------\r\n[INFO] Building jaas-jetty-crowd 1.0-SNAPSHOT\r\n[INFO] ------------------------------------------------------------------------\r\n[INFO] \r\n[INFO] --- maven-resources-plugin:2.3:resources (default-resources) @ jaas-jetty-crowd ---\r\n[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!\r\n[INFO] skip non existing resourceDirectory /home/phil/scriptshop/crowd-jaas/jetty/jaas-jetty-crowd/src/main/resources\r\n[INFO] \r\n[INFO] --- maven-compiler-plugin:2.0.2:compile (default-compile) @ jaas-jetty-crowd ---\r\n[INFO] Compiling 7 source files to /home/phil/scriptshop/crowd-jaas/jetty/jaas-jetty-crowd/target/classes\r\n[INFO] ------------------------------------------------------------------------\r\n[INFO] BUILD FAILURE\r\n[INFO] ------------------------------------------------------------------------\r\n[INFO] Total time: 1.197s\r\n[INFO] Finished at: Mon Jun 01 12:35:46 EDT 2015\r\n[INFO] Final Memory: 9M/237M\r\n[INFO] ------------------------------------------------------------------------\r\n[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile (default-compile) on project jaas-jetty-crowd: Compilation failure: Compilation failure:\r\n[ERROR] /home/phil/scriptshop/crowd-jaas/jetty/jaas-jetty-crowd/src/main/java/be/greenhand/jaas/jetty/CrowdLoginModule.java:[82,12] error: generics are not supported in -source 1.3\r\n[ERROR] \r\n[ERROR] (use -source 5 or higher to enable generics)\r\n[ERROR] /home/phil/scriptshop/crowd-jaas/jetty/jaas-jetty-crowd/src/main/java/be/greenhand/jaas/jetty/CrowdLoginModule.java:[100,2] error: annotations are not supported in -source 1.3\r\n[ERROR] \r\n[ERROR] (use -source 5 or higher to enable annotations)\r\n[ERROR] /home/phil/scriptshop/crowd-jaas/jetty/jaas-jetty-crowd/src/main/java/be/greenhand/jaas/jetty/CrowdLoginModule.java:[309,27] error: for-each loops are not supported in -source 1.3\r\n[ERROR] \r\n[ERROR] (use -source 5 or higher to enable for-each loops)\r\n[ERROR] /home/phil/scriptshop/crowd-jaas/jetty/jaas-jetty-crowd/src/main/java/be/greenhand/jaas/jetty/jaxb/Link.java:[24,2] error: annotations are not supported in -source 1.3\r\n[ERROR] \r\n[ERROR] (use -source 5 or higher to enable annotations)\r\n[ERROR] /home/phil/scriptshop/crowd-jaas/jetty/jaas-jetty-crowd/src/main/java/be/greenhand/jaas/jetty/jaxb/GroupResponse.java:[24,1] error: annotations are not supported in -source 1.3\r\n[ERROR] \r\n[ERROR] (use -source 5 or higher to enable annotations)\r\n[ERROR] /home/phil/scriptshop/crowd-jaas/jetty/jaas-jetty-crowd/src/main/java/be/greenhand/jaas/jetty/jaxb/UserResponse.java:[25,1] error: annotations are not supported in -source 1.3\r\n[ERROR] \r\n[ERROR] (use -source 5 or higher to enable annotations)\r\n[ERROR] /home/phil/scriptshop/crowd-jaas/jetty/jaas-jetty-crowd/src/main/java/be/greenhand/jaas/jetty/jaxb/AuthenticatePost.java:[23,1] error: annotations are not supported in -source 1.3\r\n[ERROR] \r\n[ERROR] (use -source 5 or higher to enable annotations)\r\n[ERROR] /home/phil/scriptshop/crowd-jaas/jetty/jaas-jetty-crowd/src/main/java/be/greenhand/jaas/jetty/jaxb/Attributes.java:[24,2] error: annotations are not supported in -source 1.3\r\n[ERROR] \r\n[ERROR] (use -source 5 or higher to enable annotations)\r\n[ERROR] /home/phil/scriptshop/crowd-jaas/jetty/jaas-jetty-crowd/src/main/java/be/greenhand/jaas/jetty/jaxb/GroupsResponse.java:[25,1] error: annotations are not supported in -source 1.3\r\n[ERROR] \r\n[ERROR] (use -source 5 or higher to enable annotations)\r\n[ERROR] /home/phil/scriptshop/crowd-jaas/jetty/jaas-jetty-crowd/src/main/java/be/greenhand/jaas/jetty/jaxb/GroupsResponse.java:[27,12] error: generics are not supported in -source 1.3\r\n[ERROR] -> [Help 1]\r\n[ERROR] \r\n[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.\r\n[ERROR] Re-run Maven using the -X switch to enable full debug logging.\r\n[ERROR] \r\n[ERROR] For more information about the errors and possible solutions, please read the following articles:\r\n[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException\r\n```\r\n\r\nI added the following config to the pom.xml you provided.\r\n```\r\n<build>\r\n    <pluginManagement>\r\n         <plugins>\r\n             <plugin>\r\n                 <artifactId>maven-compiler-plugin</artifactId>\r\n                 <version>2.3.2</version>\r\n                 <configuration>\r\n                     <source>1.6</source>\r\n                     <target>1.6</target>\r\n                     <compilerArgument></compilerArgument>\r\n                 </configuration>\r\n             </plugin>\r\n         </plugins>\r\n    </pluginManagement>\r\n</build>\r\n```\r\n\r\nI was then able to successfully build the jar\r\n```\r\n[INFO] Reading assembly descriptor: src/main/assembly/jar-with-dependencies-packed.xml\r\n[INFO] Building zip: /home/phil/scriptshop/crowd-jaas/jetty/jaas-jetty-crowd/target/jaas-jetty-crowd-1.0-SNAPSHOT-jar-with-dependencies-packed.zip\r\n[INFO] ------------------------------------------------------------------------\r\n[INFO] BUILD SUCCESS\r\n[INFO] ------------------------------------------------------------------------\r\n[INFO] Total time: 16.770s\r\n[INFO] Finished at: Mon Jun 01 12:40:09 EDT 2015\r\n[INFO] Final Memory: 15M/239M\r\n[INFO] ------------------------------------------------------------------------\r\n```"},"comment":{"url":"https://api.github.com/repos/flopma/crowd-jaas/issues/comments/107640499","html_url":"https://github.com/flopma/crowd-jaas/issues/2#issuecomment-107640499","issue_url":"https://api.github.com/repos/flopma/crowd-jaas/issues/2","id":107640499,"user":{"login":"flopma","id":2256136,"avatar_url":"https://avatars.githubusercontent.com/u/2256136?v=3","gravatar_id":"","url":"https://api.github.com/users/flopma","html_url":"https://github.com/flopma","followers_url":"https://api.github.com/users/flopma/followers","following_url":"https://api.github.com/users/flopma/following{/other_user}","gists_url":"https://api.github.com/users/flopma/gists{/gist_id}","starred_url":"https://api.github.com/users/flopma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flopma/subscriptions","organizations_url":"https://api.github.com/users/flopma/orgs","repos_url":"https://api.github.com/users/flopma/repos","events_url":"https://api.github.com/users/flopma/events{/privacy}","received_events_url":"https://api.github.com/users/flopma/received_events","type":"User","site_admin":false},"created_at":"2015-06-01T17:05:14Z","updated_at":"2015-06-01T17:05:14Z","body":"Weird, I use mvn 3.0.4 and don't need such settings - what's your maven version ?"}}