打包有问题 但是可以找到两个jar包 运行之后无法加载主类

打包有问题 但是可以找到两个jar包 运行之后无法加载主类

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <groupId>com.imooc</groupId>
    <artifactId>maven-first</artifactId>
    <version>1.0.0-RELEASE</version>
    <repositories>
        <repository>
            <!-- 创建私服的地址 -->
            <id>aliyun</id>
            <name>aliyun</name>
            <url>https://maven.aliyun.com/repository/public</url>
        </repository>
    </repositories>
    <dependencies>

        <dependency>

            <groupId>org.apache.maven.plugins</groupId>

            <artifactId>maven-resources-plugin</artifactId>

            <version>2.6</version>

        </dependency>
        <dependency>
            <groupId>mysql</groupId>
            <artifactId>mysql-connector-java</artifactId>
            <version>5.1.47</version>
        </dependency>
        <dependency>
            <groupId>com.belerweb</groupId>
            <artifactId>pinyin4j</artifactId>
            <version>2.5.0</version>
        </dependency>

    </dependencies>
    <build>
        <!-- 配置插件 -->
        <plugins>
            <plugin>
                <artifactId>maven-assembly-plugin</artifactId>
                <version>2.4</version>
                <configuration>
                    <descriptorRefs>
                        <descriptorRef>jar-with-dependencies</descriptorRef>
                    </descriptorRefs>
                    <archive>
                        <manifest>
                            <mainClass>com.imooc.maven.PinyinTestor</mainClass>
                        </manifest>
                    </archive>
                </configuration>
                <executions>
                    <execution>
                        <id>make-assembly</id>
                        <phase>package</phase>
                        <goals>
                            <goal>single</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>

</project>










[INFO] Scanning for projects...
[INFO] 
[INFO] -----------------------< com.imooc:maven-first >------------------------
[INFO] Building maven-first 1.0.0-RELEASE
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] 
[INFO] >>> maven-assembly-plugin:2.4:assembly (default-cli) > package @ maven-first >>>
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ maven-first ---
[WARNING] Using platform encoding (GBK actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 0 resource
[INFO] 
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ maven-first ---
[INFO] Nothing to compile - all classes are up to date
[INFO] 
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ maven-first ---
[WARNING] Using platform encoding (GBK actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 0 resource
[INFO] 
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ maven-first ---
[INFO] Nothing to compile - all classes are up to date
[INFO] 
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ maven-first ---
[INFO] 
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ maven-first ---
[INFO] Building jar: C:\Users\李承均\workspace\maven-first\target\maven-first-1.0.0-RELEASE.jar
[INFO] 
[INFO] --- maven-assembly-plugin:2.4:single (make-assembly) @ maven-first ---
[WARNING] The POM for org.apache.maven.doxia:doxia-logging-api:jar:1.1 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
[WARNING] The POM for org.apache.maven:maven-model:jar:2.0.8 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
[INFO] Downloading from central: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-archiver/2.2/plexus-archiver-2.2.pom
[INFO] Downloaded from central: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-archiver/2.2/plexus-archiver-2.2.pom (3.2 kB at 875 B/s)
[INFO] Downloading from central: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-components/1.1.20/plexus-components-1.1.20.pom
[INFO] Downloaded from central: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-components/1.1.20/plexus-components-1.1.20.pom (3.0 kB at 7.0 kB/s)
[INFO] Downloading from central: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus/3.1/plexus-3.1.pom
[INFO] Downloaded from central: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus/3.1/plexus-3.1.pom (19 kB at 22 kB/s)
[INFO] Downloading from central: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-utils/3.0.7/plexus-utils-3.0.7.pom
[INFO] Downloaded from central: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-utils/3.0.7/plexus-utils-3.0.7.pom (2.5 kB at 5.8 kB/s)
[INFO] Downloading from central: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-io/2.0.4/plexus-io-2.0.4.pom
[INFO] Downloaded from central: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-io/2.0.4/plexus-io-2.0.4.pom (1.7 kB at 4.1 kB/s)
[INFO] Downloading from central: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-io/2.0.6/plexus-io-2.0.6.pom
[INFO] Downloaded from central: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-io/2.0.6/plexus-io-2.0.6.pom (2.2 kB at 1.6 kB/s)
[INFO] Downloading from central: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-components/1.2/plexus-components-1.2.pom
[INFO] Downloaded from central: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-components/1.2/plexus-components-1.2.pom (3.1 kB at 4.8 kB/s)
[INFO] Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/shared/maven-repository-builder/1.0-alpha-2/maven-repository-builder-1.0-alpha-2.pom
[INFO] Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/maven/shared/maven-repository-builder/1.0-alpha-2/maven-repository-builder-1.0-alpha-2.pom (3.2 kB at 7.5 kB/s)
[INFO] Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/shared/maven-shared-components/7/maven-shared-components-7.pom
[INFO] Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/maven/shared/maven-shared-components/7/maven-shared-components-7.pom (2.6 kB at 2.5 kB/s)
[INFO] Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/shared/maven-common-artifact-filters/1.0-alpha-1/maven-common-artifact-filters-1.0-alpha-1.pom
[INFO] Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/maven/shared/maven-common-artifact-filters/1.0-alpha-1/maven-common-artifact-filters-1.0-alpha-1.pom (1.8 kB at 4.1 kB/s)
[INFO] Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/shared/maven-shared-components/6/maven-shared-components-6.pom
[INFO] Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/maven/shared/maven-shared-components/6/maven-shared-components-6.pom (3.1 kB at 7.2 kB/s)
[INFO] Downloading from central: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-archiver/2.2/plexus-archiver-2.2.jar
[INFO] Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/shared/maven-repository-builder/1.0-alpha-2/maven-repository-builder-1.0-alpha-2.jar
[INFO] Downloading from central: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-io/2.0.6/plexus-io-2.0.6.jar
[INFO] Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/maven/shared/maven-repository-builder/1.0-alpha-2/maven-repository-builder-1.0-alpha-2.jar (23 kB at 8.1 kB/s)
[INFO] Downloaded from central: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-io/2.0.6/plexus-io-2.0.6.jar (58 kB at 11 kB/s)
[INFO] Downloaded from central: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-archiver/2.2/plexus-archiver-2.2.jar (185 kB at 15 kB/s)
Adding org.apache.maven.project.MavenProjectHelper
Adding org.apache.maven.project.interpolation.ModelInterpolator
Adding org.apache.maven.project.injection.ModelDefaultsInjector
Adding org.apache.maven.project.injection.ProfileInjector
Adding org.apache.maven.project.MavenProjectBuilder
Adding org.apache.maven.profiles.activation.ProfileActivatoralways-on
Adding org.apache.maven.profiles.activation.ProfileActivatorjdk-prefix
Adding org.apache.maven.profiles.activation.ProfileActivatorsystem-property
Adding org.apache.maven.profiles.activation.ProfileActivatoros
Adding org.apache.maven.profiles.activation.ProfileActivatorfile
Adding org.apache.maven.project.inheritance.ModelInheritanceAssembler
Adding org.apache.maven.project.validation.ModelValidator
Adding org.apache.maven.project.path.PathTranslator
Adding org.apache.maven.project.ModelResolverdefault
Adding org.apache.maven.artifact.metadata.ArtifactMetadataSourcemaven
Adding org.apache.maven.settings.MavenSettingsBuilder
Adding org.apache.maven.profiles.MavenProfilesBuilder
Adding org.apache.maven.artifact.manager.WagonManager
Adding org.apache.maven.artifact.repository.metadata.RepositoryMetadataManager
Adding org.apache.maven.artifact.transform.ArtifactTransformationsnapshot
Adding org.apache.maven.artifact.transform.ArtifactTransformationrelease
Adding org.apache.maven.artifact.transform.ArtifactTransformationlatest
Adding org.apache.maven.artifact.transform.ArtifactTransformationManager
Adding org.apache.maven.artifact.resolver.ArtifactResolver
Adding org.apache.maven.artifact.installer.ArtifactInstaller
Adding org.apache.maven.artifact.deployer.ArtifactDeployer
Adding org.apache.maven.artifact.repository.ArtifactRepositoryFactory
Adding org.apache.maven.artifact.repository.metadata.RepositoryMetadataBuilderdefault
Component: org.apache.maven.artifact.repository.ArtifactRepositoryFactory is already defined. Skipping.
Adding org.apache.maven.artifact.repository.layout.ArtifactRepositoryLayoutdefault
Adding org.apache.maven.artifact.repository.layout.ArtifactRepositoryLayoutlegacy
Adding org.apache.maven.artifact.handler.manager.ArtifactHandlerManager
Adding org.apache.maven.artifact.handler.ArtifactHandlerejb
Adding org.apache.maven.artifact.handler.ArtifactHandlerjar
Adding org.apache.maven.artifact.handler.ArtifactHandlertest-jar
Adding org.apache.maven.artifact.handler.ArtifactHandlermaven-plugin
Adding org.apache.maven.artifact.handler.ArtifactHandlerpom
Adding org.apache.maven.artifact.handler.ArtifactHandlerjava-source
Adding org.apache.maven.artifact.handler.ArtifactHandlerjavadoc
Adding org.apache.maven.artifact.handler.ArtifactHandlerwar
Adding org.apache.maven.artifact.handler.ArtifactHandlerear
Adding org.apache.maven.artifact.handler.ArtifactHandlerejb-client
Adding org.apache.maven.artifact.handler.ArtifactHandlerpar
Adding org.apache.maven.artifact.handler.ArtifactHandlerejb3
Adding org.apache.maven.artifact.factory.ArtifactFactory
Adding org.apache.maven.artifact.resolver.ArtifactCollector
Adding org.apache.maven.plugin.registry.MavenPluginRegistryBuilder
Adding org.apache.maven.plugin.PluginManager
Adding org.apache.maven.extension.ExtensionManager
Adding org.apache.maven.plugin.PluginMappingManager
Component: org.apache.maven.project.path.PathTranslator is already defined. Skipping.
Adding org.apache.maven.Maven
Adding org.apache.maven.execution.RuntimeInformation
Adding org.apache.maven.usability.diagnostics.ErrorDiagnoserMojoExecutionExceptionDiagnoser
Adding org.apache.maven.usability.diagnostics.ErrorDiagnoserMojoFailureExceptionDiagnoser
Adding org.apache.maven.usability.diagnostics.ErrorDiagnoserProjectBuildDiagnoser
Adding org.apache.maven.usability.diagnostics.ErrorDiagnoserProfileActivationDiagnoser
Adding org.apache.maven.usability.diagnostics.ErrorDiagnoserPluginConfigurationDiagnoser
Adding org.apache.maven.usability.diagnostics.ErrorDiagnoserArtifactNotFoundDiagnoser
Adding org.apache.maven.usability.diagnostics.ErrorDiagnoserArtifactResolverDiagnoser
Adding org.apache.maven.usability.diagnostics.ErrorDiagnoserInvalidArtifactDiagnoser
Adding org.apache.maven.lifecycle.LifecycleExecutor
Adding org.apache.maven.lifecycle.mapping.LifecycleMappingpom
Adding org.apache.maven.lifecycle.mapping.LifecycleMappingjar
Adding org.apache.maven.lifecycle.mapping.LifecycleMappingmaven-plugin
Adding org.apache.maven.lifecycle.mapping.LifecycleMappingejb
Adding org.apache.maven.lifecycle.mapping.LifecycleMappingwar
Adding org.apache.maven.lifecycle.mapping.LifecycleMappingear
Adding org.apache.maven.lifecycle.mapping.LifecycleMappingrar
Adding org.apache.maven.lifecycle.mapping.LifecycleMappingpar
Adding org.apache.maven.lifecycle.mapping.LifecycleMappingejb3
Adding org.apache.maven.plugin.version.PluginVersionManagerdefault
Adding org.apache.maven.wagon.Wagonfile
Adding org.apache.maven.wagon.Wagonhttp
Adding org.apache.maven.wagon.Wagonhttps
Adding org.apache.maven.usability.diagnostics.ErrorDiagnostics
Adding org.apache.maven.wagon.Wagonscpexe
Adding org.apache.maven.wagon.CommandExecutor
Adding org.apache.maven.wagon.providers.ssh.knownhost.KnownHostsProviderfile
Adding org.apache.maven.wagon.providers.ssh.knownhost.KnownHostsProvidernull
Adding org.apache.maven.wagon.providers.ssh.interactive.InteractiveUserInfo
Adding org.codehaus.plexus.components.interactivity.InputHandlerdefault
Adding org.codehaus.plexus.components.interactivity.OutputHandlerdefault
Adding org.codehaus.plexus.components.interactivity.Prompterdefault
Adding org.apache.maven.wagon.

Wagonscp
Adding org.apache.maven.wagon.Wagonsftp
Component: org.apache.maven.wagon.CommandExecutor is already defined. Skipping.
Adding com.jcraft.jsch.UIKeyboardInteractive
Adding org.apache.maven.shared.filtering.MavenFileFilterdefault
Adding org.apache.maven.shared.filtering.MavenResourcesFilteringdefault
Adding org.sonatype.plexus.build.incremental.BuildContextdefault
[INFO] Building jar: C:\Users\李承均\workspace\maven-first\target\maven-first-1.0.0-RELEASE-jar-with-dependencies.jar
Component: org.apache.maven.project.MavenProjectHelper is already defined. Skipping.
Component: org.apache.maven.project.interpolation.ModelInterpolator is already defined. Skipping.
Component: org.apache.maven.project.injection.ModelDefaultsInjector is already defined. Skipping.
Component: org.apache.maven.project.injection.ProfileInjector is already defined. Skipping.
Component: org.apache.maven.project.MavenProjectBuilder is already defined. Skipping.
Component: org.apache.maven.profiles.activation.ProfileActivatoralways-on is already defined. Skipping.
Component: org.apache.maven.profiles.activation.ProfileActivatorjdk-prefix is already defined. Skipping.
Component: org.apache.maven.profiles.activation.ProfileActivatorsystem-property is already defined. Skipping.
Component: org.apache.maven.profiles.activation.ProfileActivatoros is already defined. Skipping.
Component: org.apache.maven.profiles.activation.ProfileActivatorfile is already defined. Skipping.
Component: org.apache.maven.project.inheritance.ModelInheritanceAssembler is already defined. Skipping.
Component: org.apache.maven.project.validation.ModelValidator is already defined. Skipping.
Component: org.apache.maven.project.path.PathTranslator is already defined. Skipping.
Component: org.apache.maven.project.ModelResolverdefault is already defined. Skipping.
Component: org.apache.maven.artifact.metadata.ArtifactMetadataSourcemaven is already defined. Skipping.
Component: org.apache.maven.settings.MavenSettingsBuilder is already defined. Skipping.
Component: org.apache.maven.profiles.MavenProfilesBuilder is already defined. Skipping.
Component: org.apache.maven.artifact.manager.WagonManager is already defined. Skipping.
Component: org.apache.maven.artifact.repository.metadata.RepositoryMetadataManager is already defined. Skipping.
Component: org.apache.maven.artifact.transform.ArtifactTransformationsnapshot is already defined. Skipping.
Component: org.apache.maven.artifact.transform.ArtifactTransformationrelease is already defined. Skipping.
Component: org.apache.maven.artifact.transform.ArtifactTransformationlatest is already defined. Skipping.
Component: org.apache.maven.artifact.transform.ArtifactTransformationManager is already defined. Skipping.
Component: org.apache.maven.artifact.resolver.ArtifactResolver is already defined. Skipping.
Component: org.apache.maven.artifact.installer.ArtifactInstaller is already defined. Skipping.
Component: org.apache.maven.artifact.deployer.ArtifactDeployer is already defined. Skipping.
Component: org.apache.maven.artifact.repository.ArtifactRepositoryFactory is already defined. Skipping.
Component: org.apache.maven.artifact.repository.metadata.RepositoryMetadataBuilderdefault is already defined. Skipping.
Component: org.apache.maven.artifact.repository.ArtifactRepositoryFactory is already defined. Skipping.
Component: org.apache.maven.artifact.repository.layout.ArtifactRepositoryLayoutdefault is already defined. Skipping.
Component: org.apache.maven.artifact.repository.layout.ArtifactRepositoryLayoutlegacy is already defined. Skipping.
Component: org.apache.maven.artifact.handler.manager.ArtifactHandlerManager is already defined. Skipping.
Component: org.apache.maven.artifact.handler.ArtifactHandlerejb is already defined. Skipping.
Component: org.apache.maven.artifact.handler.ArtifactHandlerjar is already defined. Skipping.
Component: org.apache.maven.artifact.handler.ArtifactHandlertest-jar is already defined. Skipping.
Component: org.apache.maven.artifact.handler.ArtifactHandlermaven-plugin is already defined. Skipping.
Component: org.apache.maven.artifact.handler.ArtifactHandlerpom is already defined. Skipping.
Component: org.apache.maven.artifact.handler.ArtifactHandlerjava-source is already defined. Skipping.
Component: org.apache.maven.artifact.handler.ArtifactHandlerjavadoc is already defined. Skipping.
Component: org.apache.maven.artifact.handler.ArtifactHandlerwar is already defined. Skipping.
Component: org.apache.maven.artifact.handler.ArtifactHandlerear is already defined. Skipping.
Component: org.apache.maven.artifact.handler.ArtifactHandlerejb-client is already defined. Skipping.
Component: org.apache.maven.artifact.handler.ArtifactHandlerpar is already defined. Skipping.
Component: org.apache.maven.artifact.handler.ArtifactHandlerejb3 is already defined. Skipping.
Component: org.apache.maven.artifact.factory.ArtifactFactory is already defined. Skipping.
Component: org.apache.maven.artifact.resolver.ArtifactCollector is already defined. Skipping.
Component: org.apache.maven.plugin.registry.MavenPluginRegistryBuilder is already defined. Skipping.
Component: org.apache.maven.plugin.PluginManager is already defined. Skipping.
Component: org.apache.maven.extension.ExtensionManager is already defined. Skipping.
Component: org.apache.maven.plugin.PluginMappingManager is already defined. Skipping.
Component: org.apache.maven.project.path.PathTranslator is already defined. Skipping.
Component: org.apache.maven.Maven is already defined. Skipping.
Component: org.apache.maven.execution.RuntimeInformation is already defined. Skipping.
Component: org.apache.maven.usability.diagnostics.ErrorDiagnoserMojoExecutionExceptionDiagnoser is already defined. Skipping.
Component: org.apache.maven.usability.diagnostics.ErrorDiagnoserMojoFailureExceptionDiagnoser is already defined. Skipping.
Component: org.apache.maven.usability.diagnostics.ErrorDiagnoserProjectBuildDiagnoser is already defined. Skipping.
Component: org.apache.maven.usability.diagnostics.ErrorDiagnoserProfileActivationDiagnoser is already defined. Skipping.
Component: org.apache.maven.usability.diagnostics.ErrorDiagnoserPluginConfigurationDiagnoser is already defined. Skipping.
Component: org.apache.maven.usability.diagnostics.ErrorDiagnoserArtifactNotFoundDiagnoser is already defined. Skipping.
Component: org.apache.maven.usability.diagnostics.ErrorDiagnoserArtifactResolverDiagnoser is already defined. Skipping.
Component: org.apache.maven.usability.diagnostics.ErrorDiagnoserInvalidArtifactDiagnoser is already defined. Skipping.
Component: org.apache.maven.lifecycle.LifecycleExecutor is already defined. Skipping.
Component: org.apache.maven.lifecycle.mapping.LifecycleMappingpom is already defined. Skipping.
Component: org.apache.maven.lifecycle.mapping.LifecycleMappingjar is already defined. Skipping.
Component: org.apache.maven.lifecycle.mapping.LifecycleMappingmaven-plugin is already defined. Skipping.
Component: org.apache.maven.lifecycle.mapping.LifecycleMappingejb is already defined. Skipping.
Component: org.apache.maven.lifecycle.mapping.LifecycleMappingwar is already defined. Skipping.
Component: org.apache.maven.lifecycle.mapping.LifecycleMappingear is already defined. Skipping.
Component: org.apache.maven.lifecycle.mapping.LifecycleMappingrar is already defined. Skipping.
Component: org.apache.maven.lifecycle.mapping.LifecycleMappingpar is already defined. Skipping.
Component: org.apache.maven.lifecycle.mapping.LifecycleMappingejb3 is already defined. Skipping.
Component: org.apache.maven.plugin.version.PluginVersionManagerdefault is already defined. Skipping.
Component: org.apache.maven.wagon.Wagonfile is already defined. Skipping.
Component: org.apache.maven.wagon.Wagonhttp is already defined. Skipping.
Component: org.apache.maven.wagon.Wagonhttps is already defined. Skipping.
Component: org.apache.maven.usability.diagnostics.ErrorDiagnostics is already defined. Skipping.
Component: org.apache.maven.wagon.Wagonscpexe is already defined. Skipping.
Component: org.apache.maven.wagon.CommandExecutor is already defined. Skipping.
Component: org.apache.maven.wagon.providers.ssh.knownhost.KnownHostsProviderfile is already defined. Skipping.
Component: org.apache.maven.wagon.providers.ssh.knownhost.KnownHostsProvidernull is already defined. Skipping.
Component: org.apache.maven.wagon.providers.ssh.interactive.InteractiveUserInfo is already defined. Skipping.
Component: org.codehaus.plexus.components.interactivity.InputHandlerdefault is already defined. Skipping.
Component: org.codehaus.plexus.components.interactivity.OutputHandlerdefault is already defined. Skipping.
Component: org.codehaus.plexus.components.interactivity.Prompterdefault is already defined. Skipping.
Component: org.apache.maven.wagon.Wagonscp is already defined. Skipping.
Component: org.apache.maven.wagon.Wagonsftp is already defined. Skipping.
Component: org.apache.maven.wagon.CommandExecutor is already defined. Skipping.
Component: com.jcraft.jsch.UIKeyboardInteractive is already defined. Skipping.
Component: org.apache.maven.shared.filtering.MavenFileFilterdefault is already defined. Skipping.
Component: org.apache.maven.shared.filtering.MavenResourcesFilteringdefault is already defined. Skipping.
Component: org.sonatype.plexus.build.incremental.BuildContextdefault is already defined. Skipping.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  25.539 s
[INFO] Finished at: 2020-04-20T04:06:14+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:2.4:single (make-assembly) on project maven-first: Failed to create assembly: Error creating assembly archive jar-with-dependencies: IOException when zipping META-INF/services/java.sql.Driver: invalid LOC header (bad signature) -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

C:\Users\李承均\workspace\maven-first\target>java -jar maven-first-1.0.0-RELEASE-jar-with-dependencies.jar
错误: 找不到或无法加载主类 com.imooc.maven.PinyinTestor


http://img1.sycdn.imooc.com//climg/5e9cb10a09bd0a0202860139.jpghttp://img1.sycdn.imooc.com//climg/5e9cb13109d8870102830792.jpg

我都不知道为什么会有这么多jar包。。。。。

正在回答 回答被采纳积分+1

登陆购买课程后可参与讨论,去登陆

3回答
好帮手慕小班 2020-04-20 19:15:18

同学你好,1、根据报错信息,表示在pom文件的第8行出现问题,例如:

http://img1.sycdn.imooc.com//climg/5e9d829109fb75cd04920182.jpg

请问同学的plugin标签的外层是否有plugins标签呢?比如:

http://img1.sycdn.imooc.com//climg/5e9d83cf09c44ba702740111.jpg

    2、如果还报错,建议同学贴一下最新的pom文件,以及具体的报错信息。老师来检查测试一下。

如果我的回答解决了你的疑惑,请采纳,祝:学习愉快~

好帮手慕小班 2020-04-20 16:21:32

同学你好,同学刷新后还是不能正确打包吗。

如果还是不能打包,还有一种可能就是由于eclipse的版本不同,导致打包的插件无法加载的问题,同学可以尝试把之前plugin的内容注释掉,换成下面的内容试一下。

<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<version>2.4</version>
<configuration>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
<archive>
<manifest>
<mainClass>com.cyc.pinyintest.PinYinTest</mainClass>
</manifest>
</archive>
</configuration>
<executions>
<execution>
<id>make-assembly</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>

查看同学jdk与maven版本,并没有什么问题。

如果我的回答解决了你的疑惑,请采纳,祝学习愉快~

  • 提问者 慕姐6114392 #1
    [INFO] Scanning for projects... [ERROR] [ERROR] Some problems were encountered while processing the POMs: [ERROR] Unknown packaging: jar/war @ line 8, column 13 @ [ERROR] The build could not read 1 project -> [Help 1] [ERROR] [ERROR] The project com.imooc:maven:1.0.0-RELEASE (C:\Users\李承均\workspace\maven\pom.xml) has 1 error [ERROR] Unknown packaging: jar/war @ line 8, column 13 [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException 换完之后变成这样了
    2020-04-20 16:31:35
好帮手慕小班 2020-04-20 15:00:49

同学你好,Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:2.4  --》这个打包失败的问题,建议重新刷新加载项目看能不能一起解决,鼠标右键工程,选择maven→update project 。

如果还是不行,建议同学说一下你的JDK和Maven的版本。

重新打包成功后,再来试试,另外打包成功的标识:

http://img1.sycdn.imooc.com//climg/5e9d48e909c627d504650109.jpg

当出现BUILD FAILURE或者error表示打包失败。

如果我的回答解决了你的疑惑,请采纳,祝学习愉快~

  • 提问者 慕姐6114392 #1
    刷新过了 jdk1.8.0_181 apache-maven-3.6.3 是因为兼容问题嘛
    2020-04-20 15:04:46
  • 乌卡卡uka 回复 提问者 慕姐6114392 #2
    你的jdk是8_181,最好换成maven3.5.4版本的,3.6.3版本的maven会导致一些jar包无法完整下载。我之前也报过这种错误
    2020-04-27 08:48:47
问题已解决,确定采纳
还有疑问,暂不采纳

恭喜解决一个难题,获得1积分~

来为老师/同学的回答评分吧

0 星
请稍等 ...
意见反馈 帮助中心 APP下载
官方微信

在线咨询

领取优惠

免费试听

领取大纲

扫描二维码,添加
你的专属老师