OneBusAway / onebusaway-application-modules

The core OneBusAway application suite.
https://github.com/OneBusAway/onebusaway-application-modules/wiki
Other
206 stars 132 forks source link

two invalid urls in the repos when using newest oba branch 2.0 #339

Open wkulesza opened 1 year ago

wkulesza commented 1 year ago

Using the newest 2.0 branch of the codebase and trying to build, there are two url's that are not valid anymore. Can this be updated please ? https://repo.maven.apache.org/maven2/org/onebusaway/onebusaway-siri-api-v20/1.0.3/onebusaway-siri-api-v20-1.0.3.jar http://repo.obaweb.org:8080/archiva/repository/releases/

Details:

[ERROR] Failed to execute goal on project onebusaway-api-webapp: Could not resolve dependencies for project org.onebusaway:onebusaway-api-webapp:war:2.0.0: Failed to collect dependencies at org.onebusaway:onebusaway-transit-data-federation:jar:2.0.0 -> org.onebusaway:onebusaway-siri-api-v20:jar:1.0.3: Failed to read artifact descriptor for org.onebusaway:onebusaway-siri-api-v20:jar:1.0.3: Could not transfer artifact org.onebusaway:onebusaway-siri-api-v20:pom:1.0.3 from/to releases-camsys-repo (http://repo.obaweb.org:8080/archiva/repository/releases/): Connect to repo.obaweb.org:8080 [[repo.obaweb.org/54.173.39.56](http://repo.obaweb.org/54.173.39.56)] failed: Connection timed out (Connection timed out) -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException

To solve this temporarly, we're disabling repository repo.obaweb.org, creating setting.xml file in .m2 folder with the following content:

<?xml version="1.0" encoding="UTF-8"?>
<settings>
    <profiles>
        <profile>
            <id>disable-repository</id>
            <repositories>
                <repository>
                    <id>snapshots-camsys-repo</id>
                    <releases>
                        <enabled>false</enabled>
                    </releases>
                    <snapshots>
                        <enabled>false</enabled>
                    </snapshots>
                    <!-- add the URL of the repository below -->
                    <url>http\:[//repo.obaweb.org](https://go-europa.slack.com//repo.obaweb.org)\:8080/arch</url>
                </repository>
                <repository>
                    <id>releases-camsys-repo</id>
                    <releases>
                        <enabled>false</enabled>
                    </releases>
                    <snapshots>
                        <enabled>false</enabled>
                    </snapshots>
                    <!-- add the URL of the repository below -->
                    <url>http\:[//repo.obaweb.org](https://go-europa.slack.com//repo.obaweb.org)\:8080/archiv</url>
                </repository>
                <repository>
                    <id>wmata-repo</id>
                    <releases>
                        <enabled>false</enabled>
                    </releases>
                    <snapshots>
                        <enabled>false</enabled>
                    </snapshots>
                    <!-- add the URL of the repository below -->
                    <url>http\:[//repo.prod.wmata.obaweb.org](https://go-europa.slack.com//repo.prod.wmata.obaweb.org)\:8080</url>
                </repository>
            </repositories>
        </profile>
    </profiles>
    <activeProfiles>
        <activeProfile>disable-repository</activeProfile>
    </activeProfiles>
</settings>

but then we get this error:

Downloading from central: https://repo.maven.apache.org/maven2/org/onebusaway/onebusaway-siri-api-v20/1.0.3/onebusaway-siri-api-v20-1.0.3.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  18.026 s
[INFO] Finished at: 2023-03-29T18:18:03+02:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project onebusaway-api-webapp: Could not resolve dependencies for project org.onebusaway:onebusaway-api-webapp:war:2.0.0: Could not find artifact org.onebusaway:onebusaway-siri-api-v20:jar:1.0.3 in [public.onebusaway.org](http://public.onebusaway.org/) (http://nexus.onebusaway.org/content/groups/public/) -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
sheldonabrown commented 1 year ago

Are you on the main branch of onebusaway-application-modules? I can't find any references to the retired maven repositories you reference.

wkulesza commented 1 year ago

We took the main repo and forked it, to work on correcting encoding as API responses are not in utf-8. https://github.com/goeuropa/onebusaway-application-modules/tree/polishencoding is our work and the master branch says: "This branch is up to date with OneBusAway/onebusaway-application-modules:master. "

wkulesza commented 1 year ago

To be precise we took it from 2.0 here https://github.com/OneBusAway/onebusaway-application-modules/commit/2a254845fa4c0192908f6dc770a7cd23fc9fbe66

wkulesza commented 1 year ago

Maybe we should be using a different branch? We want to add fixes to encoding and change it to use utf-8. @sheldonabrown There's activity in this fork - is that something we could build upon ? https://github.com/camsys/onebusaway-application-modules/branches

sheldonabrown commented 1 year ago

Yes, unified on https://github.com/camsys/onebusaway-application-modules/ is the very latest work. I merge that back to the OneBusAway repo on occasion. a PR against unified is your best bet.