Skip to content

Conversation

@gaocegege
Copy link
Member

Fix #140 #147

Signed-off-by: Ce Gao [email protected]

@gaocegege
Copy link
Member Author

I am not sure if #147 is solved by this PR since macOS is also unix. I will have a try.

@gaocegege gaocegege merged commit 756868d into master Jul 12, 2017
@gaocegege gaocegege deleted the scripts/build branch July 12, 2017 02:46
@gaocegege gaocegege modified the milestone: Evaluation 2 Jul 12, 2017
@jeremydouglass
Copy link
Member

jeremydouglass commented Jul 12, 2017

Doesn't look like it works for Mac -- currently your code only checks for unix; might try checking for mac and forcing it to the linux target just to see if it works.

It would also be great for you to get feedback from the renjin list on this issue.

Building on macOS 10.12.5 (16F73) from 97dd10c fails on "Unable to find resource 'org.renjin:gcc-bridge-plugin:jar:apple-x86_64:0.8.2411' in repository remote.repository":

$ ./scripts/generate-ant-file.sh; ant install
[Wed Jul 12 22:43:19 CST 2017] Inject the config to build.xml.template
Buildfile: /Users/user/git/Processing.R/build.xml

checkos:

dep:
     [echo] The OS platform is Linux X86_64, download corresponding jars from remote.
[artifact:dependencies] Downloading: org/renjin/gcc-bridge-plugin/0.8.2411/gcc-bridge-plugin-0.8.2411-apple-x86_64.jar from repository remote.repository at https://nexus.bedatadriven.com/content/groups/public/
[artifact:dependencies] Unable to locate resource in repository
[artifact:dependencies] [INFO] Unable to find resource 'org.renjin:gcc-bridge-plugin:jar:apple-x86_64:0.8.2411' in repository remote.repository (https://nexus.bedatadriven.com/content/groups/public/)
[artifact:dependencies] Downloading: org/renjin/gcc-bridge-plugin/0.8.2411/gcc-bridge-plugin-0.8.2411-apple-x86_64.jar from repository bedatadriven at https://nexus.bedatadriven.com/content/groups/public/
[artifact:dependencies] Unable to locate resource in repository
[artifact:dependencies] [INFO] Unable to find resource 'org.renjin:gcc-bridge-plugin:jar:apple-x86_64:0.8.2411' in repository bedatadriven (https://nexus.bedatadriven.com/content/groups/public/)
[artifact:dependencies] Downloading: org/renjin/gcc-bridge-plugin/0.8.2411/gcc-bridge-plugin-0.8.2411-apple-x86_64.jar from repository central at http://repo1.maven.org/maven2
[artifact:dependencies] Unable to locate resource in repository
[artifact:dependencies] [INFO] Unable to find resource 'org.renjin:gcc-bridge-plugin:jar:apple-x86_64:0.8.2411' in repository central (http://repo1.maven.org/maven2)
[artifact:dependencies] An error has occurred while processing the Maven artifact tasks.
[artifact:dependencies]  Diagnosis:
[artifact:dependencies] 
[artifact:dependencies] Unable to resolve artifact: Missing:
[artifact:dependencies] ----------
[artifact:dependencies] 1) org.renjin:gcc-bridge-plugin:jar:apple-x86_64:0.8.2411
[artifact:dependencies] 
[artifact:dependencies]   Try downloading the file manually from the project website.
[artifact:dependencies] 
[artifact:dependencies]   Then, install it using the command: 
[artifact:dependencies]       mvn install:install-file -DgroupId=org.renjin -DartifactId=gcc-bridge-plugin -Dversion=0.8.2411 -Dclassifier=apple-x86_64 -Dpackaging=jar -Dfile=/path/to/file
[artifact:dependencies] 
[artifact:dependencies]   Alternatively, if you host your own repository you can deploy the file there: 
[artifact:dependencies]       mvn deploy:deploy-file -DgroupId=org.renjin -DartifactId=gcc-bridge-plugin -Dversion=0.8.2411 -Dclassifier=apple-x86_64 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
[artifact:dependencies] 
[artifact:dependencies]   Path to dependency: 
[artifact:dependencies]   	1) org.apache.maven:super-pom:pom:2.0
[artifact:dependencies]   	2) org.renjin:renjin-cli:jar:0.8.2411
[artifact:dependencies]   	3) org.renjin:renjin-gnur-compiler:jar:0.8.2411
[artifact:dependencies]   	4) org.renjin:gcc-bridge-compiler:jar:0.8.2411
[artifact:dependencies]   	5) org.renjin:gcc-bridge-plugin:jar:apple-x86_64:0.8.2411
[artifact:dependencies] 
[artifact:dependencies] ----------
[artifact:dependencies] 1 required artifact is missing.
[artifact:dependencies] 
[artifact:dependencies] for artifact: 
[artifact:dependencies]   org.apache.maven:super-pom:pom:2.0
[artifact:dependencies] 
[artifact:dependencies] from the specified remote repositories:
[artifact:dependencies]   central (http://repo1.maven.org/maven2),
[artifact:dependencies]   remote.repository (https://nexus.bedatadriven.com/content/groups/public/)
[artifact:dependencies] 
[artifact:dependencies] 

BUILD FAILED
/Users/user/git/Processing.R/build.xml:81: Unable to resolve artifact: Missing:
----------
1) org.renjin:gcc-bridge-plugin:jar:apple-x86_64:0.8.2411

  Try downloading the file manually from the project website.

  Then, install it using the command: 
      mvn install:install-file -DgroupId=org.renjin -DartifactId=gcc-bridge-plugin -Dversion=0.8.2411 -Dclassifier=apple-x86_64 -Dpackaging=jar -Dfile=/path/to/file

  Alternatively, if you host your own repository you can deploy the file there: 
      mvn deploy:deploy-file -DgroupId=org.renjin -DartifactId=gcc-bridge-plugin -Dversion=0.8.2411 -Dclassifier=apple-x86_64 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

  Path to dependency: 
  	1) org.apache.maven:super-pom:pom:2.0
  	2) org.renjin:renjin-cli:jar:0.8.2411
  	3) org.renjin:renjin-gnur-compiler:jar:0.8.2411
  	4) org.renjin:gcc-bridge-compiler:jar:0.8.2411
  	5) org.renjin:gcc-bridge-plugin:jar:apple-x86_64:0.8.2411

----------
1 required artifact is missing.

for artifact: 
  org.apache.maven:super-pom:pom:2.0

from the specified remote repositories:
  central (http://repo1.maven.org/maven2),
  remote.repository (https://nexus.bedatadriven.com/content/groups/public/)



Total time: 11 seconds

@gaocegege
Copy link
Member Author

gaocegege commented Jul 12, 2017

🤔 Maybe checking os in ant script is not a good idea. We could check it in bash and generate different build.xml

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants