Maven not recognising 'configuration' tag in pom.xml

后端 未结 1 1547
南方客
南方客 2021-01-22 06:13

I am trying to put this in my pom.xml-


  
    
  com.limetray.helper.App
         


        
相关标签:
1条回答
  • 2021-01-22 06:46

    The <configuration> snippet you have posted belongs inside a <plugin> tag. Specifically, it belongs inside the Apache Maven Jar Plugin. Refer to the sample below to get an idea of what you are doing wrong.

    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-jar-plugin</artifactId>
                <version>3.0.2</version>
                <configuration>
                    <archive>
                        <manifest>
                            <mainClass>com.limetray.helper.App</mainClass>
                        </manifest>
                    </archive>
                </configuration>
            </plugin>
        </plugins>
    </build>
    

    Refer to the Apache Maven Jar Plugin documentation here: https://maven.apache.org/plugins/maven-jar-plugin/index.html

    0 讨论(0)
提交回复
热议问题