I have a parent pump and two children's pumps, for bath and military files. The war file has a jar file as a dependency in pom. Thus, the assembly order is defined below
The parent pom modules are as shown below.
<modules>
<module>Project-jar</module>
<module>Project-web</module>
</modules>
The final artifact, which will be deployed to Jboss-as, is located in the Parent / Workspace / Child-war / target / Project.war folder.
When I call maven targets from the parent workspace folder, the deployment does not work.
mvn clean compile install jboss-as: deploy -Dmaven.test.skip = true
I tried to define the jboss maven plugin in the parent pom, as shown below.
<plugin>
<groupId>org.jboss.as.plugins</groupId>
<artifactId>jboss-as-maven-plugin</artifactId>
<version>7.1.1.Final</version>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
In child warfare, I determined
<groupId>org.jboss.as.plugins</groupId>
<artifactId>jboss-as-maven-plugin</artifactId>
<version>7.1.1.Final</version>
<configuration>
<skip>False</skip>
<fileName>target/Project.war</fileName>
</configuration>
</plugin>
The build was successful, but the error fails.
[ERROR] org.jboss.as.plugins: jboss-as-maven-plugin: 7.3.Final: deploy (default-cli) Project-web: . → [ 1]