diff --git a/content/post/2016-11.md b/content/post/2016-11.md index 2f06e9c0a..99f3708c3 100644 --- a/content/post/2016-11.md +++ b/content/post/2016-11.md @@ -311,3 +311,11 @@ Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)" "-" Mozilla/5.0 (compatible; YandexBot/3.0; +http://yandex.com/bots)" "-" Mozilla/5.0 (compatible; YandexImages/3.0; +http://yandex.com/bots)" "-" ``` + +- Neat maven trick to exclude some modules from being built: + +``` +$ mvn -U -Dmirage2.on=true -Dmirage2.deps.included=false -Denv=localhost -P \!dspace-lni,\!dspace-rdf,\!dspace-sword,\!dspace-swordv2 clean package +``` + +- We absolutely don't use those modules, so we shouldn't build them in the first place diff --git a/public/2016-11/index.html b/public/2016-11/index.html index 1fd12715d..adad768cd 100644 --- a/public/2016-11/index.html +++ b/public/2016-11/index.html @@ -30,7 +30,7 @@ - + @@ -453,6 +453,17 @@ Mozilla/5.0 (compatible; YandexBot/3.0; +http://yandex.com/bots)" "-&q Mozilla/5.0 (compatible; YandexImages/3.0; +http://yandex.com/bots)" "-" + + +
$ mvn -U -Dmirage2.on=true -Dmirage2.deps.included=false -Denv=localhost -P \!dspace-lni,\!dspace-rdf,\!dspace-sword,\!dspace-swordv2 clean package
+
+ + + diff --git a/public/index.xml b/public/index.xml index c145ba219..988c29443 100644 --- a/public/index.xml +++ b/public/index.xml @@ -361,6 +361,17 @@ Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)&quo Mozilla/5.0 (compatible; YandexBot/3.0; +http://yandex.com/bots)&quot; &quot;-&quot; Mozilla/5.0 (compatible; YandexImages/3.0; +http://yandex.com/bots)&quot; &quot;-&quot; </code></pre> + +<ul> +<li>Neat maven trick to exclude some modules from being built:</li> +</ul> + +<pre><code>$ mvn -U -Dmirage2.on=true -Dmirage2.deps.included=false -Denv=localhost -P \!dspace-lni,\!dspace-rdf,\!dspace-sword,\!dspace-swordv2 clean package +</code></pre> + +<ul> +<li>We absolutely don&rsquo;t use those modules, so we shouldn&rsquo;t build them in the first place</li> +</ul> diff --git a/public/post/index.xml b/public/post/index.xml index d16a095cf..2bb91ee60 100644 --- a/public/post/index.xml +++ b/public/post/index.xml @@ -361,6 +361,17 @@ Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)&quo Mozilla/5.0 (compatible; YandexBot/3.0; +http://yandex.com/bots)&quot; &quot;-&quot; Mozilla/5.0 (compatible; YandexImages/3.0; +http://yandex.com/bots)&quot; &quot;-&quot; </code></pre> + +<ul> +<li>Neat maven trick to exclude some modules from being built:</li> +</ul> + +<pre><code>$ mvn -U -Dmirage2.on=true -Dmirage2.deps.included=false -Denv=localhost -P \!dspace-lni,\!dspace-rdf,\!dspace-sword,\!dspace-swordv2 clean package +</code></pre> + +<ul> +<li>We absolutely don&rsquo;t use those modules, so we shouldn&rsquo;t build them in the first place</li> +</ul> diff --git a/public/tags/notes/index.xml b/public/tags/notes/index.xml index b6b3b9af6..718a3b3a2 100644 --- a/public/tags/notes/index.xml +++ b/public/tags/notes/index.xml @@ -360,6 +360,17 @@ Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)&quo Mozilla/5.0 (compatible; YandexBot/3.0; +http://yandex.com/bots)&quot; &quot;-&quot; Mozilla/5.0 (compatible; YandexImages/3.0; +http://yandex.com/bots)&quot; &quot;-&quot; </code></pre> + +<ul> +<li>Neat maven trick to exclude some modules from being built:</li> +</ul> + +<pre><code>$ mvn -U -Dmirage2.on=true -Dmirage2.deps.included=false -Denv=localhost -P \!dspace-lni,\!dspace-rdf,\!dspace-sword,\!dspace-swordv2 clean package +</code></pre> + +<ul> +<li>We absolutely don&rsquo;t use those modules, so we shouldn&rsquo;t build them in the first place</li> +</ul>