Reputation: 3147
We have product help document which is about 150Mb and being build every day and updated to maven repo.
So when we build the project which has dependency on help document it will download entire 150Mb once everyday and it takes lot of time.
Is there any way to avoid it? Like give an entry in pom.xml
<properties>
<download.docmodule>true</download.docmodule>
</properties>
And in users settings.xml
<download.docmodule>false</download.docmodule>
And use this attribute to stop downloading the document?
Basically I want CI server to download it and package it but want developers not to waste time and bandwidth downloading it
<dependency>
<groupId>docmodules</groupId>
<artifactId>projname</artifactId>
<version>${documentation.version}</version>
<classifier>resources</classifier>
<type>zip</type>
<scope>provided</scope>
</dependency>
Upvotes: 2
Views: 859
Reputation: 69440
You can use profiles like:
<profiles>
<profile>
<id>donloadHelp</id>
<dependencies>
<dependency>
//Add your dependency
</dependency>
</dependencies>
</profile>
</profiles>
The help will only downloaded if you activate the profile in maven. To activate the profile, you have to call
mvn <target> -PdownloadHelp
Upvotes: 2