In this example we will create an empty Maven Java Project. Install Dependencies Install Java Install Maven Install IDE Eclipse Netbeans Intellij IDEA Create Maven Project Intellij IDE Step 1 Open Intellij IDE Step 2 Create New Project Maven leave Create from archetype unchecked Next Step 3 GroupId: -e.g. com.skills421.training ArtifactId: - e.g. MyProject Version: 1.0-SNAPSHOT … Continue reading Create a Maven Project
Intellij IDEA: maven clean install
View -> Tool Windows -> Maven Project - Opens your projects in a sub-window Click on the arrow next to your project Click on Lifecycle Click on clean Click on the green (play) button Click on install Click on the green (play) button
Maven pom.xml error – org.codehaus.plexus.archiver.jar.Manifest.write(java.io.PrintWriter)
This is a known bug in eclipse and as such has replicated into Spring STS. It is caused by the maven-jar plugin. This can be resolved by downloading and using the very latest version. Currently STS 3.8.2.RELEASE
Test CXF Restful Services with Rest-Shell @Put @Get
This short post publishes a Restful Web Service and then tests @Put and @Post methods using rest-shell. Create the Service Follow the instructions from my previous post: Produce Json From Restful CXF Web Service. Once you have done this, modify the CustomerService as follows: This provides methods to Put and Get data. Test the Service … Continue reading Test CXF Restful Services with Rest-Shell @Put @Get
Produce Json From Restful CXF Web Service
In this post, we are going to create a simple Restful web service that returns json. This post follows on from Create Restful Web Services with JBoss, Maven, Apache CXF and Spring, but is also self-contained. Create the Project Using Eclipse / JBoss Developer Studio New -> Maven Project maven-archetype-webapp Group Id: com.skills421.webservices Artifact Id: SimpleCXFRest The … Continue reading Produce Json From Restful CXF Web Service
Create Restful Web Services with JBoss, Maven, Apache CXF and Spring
In this short post, we are going to create a simple restful web service using Apache CXF, Spring, and JBoss AS7. Create the Project Using Eclipse / JBoss Developer Studio New -> Maven Project maven-archetype-webapp Group Id: com.skills421.webservices Artifact Id: SimpleCXFRest The default project structure will be created as follows: Add Missing Folders and Delete index.jsp Right-click … Continue reading Create Restful Web Services with JBoss, Maven, Apache CXF and Spring
Maven: Unsupported IClasspathEntry kind=4
Maven: Unsupported IClasspathEntry kind=4, generated by Eclipse or JBoss: Disable the maven nature for the project: Right-click -> Maven -> Disable Maven Nature run mvn eclipse:clean (while your project is open in STS/eclipse) Re-enable the maven nature: Right-click -> Configure -> Convert to Maven Project