← 返回 Skills 市场
wu-uk

maven-plugin-configuration

作者 wu-uk · GitHub ↗ · v0.1.0 · MIT-0
cross-platform ✓ 安全检测通过
76
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install fix-build-google-auto-maven-plugin-configuration
功能描述
Use when configuring Maven plugins, setting up common plugins like compiler, surefire, jar, or creating custom plugin executions.
使用说明 (SKILL.md)

Maven Plugin Configuration

Master Maven plugin configuration including core plugins, build plugins, reporting plugins, and custom plugin development.

Overview

Maven plugins provide the actual functionality for building projects. Understanding how to configure plugins effectively is essential for customizing builds, optimizing performance, and ensuring code quality.

Plugin Basics

Plugin Structure

\x3Cbuild>
    \x3Cplugins>
        \x3Cplugin>
            \x3CgroupId>org.apache.maven.plugins\x3C/groupId>
            \x3CartifactId>maven-compiler-plugin\x3C/artifactId>
            \x3Cversion>3.12.1\x3C/version>
            \x3Cconfiguration>
                \x3C!-- Plugin-specific configuration -->
            \x3C/configuration>
            \x3Cexecutions>
                \x3Cexecution>
                    \x3Cid>compile-java\x3C/id>
                    \x3Cphase>compile\x3C/phase>
                    \x3Cgoals>
                        \x3Cgoal>compile\x3C/goal>
                    \x3C/goals>
                \x3C/execution>
            \x3C/executions>
        \x3C/plugin>
    \x3C/plugins>
\x3C/build>

Plugin Management

\x3Cbuild>
    \x3CpluginManagement>
        \x3Cplugins>
            \x3C!-- Define versions and shared config -->
            \x3Cplugin>
                \x3CgroupId>org.apache.maven.plugins\x3C/groupId>
                \x3CartifactId>maven-compiler-plugin\x3C/artifactId>
                \x3Cversion>3.12.1\x3C/version>
                \x3Cconfiguration>
                    \x3Crelease>17\x3C/release>
                \x3C/configuration>
            \x3C/plugin>
        \x3C/plugins>
    \x3C/pluginManagement>
    \x3Cplugins>
        \x3C!-- Actually use plugin (inherits config) -->
        \x3Cplugin>
            \x3CgroupId>org.apache.maven.plugins\x3C/groupId>
            \x3CartifactId>maven-compiler-plugin\x3C/artifactId>
        \x3C/plugin>
    \x3C/plugins>
\x3C/build>

Core Build Plugins

Compiler Plugin

\x3Cplugin>
    \x3CgroupId>org.apache.maven.plugins\x3C/groupId>
    \x3CartifactId>maven-compiler-plugin\x3C/artifactId>
    \x3Cversion>3.12.1\x3C/version>
    \x3Cconfiguration>
        \x3Crelease>17\x3C/release>
        \x3Cencoding>UTF-8\x3C/encoding>
        \x3CshowWarnings>true\x3C/showWarnings>
        \x3CshowDeprecation>true\x3C/showDeprecation>
        \x3CcompilerArgs>
            \x3Carg>-Xlint:all\x3C/arg>
            \x3Carg>-parameters\x3C/arg>
        \x3C/compilerArgs>
        \x3CannotationProcessorPaths>
            \x3Cpath>
                \x3CgroupId>org.projectlombok\x3C/groupId>
                \x3CartifactId>lombok\x3C/artifactId>
                \x3Cversion>1.18.30\x3C/version>
            \x3C/path>
        \x3C/annotationProcessorPaths>
    \x3C/configuration>
\x3C/plugin>

Resources Plugin

\x3Cplugin>
    \x3CgroupId>org.apache.maven.plugins\x3C/groupId>
    \x3CartifactId>maven-resources-plugin\x3C/artifactId>
    \x3Cversion>3.3.1\x3C/version>
    \x3Cconfiguration>
        \x3Cencoding>UTF-8\x3C/encoding>
        \x3CpropertiesEncoding>UTF-8\x3C/propertiesEncoding>
        \x3CnonFilteredFileExtensions>
            \x3CnonFilteredFileExtension>pdf\x3C/nonFilteredFileExtension>
            \x3CnonFilteredFileExtension>ico\x3C/nonFilteredFileExtension>
            \x3CnonFilteredFileExtension>png\x3C/nonFilteredFileExtension>
            \x3CnonFilteredFileExtension>jpg\x3C/nonFilteredFileExtension>
        \x3C/nonFilteredFileExtensions>
    \x3C/configuration>
\x3C/plugin>

JAR Plugin

\x3Cplugin>
    \x3CgroupId>org.apache.maven.plugins\x3C/groupId>
    \x3CartifactId>maven-jar-plugin\x3C/artifactId>
    \x3Cversion>3.3.0\x3C/version>
    \x3Cconfiguration>
        \x3Carchive>
            \x3Cmanifest>
                \x3CaddClasspath>true\x3C/addClasspath>
                \x3CmainClass>com.example.Main\x3C/mainClass>
                \x3CaddDefaultImplementationEntries>true\x3C/addDefaultImplementationEntries>
                \x3CaddDefaultSpecificationEntries>true\x3C/addDefaultSpecificationEntries>
            \x3C/manifest>
            \x3CmanifestEntries>
                \x3CBuild-Time>${maven.build.timestamp}\x3C/Build-Time>
                \x3CBuilt-By>${user.name}\x3C/Built-By>
            \x3C/manifestEntries>
        \x3C/archive>
        \x3Cexcludes>
            \x3Cexclude>**/logback-test.xml\x3C/exclude>
        \x3C/excludes>
    \x3C/configuration>
    \x3Cexecutions>
        \x3Cexecution>
            \x3Cid>test-jar\x3C/id>
            \x3Cgoals>
                \x3Cgoal>test-jar\x3C/goal>
            \x3C/goals>
        \x3C/execution>
    \x3C/executions>
\x3C/plugin>

Source Plugin

\x3Cplugin>
    \x3CgroupId>org.apache.maven.plugins\x3C/groupId>
    \x3CartifactId>maven-source-plugin\x3C/artifactId>
    \x3Cversion>3.3.0\x3C/version>
    \x3Cexecutions>
        \x3Cexecution>
            \x3Cid>attach-sources\x3C/id>
            \x3Cgoals>
                \x3Cgoal>jar-no-fork\x3C/goal>
            \x3C/goals>
        \x3C/execution>
    \x3C/executions>
\x3C/plugin>

Javadoc Plugin

\x3Cplugin>
    \x3CgroupId>org.apache.maven.plugins\x3C/groupId>
    \x3CartifactId>maven-javadoc-plugin\x3C/artifactId>
    \x3Cversion>3.6.3\x3C/version>
    \x3Cconfiguration>
        \x3Cdoclint>none\x3C/doclint>
        \x3Csource>17\x3C/source>
        \x3Cquiet>true\x3C/quiet>
        \x3Clinks>
            \x3Clink>https://docs.oracle.com/en/java/javase/17/docs/api/\x3C/link>
        \x3C/links>
    \x3C/configuration>
    \x3Cexecutions>
        \x3Cexecution>
            \x3Cid>attach-javadocs\x3C/id>
            \x3Cgoals>
                \x3Cgoal>jar\x3C/goal>
            \x3C/goals>
        \x3C/execution>
    \x3C/executions>
\x3C/plugin>

Testing Plugins

Surefire Plugin (Unit Tests)

\x3Cplugin>
    \x3CgroupId>org.apache.maven.plugins\x3C/groupId>
    \x3CartifactId>maven-surefire-plugin\x3C/artifactId>
    \x3Cversion>3.2.3\x3C/version>
    \x3Cconfiguration>
        \x3Cincludes>
            \x3Cinclude>**/*Test.java\x3C/include>
            \x3Cinclude>**/*Tests.java\x3C/include>
            \x3Cinclude>**/Test*.java\x3C/include>
        \x3C/includes>
        \x3Cexcludes>
            \x3Cexclude>**/*IT.java\x3C/exclude>
            \x3Cexclude>**/*IntegrationTest.java\x3C/exclude>
        \x3C/excludes>
        \x3CargLine>-Xmx1024m -XX:+UseG1GC\x3C/argLine>
        \x3Cparallel>methods\x3C/parallel>
        \x3CthreadCount>4\x3C/threadCount>
        \x3CforkCount>1C\x3C/forkCount>
        \x3CreuseForks>true\x3C/reuseForks>
        \x3CsystemPropertyVariables>
            \x3Cspring.profiles.active>test\x3C/spring.profiles.active>
        \x3C/systemPropertyVariables>
        \x3CenvironmentVariables>
            \x3CTEST_ENV>true\x3C/TEST_ENV>
        \x3C/environmentVariables>
    \x3C/configuration>
\x3C/plugin>

Failsafe Plugin (Integration Tests)

\x3Cplugin>
    \x3CgroupId>org.apache.maven.plugins\x3C/groupId>
    \x3CartifactId>maven-failsafe-plugin\x3C/artifactId>
    \x3Cversion>3.2.3\x3C/version>
    \x3Cconfiguration>
        \x3Cincludes>
            \x3Cinclude>**/*IT.java\x3C/include>
            \x3Cinclude>**/*IntegrationTest.java\x3C/include>
        \x3C/includes>
        \x3CskipAfterFailureCount>3\x3C/skipAfterFailureCount>
    \x3C/configuration>
    \x3Cexecutions>
        \x3Cexecution>
            \x3Cgoals>
                \x3Cgoal>integration-test\x3C/goal>
                \x3Cgoal>verify\x3C/goal>
            \x3C/goals>
        \x3C/execution>
    \x3C/executions>
\x3C/plugin>

JaCoCo Plugin (Code Coverage)

\x3Cplugin>
    \x3CgroupId>org.jacoco\x3C/groupId>
    \x3CartifactId>jacoco-maven-plugin\x3C/artifactId>
    \x3Cversion>0.8.11\x3C/version>
    \x3Cexecutions>
        \x3Cexecution>
            \x3Cid>prepare-agent\x3C/id>
            \x3Cgoals>
                \x3Cgoal>prepare-agent\x3C/goal>
            \x3C/goals>
        \x3C/execution>
        \x3Cexecution>
            \x3Cid>report\x3C/id>
            \x3Cphase>test\x3C/phase>
            \x3Cgoals>
                \x3Cgoal>report\x3C/goal>
            \x3C/goals>
        \x3C/execution>
        \x3Cexecution>
            \x3Cid>check\x3C/id>
            \x3Cgoals>
                \x3Cgoal>check\x3C/goal>
            \x3C/goals>
            \x3Cconfiguration>
                \x3Crules>
                    \x3Crule>
                        \x3Celement>BUNDLE\x3C/element>
                        \x3Climits>
                            \x3Climit>
                                \x3Ccounter>LINE\x3C/counter>
                                \x3Cvalue>COVEREDRATIO\x3C/value>
                                \x3Cminimum>0.80\x3C/minimum>
                            \x3C/limit>
                            \x3Climit>
                                \x3Ccounter>BRANCH\x3C/counter>
                                \x3Cvalue>COVEREDRATIO\x3C/value>
                                \x3Cminimum>0.70\x3C/minimum>
                            \x3C/limit>
                        \x3C/limits>
                    \x3C/rule>
                \x3C/rules>
            \x3C/configuration>
        \x3C/execution>
    \x3C/executions>
\x3C/plugin>

Quality Plugins

Enforcer Plugin

\x3Cplugin>
    \x3CgroupId>org.apache.maven.plugins\x3C/groupId>
    \x3CartifactId>maven-enforcer-plugin\x3C/artifactId>
    \x3Cversion>3.4.1\x3C/version>
    \x3Cexecutions>
        \x3Cexecution>
            \x3Cid>enforce\x3C/id>
            \x3Cgoals>
                \x3Cgoal>enforce\x3C/goal>
            \x3C/goals>
            \x3Cconfiguration>
                \x3Crules>
                    \x3CrequireMavenVersion>
                        \x3Cversion>[3.8.0,)\x3C/version>
                    \x3C/requireMavenVersion>
                    \x3CrequireJavaVersion>
                        \x3Cversion>[17,)\x3C/version>
                    \x3C/requireJavaVersion>
                    \x3CdependencyConvergence/>
                    \x3CrequireUpperBoundDeps/>
                    \x3CbanDuplicatePomDependencyVersions/>
                    \x3CbannedDependencies>
                        \x3Cexcludes>
                            \x3Cexclude>commons-logging:commons-logging\x3C/exclude>
                            \x3Cexclude>log4j:log4j\x3C/exclude>
                        \x3C/excludes>
                    \x3C/bannedDependencies>
                \x3C/rules>
            \x3C/configuration>
        \x3C/execution>
    \x3C/executions>
\x3C/plugin>

Checkstyle Plugin

\x3Cplugin>
    \x3CgroupId>org.apache.maven.plugins\x3C/groupId>
    \x3CartifactId>maven-checkstyle-plugin\x3C/artifactId>
    \x3Cversion>3.3.1\x3C/version>
    \x3Cconfiguration>
        \x3CconfigLocation>checkstyle.xml\x3C/configLocation>
        \x3CconsoleOutput>true\x3C/consoleOutput>
        \x3CfailsOnError>true\x3C/failsOnError>
        \x3CviolationSeverity>warning\x3C/violationSeverity>
        \x3CincludeTestSourceDirectory>true\x3C/includeTestSourceDirectory>
    \x3C/configuration>
    \x3Cexecutions>
        \x3Cexecution>
            \x3Cid>checkstyle\x3C/id>
            \x3Cphase>validate\x3C/phase>
            \x3Cgoals>
                \x3Cgoal>check\x3C/goal>
            \x3C/goals>
        \x3C/execution>
    \x3C/executions>
    \x3Cdependencies>
        \x3Cdependency>
            \x3CgroupId>com.puppycrawl.tools\x3C/groupId>
            \x3CartifactId>checkstyle\x3C/artifactId>
            \x3Cversion>10.12.6\x3C/version>
        \x3C/dependency>
    \x3C/dependencies>
\x3C/plugin>

SpotBugs Plugin

\x3Cplugin>
    \x3CgroupId>com.github.spotbugs\x3C/groupId>
    \x3CartifactId>spotbugs-maven-plugin\x3C/artifactId>
    \x3Cversion>4.8.3.0\x3C/version>
    \x3Cconfiguration>
        \x3Ceffort>Max\x3C/effort>
        \x3Cthreshold>Low\x3C/threshold>
        \x3CxmlOutput>true\x3C/xmlOutput>
        \x3CexcludeFilterFile>spotbugs-exclude.xml\x3C/excludeFilterFile>
    \x3C/configuration>
    \x3Cexecutions>
        \x3Cexecution>
            \x3Cgoals>
                \x3Cgoal>check\x3C/goal>
            \x3C/goals>
        \x3C/execution>
    \x3C/executions>
\x3C/plugin>

PMD Plugin

\x3Cplugin>
    \x3CgroupId>org.apache.maven.plugins\x3C/groupId>
    \x3CartifactId>maven-pmd-plugin\x3C/artifactId>
    \x3Cversion>3.21.2\x3C/version>
    \x3Cconfiguration>
        \x3Crulesets>
            \x3Cruleset>/category/java/bestpractices.xml\x3C/ruleset>
            \x3Cruleset>/category/java/errorprone.xml\x3C/ruleset>
        \x3C/rulesets>
        \x3CfailOnViolation>true\x3C/failOnViolation>
        \x3CprintFailingErrors>true\x3C/printFailingErrors>
        \x3CincludeTests>true\x3C/includeTests>
        \x3CtargetJdk>17\x3C/targetJdk>
    \x3C/configuration>
    \x3Cexecutions>
        \x3Cexecution>
            \x3Cgoals>
                \x3Cgoal>check\x3C/goal>
                \x3Cgoal>cpd-check\x3C/goal>
            \x3C/goals>
        \x3C/execution>
    \x3C/executions>
\x3C/plugin>

Packaging Plugins

Assembly Plugin

\x3Cplugin>
    \x3CgroupId>org.apache.maven.plugins\x3C/groupId>
    \x3CartifactId>maven-assembly-plugin\x3C/artifactId>
    \x3Cversion>3.6.0\x3C/version>
    \x3Cconfiguration>
        \x3CdescriptorRefs>
            \x3CdescriptorRef>jar-with-dependencies\x3C/descriptorRef>
        \x3C/descriptorRefs>
        \x3Carchive>
            \x3Cmanifest>
                \x3CmainClass>com.example.Main\x3C/mainClass>
            \x3C/manifest>
        \x3C/archive>
    \x3C/configuration>
    \x3Cexecutions>
        \x3Cexecution>
            \x3Cid>make-assembly\x3C/id>
            \x3Cphase>package\x3C/phase>
            \x3Cgoals>
                \x3Cgoal>single\x3C/goal>
            \x3C/goals>
        \x3C/execution>
    \x3C/executions>
\x3C/plugin>

Shade Plugin

\x3Cplugin>
    \x3CgroupId>org.apache.maven.plugins\x3C/groupId>
    \x3CartifactId>maven-shade-plugin\x3C/artifactId>
    \x3Cversion>3.5.1\x3C/version>
    \x3Cexecutions>
        \x3Cexecution>
            \x3Cphase>package\x3C/phase>
            \x3Cgoals>
                \x3Cgoal>shade\x3C/goal>
            \x3C/goals>
            \x3Cconfiguration>
                \x3Ctransformers>
                    \x3Ctransformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
                        \x3CmainClass>com.example.Main\x3C/mainClass>
                    \x3C/transformer>
                    \x3Ctransformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
                \x3C/transformers>
                \x3Cfilters>
                    \x3Cfilter>
                        \x3Cartifact>*:*\x3C/artifact>
                        \x3Cexcludes>
                            \x3Cexclude>META-INF/*.SF\x3C/exclude>
                            \x3Cexclude>META-INF/*.DSA\x3C/exclude>
                            \x3Cexclude>META-INF/*.RSA\x3C/exclude>
                        \x3C/excludes>
                    \x3C/filter>
                \x3C/filters>
                \x3Crelocations>
                    \x3Crelocation>
                        \x3Cpattern>com.google\x3C/pattern>
                        \x3CshadedPattern>shaded.com.google\x3C/shadedPattern>
                    \x3C/relocation>
                \x3C/relocations>
            \x3C/configuration>
        \x3C/execution>
    \x3C/executions>
\x3C/plugin>

WAR Plugin

\x3Cplugin>
    \x3CgroupId>org.apache.maven.plugins\x3C/groupId>
    \x3CartifactId>maven-war-plugin\x3C/artifactId>
    \x3Cversion>3.4.0\x3C/version>
    \x3Cconfiguration>
        \x3CfailOnMissingWebXml>false\x3C/failOnMissingWebXml>
        \x3CpackagingExcludes>WEB-INF/classes/logback-test.xml\x3C/packagingExcludes>
        \x3CwebResources>
            \x3Cresource>
                \x3Cdirectory>src/main/webapp\x3C/directory>
                \x3Cfiltering>true\x3C/filtering>
                \x3Cincludes>
                    \x3Cinclude>**/*.html\x3C/include>
                \x3C/includes>
            \x3C/resource>
        \x3C/webResources>
    \x3C/configuration>
\x3C/plugin>

Spring Boot Plugin

\x3Cplugin>
    \x3CgroupId>org.springframework.boot\x3C/groupId>
    \x3CartifactId>spring-boot-maven-plugin\x3C/artifactId>
    \x3Cversion>3.2.0\x3C/version>
    \x3Cconfiguration>
        \x3CmainClass>com.example.Application\x3C/mainClass>
        \x3Cexcludes>
            \x3Cexclude>
                \x3CgroupId>org.projectlombok\x3C/groupId>
                \x3CartifactId>lombok\x3C/artifactId>
            \x3C/exclude>
        \x3C/excludes>
        \x3Clayers>
            \x3Cenabled>true\x3C/enabled>
        \x3C/layers>
        \x3Cimage>
            \x3Cname>${project.artifactId}:${project.version}\x3C/name>
            \x3Cbuilder>paketobuildpacks/builder:base\x3C/builder>
        \x3C/image>
    \x3C/configuration>
    \x3Cexecutions>
        \x3Cexecution>
            \x3Cgoals>
                \x3Cgoal>repackage\x3C/goal>
            \x3C/goals>
        \x3C/execution>
    \x3C/executions>
\x3C/plugin>

Version Management Plugins

Versions Plugin

\x3Cplugin>
    \x3CgroupId>org.codehaus.mojo\x3C/groupId>
    \x3CartifactId>versions-maven-plugin\x3C/artifactId>
    \x3Cversion>2.16.2\x3C/version>
    \x3Cconfiguration>
        \x3CrulesUri>file:///${project.basedir}/version-rules.xml\x3C/rulesUri>
    \x3C/configuration>
\x3C/plugin>
# Check for updates
mvn versions:display-dependency-updates
mvn versions:display-plugin-updates
mvn versions:display-property-updates

# Update versions
mvn versions:update-properties
mvn versions:use-latest-releases
mvn versions:update-parent

Release Plugin

\x3Cplugin>
    \x3CgroupId>org.apache.maven.plugins\x3C/groupId>
    \x3CartifactId>maven-release-plugin\x3C/artifactId>
    \x3Cversion>3.0.1\x3C/version>
    \x3Cconfiguration>
        \x3CtagNameFormat>v@{project.version}\x3C/tagNameFormat>
        \x3CautoVersionSubmodules>true\x3C/autoVersionSubmodules>
        \x3CreleaseProfiles>release\x3C/releaseProfiles>
    \x3C/configuration>
\x3C/plugin>

Code Generation Plugins

Build Helper Plugin

\x3Cplugin>
    \x3CgroupId>org.codehaus.mojo\x3C/groupId>
    \x3CartifactId>build-helper-maven-plugin\x3C/artifactId>
    \x3Cversion>3.5.0\x3C/version>
    \x3Cexecutions>
        \x3Cexecution>
            \x3Cid>add-source\x3C/id>
            \x3Cphase>generate-sources\x3C/phase>
            \x3Cgoals>
                \x3Cgoal>add-source\x3C/goal>
            \x3C/goals>
            \x3Cconfiguration>
                \x3Csources>
                    \x3Csource>${project.build.directory}/generated-sources\x3C/source>
                \x3C/sources>
            \x3C/configuration>
        \x3C/execution>
    \x3C/executions>
\x3C/plugin>

Exec Plugin

\x3Cplugin>
    \x3CgroupId>org.codehaus.mojo\x3C/groupId>
    \x3CartifactId>exec-maven-plugin\x3C/artifactId>
    \x3Cversion>3.1.1\x3C/version>
    \x3Cexecutions>
        \x3Cexecution>
            \x3Cid>run-script\x3C/id>
            \x3Cphase>generate-sources\x3C/phase>
            \x3Cgoals>
                \x3Cgoal>exec\x3C/goal>
            \x3C/goals>
            \x3Cconfiguration>
                \x3Cexecutable>bash\x3C/executable>
                \x3Carguments>
                    \x3Cargument>${project.basedir}/scripts/generate.sh\x3C/argument>
                \x3C/arguments>
            \x3C/configuration>
        \x3C/execution>
    \x3C/executions>
\x3C/plugin>

Best Practices

  1. Version Pinning - Always specify plugin versions
  2. Plugin Management - Centralize in parent POM
  3. Minimal Configuration - Use defaults where possible
  4. Execution IDs - Use meaningful execution IDs
  5. Phase Binding - Bind to appropriate phases
  6. Skip Properties - Provide skip properties for flexibility
  7. Documentation - Comment complex configurations
  8. Inheritance - Use pluginManagement for multi-module
  9. Updates - Keep plugins current
  10. Profile Separation - Separate CI/release plugins into profiles

Common Pitfalls

  1. Missing Versions - Relying on default versions
  2. Wrong Phase - Plugin bound to wrong lifecycle phase
  3. Duplicate Executions - Same goal running multiple times
  4. Memory Issues - Insufficient heap for plugins
  5. Ordering - Plugin execution order conflicts
  6. Inheritance - Unintended plugin inheritance
  7. Fork Confusion - Misunderstanding fork behavior
  8. Skip Flags - Tests accidentally skipped in CI

When to Use This Skill

  • Configuring build compilation settings
  • Setting up test frameworks
  • Configuring code quality checks
  • Creating executable JARs
  • Setting up CI/CD builds
  • Optimizing build performance
  • Generating source code
  • Managing releases and versions
安全使用建议
This skill is an instruction-only Maven plugin configuration guide and appears coherent with its stated purpose. Because it has no install steps and requests no credentials, the direct security risk is low. Still, note the skill author and source are unknown and there is no homepage — review the SKILL.md content if you plan to rely on specific version recommendations or copy snippets into production POMs. If you want extra caution, open the SKILL.md and verify any suggested plugin versions and configuration against official plugin documentation before applying them to critical builds.
功能分析
Type: OpenClaw Skill Name: fix-build-google-auto-maven-plugin-configuration Version: 0.1.0 The skill bundle provides comprehensive documentation and XML configuration examples for standard Maven plugins (compiler, surefire, jacoco, etc.). All code snippets and instructions in SKILL.md are aligned with the stated purpose of assisting in build configuration, and no indicators of malicious intent, data exfiltration, or prompt injection were found.
能力评估
Purpose & Capability
The name/description (Maven plugin configuration) match the SKILL.md content: extensive pom.xml snippets and configuration guidance for compiler, surefire, jar, javadoc, resources, and related plugins. There are no unexpected requirements (no cloud credentials, no unrelated binaries).
Instruction Scope
SKILL.md is purely documentation and sample XML. It does not instruct the agent to run shell commands, read system files, fetch or post data to external endpoints, or access environment variables beyond normal Maven properties. There are no vague, open-ended steps asking the agent to gather arbitrary context.
Install Mechanism
There is no install spec (instruction-only skill), so nothing is downloaded or written to disk by the skill itself — this is the lowest-risk install footprint.
Credentials
The skill declares no required environment variables, credentials, or config paths. Its guidance references Maven properties and example placeholders (e.g., ${user.name}), which are appropriate for pom configuration and do not imply secret access.
Persistence & Privilege
The skill is not set to always:true and does not request persistent system privileges or modify other skills or system-wide agent settings. Autonomous invocation is allowed by platform default but is not combined with any other elevated privileges here.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install fix-build-google-auto-maven-plugin-configuration
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /fix-build-google-auto-maven-plugin-configuration 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.1.0
Bulk publish from all-task-skills-dedup
元数据
Slug fix-build-google-auto-maven-plugin-configuration
版本 0.1.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

maven-plugin-configuration 是什么?

Use when configuring Maven plugins, setting up common plugins like compiler, surefire, jar, or creating custom plugin executions. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 76 次。

如何安装 maven-plugin-configuration?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install fix-build-google-auto-maven-plugin-configuration」即可一键安装,无需额外配置。

maven-plugin-configuration 是免费的吗?

是的,maven-plugin-configuration 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

maven-plugin-configuration 支持哪些平台?

maven-plugin-configuration 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 maven-plugin-configuration?

由 wu-uk(@wu-uk)开发并维护,当前版本 v0.1.0。

💬 留言讨论