Skip to content

Commit

Permalink
Merge pull request opensourceBIM#1094 from hlg/master
Browse files Browse the repository at this point in the history
change maven central URLs (even if not used), remove obsolete comment
  • Loading branch information
rubendel authored Jan 21, 2020
2 parents e3e8e3d + 69b4b4d commit c502a3b
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 43 deletions.
3 changes: 1 addition & 2 deletions BimServer/src/org/bimserver/BimServer.java
Original file line number Diff line number Diff line change
Expand Up @@ -689,8 +689,7 @@ public void pluginBundleUninstalled(PluginBundle pluginBundle) {
if (!Files.exists(mavenPath)) {
Files.createDirectories(mavenPath);
}
// mavenPluginRepository = new MavenPluginRepository(mavenPath, "http://central.maven.org/maven2", "~/.m2/repository");


OldQuery.setPackageMetaDataForDefaultQuery(metaDataManager.getPackageMetaData("store"));

bimDatabase = new Database(this, packages, keyValueStore, metaDataManager);
Expand Down
2 changes: 1 addition & 1 deletion BimServer/www/setup.html
Original file line number Diff line number Diff line change
Expand Up @@ -643,7 +643,7 @@ <h4 class="media-heading">Default mergers</h4>
cd.find(".plugins .maven input[type=\"checkbox\"]:checked").each(function(index, checkbox){
var artifactId = $(checkbox).attr("class");
pluginsToInstall[artifactId] = {
repository: "http://central.maven.org/maven2",
repository: "https://repo1.maven.org/maven2",
groupId: "org.opensourcebim",
artifactId: artifactId
};
Expand Down
80 changes: 40 additions & 40 deletions PluginBase/src/org/bimserver/plugins/RemotePluginRepository.java
Original file line number Diff line number Diff line change
@@ -1,42 +1,42 @@
package org.bimserver.plugins;

/******************************************************************************
* Copyright (C) 2009-2019 BIMserver.org
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see {@literal<http://www.gnu.org/licenses/>}.
*****************************************************************************/

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

import org.apache.maven.repository.internal.MavenRepositorySystemUtils;
import org.eclipse.aether.DefaultRepositorySystemSession;
import org.eclipse.aether.RepositorySystem;
import org.eclipse.aether.RepositorySystemSession;
import org.eclipse.aether.artifact.Artifact;
import org.eclipse.aether.artifact.DefaultArtifact;
import org.eclipse.aether.connector.basic.BasicRepositoryConnectorFactory;
import org.eclipse.aether.impl.DefaultServiceLocator;
import org.eclipse.aether.repository.LocalRepository;
import org.eclipse.aether.repository.RemoteRepository;
import org.eclipse.aether.resolution.ArtifactRequest;
import org.eclipse.aether.resolution.ArtifactResolutionException;
import org.eclipse.aether.resolution.ArtifactResult;
import org.eclipse.aether.spi.connector.RepositoryConnectorFactory;
import org.eclipse.aether.spi.connector.transport.TransporterFactory;
import org.eclipse.aether.transport.file.FileTransporterFactory;
package org.bimserver.plugins;

/******************************************************************************
* Copyright (C) 2009-2019 BIMserver.org
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see {@literal<http://www.gnu.org/licenses/>}.
*****************************************************************************/

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

import org.apache.maven.repository.internal.MavenRepositorySystemUtils;
import org.eclipse.aether.DefaultRepositorySystemSession;
import org.eclipse.aether.RepositorySystem;
import org.eclipse.aether.RepositorySystemSession;
import org.eclipse.aether.artifact.Artifact;
import org.eclipse.aether.artifact.DefaultArtifact;
import org.eclipse.aether.connector.basic.BasicRepositoryConnectorFactory;
import org.eclipse.aether.impl.DefaultServiceLocator;
import org.eclipse.aether.repository.LocalRepository;
import org.eclipse.aether.repository.RemoteRepository;
import org.eclipse.aether.resolution.ArtifactRequest;
import org.eclipse.aether.resolution.ArtifactResolutionException;
import org.eclipse.aether.resolution.ArtifactResult;
import org.eclipse.aether.spi.connector.RepositoryConnectorFactory;
import org.eclipse.aether.spi.connector.transport.TransporterFactory;
import org.eclipse.aether.transport.file.FileTransporterFactory;
import org.eclipse.aether.transport.http.HttpTransporterFactory;

public class RemotePluginRepository {
Expand Down Expand Up @@ -103,7 +103,7 @@ public static List<RemoteRepository> newRepositories(RepositorySystem system, Re
}

private static RemoteRepository newCentralRepository() {
return new RemoteRepository.Builder("central", "default", "http://central.maven.org/maven2/").build();
return new RemoteRepository.Builder("central", "default", "https://repo1.maven.org/maven2/").build();
}

}

0 comments on commit c502a3b

Please sign in to comment.