Pointing wsdl file from pom.xml in webapp - maven

I want to refer to a WSDL file from my POM file of Maven Webapp.
It is situated at ..WebApp\src\main\webapp\WSDL\NewWebService.wsdl.
WSDL/NewWebService.wsdl
This gives me error, please suggest.
Thanks in advance!

You can refer path, using maven property ${basedir}.
<wsdl>${basedir}/src/main/webapp/WSDL/NewWebService.wsdl</wsdl>
or
<file>${basedir}/src/main/webapp/WSDL/NewWebService.wsdl</file>
or something else. (You didn't say anything about used maven-plugin)

Related

maven soupUI plugin properties file

Can somebody knows how to add property file example. file.properties to global settings in maven
soapui-maven-plugin. I tried so many option but nothing works.
Thanks

Read data from app.properties gluon build issue

I have a problem using the Gluon FX plugin with a JavaFX application. I need to build an executable .exe file. I have app.properties in my project, but the final application looks like the configuration from the app.properties are not present; app.properties file is located at the root of the project.
I build my sources with mvn gluonfx:build. I have tried mvn gluonfx:runagent before mvn gluonfx:build, but the result is same.
How to add configuration to my app? Are there other ways to set configuration variables and build .exe? If you need more information to help, just let me know.
P.S: This is my first post on StackOverflow. Please excuse me for any mistake I have made in posting the question.

maven directory not found in Jenkins?

I am doing auto deployment of Java Application using Maven and Jenkins, but it is getting failed.Here is the console output:
I have set the environment varaibles and also downloaded and configure all the required plugins. Need help to solve this issue.
Thanks
First of all: Please copy/paste messages instead of using images.
Secondly, the message said that you probably misconfigured the directory for the settings.xml. The settings.xml is usually in the directory .m2 in the user directory, but it can also be supplied from somewhere else.

How do I add a directory in /target to the resulting JAR with Spring Boot?

I'm using Enunciate to generate REST documentation upon building a REST application. Enunicate outputs documentation to /target/docs. I would like to add the /docs directory to the resulting JAR file (and rename it) to be able to serve docs as static content.
How do I do this? I can't figure out how to get these static files (which are generated upon build) into the JAR.
I guess you can solve this by configuring the Maven plugin for enunciate and wiring it up to be run in the 'generate-resources' lifecycle phase.
Also, make sure you set the output-dir to a subdirectory of src/main/resources/static, as commented by Rob above.
I added this to my enunciate.xml to force the docs directory to be generated in a custom location which will be packaged with the .war file
<docs docsDir="target/<app_name>/docs"/>
and then maven will put the entire contents of target/ into the resulting war file package

Could not find fetcher.properties on classpath

I am working to implement RSS feed using the spring integration as mentioned in the article http://comdynamics.net/blog/295/spring-integration-rss-feed-reader/. However, when I run the application I am getting the following error:
Could not find fetcher.properties on classpath
Can you point me in the right direction?
Can you verify that you have the folder that contains this property file in the classpath of the project? You would have to look at .classpath file to verify this.
Ideally you would want to keep this file in a config folder and must be added to the classpath just like your source folder.
create an empty file named fetcher.properties on classpath. You don't have to add any entry to it.That will solve the problem

Resources