Skip to content

Issue with javax/xml/bind/JAXBElement #5

@brothersome

Description

@brothersome

We get an error by using the simple application to create a swid-tag.
We cannot compile the project due to missing JAXBElement (It is in the project)
Later on I shall make a standalone application ... sad that this is not working

Best regards,
Brothersome ---- working with Police the Netherlands

[ERROR] Failed to execute goal com.labs64.mojo:swid-maven-plugin:0.1.0:generate (generate) on project ppd-backend: Execution generate of goal com.labs64.mojo:swid-maven-plugin:0.1.0:generate failed: A required class was missing whil
e executing com.labs64.mojo:swid-maven-plugin:0.1.0:generate: javax/xml/bind/JAXBElement
[ERROR] -----------------------------------------------------
[ERROR] realm = plugin>com.labs64.mojo:swid-maven-plugin:0.1.0
[ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
[ERROR] urls[0] = file:/D:/dev/maven2/localRepo/com/labs64/mojo/swid-maven-plugin/0.1.0/swid-maven-plugin-0.1.0.jar
[ERROR] urls[1] = file:/D:/dev/maven2/localRepo/javax/enterprise/cdi-api/1.0/cdi-api-1.0.jar
[ERROR] urls[2] = file:/D:/dev/maven2/localRepo/org/eclipse/sisu/org.eclipse.sisu.inject/0.3.0.M1/org.eclipse.sisu.inject-0.3.0.M1.jar
[ERROR] urls[3] = file:/D:/dev/maven2/localRepo/org/eclipse/aether/aether-util/1.0.0.v20140518/aether-util-1.0.0.v20140518.jar
[ERROR] urls[4] = file:/D:/dev/maven2/localRepo/org/sonatype/sisu/sisu-guice/3.2.3/sisu-guice-3.2.3-no_aop.jar
[ERROR] urls[5] = file:/D:/dev/maven2/localRepo/aopalliance/aopalliance/1.0/aopalliance-1.0.jar
[ERROR] urls[6] = file:/D:/dev/maven2/localRepo/com/google/guava/guava/16.0.1/guava-16.0.1.jar
[ERROR] urls[7] = file:/D:/dev/maven2/localRepo/org/codehaus/plexus/plexus-interpolation/1.21/plexus-interpolation-1.21.jar
[ERROR] urls[8] = file:/D:/dev/maven2/localRepo/org/codehaus/plexus/plexus-component-annotations/1.5.5/plexus-component-annotations-1.5.5.jar
[ERROR] urls[9] = file:/D:/dev/maven2/localRepo/org/sonatype/plexus/plexus-sec-dispatcher/1.3/plexus-sec-dispatcher-1.3.jar
[ERROR] urls[10] = file:/D:/dev/maven2/localRepo/org/sonatype/plexus/plexus-cipher/1.4/plexus-cipher-1.4.jar
[ERROR] urls[11] = file:/D:/dev/maven2/localRepo/org/codehaus/plexus/plexus-utils/3.0.21/plexus-utils-3.0.21.jar
[ERROR] urls[12] = file:/D:/dev/maven2/localRepo/org/codehaus/plexus/plexus-resources/1.0-alpha-7/plexus-resources-1.0-alpha-7.jar
[ERROR] urls[13] = file:/D:/dev/maven2/localRepo/junit/junit/3.8.1/junit-3.8.1.jar
[ERROR] urls[14] = file:/D:/dev/maven2/localRepo/com/labs64/utils/swid-generator/0.3.0/swid-generator-0.3.0.jar
[ERROR] urls[15] = file:/D:/dev/maven2/localRepo/org/apache/commons/commons-lang3/3.3.2/commons-lang3-3.3.2.jar
[ERROR] urls[16] = file:/D:/dev/maven2/localRepo/org/apache/commons/commons-collections4/4.0/commons-collections4-4.0.jar
[ERROR] urls[17] = file:/D:/dev/maven2/localRepo/commons-io/commons-io/2.4/commons-io-2.4.jar
[ERROR] Number of foreign imports: 1
[ERROR] import: Entry[import from realm ClassRealm[maven.api, parent: null]]
[ERROR]
[ERROR] -----------------------------------------------------
[ERROR] : javax.xml.bind.JAXBElement
[ERROR] -> [Help 1]

POM file:

4.0.0

org.springframework.boot
spring-boot-starter-parent
2.3.2.RELEASE


nl.politie.ppd-backend
ppd-backend
war
1.1.2-SNAPSHOT
ppd-backend Webapp

<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<java.version>1.8</java.version>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
nl.politie.ppd.PpdApplication
true




org.springframework.security
spring-security-web

	<dependency>
		<groupId>org.springframework.boot</groupId>
		<artifactId>spring-boot-starter-web</artifactId>
		<exclusions>
			<exclusion>
				<artifactId>tomcat-embed-websocket</artifactId>
				<groupId>org.apache.tomcat.embed</groupId>
			</exclusion>
		</exclusions>
	</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>
	<dependency>
		<groupId>org.apache.tomcat.embed</groupId>
		<artifactId>tomcat-embed-jasper</artifactId>
		<scope>provided</scope>
	</dependency>
	<dependency>
		<groupId>org.postgresql</groupId>
		<artifactId>postgresql</artifactId>
		<scope>runtime</scope>
	</dependency>
	<dependency>
		<groupId>org.springframework.boot</groupId>
		<artifactId>spring-boot-starter-data-jpa</artifactId>
	</dependency>
	<dependency>
		<groupId>org.json</groupId>
		<artifactId>json</artifactId>
		<version>20180130</version>
	</dependency>
	<dependency>
	  <groupId>junit</groupId>
	  <artifactId>junit</artifactId>
	  <scope>test</scope>
	</dependency>
	<dependency>
	    <groupId>com.h2database</groupId>
	    <artifactId>h2</artifactId>
	    <scope>test</scope>
	</dependency>
    <dependency>
        <groupId>org.apache.httpcomponents</groupId>
        <artifactId>httpclient</artifactId>
        <version>4.5.8</version>
        <scope>test</scope>
    </dependency>
	<dependency>
		<groupId>io.rest-assured</groupId>
		<artifactId>rest-assured</artifactId>
		<version>3.3.0</version>
		<scope>test</scope>
	</dependency>
	<dependency>
		<groupId>javax.inject</groupId>
		<artifactId>javax.inject</artifactId>
		<version>1</version>
	</dependency>



</dependencies>
<build>
	<finalName>ppd-backend-${project.version}</finalName>
	<plugins>
		<plugin>
			<groupId>org.springframework.boot</groupId>
			<artifactId>spring-boot-maven-plugin</artifactId>
			<configuration>
				<fork>true</fork>
				<mainClass>${start-class}</mainClass>
			</configuration>
			<executions>
				<execution>
					<id>build-info</id>
					<goals>
						<goal>build-info</goal>
					</goals>
				</execution>
			</executions>
		</plugin>


	</plugins>
</build>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions