Element archive is not allowed here

Answered

I am on Intellij ultimate 2018.3 version, and it seems to complain about the POM file which is fine on Eclipse, and it is also built fine when I use "mvn clean install".   The section of POM Intellij is complaining on element "archive".   May I ask other than commenting the "configuration" section to avoid seeing the complain, is there another way?

<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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<!-- <groupId>com.blahblah.crdc.crdapibatch.impl.bootstrap</groupId> -->
<groupId>com.blahblah.crdc.crdapibatch</groupId>
<artifactId>crdapibatch</artifactId>
<packaging>jar</packaging>
<version>1.0</version>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>1.5.10.RELEASE</version>


</parent>


<build>
<plugins>
<!-- Package as an executable jar/war -->
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>

<executions>
<execution>
<goals>
<goal>repackage</goal>
</goals>
</execution>
</executions>
<configuration>
<archive>
<manifest>
<addClasspath>true</addClasspath>
<mainClass>com.blah.crdc.crdapibatch.Bootstrap</mainClass>
</manifest>
</archive>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
</configuration>
</plugin>

 

0
1 comment

Hello,
We have related issue on YouTrack: https://youtrack.jetbrains.com/issue/IDEA-143737
Please vote for it and follow for updates.

0

Please sign in to leave a comment.