Is there another alternative to using maven plug-in ?
Hi expert, I have been running into alot of issue lately and I suspect if it is because I have using Maven plug-in? Here's how I do the maven-war-plugin: Hi5S Hi5S 0.0.1-SNAPSHOT war UTF-8 1.8 1.8 org.apache.maven.plugins maven-war-plugin 3.1.0 provided I'd like to know if it is ok I don't use maven to do the compile but used Eclipse to do it instead ? If it is so, how should I change the maven-war-plugin to ? I feel that this is the cause that Eclipse is not able to do proper debugging as in showing the stackover of what's happening when I run debug on server. Correct me if I am wrong..but I am at my wits end and this is the strongest suspect. Hope someone can tell me how to make pom as simple as possible...I just want to add the relevant dependencies...that's all. Tks & regards, Karen - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Is there another alternative to using maven plug-in ?
Hi John, I changed my pom according to what you said, by removing the provided portion. However, I am still getting the below error : Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.2:war (default-war) on project Hi5S: Error assembling WAR: webxml attribute is required (or pre-existing WEB-INF/web.xml if executing in update mode) I have provided web.xml in the WEB-INF : http://xmlns.jcp.org/xml/ns/javaee"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd"; version="3.1"> Hi5S tutorRegister.jsp index.html index.htm index.jsp MySQL Datasource jdbc/hi5s javax.sql.DataSource Container Hope you can let me know what the error is trying to tell me. Tks. On Fri, 1/26/18, John Patrick wrote: Subject: Re: Is there another alternative to using maven plug-in ? To: "Maven Users List" , "Karen Goh" Date: Friday, January 26, 2018, 9:58 PM Change your pom to something like this; Hi5S Hi5S 0.0.1-SNAPSHOT war UTF-8 1.8 1.8 org.apache.maven.plugins maven-war-plugin 3.1.0 war, tell maven your wanting to create a war not a jar, using maven-war-plugin as a plugin as show above tells maven your wanting to use a specific version of the maven plugin. there are pros and cons to hard coding a maven plugin version. i always do because i've been burnt on projects where they needed a specific version but didn't define what version they needed and whilst that version was the latest things worked correctly. But then you come back to bug fixing that project 2-4 years later and the latest maven plugin works differently. dependencies are for external code that your java code depends upon On 26 January 2018 at 11:08, Karen Goh wrote: > Hi expert, > > I have been running into alot of issue lately and I suspect if it is because I have using Maven plug-in? > > Here's how I do the maven-war-plugin: > > Hi5S > Hi5S > 0.0.1-SNAPSHOT > war > > UTF-8 > 1.8 > 1.8 > > > > > org.apache.maven.plugins > maven-war-plugin > 3.1.0 > provided > > > I'd like to know if it is ok I don't use maven to do the compile but used Eclipse to do it instead ? > > If it is so, how should I change the maven-war-plugin to ? > > I feel that this is the cause that Eclipse is not able to do proper debugging as in showing the stackover of what's happening when I run debug on server. > > Correct me if I am wrong..but I am at my wits end and this is the strongest suspect. > > Hope someone can tell me how to make pom as simple as possible...I just want to add the relevant dependencies...that's all. > > Tks & regards, > Karen > > - > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Is there another alternative to using maven plug-in ?
I managed to get the error away by adding false cos I am using Servlet 3.0 and no web.xml is needed. On Sat, 2/3/18, Jörg Schaible wrote: Subject: Re: Is there another alternative to using maven plug-in ? To: users@maven.apache.org Date: Saturday, February 3, 2018, 10:48 PM Hi Karen, Am Wed, 31 Jan 2018 08:06:31 + schrieb Karen Goh: > Hi John, > > I changed my pom according to what you said, by removing the provided > portion. > However, I am still getting the below error : > > Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.2:war > (default-war) on project Hi5S: Error assembling WAR: webxml attribute is > required (or pre-existing WEB-INF/web.xml if executing in update mode) > > I have provided web.xml in the WEB-INF : [snip] So, where is your web.xml located in relation to the project root? Cheers, Jörg - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
How to disable jsf in Eclipse
Dear expert, I am running a maven war plug-in jee project using Tomcat and TomEE I think, with Hibernate and jsp. Here's my pom.xml : 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 Hi5S Hi5S 0.0.1-SNAPSHOT war src/main/resources WEB-INF **/* UTF-8 1.8 1.8 false org.apache.maven.plugins maven-war-plugin 3.2.0 org.apache.tomcat tomcat-jdbc 9.0.2 org.apache.tomcat tomcat-jsp-api 9.0.4 provided org.apache.logging.log4j log4j-api 2.10.0 org.apache.logging.log4j log4j-core 2.10.0 javax.servlet jstl 1.2 commons-digester commons-digester 2.1 commons-logging commons-logging 1.2 javax.servlet jsp-api 2.0 provided jstl jstl provided 1.2 org.apache.logging.log4j log4j-web 2.7 javax.servlet javax.servlet-api 3.1.0 provided org.slf4j slf4j-jdk14 1.7.21 jar compile mysql mysql-connector-java 5.1.45 provided org.hibernate hibernate-core 5.2.10.Final javax.validation validation-api 2.0.0.Final javax.transaction jta 1.1 javax javaee-api 8.0 provided com.google.guava guava 19.0 org.javassist javassist 3.19.0-GA org.apache.geronimo.specs geronimo-osgi-locator 1.1 org.jboss.logging jboss-logging 3.3.1.Final runtime com.fasterxml classmate 0.8.0 org.sonatype.aether aether-api 1.7 I am running on Windows 10, Eclipse Oxygen and Hibernate 5.2.10. Recently, I have added in persistence.xml file as I want to ride of JPA 'JTP' local resource to do the management of transaction and then I faced this problem of my url showing faces. Also, I created the META-INF folder manually since it is not there. Here's my project structure : https://ibb.co/gQPcHH h
RE: How to disable jsf in Eclipse
On Tue, 4/10/18, Diego Lin wrote: Subject: RE: How to disable jsf in Eclipse To: "Maven Users List" , "Karen Goh" Date: Tuesday, April 10, 2018, 1:39 PM please try this way: Properties of your project -> Project Facets -> JavaServer Faces. Uncheck it. It does not work! I did this before I tried other things that was mentioned in the net. After I unchecked, I would do a Maven update on the project can it would become check again And so the same old url with faces came back again... Thanks, Diego -Original Message- From: Karen Goh [mailto:karenwo...@yahoo.com.INVALID] Sent: Tuesday, April 10, 2018 1:10 PM To: users@maven.apache.org Subject: How to disable jsf in Eclipse [External E-mail] Dear expert, I am running a maven war plug-in jee project using Tomcat and TomEE I think, with Hibernate and jsp. Here's my pom.xml : 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 Hi5S Hi5S 0.0.1-SNAPSHOT war src/main/resources WEB-INF **/* UTF-8 1.8 1.8 false org.apache.maven.plugins maven-war-plugin 3.2.0 org.apache.tomcat tomcat-jdbc 9.0.2 org.apache.tomcat tomcat-jsp-api 9.0.4 provided org.apache.logging.log4j log4j-api 2.10.0 org.apache.logging.log4j log4j-core 2.10.0 javax.servlet jstl 1.2 commons-digester commons-digester 2.1 commons-logging commons-logging 1.2 javax.servlet jsp-api 2.0 provided jstl jstl provided 1.2 org.apache.logging.log4j log4j-web 2.7 javax.servlet javax.servlet-api 3.1.0 provided org.slf4j slf4j-jdk14 1.7.21 jar compile mysql mysql-connector-java 5.1.45 provided org.hibernate hibernate-core 5.2.10.Final javax.validation validation-api 2.0.0.Final javax.transaction jta 1.1 javax javaee-api 8.0 provided com.google.guava guava 19.0 org.javassist javassist 3.19.0-GA org.apache.geronimo.specs geronimo-osgi-locator 1.1 org.jboss.logging jboss-logging 3.3.1.Final runtime com.fasterxml classmate 0.8.0 org.sonatype.aether aether-api 1.7 I am running on Windows 10, Eclipse Oxygen and Hibernate 5.2.10. Recently, I have added in persistence.xml file as I want to ride of JPA 'JTP' local resource to do the management of transaction and then I faced this problem of my url showing faces. Also, I created the META-INF folder manually since it is not there. Here's my project structure : https://ibb.co/gQPcHH http://localhost:8080/Hi5S/faces/tutorRegister.jsp (I do not want faces in the url) Now, I have followed the advised as per this link below but to no avail. https://stackoverflow.com/questions/30380941/disable-eclipse-jsf-facet-nature The guy that mentioned the method has now switch to use Intelligence ID
RE: How to disable jsf in Eclipse
On Tue, 4/10/18, Diego Lin wrote: Subject: RE: How to disable jsf in Eclipse To: "Maven Users List" , "Karen Goh" Date: Tuesday, April 10, 2018, 2:21 PM If you just want to disable JSF in Eclipse, you may modify the project file ".project" directly. Please try this way: 1. Close the project in Eclipse. 2. Edit the file .project to remove all stuff related to JSF, like these: org.eclipse.wst.common.project.facet.core.builder org.eclipse.wst.common.project.facet.core.nature 3. Open the project again. It does not work ! I did what you said. And here's how the .project file looks like now https://ibb.co/dbnT7H Still, faces will show Thanks, Diego -Original Message- From: Karen Goh [mailto:karenwo...@yahoo.com.INVALID] Sent: Tuesday, April 10, 2018 2:13 PM To: Maven Users List Cc: Diego Lin Subject: RE: How to disable jsf in Eclipse [External E-mail] On Tue, 4/10/18, Diego Lin wrote: Subject: RE: How to disable jsf in Eclipse To: "Maven Users List" , "Karen Goh" Date: Tuesday, April 10, 2018, 1:39 PM please try this way: Properties of your project -> Project Facets -> JavaServer Faces. Uncheck it. It does not work! I did this before I tried other things that was mentioned in the net. After I unchecked, I would do a Maven update on the project can it would become check again And so the same old url with faces came back again... Thanks, Diego -Original Message- From: Karen Goh [mailto:karenwo...@yahoo.com.INVALID] Sent: Tuesday, April 10, 2018 1:10 PM To: users@maven.apache.org Subject: How to disable jsf in Eclipse [External E-mail] Dear expert, I am running a maven war plug-in jee project using Tomcat and TomEE I think, with Hibernate and jsp. Here's my pom.xml : 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 Hi5S Hi5S 0.0.1-SNAPSHOT war src/main/resources WEB-INF **/* UTF-8 1.8 1.8 false org.apache.maven.plugins maven-war-plugin 3.2.0 org.apache.tomcat tomcat-jdbc 9.0.2 org.apache.tomcat tomcat-jsp-api 9.0.4 provided org.apache.logging.log4j log4j-api 2.10.0 org.apache.logging.log4j log4j-core 2.10.0 javax.servlet jstl 1.2 commons-digester commons-digester 2.1 commons-logging commons-logging 1.2 javax.servlet jsp-api 2.0 provided jstl jstl provided 1.2 org.apache.logging.log4j log4j-web 2.7 javax.servlet javax.servlet-api 3.1.0 provided org.slf4j slf4j-jdk14 1.7.21 jar compile mysql mysql-connector-java 5.1.45 provided org.hibernate hibernate-core 5.2.10.Final javax.validation validation-api 2.0.0.Final javax.transaction jta 1.1
RE: How to disable jsf in Eclipse
On Tue, 4/10/18, Diego Lin wrote: Subject: RE: How to disable jsf in Eclipse To: "Maven Users List" , "Karen Goh" Date: Tuesday, April 10, 2018, 3:19 PM Hi Karen, I am sorry I didn't see your question carefully. I just shared my answer according to the subject of your mail. I carefully read your mail. Your question is: http://localhost:8080/Hi5S/faces/tutorRegister.jsp (I do not want faces in the url) You need to change your subject, that misleads ones. I saw your project: https://ibb.co/gQPcHH It doesn't comply with the Maven conventions. The picture shows there is no "src/main/webapp" folder that includes all stuff related to web. As for the "WebContent" folder, it's the WTP convention. You should move all stuff in it to src/main/webapp, and try again. Hi Diegol, Actually, I first created this project with maven until someone at Hibernate forum told me I have to use maven. I am not quite sure what you meant by move all stuff into src/main/webapp. I have moved all the jsp under WebContent folder do I also have to move all the java classes to this src/main/webapp? Furthermore, I have tried to create a totally new maven project from scratch but I am not sure should I use maven archetype or maven plug-in ? The youtube video shows that one could manipulate the folders and resources via pom... In this case, what would be the best way to do it ? I'd appreciate it if you could point me to some resources. I have checked maven documentation but i have no idea when to use maven archetype and maven plug-in...it seems that i can change version along the way and changed accordinglyis that correct ? And I should just create a simple maven project to start first and then use my old pom and build up from there again ? As I knew, JSF wouldn't automatically add something to form a URL. Frankly, your issue is related to JSF. Even in a JSF project, JSP can work normally. Thanks, Diego -Original Message- From: Karen Goh [mailto:karenwo...@yahoo.com.INVALID] Sent: Tuesday, April 10, 2018 2:45 PM To: Maven Users List Cc: Diego Lin Subject: RE: How to disable jsf in Eclipse [External E-mail] On Tue, 4/10/18, Diego Lin wrote: Subject: RE: How to disable jsf in Eclipse To: "Maven Users List" , "Karen Goh" Date: Tuesday, April 10, 2018, 2:21 PM If you just want to disable JSF in Eclipse, you may modify the project file ".project" directly. Please try this way: 1. Close the project in Eclipse. 2. Edit the file .project to remove all stuff related to JSF, like these: org.eclipse.wst.common.project.facet.core.builder org.eclipse.wst.common.project.facet.core.nature 3. Open the project again. It does not work ! I did what you said. And here's how the .project file looks like now https://ibb.co/dbnT7H Still, faces will show Thanks, Diego -Original Message- From: Karen Goh [mailto:karenwo...@yahoo.com.INVALID] Sent: Tuesday, April 10, 2018 2:13 PM To: Maven Users List Cc: Diego Lin Subject: RE: How to disable jsf in Eclipse [External E-mail] On Tue, 4/10/18, Diego Lin wrote: Subject: RE: How to disable jsf in Eclipse To: "Maven Users List" , "Karen Goh" Date: Tuesday, April 10, 2018, 1:39 PM please try this way: Properties of your project -> Project Facets -> JavaServer Faces. Uncheck it. It does not work! I did this before I tried other things that was mentioned in the net. After I unchecked, I would do a Maven update on the project can it would become check again And so the same old url with faces came back again... Thanks, Diego -Original Message- From: Karen Goh [mailto:karenwo...@yahoo.com.INVALID] Sent: Tuesday, April 10, 2018 1:10 PM To: users@maven.apache.org Subject: How to disable jsf in Eclipse [External E-mail] Dear expert, I am running a maven war plug-in jee project using Tomcat and TomEE I think, with Hibernate and jsp. Here's my pom.xml : 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 Hi5S Hi5S
How to undo a maven goal etc ?
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 jstl 1.2 org.glassfish.web jstl-impl 1.2
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 >
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 >
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
mvn dependency:purge-local-repository
Hi, I run into a problem in my Spring Boot Web project and then there's an advice following this URL : https://github.com/spring-projects/spring-boot/issues/12398 But, when I run mvn dependency:purge-local-repository, I get another error : Unknown lifecycle phase "mvn". You must specify a valid lifecycle phase or a goal in the format : or :[:]:. Available lifecycle phases are: validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy, pre-clean, clean, post-clean, pre-site, site, post-site, site-deploy. -> [Help] I hope someone can tell you how to run mvn dependency:purge-local-repository in Eclipse Oxygen. Tks Karen - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
No compiler is provided in this environment - how to stop this error ?
Hi, I have been trying to tackle the below error without avail. In my due diligence, I have done the necessary checking like making sure that the environment is run on 1.8JDK Please see screenshot https://ibb.co/eopTVT https://ibb.co/g2wE4o I got the below when I did the following: 1st, I did run maven clean 2nd, I did maven install And the error appeared. --- maven-resources-plugin:3.0.1:resources (default-resources) @ SpringBootHi5CRUD --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 1 resource [INFO] Copying 0 resource [INFO] [INFO] --- maven-compiler-plugin:3.7.0:compile (default-compile) @ SpringBootHi5CRUD --- [INFO] Changes detected - recompiling the module! [INFO] Compiling 6 source files to C:\Users\Karen.Goh\eclipse-workspace\SpringBoothi5\target\classes [INFO] - [ERROR] COMPILATION ERROR : [INFO] - [ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK? [INFO] 1 error [INFO] - [INFO] [INFO] BUILD FAILURE [INFO] [INFO] Total time: 16.031 s [INFO] Finished at: 2018-06-22T18:53:34+08:00 [INFO] Final Memory: 20M/182M [INFO] [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.7.0:compile (default-compile) on project SpringBootHi5CRUD: Compilation failure [ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK? [ERROR] -> [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] If I run using -X switch, I get the below error : [ERROR] Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.1.0.BUILD-SNAPSHOT:run (default-cli) on project SpringBootHi5CRUD: An exception occurred while running. null: InvocationTargetException: Error creating bean with name 'articleServiceImpl': Unsatisfied dependency expressed through field 'articleRepository'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'articleRepository': Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: Not a managed type: class com.StudentRecruit.model.Article -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.1.0.BUILD-SNAPSHOT:run (default-cli) on project SpringBootHi5CRUD: An exception occurred while running. null at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288) at org.apache.maven.cli.MavenCli.main(MavenCli.java:199) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356) Caused by: org.apache.maven.plugin.MojoExecutionException: An exception occurred while running. null at org.springframework.boot.maven.AbstractRunMojo$IsolatedThreadGroup.rethrowUncaughtException(AbstractRun
Re: No compiler is provided in this environment - how to stop this error ?
Thanks Jeff. It is working now. However, I'd like to know is it possible to change the version to 2.0.3 from 2.1.0 in maven pom.xml ? org.springframework.boot spring-boot-starter-parent 2.0.3.BUILD-SNAPSHOT I have tried to change on the advice of a forum member in Java Range. But, I keep receiving error message : Project build error: Non-resolvable parent POM for com.Superhi5:SpringBootHi5CRUD:0.0.1-SNAPSHOT: Could not transfer artifact org.springframework.boot:spring- boot-starter-parent:pom:2.0.3.BUILD-SNAPSHOT from/to spring-snapshots (https://repo.spring.io/snapshot): repo.spring.io and 'parent.relativePath' points at no local POM I tried various ways like doing mvn clean, mvn purge local repositories, update and then sue the below as per stackoverflow suggestion to change the version but to no avai. https://books.google.de/books?id=yEqrMNX3LAgC&lpg=PA124&ots=IoIU0MYUp-&dq=huettermann+automatic+releasing&hl=de&pg=PA123#v=onepage&q=huettermann%20automatic%20releasing&f=false Hope you could let me know how should I go about changing the version without all these errros. Tks & rgds, Karen On Fri, 6/22/18, Jeff MAURY wrote: Subject: Re: No compiler is provided in this environment - how to stop this error ? To: "Maven Users List" , "Karen Goh" Date: Friday, June 22, 2018, 7:24 PM Your JAVA_HOME must point a jdk not à jre Le ven. 22 juin 2018 à 13:16, Karen Goh a écrit : > Hi, > > I have been trying to tackle the below error without avail. > > In my due diligence, I have done the necessary checking like making sure > that the environment is run on 1.8JDK > > Please see screenshot > > https://ibb.co/eopTVT > > https://ibb.co/g2wE4o > > I got the below when I did the following: > > 1st, I did run maven clean > 2nd, I did maven install > > And the error appeared. > > > > --- maven-resources-plugin:3.0.1:resources (default-resources) @ > SpringBootHi5CRUD --- > [INFO] Using 'UTF-8' encoding to copy filtered resources. > [INFO] Copying 1 resource > [INFO] Copying 0 resource > [INFO] > [INFO] --- maven-compiler-plugin:3.7.0:compile (default-compile) @ > SpringBootHi5CRUD --- > [INFO] Changes detected - recompiling the module! > [INFO] Compiling 6 source files to > C:\Users\Karen.Goh\eclipse-workspace\SpringBoothi5\target\classes > [INFO] - > [ERROR] COMPILATION ERROR : > [INFO] - > [ERROR] No compiler is provided in this environment. Perhaps you are > running on a JRE rather than a JDK? > [INFO] 1 error > [INFO] - > [INFO] > > [INFO] BUILD FAILURE > [INFO] > > [INFO] Total time: 16.031 s > [INFO] Finished at: 2018-06-22T18:53:34+08:00 > [INFO] Final Memory: 20M/182M > [INFO] > > [ERROR] Failed to execute goal > org.apache.maven.plugins:maven-compiler-plugin:3.7.0:compile > (default-compile) on project SpringBootHi5CRUD: Compilation failure > [ERROR] No compiler is provided in this environment. Perhaps you are > running on a JRE rather than a JDK? > [ERROR] -> [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] > > If I run using -X switch, I get the below error : > > [ERROR] Failed to execute goal > org.springframework.boot:spring-boot-maven-plugin:2.1.0.BUILD-SNAPSHOT:run > (default-cli) on project SpringBootHi5CRUD: An exception occurred while > running. null: InvocationTargetException: Error creating bean with name > 'articleServiceImpl': Unsatisfied dependency expressed through field > 'articleRepository'; nested exception is > org.springframework.beans.factory.BeanCreationException: Error creating > bean with name 'articleRepository': Invocation of init method failed; > nested exception is java.lang.IllegalArgumentException: Not a managed type: > class com.StudentRecruit.model.Article -> [Help 1] > org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute > goal > org.springframework.boot:spring-boot-maven-plugin:2.1.0.BUILD-SNAPSHOT:run > (default-cli)
Re: No compiler is provided in this environment - how to stop this error ?
Sorry Jeff, I do not understand your reply. Anyway, I have now remove and replaced it with and the pom error went away. Could you let me know if it makes any difference to change the version ? org.springframework.boot spring-boot-starter-parent 2.0.3.BUILD-SNAPSHOT On Sun, 6/24/18, Jeff MAURY wrote: Subject: Re: No compiler is provided in this environment - how to stop this error ? To: "Karen Goh" Cc: "Maven Users List" Date: Sunday, June 24, 2018, 2:00 PM This is because this repo only delivers only non snapshot artifacts Jeff Le dim. 24 juin 2018 à 06:02, Karen Goh a écrit : > Thanks Jeff. It is working now. > > However, I'd like to know is it possible to change the version to 2.0.3 > from 2.1.0 in maven pom.xml ? > > > org.springframework.boot > spring-boot-starter-parent > 2.0.3.BUILD-SNAPSHOT > > > I have tried to change on the advice of a forum member in Java Range. > > But, I keep receiving error message : > > Project build error: Non-resolvable parent POM for > com.Superhi5:SpringBootHi5CRUD:0.0.1-SNAPSHOT: Could not transfer artifact > org.springframework.boot:spring- > boot-starter-parent:pom:2.0.3.BUILD-SNAPSHOT from/to spring-snapshots ( > https://repo.spring.io/snapshot): repo.spring.io and > 'parent.relativePath' points at no local > POM > > > I tried various ways like doing mvn clean, mvn purge local repositories, > update and then sue the below as per stackoverflow suggestion to change the > version but to no avai. > > > https://books.google.de/books?id=yEqrMNX3LAgC&lpg=PA124&ots=IoIU0MYUp-&dq=huettermann+automatic+releasing&hl=de&pg=PA123#v=onepage&q=huettermann%20automatic%20releasing&f=false > > Hope you could let me know how should I go about changing the version > without all these errros. > > Tks & rgds, > Karen > > > -------- > On Fri, 6/22/18, Jeff MAURY wrote: > > Subject: Re: No compiler is provided in this environment - how to stop > this error ? > To: "Maven Users List" , "Karen Goh" < > karenwo...@yahoo.com> > Date: Friday, June 22, 2018, 7:24 PM > > Your JAVA_HOME must point a jdk > not à jre > > Le ven. 22 juin > 2018 à 13:16, Karen Goh > a > écrit : > > > > Hi, > > > > I have been > trying to tackle the below error without avail. > > > > In my due diligence, > I have done the necessary checking like making sure > > that the environment is run on 1.8JDK > > > > Please see > screenshot > > > > https://ibb.co/eopTVT > > > > https://ibb.co/g2wE4o > > > > I got the below when > I did the following: > > > > 1st, I did run maven clean > > 2nd, I did maven install > > > > And the error > appeared. > > > > > > > > --- > maven-resources-plugin:3.0.1:resources (default-resources) > @ > > SpringBootHi5CRUD --- > > [INFO] Using 'UTF-8' encoding to > copy filtered resources. > > [INFO] Copying > 1 resource > > [INFO] Copying 0 resource > > [INFO] > > [INFO] --- > maven-compiler-plugin:3.7.0:compile (default-compile) @ > > SpringBootHi5CRUD --- > > > [INFO] Changes detected - recompiling the module! > > [INFO] Compiling 6 source files to > > > C:\Users\Karen.Goh\eclipse-workspace\SpringBoothi5\target\classes > > [INFO] > - > > [ERROR] COMPILATION ERROR : > > [INFO] > - > > [ERROR] No compiler is provided in this > environment. Perhaps you are > > running on > a JRE rather than a JDK? > > [INFO] 1 > error > > [INFO] > - > > [INFO] > > > > > [INFO] BUILD FAILURE > > > [INFO] > > > > > [INFO] Total time: 16.031 s > > [INFO] Finished at: > 2018-06-22T18:53:34+08:00 > > [INFO] Final > Memory: 20M/182M > > [INFO] > > >
repository element was not specified in the POM inside distributionManagement element or in -DaltDeploymentRepository=id::layout::url parameter ->
Hi expert, I used maven build and run goal : deploy to see how my spring framework project run but I got the above error. There is this stackoverflow person which has similar problem as mine: https://stackoverflow.com/questions/27153024/repository-element-was-not-specified-in-the-pom-inside-distributionmanagement-el/39439911 So, I read up the below: https://maven.apache.org/pom.html#Distribution_Management My question is since I am doing this on a stand alone basis and do not need to share the POM denpendencies, how do I get rid of this message? With Spring-boot, it is very easy I just have to run maven spring-boot:run. But, for springframewok I am lost. Please help. Tks & rgds, Karen - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: No compiler is provided in this environment - how to stop this error ?
On Sun, 6/24/18, Karl Heinz Marbaise wrote: Subject: Re: No compiler is provided in this environment - how to stop this error ? To: "Maven Users List" , jeffma...@jeffmaury.com Date: Sunday, June 24, 2018, 3:00 PM Hi, do you really want to work with SNAPSHOT versions? I would prefer to work with releases instead .. org.springframework.boot spring-boot-starter-parent 2.0.3.RELEASE which is available from Central... So you don't need any definition of repositories in your pom file...if you have just remove them... Furthermore I see in the screenshots that there are compilation errors...furthermore to drill down to the problem it would be more helpful to test on plain command line...and from within Eclipse etc.. Thanks Karl. Guess there is alot of things I have to pick up. Will watch youtube for tutorial in this area. Kind regards Karl Heinz Marbaise On 24/06/18 06:02, Karen Goh wrote: > Thanks Jeff. It is working now. > > However, I'd like to know is it possible to change the version to 2.0.3 from 2.1.0 in maven pom.xml ? > > > org.springframework.boot > spring-boot-starter-parent > 2.0.3.BUILD-SNAPSHOT > > > I have tried to change on the advice of a forum member in Java Range. > > But, I keep receiving error message : > > Project build error: Non-resolvable parent POM for com.Superhi5:SpringBootHi5CRUD:0.0.1-SNAPSHOT: Could not transfer artifact org.springframework.boot:spring- > boot-starter-parent:pom:2.0.3.BUILD-SNAPSHOT from/to spring-snapshots (https://repo.spring.io/snapshot): repo.spring.io and 'parent.relativePath' points at no local > POM > > > I tried various ways like doing mvn clean, mvn purge local repositories, update and then sue the below as per stackoverflow suggestion to change the version but to no avai. > > >https://books.google.de/books?id=yEqrMNX3LAgC&lpg=PA124&ots=IoIU0MYUp-&dq=huettermann+automatic+releasing&hl=de&pg=PA123#v=onepage&q=huettermann%20automatic%20releasing&f=false > > Hope you could let me know how should I go about changing the version without all these errros. > > Tks & rgds, > Karen > > > > On Fri, 6/22/18, Jeff MAURY wrote: > > Subject: Re: No compiler is provided in this environment - how to stop this error ? > To: "Maven Users List" , "Karen Goh" > Date: Friday, June 22, 2018, 7:24 PM > > Your JAVA_HOME must point a jdk > not à jre > > Le ven. 22 juin > 2018 à 13:16, Karen Goh > a > écrit : > > > > Hi, > > > > I have been > trying to tackle the below error without avail. > > > > In my due diligence, > I have done the necessary checking like making sure > > that the environment is run on 1.8JDK > > > > Please see > screenshot > > > > https://ibb.co/eopTVT > > > > https://ibb.co/g2wE4o > > > > I got the below when > I did the following: > > > > 1st, I did run maven clean > > 2nd, I did maven install > > > > And the error > appeared. > > > > > > > > --- > maven-resources-plugin:3.0.1:resources (default-resources) > @ > > SpringBootHi5CRUD --- > > [INFO] Using 'UTF-8' encoding to > copy filtered resources. > > [INFO] Copying > 1 resource > > [INFO] Copying 0 resource > > [INFO] > > [INFO] --- > maven-compiler-plugin:3.7.0:compile (default-compile) @ > > SpringBootHi5CRUD --- > > > [INFO] Changes detected - recompiling the module! > > [INFO] Compiling 6 source files to > > > C:\Users\Karen.Goh\eclipse-workspace\SpringBoothi5\target\classes > > [INFO] > - > > [ERROR] COMPILATION ERROR : > > [INFO] > - > > [ERROR] No compiler is provided in this > environment. Perhaps you are > > running on > a JRE rather than a JDK? > > [INFO] 1 > error > > [INFO] > - > > [INFO] > > > > > [INFO] BUILD FAILURE > > > [INFO] > > > --
Need advice to put my bootstrap template in Maven archetype web app
Hi, I have been struggling for 2 days where to put my bootstrap template that comes with pre-build template which includes css, fonts etc. inside my maven web project without success. The problem - jsp is not rendering the bootstrap layout. It was rendering ok before I changed the project structure which meets the Maven project standard structure. This is a 3rd party bootstrap template. After reading up the maven project structure, I have tried to put it under src/main/resources, tried under src, tried moving around all parts of the directory but to no avail I also used the below structure to move my WebContent which included this template but it is still not working https://stackoverflow.com/questions/15529184/where-to-place-twitter-bootstrap-files-in-a-maven-project Here's my pom.xml : https://ibb.co/fesnGV https://ibb.co/m7GQ3A Here's where my bootstrap ended now (still not working) - where I put the jsp files and WebContent separately. https://ibb.co/fKArbV Please tell me where should I put the bootstrap template. Thank you & regards, Karen - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Need advice to put my bootstrap template in Maven archetype web app
On Tue, 10/30/18, jieryn wrote: Subject: Re: Need advice to put my bootstrap template in Maven archetype web app To: "Maven Users List" , karenwo...@yahoo.com Date: Tuesday, October 30, 2018, 8:31 PM https://maven.apache.org/plugins/maven-war-plugin/usage.html Hi Jieryn, Just to clarify, so I have to place the WebContent folder which contents all my bootstrap css etc under the resources ? I am confused cos the title is how to WAR plug in where is my question is more on the Maven structure directory usage for 3rd party bootstrap template. On Sun, Oct 28, 2018 at 4:37 AM Karen Goh wrote: > > Hi, > > I have been struggling for 2 days where to put my bootstrap template that comes with pre-build template which includes css, fonts etc. inside my maven web project without success. > > The problem - jsp is not rendering the bootstrap layout. It was rendering ok before I changed the project structure which meets the Maven project standard structure. > > This is a 3rd party bootstrap template. > > After reading up the maven project structure, I have tried to put it under src/main/resources, tried under src, tried moving around all parts of the directory but to no avail > > I also used the below structure to move my WebContent which included this template but it is still not working > > https://stackoverflow.com/questions/15529184/where-to-place-twitter-bootstrap-files-in-a-maven-project > > Here's my pom.xml : > > https://ibb.co/fesnGV > > https://ibb.co/m7GQ3A > > > Here's where my bootstrap ended now (still not working) - where I put the jsp files and WebContent separately. > > https://ibb.co/fKArbV > > Please tell me where should I put the bootstrap template. > > Thank you & regards, > Karen > > > > - > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Need advice to put my bootstrap template in Maven archetype web app
On Thu, 11/1/18, jieryn wrote: Subject: Re: Need advice to put my bootstrap template in Maven archetype web app To: "Maven Users List" , "Karen Goh" Date: Thursday, November 1, 2018, 10:14 PM You said you wanted to create a maven web project. Forgive me, I interpret that to mean a web application. It is indeed a web application. Please see https://ibb.co/fKArbV My question is where should I place the bootstrap files so that it will render in my jsp? I'm not familiar with any official or unofficial way to create a 3rd party bootstrap project. I presume you mean http://getbootstrap.com/ Bootstrap. Finally, your use of Maven archetype in the original subject may be confusing other folks that want to assist, because that term means you are creating a Maven Archetype which can be used to materialize example projects. This doesn't seem unfit with your suggestion about creating a bootstrap template, either. I did not ask how to create a 3rd party bootstrap. So really it's quite confusing what you're asking, perhaps you can try again. On Thu, Nov 1, 2018 at 12:55 AM Karen Goh wrote: > > > > On Tue, 10/30/18, jieryn wrote: > > Subject: Re: Need advice to put my bootstrap template in Maven archetype web app > To: "Maven Users List" , karenwo...@yahoo.com > Date: Tuesday, October 30, 2018, 8:31 PM > > https://maven.apache.org/plugins/maven-war-plugin/usage.html > > Hi Jieryn, > > Just to clarify, so I have to place the WebContent folder which contents all my bootstrap css etc under the resources ? > > I am confused cos the title is how to WAR plug in where is my question is more on the Maven structure directory usage for 3rd party bootstrap template. > > > On > Sun, Oct 28, 2018 at 4:37 AM Karen Goh > wrote: > > > > Hi, > > > > I have been > struggling for 2 days where to put my bootstrap template > that comes with pre-build template which includes css, fonts > etc. inside my maven web project without success. > > > > The problem - jsp is > not rendering the bootstrap layout. It was rendering ok > before I changed the project structure which meets the Maven > project standard structure. > > > > This is a 3rd party bootstrap template. > > > > After reading up the > maven project structure, I have tried to put it under > src/main/resources, tried under src, tried moving around all > parts of the directory but to no avail > > > > I also used the below > structure to move my WebContent which included this template > but it is still not working > > > > >https://stackoverflow.com/questions/15529184/where-to-place-twitter-bootstrap-files-in-a-maven-project > > > > Here's my pom.xml > : > > > > https://ibb.co/fesnGV > > > > https://ibb.co/m7GQ3A > > > > > > > Here's where my bootstrap ended now (still not working) > - where I put the jsp files and WebContent separately. > > > > https://ibb.co/fKArbV > > > > Please tell me where > should I put the bootstrap template. > > > > Thank you & regards, > > Karen > > > > > > > > > - > > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > > For additional commands, e-mail: users-h...@maven.apache.org > > > > - > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > > > > - > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Fw: Re: Need advice to put my bootstrap template in Maven archetype web app
On Tue, 11/6/18, Thomas Broyer wrote: Subject: Re: Fw: Re: Need advice to put my bootstrap template in Maven archetype web app To: "Karen Goh" Cc: "Maven Users List" Date: Tuesday, November 6, 2018, 11:56 PM Take the Bootstrap and Images folder out of the WebContent and move them into src/main/webapp. I mean: tutorRegister.jsp was in WebContent and you moved it to src/main/webapp, right? so just do the same things with the rest: the Bootstrap folder is in WebContent, move it into src/main/webapp (i.e. src/main/webapp/Bootstrap/…) Hello Thomas, I followed your advice but it is still not working. Do I need to do anything else to make the jsp render the layout as per the Bootstrap template cos it was working before I change my structure to meet the Maven's standard directory layout. Here's the layout I have done as per your advice: https://ibb.co/fb23DV On Tue, Nov 6, 2018 at 4:51 PM Karen Goh wrote: > I am so sorry but please ignore the last email. > > The URL is ok now after I read thru your email again and then looking at > many images online. > > However, the jsp page is still not rendering the Bootstrap template. > > I just need you kindly tell me where to put the WebContent which contains > all the template, css etc. > > https://ibb.co/hbF8dV > > Thanks in advance. > > --- On Tue, 11/6/18, Karen Goh wrote: > > > From: Karen Goh > > Subject: Fw: Re: Need advice to put my bootstrap template in Maven > archetype web app > > To: t.bro...@gmail.com > > Date: Tuesday, November 6, 2018, 9:38 PM > > Hi Thomas, > > > > I have not heard back from you so I am > > writing to you again. > > > > Basically, I still can't get the > > localhost to run the jsp page properly. > > > > So, what I did now is re-edit the web > > deployment assembly > > > > https://ibb.co/eJ93Cq > > > > Now, another problem appeared : > > > > The URL appeared to be like this which > > differs from what you have mentioned > > > > http://localhost:8013/WebApp/WEB-INF/tutorRegister.jsp > > > > I am really lost and can't get going > > with my project so I really hope you could point out how to > > make it right. > > > > Here's my latest attempt : > > > > https://ibb.co/g4atCq > > > > https://ibb.co/kppH5A > > > > I am so sorry to trouble you again but > > I really hope how should I make the my URL correct. Do > > I move all the jsp to above image folder and just below > > WEB-INF ? > > > > Tks & regards, > > Karen > > > > --- On Sun, 11/4/18, Karen Goh > > wrote: > > > > > From: Karen Goh > > > Subject: Re: Need advice to put my > > bootstrap template in Maven archetype web app > > > To: "Thomas Broyer" > > > Date: Sunday, November 4, 2018, > > 1:25 PM > > > > > > > > > > > On Sat, 11/3/18, Thomas Broyer > > > > > wrote: > > > > > > Subject: Re: Need advice to > > put my > > > bootstrap template in Maven > > archetype web app > > > To: "Karen Goh" > > > Date: Saturday, November 3, > > 2018, 9:21 > > > PM > > > > > > > > > > > > On Sat, Nov > > > 3, 2018 at 1:38 PM Karen Goh > > > > > wrote: > > > > > > > > > > > > > > > > > > > > On Fri, 11/2/18, Thomas > > Broyer > > > wrote: > > > > > > > > > > > > Subject: Re: Need advice > > to put my > > > bootstrap template in > > > Maven archetype web app > > > > > > To: "Maven Users List" > > , > > > "Karen Goh" > > > > > > Date: Friday, November 2, > > 2018, 7:37 > > > PM > > > > > > > > > > > > > > > > > > > > > > > > On Thu, Nov > > > > > > 1, 2018 at 5:55 AM Karen > > Goh > > > > > > > > > wrote: > > > > > > > > > > > > > > > > > > > > > > > > > > > >
What should be the correct way for openjdk 13 maven pom ?
Hi, I am having problems with maven compiling java openjdk 13 in Eclipse - jee-2019-09, despite following several examples from stackoverflow. Could someone let me know if there is anything amiss from below pom.xml : UTF-8 13 13 13 maven-clean-plugin 3.0.0 maven-resources-plugin 3.0.2 maven-compiler-plugin 3.8.1 13 --enable-preview maven-surefire-plugin 2.20.1 maven-war-plugin 3.2.0 xxx maven-install-plugin 2.5.2 maven-deploy-plugin 2.8.2 Tks & regards, Karen - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
where to get the code example ?
hi, I come to know about the free ebooks where they detailed all about using maven. There is a zip on chapter 6 - multi module project which I need to study as my current project is using multi modules. But, when I go to the link : http://www.sonatype.com/books/mvnex-book/mvnex-examples.zip it just directed me to: https://books.sonatype.com/mvnex-book/reference/index.html Please let me know where can I download the zip file. Tks & regards, Karen - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org