“无主清单属性”maven项目

6jygbczu  于 2021-07-13  发布在  Java
关注(0)|答案(0)|浏览(169)

所以我们从教授那里得到了jmjrst项目。我的问题是,无论我在pom.xml中做什么,都不会有主清单属性。这是我现在必须做的最后一件事,但我不能让它工作。
xml:(整个构建部分)

<build>
    <plugins>
        <plugin>
            <groupId>a1</groupId>
            <artifactId>1800</artifactId>
            <version>0.0.1-SNAPSHOT</version>
            <dependencies>
                <dependency>
                    <groupId>com.puppycrawl.tools</groupId>
                    <artifactId>checkstyle</artifactId>
                    <version>6.4.1</version>
                </dependency>
            </dependencies>
            <configuration>
                <consoleOutput>true</consoleOutput>
                <configLocation>${basedir}/src/test/resources/checkstyle_swt1.xml</configLocation>
            </configuration>
        </plugin>

        <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-assembly-plugin</artifactId>
            <version>2.4</version>
            <configuration>
                <descriptor>src/assembly/src.xml</descriptor>
            </configuration>
            <executions>
                <execution>
                    <phase>package</phase>
                    <goals>
                        <goal>single</goal>
                    </goals>
                </execution>
            </executions>
        </plugin>

    </plugins>
    <pluginManagement>
        <plugins>
            <plugin>
                <groupId>a1</groupId>
                <artifactId>1800</artifactId>
                <version>0.0.1-SNAPSHOT</version>
                <configuration>
                    <source>1.7</source>
                    <target>1.7</target>
                    <archive>
                        <manifest>
                            <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
                            <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
                            <addClasspath>true</addClasspath>
                            <classpathPrefix>lib/</classpathPrefix>
                            <mainClass>${basedir}src/main/java/jis/Main.java</mainClass>                                
                        </manifest>
                    </archive>
                </configuration>
            </plugin>
        </plugins>
    </pluginManagement>
</build>

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题