Commit a6856912 authored by Manoel Campos's avatar Manoel Campos
Browse files

Update pom.xml files to avoid error when trying to execute "mvn deploy"

from the root directory.
Added configuration to all modules which must not be deployed to
be ignored during the deploy if the command is executed
from the root directory.

Executing "mvn deploy" from the cloudsim-plus dir is faster,
since this is the only module to be deployed.
parent b00e0fcf
......@@ -175,7 +175,16 @@ THE POSSIBILITY OF SUCH DAMAGE.
<failIfMissing>false</failIfMissing>
</configuration>
</plugin>
</plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<version>2.8.2</version>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
</plugins>
</build>
</project>
......@@ -53,7 +53,6 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<!-- Directory where is the license file to be used by the com.mycila.maven-license-plugin -->
<license.dir>..</license.dir>
<version>1.2.0</version>
</properties>
<build>
......@@ -132,6 +131,15 @@
</excludes>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<version>2.8.2</version>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
</plugins>
</build>
......
......@@ -110,6 +110,15 @@
<failIfMissing>false</failIfMissing>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<version>2.8.2</version>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
</plugins>
</build>
......
......@@ -59,4 +59,28 @@
<module>cloudsim-plus-benchmarks</module>
<module>cloudsim-plus-testbeds</module>
</modules>
<build>
<plugins>
<plugin>
<!-- The only module that can be deployed to Maven Central is the cloudsim-plus one.
It's the only one that have all the configuration to execute the deploy.
However, when the "mvn deploy" command executed from the root directory,
it's generated an error when trying to deploy the parent project.
To avoid that, this configuration is used to ignore the deployment of the parent.
All the other modules also have the same configuration to avoid them to be
deployed.
However, executing "mvn deploy" from the cloudsim-plus directory
is faster.
-->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<version>2.8.2</version>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
</plugins>
</build>
</project>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment