【发布时间】:2020-07-18 22:16:16
【问题描述】:
Getting this error.我已经包含了我的 pom.xml 中的一些代码。我已经安装了 geronimo 1.1 jms 规范,但这根本没有解决问题。由于某种原因,我遇到了依赖问题。我没有在我的 pom 中使用任何 javax.jms 1.1 依赖项,但 osgi 一直在要求它。我在 redhat 中搜索了我的解决方案,但无济于事。
4.0.0
<groupId>com.ups.ttg.ao.fuse</groupId>
<artifactId>foi-ao-acars-request</artifactId>
<version>3.3-SNAPSHOT</version>
<packaging>bundle</packaging>
<name>foi-ao-acars-request</name>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
</properties>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.jboss.fuse.bom</groupId>
<artifactId>jboss-fuse-parent</artifactId>
<version>6.3.0.redhat-377</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<dependency>
<groupId>com.ups.ttg.ao.fuse</groupId>
<artifactId>foi-ao-common</artifactId>
<version>3.2.1.RELEASE</version>
</dependency>
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-spring-ws</artifactId>
</dependency>
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-http</artifactId>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
</dependency>
<dependency>
<groupId>org.apache.activemq</groupId>
<artifactId>activemq-camel</artifactId>
</dependency>
<dependency>
<groupId>com.ibm.mq</groupId>
<artifactId>com.ibm.mq.allclient</artifactId>
<version>9.0.4.0</version>
</dependency>
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-test-spring3</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.easymock</groupId>
<artifactId>easymock</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<defaultGoal>install</defaultGoal>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>jaxb2-maven-plugin</artifactId>
<version>1.5</version>
<executions>
<execution>
<id>xjc</id>
<goals>
<goal>xjc</goal>
</goals>
</execution>
</executions>
<configuration>
<schemaDirectory>${basedir}/src/main/resources/xsd</schemaDirectory>
<schemaIncludes>${basedir}/src/main/resources/xsd/ADLB</schemaIncludes>
<schemaIncludes>${basedir}/src/main/resources/xsd/TWC</schemaIncludes>
<!-- <bindingFiles>bindings.xml</bindingFiles> -->
<extension>true</extension>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<version>2.3.7</version>
<extensions>true</extensions>
<configuration>
<instructions>
<Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
<Private-Package>com.ups.ttg.ao.fuse.acarsrequest</Private-Package>
<Import-Package>*,org.apache.camel.osgi;resolution:=optional, javax.jms; version=[1.1.0,3)</Import-Package>
</instructions>
<instructions>
<manifestLocation>src/main/resources/META-INF</manifestLocation>
<Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
<Import-Package>*,org.apache.log4j</Import-Package>
</instructions>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.camel</groupId>
<artifactId>camel-maven-plugin</artifactId>
<version>2.15.1</version>
<configuration>
<!-- the spring context file must be separate from the OSGi bundle,
so we provide one here -->
<fileApplicationContextUri>src/main/resources/META-INF/spring/camel-context.xml</fileApplicationContextUri>
<logClasspath>true</logClasspath>
</configuration>
</plugin>
</plugins>
</build>
【问题讨论】:
标签: java maven plugins jbossfuse