Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/eclipse/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Eclipse 如何使用maven-m2e-codestyle连接器?_Eclipse_Maven_M2e - Fatal编程技术网

Eclipse 如何使用maven-m2e-codestyle连接器?

Eclipse 如何使用maven-m2e-codestyle连接器?,eclipse,maven,m2e,Eclipse,Maven,M2e,根据“Maven m2e代码样式和保存操作连接器” 当项目启动时,此插件在m2e Eclipse插件内执行 配置和配置的保存操作和代码样式选项 您的maven项目,因此不需要将.settings文件提交到 你的回购协议 我还没有找到一个显示该连接器应该如何使用的示例。我应该在pom.xml中放入什么来触发它,如何知道我的eclipse安装是否安装了连接器 是否有人有此连接器的示例配置?从源代码看,它类似于: <plugin> <groupId>com.despegar

根据“Maven m2e代码样式和保存操作连接器”

当项目启动时,此插件在m2e Eclipse插件内执行 配置和配置的保存操作和代码样式选项 您的maven项目,因此不需要将.settings文件提交到 你的回购协议

我还没有找到一个显示该连接器应该如何使用的示例。我应该在pom.xml中放入什么来触发它,如何知道我的eclipse安装是否安装了连接器


是否有人有此连接器的示例配置?

从源代码看,它类似于:

<plugin>
  <groupId>com.despegar.maven.plugin</groupId>
  <artifactId>maven-m2e-codestyle</artifactId>
  <version>1.0.3</version>
  <executions>
    <execution>
      <goals>
        <goal>configure</goal>
      </goals>
      <configuration>
        <codeStyleBaseUrl>http://some/path/to/eclipse/files/</codeStyleBaseUrl>
        <!-- Will not work. Scheme 'file' not registered. -->
        <!-- <codeStyleBaseUrl>file://localhost/some/path/to/eclipse/files/</codeStyleBaseUrl> -->
        <baseDir>${basedir}/</baseDir>
      </configuration>
    </execution>
  </executions>
</plugin>
致:


请注意,
必须是http/https,因为它在后台使用HttpClient。

您是如何安装插件的?它不是在探索中。我实际上是重写了这个插件
${codeStyleBaseUrl}/org.eclipse.core.resources.prefs
${codeStyleBaseUrl}/org.eclipse.jdt.core.prefs
${codeStyleBaseUrl}/org.eclipse.jdt.ui.prefs
${baseDir}/.settings/