I am trying to build an opensource project using gradle, but when I run the "gradle clean" command within my local repository directory the following error message appears.
FAILURE: Build failed with an exception.
Where:
Build file '/home/muhammad/OpenSource/iotsys/iotsys/build.gradle' line: 3
What went wrong:
A problem occurred evaluating root project 'iotsys'.
Plugin with id 'maven-publish' not found.
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
my "build.gradle" file look like this
allprojects {
apply plugin: 'java'
apply plugin: 'maven-publish'
apply plugin: 'maven'
group = 'at.ac.tuwien.auto.iotsys'
version = '0.1'
sourceCompatibility = 1.6
repositories(){
mavenCentral()
mavenRepo url: 'https://repository.jboss.org/nexus/content/repositories/releases/', name: 'JBoss Releases'
mavenRepo url: 'https://repository.jboss.org/nexus/content/groups/public/', name: 'JBoss Public' }}
I am new to gradle and maven. Can any one please help me to solve this issue?
The solution is very very simple you just have to run the studio with administrator privileges..
STEPS : -
That's it Enjoy..!
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.