├── .gitignore ├── .project ├── .settings ├── org.eclipse.core.resources.prefs └── org.eclipse.m2e.core.prefs ├── README.md ├── core ├── .classpath ├── .project ├── .settings │ ├── org.eclipse.core.resources.prefs │ ├── org.eclipse.jdt.core.prefs │ ├── org.eclipse.jdt.ui.prefs │ └── org.eclipse.m2e.core.prefs ├── META-INF │ └── MANIFEST.MF ├── build.properties ├── lifecycle-mapping-metadata.xml ├── plugin.xml ├── pom.xml └── src │ └── com │ └── ianbrandt │ └── tools │ └── m2e │ └── mdp │ └── core │ ├── MdpBuildParticipant.java │ └── MdpProjectConfigurator.java ├── feature ├── .project ├── .settings │ ├── org.eclipse.core.resources.prefs │ └── org.eclipse.m2e.core.prefs ├── build.properties ├── feature.properties ├── feature.xml ├── license.html └── pom.xml ├── pom.xml ├── site ├── .project ├── .settings │ ├── org.eclipse.core.resources.prefs │ └── org.eclipse.m2e.core.prefs ├── pom.xml ├── site.xml └── src │ └── main │ └── assembly │ └── assembly.xml └── tests ├── .classpath ├── .project ├── .settings ├── org.eclipse.core.resources.prefs ├── org.eclipse.jdt.core.prefs └── org.eclipse.m2e.core.prefs ├── META-INF └── MANIFEST.MF ├── build.properties ├── plugin_customization.ini ├── pom.xml ├── projects ├── copydeps │ └── pom.xml ├── smoketest │ └── pom.xml └── unpackdeps │ └── pom.xml └── src └── com └── ianbrandt └── tools └── m2e └── mdp └── tests └── M2eMdpConnectorTest.java /.gitignore: -------------------------------------------------------------------------------- 1 | target 2 | .DS_Store 3 | *.versionsBackup 4 | -------------------------------------------------------------------------------- /.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | m2e Connector for Maven Dependency Plugin 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.m2e.core.maven2Builder 10 | 11 | 12 | 13 | 14 | 15 | org.eclipse.m2e.core.maven2Nature 16 | 17 | 18 | -------------------------------------------------------------------------------- /.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding/=UTF-8 3 | -------------------------------------------------------------------------------- /.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | m2e connector for the Maven Dependency Plugin 2 | ============================================= 3 | 4 | This m2e connector for the Maven Dependency Plugin adds a lifecycle mapping for the [Unpack](http://maven.apache.org/plugins/maven-dependency-plugin/unpack-mojo.html), [Unpack Dependencies](http://maven.apache.org/plugins/maven-dependency-plugin/unpack-dependencies-mojo.html), [Copy](http://maven.apache.org/plugins/maven-dependency-plugin/copy-dependencies-mojo.html) and [Copy Dependencies](http://maven.apache.org/plugins/maven-dependency-plugin/unpack-mojo.html) Mojos. These Mojos will be executed during full builds only, and configured outputDirectory(s) will then be refreshed. 5 | 6 | [![Build Status](https://buildhive.cloudbees.com/job/ianbrandt/job/m2e-maven-dependency-plugin/badge/icon)](https://buildhive.cloudbees.com/job/ianbrandt/job/m2e-maven-dependency-plugin/) 7 | 8 | ## FAQ ## 9 | 10 | ### How do I use it? ### 11 | 12 | First off, note that this is currently Beta code. It has been minimally tested, and all the usual early adopter warnings apply. That said if you're willing to help test the connector all you have to do is: 13 | 14 | 1. Add the following [update site](http://help.eclipse.org/juno/topic/org.eclipse.platform.doc.user/tasks/tasks-127.htm?cp=0_3_15_5): 15 | 16 | http://ianbrandt.github.io/m2e-maven-dependency-plugin/ 17 | 1. Install it into Eclipse like any other [new feature](http://help.eclipse.org/juno/topic/org.eclipse.platform.doc.user/tasks/tasks-124.htm?cp=0_3_15_1). 18 | 1. Remove any [lifecycle mapping metadata](http://wiki.eclipse.org/M2E_plugin_execution_not_covered#ignore_plugin_goal) you might have had in your POMs. 19 | 20 | That's it! The connector will run on full builds, leaving it to the Maven Dependency Plugin's [overwrite rules](http://maven.apache.org/plugins/maven-dependency-plugin/usage.html#aOverwrite_Rules) to copy or unpack the artifacts when appropriate. 21 | 22 | ### Are there any performance tips I should be aware of? ### 23 | 24 | * Be mindful of your overwrite rules. Forcing a copy or unpack during a full build could slow things down quite a bit. 25 | * If you copy or unpack into an `outputDirectory` that generally also contains a lot of other resources, the workspace refresh could take longer than you'd want. Try to unpack artifacts into distinct output directories. 26 | 27 | ### How can I help the project? ### 28 | 29 | Thanks for asking... 30 | 31 | * If you're a dependency:unpack/dependency:unpack-dependencies/dependency:copy/dependency:copy-dependencies user: 32 | * Test this out. [File an issue](https://github.com/ianbrandt/m2e-maven-dependency-plugin/issues) if it doesn't work for you. File an issue if you think it should do something more, or something different. 33 | * If you're a user of any other Maven Dependency Plugin goal: 34 | * File an issue to request mappings for additional goals. Be as specific as possible in describing the behavior you would expect. If you think the behavior might warrant configuration, either via files or a UI, share your vision for this as well. 35 | * If you're a Tycho expert: 36 | * Skim the POMs. File an issue or submit a pull request if there is something that could be done better. 37 | * If you're an Eclipse Plugin or m2e expert: 38 | * Skim the source and suggest improvements via issues or pull requests. 39 | * Contribute new test cases. 40 | * If you're a representative of the Eclipse Foundation or Apache Software Foundation or similar: 41 | * I'd be happy to consider donating this plugin—do get in touch. 42 | 43 | ### Why not just make the Maven Dependency Plugin itself m2e compatible? ### 44 | 45 | Connector-less [m2e compatibility](http://wiki.eclipse.org/M2E_compatible_maven_plugins) may very well be the end goal for this project. First this connector's behavior should be deemed universally desirable, and not in need of any configuration. As it stands if you find the behavior of this connector unsuitable you're free to uninstall it, or swap it out for another solution. That wouldn't be the case if the behavior was baked into the Maven Dependency Plugin proper. 46 | 47 | ## Thanks ## 48 | 49 | Many thanks to [Fred Bricon](https://community.jboss.org/people/fbricon "Fred Bricon at JBoss") for his help on IRC; his work on [m2e](http://www.eclipse.org/m2e/) and [m2e-wtp](http://www.eclipse.org/m2e-wtp/); and his [m2e-wro4j connector](https://github.com/jbosstools/m2e-wro4j), which I cribbed from heavily to create this plugin. 50 | -------------------------------------------------------------------------------- /core/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /core/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | m2e Connector for Maven Dependency Plugin Core 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | org.eclipse.pde.ManifestBuilder 15 | 16 | 17 | 18 | 19 | org.eclipse.pde.SchemaBuilder 20 | 21 | 22 | 23 | 24 | org.eclipse.m2e.core.maven2Builder 25 | 26 | 27 | 28 | 29 | 30 | org.eclipse.jdt.core.javanature 31 | org.eclipse.m2e.core.maven2Nature 32 | org.eclipse.pde.PluginNature 33 | 34 | 35 | -------------------------------------------------------------------------------- /core/.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding/=UTF-8 3 | -------------------------------------------------------------------------------- /core/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6 4 | org.eclipse.jdt.core.compiler.compliance=1.6 5 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 6 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 7 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning 8 | org.eclipse.jdt.core.compiler.source=1.6 9 | org.eclipse.jdt.core.formatter.align_type_members_on_columns=false 10 | org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression=16 11 | org.eclipse.jdt.core.formatter.alignment_for_arguments_in_annotation=0 12 | org.eclipse.jdt.core.formatter.alignment_for_arguments_in_enum_constant=16 13 | org.eclipse.jdt.core.formatter.alignment_for_arguments_in_explicit_constructor_call=16 14 | org.eclipse.jdt.core.formatter.alignment_for_arguments_in_method_invocation=16 15 | org.eclipse.jdt.core.formatter.alignment_for_arguments_in_qualified_allocation_expression=16 16 | org.eclipse.jdt.core.formatter.alignment_for_assignment=0 17 | org.eclipse.jdt.core.formatter.alignment_for_binary_expression=16 18 | org.eclipse.jdt.core.formatter.alignment_for_compact_if=16 19 | org.eclipse.jdt.core.formatter.alignment_for_conditional_expression=80 20 | org.eclipse.jdt.core.formatter.alignment_for_enum_constants=0 21 | org.eclipse.jdt.core.formatter.alignment_for_expressions_in_array_initializer=16 22 | org.eclipse.jdt.core.formatter.alignment_for_method_declaration=0 23 | org.eclipse.jdt.core.formatter.alignment_for_multiple_fields=16 24 | org.eclipse.jdt.core.formatter.alignment_for_parameters_in_constructor_declaration=16 25 | org.eclipse.jdt.core.formatter.alignment_for_parameters_in_method_declaration=16 26 | org.eclipse.jdt.core.formatter.alignment_for_resources_in_try=80 27 | org.eclipse.jdt.core.formatter.alignment_for_selector_in_method_invocation=16 28 | org.eclipse.jdt.core.formatter.alignment_for_superclass_in_type_declaration=16 29 | org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_enum_declaration=16 30 | org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_type_declaration=16 31 | org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_constructor_declaration=16 32 | org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_method_declaration=16 33 | org.eclipse.jdt.core.formatter.alignment_for_union_type_in_multicatch=16 34 | org.eclipse.jdt.core.formatter.blank_lines_after_imports=1 35 | org.eclipse.jdt.core.formatter.blank_lines_after_package=1 36 | org.eclipse.jdt.core.formatter.blank_lines_before_field=0 37 | org.eclipse.jdt.core.formatter.blank_lines_before_first_class_body_declaration=0 38 | org.eclipse.jdt.core.formatter.blank_lines_before_imports=1 39 | org.eclipse.jdt.core.formatter.blank_lines_before_member_type=1 40 | org.eclipse.jdt.core.formatter.blank_lines_before_method=1 41 | org.eclipse.jdt.core.formatter.blank_lines_before_new_chunk=1 42 | org.eclipse.jdt.core.formatter.blank_lines_before_package=0 43 | org.eclipse.jdt.core.formatter.blank_lines_between_import_groups=1 44 | org.eclipse.jdt.core.formatter.blank_lines_between_type_declarations=1 45 | org.eclipse.jdt.core.formatter.brace_position_for_annotation_type_declaration=end_of_line 46 | org.eclipse.jdt.core.formatter.brace_position_for_anonymous_type_declaration=end_of_line 47 | org.eclipse.jdt.core.formatter.brace_position_for_array_initializer=end_of_line 48 | org.eclipse.jdt.core.formatter.brace_position_for_block=end_of_line 49 | org.eclipse.jdt.core.formatter.brace_position_for_block_in_case=end_of_line 50 | org.eclipse.jdt.core.formatter.brace_position_for_constructor_declaration=end_of_line 51 | org.eclipse.jdt.core.formatter.brace_position_for_enum_constant=end_of_line 52 | org.eclipse.jdt.core.formatter.brace_position_for_enum_declaration=end_of_line 53 | org.eclipse.jdt.core.formatter.brace_position_for_method_declaration=end_of_line 54 | org.eclipse.jdt.core.formatter.brace_position_for_switch=end_of_line 55 | org.eclipse.jdt.core.formatter.brace_position_for_type_declaration=end_of_line 56 | org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_block_comment=false 57 | org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_javadoc_comment=false 58 | org.eclipse.jdt.core.formatter.comment.format_block_comments=true 59 | org.eclipse.jdt.core.formatter.comment.format_header=false 60 | org.eclipse.jdt.core.formatter.comment.format_html=true 61 | org.eclipse.jdt.core.formatter.comment.format_javadoc_comments=true 62 | org.eclipse.jdt.core.formatter.comment.format_line_comments=true 63 | org.eclipse.jdt.core.formatter.comment.format_source_code=true 64 | org.eclipse.jdt.core.formatter.comment.indent_parameter_description=true 65 | org.eclipse.jdt.core.formatter.comment.indent_root_tags=true 66 | org.eclipse.jdt.core.formatter.comment.insert_new_line_before_root_tags=insert 67 | org.eclipse.jdt.core.formatter.comment.insert_new_line_for_parameter=insert 68 | org.eclipse.jdt.core.formatter.comment.line_length=80 69 | org.eclipse.jdt.core.formatter.comment.new_lines_at_block_boundaries=true 70 | org.eclipse.jdt.core.formatter.comment.new_lines_at_javadoc_boundaries=true 71 | org.eclipse.jdt.core.formatter.comment.preserve_white_space_between_code_and_line_comments=false 72 | org.eclipse.jdt.core.formatter.compact_else_if=true 73 | org.eclipse.jdt.core.formatter.continuation_indentation=2 74 | org.eclipse.jdt.core.formatter.continuation_indentation_for_array_initializer=2 75 | org.eclipse.jdt.core.formatter.disabling_tag=@formatter\:off 76 | org.eclipse.jdt.core.formatter.enabling_tag=@formatter\:on 77 | org.eclipse.jdt.core.formatter.format_guardian_clause_on_one_line=false 78 | org.eclipse.jdt.core.formatter.format_line_comment_starting_on_first_column=true 79 | org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_annotation_declaration_header=true 80 | org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_constant_header=true 81 | org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_declaration_header=true 82 | org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_type_header=true 83 | org.eclipse.jdt.core.formatter.indent_breaks_compare_to_cases=true 84 | org.eclipse.jdt.core.formatter.indent_empty_lines=false 85 | org.eclipse.jdt.core.formatter.indent_statements_compare_to_block=true 86 | org.eclipse.jdt.core.formatter.indent_statements_compare_to_body=true 87 | org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_cases=true 88 | org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_switch=false 89 | org.eclipse.jdt.core.formatter.indentation.size=4 90 | org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_field=insert 91 | org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_local_variable=insert 92 | org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_method=insert 93 | org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_package=insert 94 | org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_parameter=do not insert 95 | org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_type=insert 96 | org.eclipse.jdt.core.formatter.insert_new_line_after_label=do not insert 97 | org.eclipse.jdt.core.formatter.insert_new_line_after_opening_brace_in_array_initializer=do not insert 98 | org.eclipse.jdt.core.formatter.insert_new_line_at_end_of_file_if_missing=do not insert 99 | org.eclipse.jdt.core.formatter.insert_new_line_before_catch_in_try_statement=do not insert 100 | org.eclipse.jdt.core.formatter.insert_new_line_before_closing_brace_in_array_initializer=do not insert 101 | org.eclipse.jdt.core.formatter.insert_new_line_before_else_in_if_statement=do not insert 102 | org.eclipse.jdt.core.formatter.insert_new_line_before_finally_in_try_statement=do not insert 103 | org.eclipse.jdt.core.formatter.insert_new_line_before_while_in_do_statement=do not insert 104 | org.eclipse.jdt.core.formatter.insert_new_line_in_empty_annotation_declaration=insert 105 | org.eclipse.jdt.core.formatter.insert_new_line_in_empty_anonymous_type_declaration=insert 106 | org.eclipse.jdt.core.formatter.insert_new_line_in_empty_block=insert 107 | org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_constant=insert 108 | org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_declaration=insert 109 | org.eclipse.jdt.core.formatter.insert_new_line_in_empty_method_body=insert 110 | org.eclipse.jdt.core.formatter.insert_new_line_in_empty_type_declaration=insert 111 | org.eclipse.jdt.core.formatter.insert_space_after_and_in_type_parameter=insert 112 | org.eclipse.jdt.core.formatter.insert_space_after_assignment_operator=insert 113 | org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation=do not insert 114 | org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation_type_declaration=do not insert 115 | org.eclipse.jdt.core.formatter.insert_space_after_binary_operator=insert 116 | org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_arguments=insert 117 | org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_parameters=insert 118 | org.eclipse.jdt.core.formatter.insert_space_after_closing_brace_in_block=insert 119 | org.eclipse.jdt.core.formatter.insert_space_after_closing_paren_in_cast=insert 120 | org.eclipse.jdt.core.formatter.insert_space_after_colon_in_assert=insert 121 | org.eclipse.jdt.core.formatter.insert_space_after_colon_in_case=insert 122 | org.eclipse.jdt.core.formatter.insert_space_after_colon_in_conditional=insert 123 | org.eclipse.jdt.core.formatter.insert_space_after_colon_in_for=insert 124 | org.eclipse.jdt.core.formatter.insert_space_after_colon_in_labeled_statement=insert 125 | org.eclipse.jdt.core.formatter.insert_space_after_comma_in_allocation_expression=insert 126 | org.eclipse.jdt.core.formatter.insert_space_after_comma_in_annotation=insert 127 | org.eclipse.jdt.core.formatter.insert_space_after_comma_in_array_initializer=insert 128 | org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_parameters=insert 129 | org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_throws=insert 130 | org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_constant_arguments=insert 131 | org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_declarations=insert 132 | org.eclipse.jdt.core.formatter.insert_space_after_comma_in_explicitconstructorcall_arguments=insert 133 | org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_increments=insert 134 | org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_inits=insert 135 | org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_parameters=insert 136 | org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_throws=insert 137 | org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_invocation_arguments=insert 138 | org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_field_declarations=insert 139 | org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_local_declarations=insert 140 | org.eclipse.jdt.core.formatter.insert_space_after_comma_in_parameterized_type_reference=insert 141 | org.eclipse.jdt.core.formatter.insert_space_after_comma_in_superinterfaces=insert 142 | org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_arguments=insert 143 | org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_parameters=insert 144 | org.eclipse.jdt.core.formatter.insert_space_after_ellipsis=insert 145 | org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_parameterized_type_reference=do not insert 146 | org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_arguments=do not insert 147 | org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_parameters=do not insert 148 | org.eclipse.jdt.core.formatter.insert_space_after_opening_brace_in_array_initializer=insert 149 | org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_allocation_expression=do not insert 150 | org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_reference=do not insert 151 | org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_annotation=do not insert 152 | org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_cast=do not insert 153 | org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_catch=do not insert 154 | org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_constructor_declaration=do not insert 155 | org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_enum_constant=do not insert 156 | org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_for=do not insert 157 | org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_if=do not insert 158 | org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_declaration=do not insert 159 | org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_invocation=do not insert 160 | org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_parenthesized_expression=do not insert 161 | org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_switch=do not insert 162 | org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_synchronized=do not insert 163 | org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_try=do not insert 164 | org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_while=do not insert 165 | org.eclipse.jdt.core.formatter.insert_space_after_postfix_operator=do not insert 166 | org.eclipse.jdt.core.formatter.insert_space_after_prefix_operator=do not insert 167 | org.eclipse.jdt.core.formatter.insert_space_after_question_in_conditional=insert 168 | org.eclipse.jdt.core.formatter.insert_space_after_question_in_wildcard=do not insert 169 | org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_for=insert 170 | org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_try_resources=insert 171 | org.eclipse.jdt.core.formatter.insert_space_after_unary_operator=do not insert 172 | org.eclipse.jdt.core.formatter.insert_space_before_and_in_type_parameter=insert 173 | org.eclipse.jdt.core.formatter.insert_space_before_assignment_operator=insert 174 | org.eclipse.jdt.core.formatter.insert_space_before_at_in_annotation_type_declaration=insert 175 | org.eclipse.jdt.core.formatter.insert_space_before_binary_operator=insert 176 | org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_parameterized_type_reference=do not insert 177 | org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_arguments=do not insert 178 | org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_parameters=do not insert 179 | org.eclipse.jdt.core.formatter.insert_space_before_closing_brace_in_array_initializer=insert 180 | org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_allocation_expression=do not insert 181 | org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_reference=do not insert 182 | org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_annotation=do not insert 183 | org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_cast=do not insert 184 | org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_catch=do not insert 185 | org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_constructor_declaration=do not insert 186 | org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_enum_constant=do not insert 187 | org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_for=do not insert 188 | org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_if=do not insert 189 | org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_declaration=do not insert 190 | org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_invocation=do not insert 191 | org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_parenthesized_expression=do not insert 192 | org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_switch=do not insert 193 | org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_synchronized=do not insert 194 | org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_try=do not insert 195 | org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_while=do not insert 196 | org.eclipse.jdt.core.formatter.insert_space_before_colon_in_assert=insert 197 | org.eclipse.jdt.core.formatter.insert_space_before_colon_in_case=do not insert 198 | org.eclipse.jdt.core.formatter.insert_space_before_colon_in_conditional=insert 199 | org.eclipse.jdt.core.formatter.insert_space_before_colon_in_default=do not insert 200 | org.eclipse.jdt.core.formatter.insert_space_before_colon_in_for=insert 201 | org.eclipse.jdt.core.formatter.insert_space_before_colon_in_labeled_statement=do not insert 202 | org.eclipse.jdt.core.formatter.insert_space_before_comma_in_allocation_expression=do not insert 203 | org.eclipse.jdt.core.formatter.insert_space_before_comma_in_annotation=do not insert 204 | org.eclipse.jdt.core.formatter.insert_space_before_comma_in_array_initializer=do not insert 205 | org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_parameters=do not insert 206 | org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_throws=do not insert 207 | org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_constant_arguments=do not insert 208 | org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_declarations=do not insert 209 | org.eclipse.jdt.core.formatter.insert_space_before_comma_in_explicitconstructorcall_arguments=do not insert 210 | org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_increments=do not insert 211 | org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_inits=do not insert 212 | org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_parameters=do not insert 213 | org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_throws=do not insert 214 | org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_invocation_arguments=do not insert 215 | org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_field_declarations=do not insert 216 | org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_local_declarations=do not insert 217 | org.eclipse.jdt.core.formatter.insert_space_before_comma_in_parameterized_type_reference=do not insert 218 | org.eclipse.jdt.core.formatter.insert_space_before_comma_in_superinterfaces=do not insert 219 | org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_arguments=do not insert 220 | org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_parameters=do not insert 221 | org.eclipse.jdt.core.formatter.insert_space_before_ellipsis=do not insert 222 | org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_parameterized_type_reference=do not insert 223 | org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_arguments=do not insert 224 | org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_parameters=do not insert 225 | org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_annotation_type_declaration=insert 226 | org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_anonymous_type_declaration=insert 227 | org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_array_initializer=insert 228 | org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_block=insert 229 | org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_constructor_declaration=insert 230 | org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_constant=insert 231 | org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_declaration=insert 232 | org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_method_declaration=insert 233 | org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_switch=insert 234 | org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_type_declaration=insert 235 | org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_allocation_expression=do not insert 236 | org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_reference=do not insert 237 | org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_type_reference=do not insert 238 | org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation=do not insert 239 | org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation_type_member_declaration=do not insert 240 | org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_catch=insert 241 | org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_constructor_declaration=do not insert 242 | org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_enum_constant=do not insert 243 | org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_for=insert 244 | org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_if=insert 245 | org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_declaration=do not insert 246 | org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_invocation=do not insert 247 | org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_parenthesized_expression=do not insert 248 | org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_switch=insert 249 | org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_synchronized=insert 250 | org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_try=insert 251 | org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_while=insert 252 | org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_return=insert 253 | org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_throw=insert 254 | org.eclipse.jdt.core.formatter.insert_space_before_postfix_operator=do not insert 255 | org.eclipse.jdt.core.formatter.insert_space_before_prefix_operator=do not insert 256 | org.eclipse.jdt.core.formatter.insert_space_before_question_in_conditional=insert 257 | org.eclipse.jdt.core.formatter.insert_space_before_question_in_wildcard=do not insert 258 | org.eclipse.jdt.core.formatter.insert_space_before_semicolon=do not insert 259 | org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_for=do not insert 260 | org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_try_resources=do not insert 261 | org.eclipse.jdt.core.formatter.insert_space_before_unary_operator=do not insert 262 | org.eclipse.jdt.core.formatter.insert_space_between_brackets_in_array_type_reference=do not insert 263 | org.eclipse.jdt.core.formatter.insert_space_between_empty_braces_in_array_initializer=do not insert 264 | org.eclipse.jdt.core.formatter.insert_space_between_empty_brackets_in_array_allocation_expression=do not insert 265 | org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_annotation_type_member_declaration=do not insert 266 | org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_constructor_declaration=do not insert 267 | org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_enum_constant=do not insert 268 | org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_declaration=do not insert 269 | org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_invocation=do not insert 270 | org.eclipse.jdt.core.formatter.join_lines_in_comments=true 271 | org.eclipse.jdt.core.formatter.join_wrapped_lines=true 272 | org.eclipse.jdt.core.formatter.keep_else_statement_on_same_line=false 273 | org.eclipse.jdt.core.formatter.keep_empty_array_initializer_on_one_line=false 274 | org.eclipse.jdt.core.formatter.keep_imple_if_on_one_line=false 275 | org.eclipse.jdt.core.formatter.keep_then_statement_on_same_line=false 276 | org.eclipse.jdt.core.formatter.lineSplit=120 277 | org.eclipse.jdt.core.formatter.never_indent_block_comments_on_first_column=false 278 | org.eclipse.jdt.core.formatter.never_indent_line_comments_on_first_column=false 279 | org.eclipse.jdt.core.formatter.number_of_blank_lines_at_beginning_of_method_body=0 280 | org.eclipse.jdt.core.formatter.number_of_empty_lines_to_preserve=1 281 | org.eclipse.jdt.core.formatter.put_empty_statement_on_new_line=true 282 | org.eclipse.jdt.core.formatter.tabulation.char=tab 283 | org.eclipse.jdt.core.formatter.tabulation.size=4 284 | org.eclipse.jdt.core.formatter.use_on_off_tags=false 285 | org.eclipse.jdt.core.formatter.use_tabs_only_for_leading_indentations=false 286 | org.eclipse.jdt.core.formatter.wrap_before_binary_operator=true 287 | org.eclipse.jdt.core.formatter.wrap_before_or_operator_multicatch=true 288 | org.eclipse.jdt.core.formatter.wrap_outer_expressions_when_nested=true 289 | -------------------------------------------------------------------------------- /core/.settings/org.eclipse.jdt.ui.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | formatter_profile=_Ian Brandt 3 | formatter_settings_version=12 4 | -------------------------------------------------------------------------------- /core/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /core/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Bundle-ManifestVersion: 2 3 | Bundle-Name: m2e connector for Maven Dependency Plugin 4 | Bundle-SymbolicName: com.ianbrandt.tools.m2e.mdp.core;singleton:=true 5 | Bundle-Version: 0.0.4.qualifier 6 | Bundle-Vendor: Ian Brandt 7 | Bundle-RequiredExecutionEnvironment: JavaSE-1.6 8 | Require-Bundle: org.eclipse.core.resources;bundle-version="3.4.0", 9 | org.eclipse.core.runtime;bundle-version="3.4.0", 10 | org.eclipse.m2e.jdt;bundle-version="1.4.0", 11 | org.eclipse.m2e.core;bundle-version="1.4.0", 12 | org.eclipse.m2e.maven.runtime;bundle-version="1.4.0" 13 | -------------------------------------------------------------------------------- /core/build.properties: -------------------------------------------------------------------------------- 1 | source.. = src/ 2 | output.. = target/classes 3 | bin.includes = META-INF/,\ 4 | .,\ 5 | plugin.xml,\ 6 | lifecycle-mapping-metadata.xml -------------------------------------------------------------------------------- /core/lifecycle-mapping-metadata.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | org.apache.maven.plugins 7 | maven-dependency-plugin 8 | [1.0,) 9 | 10 | unpack 11 | unpack-dependencies 12 | copy 13 | copy-dependencies 14 | 15 | 16 | 17 | 18 | com.ianbrandt.tools.m2e.mdp.core.MdpProjectConfigurator 19 | 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /core/plugin.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /core/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 4.0.0 5 | 6 | 7 | com.ianbrandt 8 | m2e-maven-dependency-plugin-parent 9 | 0.0.4-SNAPSHOT 10 | 11 | 12 | com.ianbrandt.tools.m2e.mdp.core 13 | eclipse-plugin 14 | 15 | m2e Connector for Maven Dependency Plugin Core 16 | 17 | 18 | -------------------------------------------------------------------------------- /core/src/com/ianbrandt/tools/m2e/mdp/core/MdpBuildParticipant.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2012 Ian Brandt 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the Eclipse Public License v1.0 5 | * which accompanies this distribution, and is available at 6 | * http://www.eclipse.org/legal/epl-v10.html 7 | * 8 | * Contributors: 9 | * Ian Brandt - initial API and implementation 10 | *******************************************************************************/ 11 | package com.ianbrandt.tools.m2e.mdp.core; 12 | 13 | import java.beans.IntrospectionException; 14 | import java.beans.PropertyDescriptor; 15 | import java.io.File; 16 | import java.lang.reflect.InvocationTargetException; 17 | import java.lang.reflect.Method; 18 | import java.util.HashSet; 19 | import java.util.List; 20 | import java.util.Set; 21 | 22 | import org.apache.maven.plugin.MojoExecution; 23 | import org.apache.maven.project.MavenProject; 24 | import org.eclipse.core.resources.IFile; 25 | import org.eclipse.core.resources.IProject; 26 | import org.eclipse.core.resources.IncrementalProjectBuilder; 27 | import org.eclipse.core.runtime.CoreException; 28 | import org.eclipse.core.runtime.IProgressMonitor; 29 | import org.eclipse.core.runtime.NullProgressMonitor; 30 | import org.eclipse.m2e.core.MavenPlugin; 31 | import org.eclipse.m2e.core.embedder.IMaven; 32 | import org.eclipse.m2e.core.project.configurator.MojoExecutionBuildParticipant; 33 | import org.eclipse.osgi.util.NLS; 34 | import org.sonatype.plexus.build.incremental.BuildContext; 35 | 36 | public class MdpBuildParticipant extends MojoExecutionBuildParticipant { 37 | 38 | private static final String ARTIFACT_ITEMS_PROPERTY = "artifactItems"; 39 | 40 | private static final String OUTPUT_DIRECTORY_PROPERTY = "outputDirectory"; 41 | 42 | public MdpBuildParticipant(MojoExecution execution) { 43 | 44 | super(execution, true); 45 | } 46 | 47 | @Override 48 | public Set build(final int kind, final IProgressMonitor monitor) throws Exception { 49 | 50 | final IMaven maven = MavenPlugin.getMaven(); 51 | final MojoExecution mojoExecution = getMojoExecution(); 52 | final BuildContext buildContext = getBuildContext(); 53 | 54 | if (mojoExecution == null) { 55 | return null; 56 | } 57 | 58 | final IFile pomFile = (IFile) getMavenProjectFacade().getProject().findMember("pom.xml"); 59 | 60 | // skipping the build if not a Full Build or if pom.xml has not changed 61 | if(kind != IncrementalProjectBuilder.FULL_BUILD && !buildContext.hasDelta(pomFile.getLocation().toFile())) { 62 | return null; 63 | } 64 | 65 | setTaskName(monitor); 66 | 67 | final Set result = executeMojo(kind, monitor); 68 | 69 | final Set outputDirectories = getOutputDirectories(maven, mojoExecution); 70 | 71 | for (File outputDirectory : outputDirectories) { 72 | 73 | refreshOutputDirectory(buildContext, outputDirectory); 74 | } 75 | 76 | return result; 77 | } 78 | 79 | private Set getOutputDirectories(final IMaven maven, final MojoExecution mojoExecution) throws CoreException, 80 | IntrospectionException, IllegalArgumentException, IllegalAccessException, InvocationTargetException { 81 | 82 | final Set outputDirectories = new HashSet(); 83 | final MavenProject mavenProject = getMavenProjectFacade().getMavenProject(); 84 | 85 | final File globalOutputDirectory = maven.getMojoParameterValue(mavenProject, mojoExecution, 86 | OUTPUT_DIRECTORY_PROPERTY, File.class, new NullProgressMonitor()); 87 | 88 | final List artifactItems = maven.getMojoParameterValue(mavenProject, mojoExecution, ARTIFACT_ITEMS_PROPERTY, 89 | List.class, new NullProgressMonitor()); 90 | 91 | Method getOutputDirectoryMethod = null; 92 | 93 | for (Object artifactItem : artifactItems) { 94 | 95 | if (getOutputDirectoryMethod == null) { 96 | 97 | getOutputDirectoryMethod = new PropertyDescriptor(OUTPUT_DIRECTORY_PROPERTY, artifactItem.getClass()) 98 | .getReadMethod(); 99 | } 100 | 101 | File artifactItemOutputDirectory = (File) getOutputDirectoryMethod.invoke(artifactItem); 102 | 103 | if (artifactItemOutputDirectory != null) { 104 | 105 | outputDirectories.add(artifactItemOutputDirectory); 106 | 107 | } else { 108 | 109 | outputDirectories.add(globalOutputDirectory); 110 | } 111 | } 112 | 113 | if (outputDirectories.size() == 0) { 114 | 115 | outputDirectories.add(globalOutputDirectory); 116 | } 117 | 118 | return outputDirectories; 119 | } 120 | 121 | private void setTaskName(IProgressMonitor monitor) { 122 | 123 | if (monitor != null) { 124 | 125 | final String taskName = NLS.bind("Invoking {0} on {1}", getMojoExecution().getMojoDescriptor() 126 | .getFullGoalName(), getMavenProjectFacade().getProject().getName()); 127 | 128 | monitor.setTaskName(taskName); 129 | } 130 | } 131 | 132 | private Set executeMojo(final int kind, final IProgressMonitor monitor) throws Exception { 133 | return super.build(kind, monitor); 134 | } 135 | 136 | private void refreshOutputDirectory(final BuildContext buildContext, final File outputDirectory) { 137 | 138 | if (outputDirectory != null && outputDirectory.exists()) { 139 | 140 | buildContext.refresh(outputDirectory); 141 | } 142 | } 143 | } 144 | -------------------------------------------------------------------------------- /core/src/com/ianbrandt/tools/m2e/mdp/core/MdpProjectConfigurator.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2012 Ian Brandt 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the Eclipse Public License v1.0 5 | * which accompanies this distribution, and is available at 6 | * http://www.eclipse.org/legal/epl-v10.html 7 | * 8 | * Contributors: 9 | * Ian Brandt - initial API and implementation 10 | *******************************************************************************/ 11 | package com.ianbrandt.tools.m2e.mdp.core; 12 | 13 | import org.apache.maven.plugin.MojoExecution; 14 | import org.eclipse.core.runtime.CoreException; 15 | import org.eclipse.core.runtime.IProgressMonitor; 16 | import org.eclipse.m2e.core.lifecyclemapping.model.IPluginExecutionMetadata; 17 | import org.eclipse.m2e.core.project.IMavenProjectFacade; 18 | import org.eclipse.m2e.core.project.configurator.AbstractBuildParticipant; 19 | import org.eclipse.m2e.core.project.configurator.AbstractProjectConfigurator; 20 | import org.eclipse.m2e.core.project.configurator.ProjectConfigurationRequest; 21 | 22 | public class MdpProjectConfigurator extends AbstractProjectConfigurator { 23 | 24 | @Override 25 | public AbstractBuildParticipant getBuildParticipant(IMavenProjectFacade projectFacade, MojoExecution execution, 26 | IPluginExecutionMetadata executionMetadata) { 27 | 28 | return new MdpBuildParticipant(execution); 29 | } 30 | 31 | @Override 32 | public void configure(ProjectConfigurationRequest projectConfigurationRequest, IProgressMonitor iProgressMonitor) 33 | throws CoreException { 34 | // Nothing to configure 35 | } 36 | 37 | } 38 | -------------------------------------------------------------------------------- /feature/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | m2e Connector for Maven Dependency Plugin Feature 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.pde.FeatureBuilder 10 | 11 | 12 | 13 | 14 | org.eclipse.m2e.core.maven2Builder 15 | 16 | 17 | 18 | 19 | 20 | org.eclipse.m2e.core.maven2Nature 21 | org.eclipse.pde.FeatureNature 22 | 23 | 24 | -------------------------------------------------------------------------------- /feature/.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding/=UTF-8 3 | -------------------------------------------------------------------------------- /feature/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /feature/build.properties: -------------------------------------------------------------------------------- 1 | bin.includes = feature.xml,\ 2 | feature.properties,\ 3 | license.html -------------------------------------------------------------------------------- /feature/feature.properties: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # Copyright (c) 2012 Ian Brandt. 3 | # All rights reserved. This program and the accompanying materials 4 | # are made available under the terms of the Eclipse Public License v1.0 5 | # which accompanies this distribution, and is available at 6 | # http://www.eclipse.org/legal/epl-v10.html 7 | # 8 | # Contributors: 9 | # Ian Brandt - initial API and implementation 10 | ############################################################################### 11 | # feature.properties 12 | # contains externalized strings for feature.xml 13 | # "%foo" in feature.xml corresponds to the key "foo" in this file 14 | # java.io.Properties file (ISO 8859-1 with "\" escapes) 15 | # This file should be translated. 16 | 17 | # "featureName" property - name of the feature 18 | featureName=m2e connector for the Maven Dependency Plugin 19 | 20 | # "providerName" property - name of the company that provides the feature 21 | providerName=Ian Brandt 22 | 23 | # "updateSiteName" property - label for the update site 24 | #updateSiteName=The Eclipse Project Updates 25 | 26 | # "description" property - description of the feature 27 | description=m2e connector for the Maven Dependency Plugin 28 | 29 | # "copyright" property - text of the "Feature Update Copyright" 30 | copyright=\ 31 | Copyright (c) Ian Brandt\n\ 32 | All rights reserved. This program and the accompanying materials\n\ 33 | are made available under the terms of the Eclipse Public License v1.0\n\ 34 | which accompanies this distribution, and is available at\n\ 35 | http://www.eclipse.org/legal/epl-v10.html\n\ 36 | \n\ 37 | Contributors:\n\ 38 | Ian Brandt - initial API and implementation\n 39 | ################ end of copyright property #################################### 40 | 41 | # "licenseURL" property - URL of the "Feature License" 42 | # do not translate value - just change to point to a locale-specific HTML page 43 | licenseURL=license.html 44 | 45 | # "license" property - text of the "Feature Update License" 46 | # should be plain text version of license agreement pointed to be "licenseURL" 47 | license=\ 48 | \n\ 49 | Eclipse Public License - v 1.0\n\ 50 | \n\ 51 | THE ACCOMPANYING PROGRAM IS PROVIDED UNDER THE TERMS OF THIS ECLIPSE\n\ 52 | PUBLIC LICENSE ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION OF\n\ 53 | THE PROGRAM CONSTITUTES RECIPIENT'S ACCEPTANCE OF THIS AGREEMENT.\n\ 54 | \n\ 55 | *1. DEFINITIONS*\n\ 56 | \n\ 57 | "Contribution" means:\n\ 58 | \n\ 59 | a) in the case of the initial Contributor, the initial code and\n\ 60 | documentation distributed under this Agreement, and\n\ 61 | \n\ 62 | b) in the case of each subsequent Contributor:\n\ 63 | \n\ 64 | i) changes to the Program, and\n\ 65 | \n\ 66 | ii) additions to the Program;\n\ 67 | \n\ 68 | where such changes and/or additions to the Program originate from and\n\ 69 | are distributed by that particular Contributor. A Contribution\n\ 70 | 'originates' from a Contributor if it was added to the Program by such\n\ 71 | Contributor itself or anyone acting on such Contributor's behalf.\n\ 72 | Contributions do not include additions to the Program which: (i) are\n\ 73 | separate modules of software distributed in conjunction with the Program\n\ 74 | under their own license agreement, and (ii) are not derivative works of\n\ 75 | the Program.\n\ 76 | \n\ 77 | "Contributor" means any person or entity that distributes the Program.\n\ 78 | \n\ 79 | "Licensed Patents" mean patent claims licensable by a Contributor which\n\ 80 | are necessarily infringed by the use or sale of its Contribution alone\n\ 81 | or when combined with the Program.\n\ 82 | \n\ 83 | "Program" means the Contributions distributed in accordance with this\n\ 84 | Agreement.\n\ 85 | \n\ 86 | "Recipient" means anyone who receives the Program under this Agreement,\n\ 87 | including all Contributors.\n\ 88 | \n\ 89 | *2. GRANT OF RIGHTS*\n\ 90 | \n\ 91 | a) Subject to the terms of this Agreement, each Contributor hereby\n\ 92 | grants Recipient a non-exclusive, worldwide, royalty-free copyright\n\ 93 | license to reproduce, prepare derivative works of, publicly display,\n\ 94 | publicly perform, distribute and sublicense the Contribution of such\n\ 95 | Contributor, if any, and such derivative works, in source code and\n\ 96 | object code form.\n\ 97 | \n\ 98 | b) Subject to the terms of this Agreement, each Contributor hereby\n\ 99 | grants Recipient a non-exclusive, worldwide, royalty-free patent license\n\ 100 | under Licensed Patents to make, use, sell, offer to sell, import and\n\ 101 | otherwise transfer the Contribution of such Contributor, if any, in\n\ 102 | source code and object code form. This patent license shall apply to the\n\ 103 | combination of the Contribution and the Program if, at the time the\n\ 104 | Contribution is added by the Contributor, such addition of the\n\ 105 | Contribution causes such combination to be covered by the Licensed\n\ 106 | Patents. The patent license shall not apply to any other combinations\n\ 107 | which include the Contribution. No hardware per se is licensed hereunder.\n\ 108 | \n\ 109 | c) Recipient understands that although each Contributor grants the\n\ 110 | licenses to its Contributions set forth herein, no assurances are\n\ 111 | provided by any Contributor that the Program does not infringe the\n\ 112 | patent or other intellectual property rights of any other entity. Each\n\ 113 | Contributor disclaims any liability to Recipient for claims brought by\n\ 114 | any other entity based on infringement of intellectual property rights\n\ 115 | or otherwise. As a condition to exercising the rights and licenses\n\ 116 | granted hereunder, each Recipient hereby assumes sole responsibility to\n\ 117 | secure any other intellectual property rights needed, if any. For\n\ 118 | example, if a third party patent license is required to allow Recipient\n\ 119 | to distribute the Program, it is Recipient's responsibility to acquire\n\ 120 | that license before distributing the Program.\n\ 121 | \n\ 122 | d) Each Contributor represents that to its knowledge it has sufficient\n\ 123 | copyright rights in its Contribution, if any, to grant the copyright\n\ 124 | license set forth in this Agreement.\n\ 125 | \n\ 126 | *3. REQUIREMENTS*\n\ 127 | \n\ 128 | A Contributor may choose to distribute the Program in object code form\n\ 129 | under its own license agreement, provided that:\n\ 130 | \n\ 131 | a) it complies with the terms and conditions of this Agreement; and\n\ 132 | \n\ 133 | b) its license agreement:\n\ 134 | \n\ 135 | i) effectively disclaims on behalf of all Contributors all warranties\n\ 136 | and conditions, express and implied, including warranties or conditions\n\ 137 | of title and non-infringement, and implied warranties or conditions of\n\ 138 | merchantability and fitness for a particular purpose;\n\ 139 | \n\ 140 | ii) effectively excludes on behalf of all Contributors all liability for\n\ 141 | damages, including direct, indirect, special, incidental and\n\ 142 | consequential damages, such as lost profits;\n\ 143 | \n\ 144 | iii) states that any provisions which differ from this Agreement are\n\ 145 | offered by that Contributor alone and not by any other party; and\n\ 146 | \n\ 147 | iv) states that source code for the Program is available from such\n\ 148 | Contributor, and informs licensees how to obtain it in a reasonable\n\ 149 | manner on or through a medium customarily used for software exchange.\n\ 150 | \n\ 151 | When the Program is made available in source code form:\n\ 152 | \n\ 153 | a) it must be made available under this Agreement; and\n\ 154 | \n\ 155 | b) a copy of this Agreement must be included with each copy of the Program.\n\ 156 | \n\ 157 | Contributors may not remove or alter any copyright notices contained\n\ 158 | within the Program.\n\ 159 | \n\ 160 | Each Contributor must identify itself as the originator of its\n\ 161 | Contribution, if any, in a manner that reasonably allows subsequent\n\ 162 | Recipients to identify the originator of the Contribution.\n\ 163 | \n\ 164 | *4. COMMERCIAL DISTRIBUTION*\n\ 165 | \n\ 166 | Commercial distributors of software may accept certain responsibilities\n\ 167 | with respect to end users, business partners and the like. While this\n\ 168 | license is intended to facilitate the commercial use of the Program, the\n\ 169 | Contributor who includes the Program in a commercial product offering\n\ 170 | should do so in a manner which does not create potential liability for\n\ 171 | other Contributors. Therefore, if a Contributor includes the Program in\n\ 172 | a commercial product offering, such Contributor ("Commercial\n\ 173 | Contributor") hereby agrees to defend and indemnify every other\n\ 174 | Contributor ("Indemnified Contributor") against any losses, damages and\n\ 175 | costs (collectively "Losses") arising from claims, lawsuits and other\n\ 176 | legal actions brought by a third party against the Indemnified\n\ 177 | Contributor to the extent caused by the acts or omissions of such\n\ 178 | Commercial Contributor in connection with its distribution of the\n\ 179 | Program in a commercial product offering. The obligations in this\n\ 180 | section do not apply to any claims or Losses relating to any actual or\n\ 181 | alleged intellectual property infringement. In order to qualify, an\n\ 182 | Indemnified Contributor must: a) promptly notify the Commercial\n\ 183 | Contributor in writing of such claim, and b) allow the Commercial\n\ 184 | Contributor to control, and cooperate with the Commercial Contributor\n\ 185 | in, the defense and any related settlement negotiations. The Indemnified\n\ 186 | Contributor may participate in any such claim at its own expense.\n\ 187 | \n\ 188 | For example, a Contributor might include the Program in a commercial\n\ 189 | product offering, Product X. That Contributor is then a Commercial\n\ 190 | Contributor. If that Commercial Contributor then makes performance\n\ 191 | claims, or offers warranties related to Product X, those performance\n\ 192 | claims and warranties are such Commercial Contributor's responsibility\n\ 193 | alone. Under this section, the Commercial Contributor would have to\n\ 194 | defend claims against the other Contributors related to those\n\ 195 | performance claims and warranties, and if a court requires any other\n\ 196 | Contributor to pay any damages as a result, the Commercial Contributor\n\ 197 | must pay those damages.\n\ 198 | \n\ 199 | *5. NO WARRANTY*\n\ 200 | \n\ 201 | EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, THE PROGRAM IS PROVIDED\n\ 202 | ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,\n\ 203 | EITHER EXPRESS OR IMPLIED INCLUDING, WITHOUT LIMITATION, ANY WARRANTIES\n\ 204 | OR CONDITIONS OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR\n\ 205 | A PARTICULAR PURPOSE. Each Recipient is solely responsible for\n\ 206 | determining the appropriateness of using and distributing the Program\n\ 207 | and assumes all risks associated with its exercise of rights under this\n\ 208 | Agreement , including but not limited to the risks and costs of program\n\ 209 | errors, compliance with applicable laws, damage to or loss of data,\n\ 210 | programs or equipment, and unavailability or interruption of operations.\n\ 211 | \n\ 212 | *6. DISCLAIMER OF LIABILITY*\n\ 213 | \n\ 214 | EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, NEITHER RECIPIENT NOR\n\ 215 | ANY CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR ANY DIRECT, INDIRECT,\n\ 216 | INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING\n\ 217 | WITHOUT LIMITATION LOST PROFITS), HOWEVER CAUSED AND ON ANY THEORY OF\n\ 218 | LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\n\ 219 | NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OR\n\ 220 | DISTRIBUTION OF THE PROGRAM OR THE EXERCISE OF ANY RIGHTS GRANTED\n\ 221 | HEREUNDER, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.\n\ 222 | \n\ 223 | *7. GENERAL*\n\ 224 | \n\ 225 | If any provision of this Agreement is invalid or unenforceable under\n\ 226 | applicable law, it shall not affect the validity or enforceability of\n\ 227 | the remainder of the terms of this Agreement, and without further action\n\ 228 | by the parties hereto, such provision shall be reformed to the minimum\n\ 229 | extent necessary to make such provision valid and enforceable.\n\ 230 | \n\ 231 | If Recipient institutes patent litigation against any entity (including\n\ 232 | a cross-claim or counterclaim in a lawsuit) alleging that the Program\n\ 233 | itself (excluding combinations of the Program with other software or\n\ 234 | hardware) infringes such Recipient's patent(s), then such Recipient's\n\ 235 | rights granted under Section 2(b) shall terminate as of the date such\n\ 236 | litigation is filed.\n\ 237 | \n\ 238 | All Recipient's rights under this Agreement shall terminate if it fails\n\ 239 | to comply with any of the material terms or conditions of this Agreement\n\ 240 | and does not cure such failure in a reasonable period of time after\n\ 241 | becoming aware of such noncompliance. If all Recipient's rights under\n\ 242 | this Agreement terminate, Recipient agrees to cease use and distribution\n\ 243 | of the Program as soon as reasonably practicable. However, Recipient's\n\ 244 | obligations under this Agreement and any licenses granted by Recipient\n\ 245 | relating to the Program shall continue and survive.\n\ 246 | \n\ 247 | Everyone is permitted to copy and distribute copies of this Agreement,\n\ 248 | but in order to avoid inconsistency the Agreement is copyrighted and may\n\ 249 | only be modified in the following manner. The Agreement Steward reserves\n\ 250 | the right to publish new versions (including revisions) of this\n\ 251 | Agreement from time to time. No one other than the Agreement Steward has\n\ 252 | the right to modify this Agreement. The Eclipse Foundation is the\n\ 253 | initial Agreement Steward. The Eclipse Foundation may assign the\n\ 254 | responsibility to serve as the Agreement Steward to a suitable separate\n\ 255 | entity. Each new version of the Agreement will be given a distinguishing\n\ 256 | version number. The Program (including Contributions) may always be\n\ 257 | distributed subject to the version of the Agreement under which it was\n\ 258 | received. In addition, after a new version of the Agreement is\n\ 259 | published, Contributor may elect to distribute the Program (including\n\ 260 | its Contributions) under the new version. Except as expressly stated in\n\ 261 | Sections 2(a) and 2(b) above, Recipient receives no rights or licenses\n\ 262 | to the intellectual property of any Contributor under this Agreement,\n\ 263 | whether expressly, by implication, estoppel or otherwise. All rights in\n\ 264 | the Program not expressly granted under this Agreement are reserved.\n\ 265 | \n\ 266 | This Agreement is governed by the laws of the State of New York and the\n\ 267 | intellectual property laws of the United States of America. No party to\n\ 268 | this Agreement will bring a legal action under this Agreement more than\n\ 269 | one year after the cause of action arose. Each party waives its rights\n\ 270 | to a jury trial in any resulting litigation.\n\ 271 | \n 272 | ########### end of license property ########################################## -------------------------------------------------------------------------------- /feature/feature.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 9 | %description 10 | 11 | 12 | 13 | %copyright 14 | 15 | 16 | 17 | %license 18 | 19 | 20 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /feature/license.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Eclipse Public License - Version 1.0 8 | 25 | 26 | 27 | 28 | 29 | 30 |

Eclipse Public License - v 1.0

31 | 32 |

THE ACCOMPANYING PROGRAM IS PROVIDED UNDER THE TERMS OF THIS ECLIPSE 33 | PUBLIC LICENSE ("AGREEMENT"). ANY USE, REPRODUCTION OR 34 | DISTRIBUTION OF THE PROGRAM CONSTITUTES RECIPIENT'S ACCEPTANCE OF THIS 35 | AGREEMENT.

36 | 37 |

1. DEFINITIONS

38 | 39 |

"Contribution" means:

40 | 41 |

a) in the case of the initial Contributor, the initial 42 | code and documentation distributed under this Agreement, and

43 |

b) in the case of each subsequent Contributor:

44 |

i) changes to the Program, and

45 |

ii) additions to the Program;

46 |

where such changes and/or additions to the Program 47 | originate from and are distributed by that particular Contributor. A 48 | Contribution 'originates' from a Contributor if it was added to the 49 | Program by such Contributor itself or anyone acting on such 50 | Contributor's behalf. Contributions do not include additions to the 51 | Program which: (i) are separate modules of software distributed in 52 | conjunction with the Program under their own license agreement, and (ii) 53 | are not derivative works of the Program.

54 | 55 |

"Contributor" means any person or entity that distributes 56 | the Program.

57 | 58 |

"Licensed Patents" mean patent claims licensable by a 59 | Contributor which are necessarily infringed by the use or sale of its 60 | Contribution alone or when combined with the Program.

61 | 62 |

"Program" means the Contributions distributed in accordance 63 | with this Agreement.

64 | 65 |

"Recipient" means anyone who receives the Program under 66 | this Agreement, including all Contributors.

67 | 68 |

2. GRANT OF RIGHTS

69 | 70 |

a) Subject to the terms of this Agreement, each 71 | Contributor hereby grants Recipient a non-exclusive, worldwide, 72 | royalty-free copyright license to reproduce, prepare derivative works 73 | of, publicly display, publicly perform, distribute and sublicense the 74 | Contribution of such Contributor, if any, and such derivative works, in 75 | source code and object code form.

76 | 77 |

b) Subject to the terms of this Agreement, each 78 | Contributor hereby grants Recipient a non-exclusive, worldwide, 79 | royalty-free patent license under Licensed Patents to make, use, sell, 80 | offer to sell, import and otherwise transfer the Contribution of such 81 | Contributor, if any, in source code and object code form. This patent 82 | license shall apply to the combination of the Contribution and the 83 | Program if, at the time the Contribution is added by the Contributor, 84 | such addition of the Contribution causes such combination to be covered 85 | by the Licensed Patents. The patent license shall not apply to any other 86 | combinations which include the Contribution. No hardware per se is 87 | licensed hereunder.

88 | 89 |

c) Recipient understands that although each Contributor 90 | grants the licenses to its Contributions set forth herein, no assurances 91 | are provided by any Contributor that the Program does not infringe the 92 | patent or other intellectual property rights of any other entity. Each 93 | Contributor disclaims any liability to Recipient for claims brought by 94 | any other entity based on infringement of intellectual property rights 95 | or otherwise. As a condition to exercising the rights and licenses 96 | granted hereunder, each Recipient hereby assumes sole responsibility to 97 | secure any other intellectual property rights needed, if any. For 98 | example, if a third party patent license is required to allow Recipient 99 | to distribute the Program, it is Recipient's responsibility to acquire 100 | that license before distributing the Program.

101 | 102 |

d) Each Contributor represents that to its knowledge it 103 | has sufficient copyright rights in its Contribution, if any, to grant 104 | the copyright license set forth in this Agreement.

105 | 106 |

3. REQUIREMENTS

107 | 108 |

A Contributor may choose to distribute the Program in object code 109 | form under its own license agreement, provided that:

110 | 111 |

a) it complies with the terms and conditions of this 112 | Agreement; and

113 | 114 |

b) its license agreement:

115 | 116 |

i) effectively disclaims on behalf of all Contributors 117 | all warranties and conditions, express and implied, including warranties 118 | or conditions of title and non-infringement, and implied warranties or 119 | conditions of merchantability and fitness for a particular purpose;

120 | 121 |

ii) effectively excludes on behalf of all Contributors 122 | all liability for damages, including direct, indirect, special, 123 | incidental and consequential damages, such as lost profits;

124 | 125 |

iii) states that any provisions which differ from this 126 | Agreement are offered by that Contributor alone and not by any other 127 | party; and

128 | 129 |

iv) states that source code for the Program is available 130 | from such Contributor, and informs licensees how to obtain it in a 131 | reasonable manner on or through a medium customarily used for software 132 | exchange.

133 | 134 |

When the Program is made available in source code form:

135 | 136 |

a) it must be made available under this Agreement; and

137 | 138 |

b) a copy of this Agreement must be included with each 139 | copy of the Program.

140 | 141 |

Contributors may not remove or alter any copyright notices contained 142 | within the Program.

143 | 144 |

Each Contributor must identify itself as the originator of its 145 | Contribution, if any, in a manner that reasonably allows subsequent 146 | Recipients to identify the originator of the Contribution.

147 | 148 |

4. COMMERCIAL DISTRIBUTION

149 | 150 |

Commercial distributors of software may accept certain 151 | responsibilities with respect to end users, business partners and the 152 | like. While this license is intended to facilitate the commercial use of 153 | the Program, the Contributor who includes the Program in a commercial 154 | product offering should do so in a manner which does not create 155 | potential liability for other Contributors. Therefore, if a Contributor 156 | includes the Program in a commercial product offering, such Contributor 157 | ("Commercial Contributor") hereby agrees to defend and 158 | indemnify every other Contributor ("Indemnified Contributor") 159 | against any losses, damages and costs (collectively "Losses") 160 | arising from claims, lawsuits and other legal actions brought by a third 161 | party against the Indemnified Contributor to the extent caused by the 162 | acts or omissions of such Commercial Contributor in connection with its 163 | distribution of the Program in a commercial product offering. The 164 | obligations in this section do not apply to any claims or Losses 165 | relating to any actual or alleged intellectual property infringement. In 166 | order to qualify, an Indemnified Contributor must: a) promptly notify 167 | the Commercial Contributor in writing of such claim, and b) allow the 168 | Commercial Contributor to control, and cooperate with the Commercial 169 | Contributor in, the defense and any related settlement negotiations. The 170 | Indemnified Contributor may participate in any such claim at its own 171 | expense.

172 | 173 |

For example, a Contributor might include the Program in a commercial 174 | product offering, Product X. That Contributor is then a Commercial 175 | Contributor. If that Commercial Contributor then makes performance 176 | claims, or offers warranties related to Product X, those performance 177 | claims and warranties are such Commercial Contributor's responsibility 178 | alone. Under this section, the Commercial Contributor would have to 179 | defend claims against the other Contributors related to those 180 | performance claims and warranties, and if a court requires any other 181 | Contributor to pay any damages as a result, the Commercial Contributor 182 | must pay those damages.

183 | 184 |

5. NO WARRANTY

185 | 186 |

EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, THE PROGRAM IS 187 | PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 188 | OF ANY KIND, EITHER EXPRESS OR IMPLIED INCLUDING, WITHOUT LIMITATION, 189 | ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY 190 | OR FITNESS FOR A PARTICULAR PURPOSE. Each Recipient is solely 191 | responsible for determining the appropriateness of using and 192 | distributing the Program and assumes all risks associated with its 193 | exercise of rights under this Agreement , including but not limited to 194 | the risks and costs of program errors, compliance with applicable laws, 195 | damage to or loss of data, programs or equipment, and unavailability or 196 | interruption of operations.

197 | 198 |

6. DISCLAIMER OF LIABILITY

199 | 200 |

EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, NEITHER RECIPIENT 201 | NOR ANY CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR ANY DIRECT, INDIRECT, 202 | INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING 203 | WITHOUT LIMITATION LOST PROFITS), HOWEVER CAUSED AND ON ANY THEORY OF 204 | LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 205 | NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OR 206 | DISTRIBUTION OF THE PROGRAM OR THE EXERCISE OF ANY RIGHTS GRANTED 207 | HEREUNDER, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.

208 | 209 |

7. GENERAL

210 | 211 |

If any provision of this Agreement is invalid or unenforceable under 212 | applicable law, it shall not affect the validity or enforceability of 213 | the remainder of the terms of this Agreement, and without further action 214 | by the parties hereto, such provision shall be reformed to the minimum 215 | extent necessary to make such provision valid and enforceable.

216 | 217 |

If Recipient institutes patent litigation against any entity 218 | (including a cross-claim or counterclaim in a lawsuit) alleging that the 219 | Program itself (excluding combinations of the Program with other 220 | software or hardware) infringes such Recipient's patent(s), then such 221 | Recipient's rights granted under Section 2(b) shall terminate as of the 222 | date such litigation is filed.

223 | 224 |

All Recipient's rights under this Agreement shall terminate if it 225 | fails to comply with any of the material terms or conditions of this 226 | Agreement and does not cure such failure in a reasonable period of time 227 | after becoming aware of such noncompliance. If all Recipient's rights 228 | under this Agreement terminate, Recipient agrees to cease use and 229 | distribution of the Program as soon as reasonably practicable. However, 230 | Recipient's obligations under this Agreement and any licenses granted by 231 | Recipient relating to the Program shall continue and survive.

232 | 233 |

Everyone is permitted to copy and distribute copies of this 234 | Agreement, but in order to avoid inconsistency the Agreement is 235 | copyrighted and may only be modified in the following manner. The 236 | Agreement Steward reserves the right to publish new versions (including 237 | revisions) of this Agreement from time to time. No one other than the 238 | Agreement Steward has the right to modify this Agreement. The Eclipse 239 | Foundation is the initial Agreement Steward. The Eclipse Foundation may 240 | assign the responsibility to serve as the Agreement Steward to a 241 | suitable separate entity. Each new version of the Agreement will be 242 | given a distinguishing version number. The Program (including 243 | Contributions) may always be distributed subject to the version of the 244 | Agreement under which it was received. In addition, after a new version 245 | of the Agreement is published, Contributor may elect to distribute the 246 | Program (including its Contributions) under the new version. Except as 247 | expressly stated in Sections 2(a) and 2(b) above, Recipient receives no 248 | rights or licenses to the intellectual property of any Contributor under 249 | this Agreement, whether expressly, by implication, estoppel or 250 | otherwise. All rights in the Program not expressly granted under this 251 | Agreement are reserved.

252 | 253 |

This Agreement is governed by the laws of the State of New York and 254 | the intellectual property laws of the United States of America. No party 255 | to this Agreement will bring a legal action under this Agreement more 256 | than one year after the cause of action arose. Each party waives its 257 | rights to a jury trial in any resulting litigation.

258 | 259 | 260 | 261 | -------------------------------------------------------------------------------- /feature/pom.xml: -------------------------------------------------------------------------------- 1 | 3 | 4.0.0 4 | 5 | 6 | com.ianbrandt 7 | m2e-maven-dependency-plugin-parent 8 | 0.0.4-SNAPSHOT 9 | 10 | 11 | com.ianbrandt.tools.m2e.mdp.feature 12 | eclipse-feature 13 | 14 | m2e Connector for Maven Dependency Plugin Feature 15 | 16 | -------------------------------------------------------------------------------- /pom.xml: -------------------------------------------------------------------------------- 1 | 3 | 4.0.0 4 | 5 | 6 | org.sonatype.forge 7 | forge-parent 8 | 10 9 | 10 | 11 | com.ianbrandt 12 | m2e-maven-dependency-plugin-parent 13 | 0.0.4-SNAPSHOT 14 | pom 15 | 16 | m2e Connector for Maven Dependency Plugin Parent 17 | http://ianbrandt.com 18 | 19 | 20 | core 21 | tests 22 | feature 23 | site 24 | 25 | 26 | 27 | 28 | Eclipse Public License - v 1.0 29 | http://www.eclipse.org/legal/epl-v10.html 30 | repo 31 | A business-friendly OSS license 32 | 33 | 34 | 35 | 36 | 37 | ianbrandt 38 | Ian Brandt 39 | ian@ianbrandt.com 40 | http://ianbrandt.com/ 41 | http://ianbrandt.com/ 42 | 43 | founder 44 | developer 45 | 46 | -8 47 | 48 | 49 | 50 | 51 | https://github.com/ianbrandt/m2e-maven-dependency-plugin/issues 52 | 53 | 54 | 55 | scm:git:git@github.com:ianbrandt/m2e-maven-dependency-plugin.git 56 | scm:git:git@github.com:ianbrandt/m2e-maven-dependency-plugin.git 57 | scm:git:git@github.com:ianbrandt/m2e-maven-dependency-plugin.git 58 | 59 | 60 | 61 | UTF-8 62 | 0.21.0 63 | 64 | 65 | 66 | 67 | rso 68 | http://repository.sonatype.org/content/groups/sonatype-public-grid 69 | 70 | 71 | eclipse-kepler 72 | http://download.eclipse.org/releases/kepler 73 | p2 74 | 75 | 76 | m2e 77 | http://download.eclipse.org/technology/m2e/releases/1.4 78 | p2 79 | 80 | 81 | 82 | 83 | 3.0 84 | 85 | 86 | 87 | 88 | 89 | org.eclipse.tycho 90 | tycho-maven-plugin 91 | ${tycho-version} 92 | true 93 | 94 | 95 | org.eclipse.tycho 96 | target-platform-configuration 97 | ${tycho-version} 98 | 99 | p2 100 | true 101 | 102 | 103 | linux 104 | gtk 105 | x86 106 | 107 | 108 | linux 109 | gtk 110 | x86_64 111 | 112 | 113 | win32 114 | win32 115 | x86 116 | 117 | 118 | win32 119 | win32 120 | x86_64 121 | 122 | 123 | macosx 124 | cocoa 125 | x86_64 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | org.eclipse.tycho 136 | tycho-compiler-plugin 137 | ${tycho-version} 138 | 139 | 140 | org.eclipse.tycho 141 | tycho-p2-plugin 142 | ${tycho-version} 143 | 144 | 145 | org.eclipse.tycho 146 | tycho-packaging-plugin 147 | ${tycho-version} 148 | 149 | 150 | org.eclipse.tycho 151 | tycho-surefire-plugin 152 | ${tycho-version} 153 | 154 | 155 | 156 | 157 | 158 | 159 | -------------------------------------------------------------------------------- /site/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | m2e Connector for Maven Dependency Plugin Site 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.pde.UpdateSiteBuilder 10 | 11 | 12 | 13 | 14 | org.eclipse.m2e.core.maven2Builder 15 | 16 | 17 | 18 | 19 | 20 | org.eclipse.m2e.core.maven2Nature 21 | org.eclipse.pde.UpdateSiteNature 22 | 23 | 24 | -------------------------------------------------------------------------------- /site/.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding/=UTF-8 3 | -------------------------------------------------------------------------------- /site/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /site/pom.xml: -------------------------------------------------------------------------------- 1 | 3 | 4.0.0 4 | 5 | 6 | com.ianbrandt 7 | m2e-maven-dependency-plugin-parent 8 | 0.0.4-SNAPSHOT 9 | 10 | 11 | com.ianbrandt.tools.m2e.mdp.site 12 | eclipse-update-site 13 | 14 | m2e Connector for Maven Dependency Plugin Site 15 | 16 | 17 | 18 | 19 | org.eclipse.tycho 20 | tycho-packaging-plugin 21 | 22 | m2e connector for the Maven Dependency Plugin 23 | m2e connector for the Maven Dependency Plugin 24 | 25 | 26 | 27 | org.apache.maven.plugins 28 | maven-assembly-plugin 29 | 30 | 31 | src/main/assembly/assembly.xml 32 | 33 | 34 | 35 | 36 | make-assembly 37 | package 38 | 39 | single 40 | 41 | 42 | 43 | 44 | 45 | 46 | -------------------------------------------------------------------------------- /site/site.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | m2e connector for the Maven Dependency Plugin 5 | 6 | 7 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /site/src/main/assembly/assembly.xml: -------------------------------------------------------------------------------- 1 | 2 | site 3 | 4 | zip 5 | 6 | false 7 | 8 | 9 | ${project.build.directory}/site 10 | / 11 | 12 | 13 | -------------------------------------------------------------------------------- /tests/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /tests/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | m2e Connector for Maven Dependency Plugin Tests 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | org.eclipse.pde.ManifestBuilder 15 | 16 | 17 | 18 | 19 | org.eclipse.pde.SchemaBuilder 20 | 21 | 22 | 23 | 24 | org.eclipse.m2e.core.maven2Builder 25 | 26 | 27 | 28 | 29 | 30 | org.eclipse.m2e.core.maven2Nature 31 | org.eclipse.pde.PluginNature 32 | org.eclipse.jdt.core.javanature 33 | 34 | 35 | -------------------------------------------------------------------------------- /tests/.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding/=UTF-8 3 | -------------------------------------------------------------------------------- /tests/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6 4 | org.eclipse.jdt.core.compiler.compliance=1.6 5 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 6 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 7 | org.eclipse.jdt.core.compiler.source=1.6 8 | -------------------------------------------------------------------------------- /tests/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /tests/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Bundle-ManifestVersion: 2 3 | Bundle-Name: m2e connector for Maven Dependency Plugin Tests 4 | Bundle-SymbolicName: com.ianbrandt.tools.m2e.mdp.tests 5 | Bundle-Version: 0.0.4.qualifier 6 | Bundle-Vendor: Ian Brandt 7 | Bundle-RequiredExecutionEnvironment: JavaSE-1.6 8 | Require-Bundle: org.eclipse.m2e.tests.common;bundle-version="1.0.0", 9 | org.junit;bundle-version="4.11", 10 | org.eclipse.m2e.core;bundle-version="1.0.0", 11 | org.eclipse.core.resources;bundle-version="3.4.2", 12 | org.eclipse.core.runtime;bundle-version="3.4.0", 13 | org.eclipse.jdt.core;bundle-version="3.4.4", 14 | com.ianbrandt.tools.m2e.mdp.core 15 | -------------------------------------------------------------------------------- /tests/build.properties: -------------------------------------------------------------------------------- 1 | source.. = src/ 2 | output.. = target/classes/ 3 | bin.includes = META-INF/,\ 4 | . -------------------------------------------------------------------------------- /tests/plugin_customization.ini: -------------------------------------------------------------------------------- 1 | # This configuration is used to prevent m2e from updating (downloading) nexus indexes during tests 2 | # 3 | # Add "-pluginCustomization plugin_customization.ini" to your Eclipse command line to apply these settings 4 | # 5 | # In tycho-surefire-plugin configuration, add -pluginCustomization ${basedir}/plugin_customization.ini 6 | # 7 | org.eclipse.m2e.core/eclipse.m2.updateIndexes=false 8 | -------------------------------------------------------------------------------- /tests/pom.xml: -------------------------------------------------------------------------------- 1 | 3 | 4.0.0 4 | 5 | 6 | com.ianbrandt 7 | m2e-maven-dependency-plugin-parent 8 | 0.0.4-SNAPSHOT 9 | 10 | 11 | com.ianbrandt.tools.m2e.mdp.tests 12 | eclipse-test-plugin 13 | 14 | m2e Connector for Maven Dependency Plugin Tests 15 | 16 | 17 | 18 | 19 | org.eclipse.tycho 20 | tycho-surefire-plugin 21 | 22 | -Xmx512m 23 | -nl en 24 | 25 | 26 | org.eclipse.equinox.ds 27 | 1 28 | true 29 | 30 | 31 | 32 | 33 | 34 | 35 | -------------------------------------------------------------------------------- /tests/projects/copydeps/pom.xml: -------------------------------------------------------------------------------- 1 | 3 | 4.0.0 4 | 5 | com.ianbrandt.tools.m2e.mdp.tests 6 | copydeps 7 | 0.0.2-SNAPSHOT 8 | jar 9 | 10 | 11 | junit 12 | junit 13 | 4.10 14 | 15 | 16 | 17 | 18 | 19 | maven-dependency-plugin 20 | 2.4 21 | 22 | 23 | copy-dependencies 24 | generate-resources 25 | 26 | copy-dependencies 27 | 28 | 29 | ${project.build.directory}/generated-resources/ 30 | 31 | 32 | 33 | 34 | 35 | 36 | -------------------------------------------------------------------------------- /tests/projects/smoketest/pom.xml: -------------------------------------------------------------------------------- 1 | 3 | 4.0.0 4 | 5 | com.ianbrandt.tools.m2e.mdp.tests 6 | smoketest 7 | 0.0.2-SNAPSHOT 8 | jar 9 | 10 | 11 | junit 12 | junit 13 | 4.10 14 | 15 | 16 | 17 | 18 | 19 | maven-dependency-plugin 20 | 2.4 21 | 22 | 23 | test-unpack 24 | generate-resources 25 | 26 | unpack 27 | 28 | 29 | 30 | 31 | junit 32 | junit 33 | 4.10 34 | ${project.build.directory}/generated-resources/ 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | -------------------------------------------------------------------------------- /tests/projects/unpackdeps/pom.xml: -------------------------------------------------------------------------------- 1 | 3 | 4.0.0 4 | 5 | com.ianbrandt.tools.m2e.mdp.tests 6 | unpackdeps 7 | 0.0.2-SNAPSHOT 8 | jar 9 | 10 | 11 | junit 12 | junit 13 | 4.10 14 | 15 | 16 | 17 | 18 | 19 | maven-dependency-plugin 20 | 2.4 21 | 22 | 23 | test-unpack-dependencies 24 | generate-resources 25 | 26 | unpack-dependencies 27 | 28 | 29 | ${project.build.directory}/generated-resources/ 30 | 31 | 32 | 33 | 34 | 35 | 36 | -------------------------------------------------------------------------------- /tests/src/com/ianbrandt/tools/m2e/mdp/tests/M2eMdpConnectorTest.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2012 Ian Brandt 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the Eclipse Public License v1.0 5 | * which accompanies this distribution, and is available at 6 | * http://www.eclipse.org/legal/epl-v10.html 7 | * 8 | * Contributors: 9 | * Ian Brandt - initial API and implementation 10 | *******************************************************************************/ 11 | package com.ianbrandt.tools.m2e.mdp.tests; 12 | 13 | import org.eclipse.core.resources.IFile; 14 | import org.eclipse.core.resources.IProject; 15 | import org.eclipse.core.resources.IResource; 16 | import org.eclipse.core.resources.IncrementalProjectBuilder; 17 | import org.eclipse.core.runtime.NullProgressMonitor; 18 | import org.eclipse.core.runtime.Path; 19 | import org.eclipse.m2e.tests.common.AbstractMavenProjectTestCase; 20 | 21 | @SuppressWarnings("restriction") 22 | public class M2eMdpConnectorTest extends AbstractMavenProjectTestCase { 23 | 24 | public void testShouldNotUnpackArtifact() throws Exception { 25 | // given 26 | final IProject project = importProject("projects/smoketest/pom.xml"); 27 | waitForJobsToComplete(); 28 | project.build(IncrementalProjectBuilder.FULL_BUILD, monitor); 29 | waitForJobsToComplete(); 30 | // make sure target/generated-resources is empty 31 | final IResource targetResourcesFolder = project.findMember(new Path("target").append("generated-resources")); 32 | if(targetResourcesFolder != null) { 33 | targetResourcesFolder.delete(true, new NullProgressMonitor()); 34 | } 35 | // when further auto build is performed 36 | project.build(IncrementalProjectBuilder.AUTO_BUILD, monitor); 37 | waitForJobsToComplete(); 38 | // then 39 | final IFile testResource = project 40 | .getFile("target/generated-resources/LICENSE.txt"); 41 | assertFalse(testResource.getName() + " is missing", testResource.exists()); 42 | } 43 | 44 | public void testShouldUnpackArtifact() throws Exception { 45 | // given 46 | final IProject project = importProject("projects/smoketest/pom.xml"); 47 | waitForJobsToComplete(); 48 | // when 49 | project.build(IncrementalProjectBuilder.FULL_BUILD, monitor); 50 | waitForJobsToComplete(); 51 | // then 52 | final IFile testResource = project 53 | .getFile("target/generated-resources/LICENSE.txt"); 54 | assertTrue(testResource.getName() + " is missing", testResource.exists()); 55 | } 56 | 57 | public void testShouldUnpackDependencies() throws Exception { 58 | // given 59 | final IProject project = importProject("projects/unpackdeps/pom.xml"); 60 | waitForJobsToComplete(); 61 | // when 62 | project.build(IncrementalProjectBuilder.FULL_BUILD, monitor); 63 | waitForJobsToComplete(); 64 | // then 65 | final IFile junitResource = project 66 | .getFile("target/generated-resources/junit/framework/Assert.class"); 67 | assertTrue(junitResource.getName() + " is missing", junitResource.exists()); 68 | 69 | final IFile hamcrestResource = project 70 | .getFile("target/generated-resources/org/hamcrest/Matcher.class"); 71 | assertTrue(hamcrestResource.getName() + " is missing", hamcrestResource.exists()); 72 | } 73 | 74 | public void testShouldCopyDependencies() throws Exception { 75 | // given 76 | final IProject project = importProject("projects/copydeps/pom.xml"); 77 | waitForJobsToComplete(); 78 | // when 79 | project.build(IncrementalProjectBuilder.FULL_BUILD, monitor); 80 | waitForJobsToComplete(); 81 | // then 82 | final IFile junitJar = project 83 | .getFile("target/generated-resources/junit-4.10.jar"); 84 | assertTrue(junitJar.getName() + " is missing", junitJar.exists()); 85 | final IFile hamcrestJar = project 86 | .getFile("target/generated-resources/hamcrest-core-1.1.jar"); 87 | assertTrue(hamcrestJar.getName() + " is missing", hamcrestJar.exists()); 88 | } 89 | } 90 | --------------------------------------------------------------------------------