“没有主要的清单属性”maven项目

时间:2015-04-28 10:20:11

标签: java maven manifest

所以我们从我们的教授那里得到了jmjrst项目。 我的问题是,无论我在pom.xml中做什么,都没有主要的清单属性。这是我现在要做的最后一件事,但我不能让它发挥作用。

pom.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>

0 个答案:

没有答案