0

I am using IntelliJ IDEA to produce a spring boot soap webservice in the pom.xml file, I am getting this error

Plugin 'org.codehaus.mojo:jaxb2-maven-plugin:3.6.3' not found

<properties>
    <java.version>15</java.version>
</properties>

<dependencies>
    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-web-services</artifactId>
    </dependency>
    <dependency>
        <groupId>wsdl4j</groupId>
        <artifactId>wsdl4j</artifactId>
    </dependency>

    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-test</artifactId>
        <scope>test</scope>
        <exclusions>
            <exclusion>
                <groupId>org.junit.vintage</groupId>
                <artifactId>junit-vintage-engine</artifactId>
            </exclusion>
        </exclusions>
    </dependency>
</dependencies>

<build>
    <plugins>
        <plugin>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-maven-plugin</artifactId>
        </plugin>
        <plugin>
            <groupId>org.codehaus.mojo</groupId>
            <artifactId>jaxb2-maven-plugin</artifactId>
            <version>2.5.0</version>
            <executions>
                <execution>
                    <id>xjc</id>
                    <goals>
                        <goal>xjc</goal>
                    </goals>
                </execution>
            </executions>
            <configuration>
                <sources>
                    <source>${project.basedir}/src/main/resources/countries.xsd</source>
                </sources>
            </configuration>
        </plugin>
    </plugins>

</build>
</project>

I have

  • java JDK 15
  • Apache Maven 3.6.3

both are added to system variables

enter image description here

Eila
  • 27
  • 1
  • 9
  • When and where do you get this error? Please post the full output. Does Maven build work from OS terminal? – Andrey Nov 05 '20 at 15:45
  • Looks like this plugin version does not exist on Maven central repository. The `2.4` version works for me. – Andrey Nov 05 '20 at 16:16
  • do you suggest to download Apache Maven2 insted of Apache Maven 3 – Eila Nov 05 '20 at 16:27
  • i got the error righ away when i write this plugin org.codehaus.mojo jaxb2-maven-plugin 2.5.0 ,\\ i am not sure about the version i am new to this i tried to find plugin for the version of maven i have put no result i tried several once like this one https://repo1.maven.org/maven2/org/codehaus/mojo/jaxb2-maven-plugin/1.3/ but still did not work – Eila Nov 05 '20 at 16:32
  • in the problems tab i got this error :Plugin 'org.codehaus.mojo:jaxb2-maven-plugin:2.3.5' not found – Eila Nov 05 '20 at 16:34
  • while in the build tab i got this: Could not find artifact org.codehaus.mojo:jaxb2-maven-plugin:pom:0.14.0 in central (https://repo.maven.apache.org/maven2) – Eila Nov 05 '20 at 16:35
  • I attached a picture from the repositry in the post – Eila Nov 05 '20 at 16:48
  • https://stackoverflow.com/questions/20496239/maven-plugins-can-not-be-found-in-intellij – Tom Dec 03 '21 at 12:03

0 Answers0