Had fight with maven. It decided to block HTTP repositories.
authorSvjatoslav Agejenko <svjatoslav@svjatoslav.eu>
Sun, 11 Jun 2023 20:19:09 +0000 (23:19 +0300)
committerSvjatoslav Agejenko <svjatoslav@svjatoslav.eu>
Sun, 11 Jun 2023 20:19:09 +0000 (23:19 +0300)
.mvn/custom-settings.xml [new file with mode: 0644]
install
src/main/java/eu/svjatoslav/meviz/htmlindexer/layouts/MixedLayout.java

diff --git a/.mvn/custom-settings.xml b/.mvn/custom-settings.xml
new file mode 100644 (file)
index 0000000..952c64d
--- /dev/null
@@ -0,0 +1,27 @@
+<settings xmlns="http://maven.apache.org/SETTINGS/1.2.0"
+          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+          xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.2.0 http://maven.apache.org/xsd/settings-1.2.0.xsd">
+    <mirrors>
+        <mirror>
+            <id>releases-java-net-http-unblocker</id>
+            <mirrorOf>releases.java.net</mirrorOf>
+            <name>releases.java.net</name>
+            <url>http://maven.java.net/content/repositories/releases/</url>
+            <blocked>false</blocked>
+        </mirror>
+        <mirror>
+            <id>openimaj-maven-http-unblocker</id>
+            <mirrorOf>openimaj-maven</mirrorOf>
+            <name>OpenIMAJ Maven</name>
+            <url>http://maven.openimaj.org/</url>
+            <blocked>false</blocked>
+        </mirror>
+        <mirror>
+            <id>openimaj-snapshots-maven-http-unblocker</id>
+            <mirrorOf>openimaj-snapshots-maven</mirrorOf>
+            <name>OpenIMAJ Snapshots Maven</name>
+            <url>http://snapshots.openimaj.org/</url>
+            <blocked>false</blocked>
+        </mirror>
+    </mirrors>
+</settings>
diff --git a/install b/install
index 52c24a7..27d7b0e 100755 (executable)
--- a/install
+++ b/install
@@ -2,8 +2,9 @@
 
 sudo apt-get install maven lame vorbis-tools imagemagick ffmpeg2theora --yes
 
+
 mvn clean
-mvn package
+mvn package --settings .mvn/custom-settings.xml
 
 sudo mkdir /opt/meviz
 sudo rm /opt/meviz/meviz.jar
index 986fe33..644fc5a 100755 (executable)
@@ -139,7 +139,6 @@ public class MixedLayout implements Layout {
     /**
      * {@inheritDoc}
      *
-     * @throws IOException
      */
     @Override
     public String getHtml(final boolean showTitle,