PranavAmarnath / SecresOS

A Java application that relies on the host system's information. It is meant to function as a lightweight UI for quick interaction with the system and Internet, as a standalone application or boot option. This is the main Secres product as it combines all other Secres applications into one.
Apache License 2.0
10 stars 1 forks source link

Build fails because of external repositories #38

Closed datazuul closed 3 months ago

datazuul commented 1 year ago

I checked out with git clone and tried to build with "mvn clean install". I get errors:

[ERROR] Failed to execute goal on project secresos: Could not resolve dependencies for project com.secres:secresos:jar:1.3-SNAPSHOT: Failed to collect dependencies at org.openimaj:faces:jar:1.3.10 -> org.openimaj:image-processing:jar:1.3.10 -> org.openimaj:core-experiment:jar:1.3.10 -> net.sf.jasperreports:jasperreports:jar:6.6.0 -> com.lowagie:itext:jar:2.1.7.js6: Failed to read artifact descriptor for com.lowagie:itext:jar:2.1.7.js6: The following artifacts could not be resolved: com.lowagie:itext:pom:2.1.7.js6 (absent): Could not transfer artifact com.lowagie:itext:pom:2.1.7.js6 from/to maven-default-http-blocker (http://0.0.0.0/): Blocked mirror for repositories: [openimaj-maven (http://maven.openimaj.org/, default, releases+snapshots), openimaj-snapshots-maven (http://snapshots.openimaj.org/, default, releases+snapshots), jaspersoft-third-party (http://jaspersoft.jfrog.io/jaspersoft/third-party-ce-artifacts/, default, releases+snapshots), jr-ce-releases (http://jaspersoft.jfrog.io/jaspersoft/jr-ce-releases, default, releases+snapshots), jr-snapshots (http://jaspersoft.jfrog.io/jaspersoft/jr-ce-snapshots/, default, releases+snapshots)] -> [Help 1]

Seems unsecure repositories (http) are blocked? And I can't find repositories defined in pom.xml, are they missing?

datazuul commented 1 year ago

ok, adding

<repositories>
        <repository>
            <id>openimaj</id>
            <url>https://maven.openimaj.org/</url>
            <snapshots><enabled>true</enabled></snapshots>
            <releases><enabled>true</enabled></releases>
        </repository>
    </repositories>

to the pom.xml fixed this issue. (pointing to https url)