我有两个不同环境的配置文件pom.xml,我必须运行mvn -PTest1 install并mvn -PTest2 install命令使用这些配置文件.我们可以将两个单独的maven命令集成在一个(如mvn clean install)吗?
这是我的Pom条目
<profiles>
<profile>
<id>Test1</id>
<activation>
<activeByDefault>true</activeByDefault>
<jdk>1.5</jdk>
<os>
<name>Windows XP</name>
<family>Windows</family>
<arch>x86</arch>
<version>5.1.2600</version>
</os>
<property>
<name>sparrow-type</name>
<value>African</value>
</property>
</activation>
<dependencies>
<dependency>
<groupId>
com.endeca
</groupId>
<artifactId>
endeca_navigation_Test1
</artifactId>
<version>
6.1
</version>
<!--<version>stable</version> -->
<scope>
compile
</scope>
</dependency>
</profile>
<profile>
<id>Test2</id>
<activation>
<activeByDefault>false</activeByDefault>
<jdk>1.5</jdk>
<os>
<name>Windows XP</name>
<family>Windows</family>
<arch>x86</arch>
<version>5.1.2600</version>
</os>
<property>
<name>sparrow-type</name>
<value>African</value>
</property>
</activation>
<dependencies>
<dependency>
<groupId>
com.endeca
</groupId>
<artifactId>
endeca_navigation_Test2
</artifactId>
<version>
6.1
</version> …Run Code Online (Sandbox Code Playgroud) 我在我的web项目中使用JDK 1.5并使用maven进行编译.
我面对的是:
WebServiceException ("javax.xml.ws.WebServiceException: Provider com.sun.xml.ws.spi.ProviderImpl not found")
Run Code Online (Sandbox Code Playgroud)
在我的项目中.要解决这个问题,我使用了两种方法
但在此之后我面对这个:
java.lang.NoClassDefFoundError:javax/xml/bind/JAXBContext
Run Code Online (Sandbox Code Playgroud)
有没有人有任何想法可以帮助我?