Re: How to undo a maven goal etc ?
On Wed, 5/23/18, Anders Hammar wrote: Subject: Re: How to undo a maven goal etc ? To: "Maven Users List" , karenwo...@yahoo.com Date: Wednesday, May 23, 2018, 5:13 PM Is it still showing the EXACT same error? /Anders Hi Anders, I read the error message and then what I did next is to put in the missing jars manually at m2 folder where there is a repository that contains com file and then I added in a tools folder and copied the entire jre 1.8.0_161 onto it but nothing changes as in I am receiving the same error message. I went as far as changing my path environment to jre from jdk... Some problems were encountered while building the effective model for org.springframework.samples.service.service:Spring:war:0.0.1-SNAPSHOT [WARNING] 'dependencies.dependency.systemPath' for com.sun:tools:jar should use a variable instead of a hard-coded path C:\Program Files\Java\jdk1.8.0_161 @ line 98, column 16 [WARNING] 'dependencies.dependency.systemPath' for com.sun:tools:jar refers to a non-existing file C:\Program Files\Java\jdk1.8.0_161 @ line 98, column 16 (The error message is still showing the old one cos I have already changed the environment variable to jre1.8.0_161 and not jdk anymore) [WARNING] [WARNING] It is highly recommended to fix these problems because they threaten the stability of your build. [WARNING] [WARNING] For this reason, future Maven versions might no longer support building such malformed projects. Failed to execute goal org.codehaus.mojo:cobertura-maven-plugin:2.7:clean (default) on project Spring: Execution default of goal org.codehaus.mojo:cobertura-maven-plugin:2.7:clean failed: Plugin org.codehaus.mojo:cobertura-maven-plugin:2.7 or one of its dependencies could not be resolved: Could not find artifact com.sun:tools:jar:0 at specified path C:\Program Files\Java\jre1.8.0_161/../lib/tools.jar -> [Help 1] Please help. On Wed, May 23, 2018 at 10:58 AM Karen Goh wrote: > Hi, > > I accidentally left out a : in spring-boot:run the first time I tried to > use Maven build to see how the application pan out. > > Then, I did a clean but to no avail. > > Here's the error message : > > [INFO] Scanning for projects... > [INFO] > > [INFO] > > [INFO] Building Spring 0.0.1-SNAPSHOT > [INFO] > > [INFO] > [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ > IntegratedSpringDemo --- > [INFO] Deleting C:\Users\Karen.Goh\Spring\target > [INFO] > [INFO] --- cobertura-maven-plugin:2.7:clean (default) @ > IntegratedSpringDemo --- > [INFO] > > [INFO] BUILD FAILURE > [INFO] > > [INFO] Total time: 9.035 s > [INFO] Finished at: 2018-05-23T16:38:35+08:00 > [INFO] Final Memory: 7M/113M > [INFO] > > [ERROR] Failed to execute goal > org.codehaus.mojo:cobertura-maven-plugin:2.7:clean (default) on project > IntegratedSpringDemo: Execution default of goal > org.codehaus.mojo:cobertura-maven-plugin:2.7:clean failed: Plugin > org.codehaus.mojo:cobertura-maven-plugin:2.7 or one of its dependencies > could not be resolved: Could not find artifact com.sun:tools:jar:0 at > specified path C:\Program Files\Java\jre1.8.0_161/../lib/tools.jar -> [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/PluginResolutionException\\ > > And then I added in this line in my pom.xml it is still showing me error :( > > > com.sun > tools > 1.8.0_151 > system > C:\Program > Files\Java\jdk1.8.0_151 > > > > Here's my full pom : > > http://maven.apache.org/POM/4.0.0"; > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; > xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 > http://maven.apache.org/xsd/maven-4.0.0.xsd";> > 4.0.0 > org.springframework.samples.service.service > Spring
Re: How to undo a maven goal etc ?
Sent from Yahoo Mail for iPhone On Wednesday, May 23, 2018, 5:36 PM, Karen Goh wrote: Sent from Yahoo Mail for iPhone On Wednesday, May 23, 2018, 5:13 PM, Anders Hammar wrote: Is it still showing the EXACT same error? /Anders Hi Anders, I run the maven update project several times and clean several times as well I just can’t get Eclipse or Naven to forget about the mistaken. I also ran Maven Configuration and still it shows up the one without : Spring Boot(the mistake)... What do I do to completely make it look for the new goal?On Wed, May 23, 2018 at 10:58 AM Karen Goh wrote: > Hi, > > I accidentally left out a : in spring-boot:run the first time I tried to > use Maven build to see how the application pan out. > > Then, I did a clean but to no avail. > > Here's the error message : > > [INFO] Scanning for projects... > [INFO] > > [INFO] > > [INFO] Building Spring 0.0.1-SNAPSHOT > [INFO] > > [INFO] > [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ > IntegratedSpringDemo --- > [INFO] Deleting C:\Users\Karen.Goh\Spring\target > [INFO] > [INFO] --- cobertura-maven-plugin:2.7:clean (default) @ > IntegratedSpringDemo --- > [INFO] > > [INFO] BUILD FAILURE > [INFO] > > [INFO] Total time: 9.035 s > [INFO] Finished at: 2018-05-23T16:38:35+08:00 > [INFO] Final Memory: 7M/113M > [INFO] > > [ERROR] Failed to execute goal > org.codehaus.mojo:cobertura-maven-plugin:2.7:clean (default) on project > IntegratedSpringDemo: Execution default of goal > org.codehaus.mojo:cobertura-maven-plugin:2.7:clean failed: Plugin > org.codehaus.mojo:cobertura-maven-plugin:2.7 or one of its dependencies > could not be resolved: Could not find artifact com.sun:tools:jar:0 at > specified path C:\Program Files\Java\jre1.8.0_161/../lib/tools.jar -> [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/PluginResolutionException\\ > > And then I added in this line in my pom.xml it is still showing me error :( > > > com.sun > tools > 1.8.0_151 > system > C:\Program > Files\Java\jdk1.8.0_151 > > > > Here's my full pom : > > http://maven.apache.org/POM/4.0.0"; > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; > xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 > http://maven.apache.org/xsd/maven-4.0.0.xsd";> > 4.0.0 > org.springframework.samples.service.service > Spring > 0.0.1-SNAPSHOT > war > > > > 1.8 > > UTF-8 > > UTF-8 > > > > 4.1.6.RELEASE > > 1.8.0.RELEASE > > 1.1.0.RELEASE > > > > 2.2 > 1.2 > 7.0.47 > 2.2.7 > > > 4.3.8.Final > > > > 4.3.1.Final > > > 7.0.42 > 2.6.10 > 2.3.2 > > > 1.8.5 > > > 2.4.2 > > > 1.1.3 > 1.7.12 > > > 2.0.0 > > > 4.12 > 3.0.0 > > > > 1.3 > 1.1.1 > 2.7 > 3.2.0.GA > > > > > > 2.3.0 > > 1.10.3 > 2.0.3-1 > 0.10.1 > > 5.1.22 > > 2.7 > > > > > > org.jadira.usertype > usertype.core > ${jadira-usertype-core.version} > > > org.apache.tomcat > tomcat-servlet-api > ${tomcat.servlet.version} > provided > > > javax.servlet > javax.servlet-api > 3.1.0 > provided > > > com.sun > tools > 1.8.0_151 > system > C:\Program > Files\Java\jdk1.8.0_151 > > > o
Re: How to undo a maven goal etc ?
Sent from Yahoo Mail for iPhone On Wednesday, May 23, 2018, 5:13 PM, Anders Hammar wrote: Is it still showing the EXACT same error? /Anders Hi Anders, I run the maven update project several times and clean several times as well I just can’t get Eclipse or Naven to forget about the mistaken. I also ran Maven Configuration and still it shows up the one without : Spring Boot(the mistake)... What do I do to completely make it look for the new goal?On Wed, May 23, 2018 at 10:58 AM Karen Goh wrote: > Hi, > > I accidentally left out a : in spring-boot:run the first time I tried to > use Maven build to see how the application pan out. > > Then, I did a clean but to no avail. > > Here's the error message : > > [INFO] Scanning for projects... > [INFO] > > [INFO] > > [INFO] Building Spring 0.0.1-SNAPSHOT > [INFO] > > [INFO] > [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ > IntegratedSpringDemo --- > [INFO] Deleting C:\Users\Karen.Goh\Spring\target > [INFO] > [INFO] --- cobertura-maven-plugin:2.7:clean (default) @ > IntegratedSpringDemo --- > [INFO] > > [INFO] BUILD FAILURE > [INFO] > > [INFO] Total time: 9.035 s > [INFO] Finished at: 2018-05-23T16:38:35+08:00 > [INFO] Final Memory: 7M/113M > [INFO] > > [ERROR] Failed to execute goal > org.codehaus.mojo:cobertura-maven-plugin:2.7:clean (default) on project > IntegratedSpringDemo: Execution default of goal > org.codehaus.mojo:cobertura-maven-plugin:2.7:clean failed: Plugin > org.codehaus.mojo:cobertura-maven-plugin:2.7 or one of its dependencies > could not be resolved: Could not find artifact com.sun:tools:jar:0 at > specified path C:\Program Files\Java\jre1.8.0_161/../lib/tools.jar -> [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/PluginResolutionException\\ > > And then I added in this line in my pom.xml it is still showing me error :( > > > com.sun > tools > 1.8.0_151 > system > C:\Program > Files\Java\jdk1.8.0_151 > > > > Here's my full pom : > > http://maven.apache.org/POM/4.0.0"; > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; > xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 > http://maven.apache.org/xsd/maven-4.0.0.xsd";> > 4.0.0 > org.springframework.samples.service.service > Spring > 0.0.1-SNAPSHOT > war > > > > 1.8 > > UTF-8 > > UTF-8 > > > > 4.1.6.RELEASE > > 1.8.0.RELEASE > > 1.1.0.RELEASE > > > > 2.2 > 1.2 > 7.0.47 > 2.2.7 > > > 4.3.8.Final > > > > 4.3.1.Final > > > 7.0.42 > 2.6.10 > 2.3.2 > > > 1.8.5 > > > 2.4.2 > > > 1.1.3 > 1.7.12 > > > 2.0.0 > > > 4.12 > 3.0.0 > > > > 1.3 > 1.1.1 > 2.7 > 3.2.0.GA > > > > > > 2.3.0 > > 1.10.3 > 2.0.3-1 > 0.10.1 > > 5.1.22 > > 2.7 > > > > > > org.jadira.usertype > usertype.core > ${jadira-usertype-core.version} > > > org.apache.tomcat > tomcat-servlet-api > ${tomcat.servlet.version} > provided > > > javax.servlet > javax.servlet-api > 3.1.0 > provided > > > com.sun > tools > 1.8.0_151 > system > C:\Program > Files\Java\jdk1.8.0_151 > > > org.apache.tomcat.embed > tomcat-embed-jasper > 8
Re: How to undo a maven goal etc ?
Is it still showing the EXACT same error? /Anders On Wed, May 23, 2018 at 10:58 AM Karen Goh wrote: > Hi, > > I accidentally left out a : in spring-boot:run the first time I tried to > use Maven build to see how the application pan out. > > Then, I did a clean but to no avail. > > Here's the error message : > > [INFO] Scanning for projects... > [INFO] > > [INFO] > > [INFO] Building Spring 0.0.1-SNAPSHOT > [INFO] > > [INFO] > [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ > IntegratedSpringDemo --- > [INFO] Deleting C:\Users\Karen.Goh\Spring\target > [INFO] > [INFO] --- cobertura-maven-plugin:2.7:clean (default) @ > IntegratedSpringDemo --- > [INFO] > > [INFO] BUILD FAILURE > [INFO] > > [INFO] Total time: 9.035 s > [INFO] Finished at: 2018-05-23T16:38:35+08:00 > [INFO] Final Memory: 7M/113M > [INFO] > > [ERROR] Failed to execute goal > org.codehaus.mojo:cobertura-maven-plugin:2.7:clean (default) on project > IntegratedSpringDemo: Execution default of goal > org.codehaus.mojo:cobertura-maven-plugin:2.7:clean failed: Plugin > org.codehaus.mojo:cobertura-maven-plugin:2.7 or one of its dependencies > could not be resolved: Could not find artifact com.sun:tools:jar:0 at > specified path C:\Program Files\Java\jre1.8.0_161/../lib/tools.jar -> [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/PluginResolutionException\\ > > And then I added in this line in my pom.xml it is still showing me error :( > > > com.sun > tools > 1.8.0_151 > system > C:\Program > Files\Java\jdk1.8.0_151 > > > > Here's my full pom : > > http://maven.apache.org/POM/4.0.0"; > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; > xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 > http://maven.apache.org/xsd/maven-4.0.0.xsd";> > 4.0.0 > org.springframework.samples.service.service > Spring > 0.0.1-SNAPSHOT > war > > > > 1.8 > > UTF-8 > > UTF-8 > > > > 4.1.6.RELEASE > > 1.8.0.RELEASE > > 1.1.0.RELEASE > > > > 2.2 > 1.2 > 7.0.47 > 2.2.7 > > > 4.3.8.Final > > > > 4.3.1.Final > > > 7.0.42 > 2.6.10 > 2.3.2 > > > 1.8.5 > > > 2.4.2 > > > 1.1.3 > 1.7.12 > > > 2.0.0 > > > 4.12 > 3.0.0 > > > > 1.3 > 1.1.1 > 2.7 > 3.2.0.GA > > > > > > 2.3.0 > > 1.10.3 > 2.0.3-1 > 0.10.1 > > 5.1.22 > > 2.7 > > > > > > org.jadira.usertype > usertype.core > ${jadira-usertype-core.version} > > > org.apache.tomcat > tomcat-servlet-api > ${tomcat.servlet.version} > provided > > > javax.servlet > javax.servlet-api > 3.1.0 > provided > > > com.sun > tools > 1.8.0_151 > system > C:\Program > Files\Java\jdk1.8.0_151 > > > org.apache.tomcat.embed > tomcat-embed-jasper > 8.5.24 > provided > > > > javax.servlet.jsp > jsp-api > 2.2 > provided > > > javax.servlet > j