Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to work with maven-ear-plugin? #49

Open
kexiuru opened this issue Aug 30, 2017 · 0 comments
Open

How to work with maven-ear-plugin? #49

kexiuru opened this issue Aug 30, 2017 · 0 comments

Comments

@kexiuru
Copy link

kexiuru commented Aug 30, 2017

Hi,
We are using V0.2 of iterator-maven-plugin since customer's environment JDK only support 1.6. And we are trying to build ear by different server instances such as SIT server(sit-inst1, sit-inst2) and UAT server(uat-inst1, uat-inst2) and PROD server(prod-inst1, prod-inst2).
I have add the war dependencies on the pom.xml, but when I try to build, get error as below:
org.apache.maven.plugin.MojoFailureException: Artifact[war:com.hbsm.treats:tts-web] is not a dependency of the project.
And the content of the pom.xml as below:
`

4.0.0
tts-ear
com.hbsm.treats
tts-ear
0.0.1-SNAPSHOT
jar

<dependencies>
	<dependency>
		<groupId>com.hbsm.treats</groupId>
		<artifactId>tts-hats</artifactId>
		<version>0.0.1-SNAPSHOT</version>
		<type>war</type>
	</dependency>
	<dependency>
		<groupId>com.hbsm.treats</groupId>
		<artifactId>tts-web</artifactId>
		<version>0.0.1-SNAPSHOT</version>
		<type>war</type>
	</dependency>
</dependencies>

<build>
	<plugins>	
		<plugin>
			<groupId>com.soebes.maven.plugins</groupId>
			<artifactId>iterator-maven-plugin</artifactId>
			<version>0.2</version>
			<executions>
				<execution>
					<phase>package</phase>
					<goals><goal>executor</goal></goals>
					<configuration>
						<content>T5,T6</content>
						<pluginExecutors>
							<pluginExecutor>
								<plugin>
									<groupId>org.apache.maven.plugins</groupId>
									<artifactId>maven-ear-plugin</artifactId>
									<version>2.10.1</version>
								</plugin>
								<goal>ear</goal>
								<configuration>
									<version>5</version>
									<skinnyWars>true</skinnyWars>
									<finalName>${item}ttsEAR</finalName>
									<filtering>true</filtering>
									<modules>
										<webModule>
											<groupId>com.hbsm.treats</groupId>
											<artifactId>tts-web</artifactId>
											<bundleFileName>ttsWEB.war</bundleFileName>
											<contextRoot>/ttsweb</contextRoot>
										</webModule>
										<webModule>
											<groupId>com.hbsm.treats</groupId>
											<artifactId>tts-hats</artifactId>
											<bundleFileName>ttsHATS.war</bundleFileName>
											<contextRoot>/ttsHATS</contextRoot>
										</webModule>										
									</modules>
								</configuration>
							</pluginExecutor>
						</pluginExecutors>
					</configuration>
				</execution>
			</executions>
		</plugin>
	</plugins>
</build>
`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant