andmore icon indicating copy to clipboard operation
andmore copied to clipboard

Make it easier to import project in Eclipse using Team Project Set

Open dandar3 opened this issue 7 years ago • 11 comments

  • README.md - how to steps
  • projectSet.psf - Use HTTPS URLs instead of SSH (failing with 'Auth fail' error for SSH URLs)

dandar3 avatar Dec 04 '17 21:12 dandar3

@dandar3 can you open an eclipse bug for this, and then update the Commit message to link this PR to the bug. Once that is done, I can merge the request.

kingargyle avatar Dec 05 '17 21:12 kingargyle

thank you @kingargyle, will do!

dandar3 avatar Dec 11 '17 07:12 dandar3

@kingargyle Is it just my local or the project fails to build with:

[ERROR] Failed to execute goal on project org.eclipse.andmore.swt: Could not resolve dependencies for project org.eclipse.andmore:org.eclipse.andmore.swt:eclipse-plugin:0.5.2-SNAPSHOT: The following artifacts could not be resolved: com.android.tools.build:builder:jar:2.3.3, com.android.tools:sdklib:jar:25.3.3, com.android.tools.ddms:ddmlib:jar:25.3.3, com.android.tools:dvlib:jar:25.3.3, com.android.tools:repository:jar:25.3.3, com.android.tools:sdk-common:jar:25.3.3: Failure to find com.android.tools.build:builder:jar:2.3.3 in https://nexus.arcsmed.at/content/repositories/homer.core/ was cached in the local repository, resolution will not be reattempted until the update interval of homer-core has elapsed or updates are forced -> [Help 1]

v2.3.3 seem to be missing from Maven Central: https://repo.maven.apache.org/maven2/com/android/tools/build/builder/

Adding JCenter repository to main pom.xml seems to solve the problem. Any thoughts?

dandar3 avatar Dec 15 '17 14:12 dandar3

Tagging @andrew-bowley as he did some recent work on the deve branch. Make sure you have synchronized your build with the latest. I know he added some items to update Andmore to use the latest SDKs.

kingargyle avatar Dec 15 '17 20:12 kingargyle

@andrew-bowley please take a look at this and provide any insight you may have.

kingargyle avatar Dec 15 '17 20:12 kingargyle

I have reproduced the problem by building Andmore on a pristine Linux OS which did not have Maven installed. It turns out that the Android dependencies are downloaded from JCenter which is not natively wired into Maven. The quick fix is to add a profile to the Maven settings.xml configuration file, which is what Bintray recommends. I will attach a file with the required settings. The better fix is to add JCenter to the Andmore target file and I will organize this asap. maven-jcenter-config.txt

Note in the attached file I use for the url "http://" instead of "https://". This is because the latter gives me "unknown host" error on my Linux OS. I do not know why this is happening, so the latter my be OK for you.

andrew-bowley avatar Dec 18 '17 07:12 andrew-bowley

@andrew-bowley Thank you for confirming, Andrew!

I've added the JCenter repository to main pom.xml on Windows with Maven 3.5.2 and it worked fine for me with both HTTPS and HTTP (HTTP would probably not be an issue since we're accessing the public part of it). The error is odd, that should indicate it is unable to resolve the name through DNS, not when unable to use the protocol.

I agree, settings.xml would be a bit unconvenient to setup as an additional step for everyone, pom.xml should be easier.

index a8a48320..b0301205 100644
--- a/pom.xml
+++ b/pom.xml
@@ -76,6 +76,13 @@
                 <enabled>false</enabled>
             </snapshots>
 		</repository>
+		<repository>
+			<id>jcenter</id>
+			<url>https://jcenter.bintray.com/</url>
+			<snapshots>
+				<enabled>false</enabled>
+			</snapshots>
+		</repository>
 	</repositories>
 
 	<pluginRepositories>

dandar3 avatar Dec 18 '17 09:12 dandar3

@dandar3 I was able to build andmore after adding the jcenter repo to pom.xml. The change from ssh to https would be useful for those building without a ssh key. Thanks!

hrj avatar Feb 23 '18 05:02 hrj

Sorry I got sidetracked, will create the ticket so we can push this further.

dandar3 avatar Feb 23 '18 14:02 dandar3

@kingargyle Finally managed to do it, please review and let me know if anything else needed, thank you!

dandar3 avatar Mar 25 '18 11:03 dandar3

@dandar3 thanks, will try and get to it tonight.

kingargyle avatar Mar 27 '18 16:03 kingargyle