spot7.org logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML Categories
  Home » MAVEN » Page 1
wildfly-maven-plugin --> No plugin found for prefix 'wildfly'
Use the FQN (Fully Qualified Name) of the maven goal. mvn org.wildfly.plugins:wildfly-maven-plugin:deploy Should very explicitly start the wildfly deploy goal and use the configuration you have specified. The goal shortcuts only works in your configured pluginGroups in settings.xml, and as you can see it only checks 2 groups [org.apache.maven.plugins, org.codehaus.mojo]

Categories : Maven

Struts - Environment-based config
So I ended up extending the SecurePlugIn class with my own, and overriding the init method: public class PropertisedSecurePlugin extends SecurePlugIn { @Override public void init(ActionServlet servlet, ModuleConfig config) throws ServletException { super.init(servlet, config); String dev = System.getProperty("dev"); if (Boolean.TRUE.toString().equals(dev)) {

Categories : Maven

Spring MVC: Webapp deploys differently using Tomcat rather than Jetty
Have you compared your servlet-mapping between jetty and tomcat? This page has a web.xml that may be close to what you are looking for. http://tomcat.apache.org/tomcat-7.0-doc/default-servlet.html

Categories : Maven

JSF 2 value not getting parsed in XHTML
Some explanations on your current code: @ManagedBean defines a managed bean to be used in Facelets by JSF. The attribute eager only applies for @ApplicationScoped beans, and your managed bean doesn't have such scope. In JSF 2, if you don't define a scope for your bean, then it's @RequestScoped by default. Looks like your html doesn't use any Facelets code. This is how your home.xhtml should be:

Categories : Maven

Output from maven dependency:tree, which version will override
From the documentation: "By Default Maven will solve conflicts with a nearest-win approach" [Resolving Conflicts]. This translates to picking org.apache.kafka:kafka_2.11:jar:0.8.2-V3-PATCH:compile in your example. Also see Transitive Dependencies The nearest-win approach just picks the version of the dependency closest to the left in the Maven dependency tree output. This approach chooses a

Categories : Maven

Versioning releases in Maven
How do you run out of an infinite number of numbers? What's wrong with 4.234 as a version number? Versioning has two meanings: technical, to define how big a change is and where in the functional set the version is; and marketing, which is used only to make purchasers feel good. What does your versioning policy mean to you?

Categories : Maven

how to configur sigar with libsigar-x86-linux.so automatically in maven project
there is a problem with maven dependency plugin. You've to add .so type as included type like here: <plugin> <artifactId>maven-dependency-plugin</artifactId> <executions> <execution> <id>native-dep</id> <phase>compile</phase> <goals> <goal>copy-dependenci

Categories : Maven

How to create multi module project in maven ? so that all the code base of child projects can be in parent one
Just create your pom.xmls the usual way. On the inner ones you can add <parent> <groupId>(YOUR GROUP ID)</groupId> <artifactId>(YOUR ARTIFACT ID)</artifactId> <version>(YOUR VERSION)</version> <relativePath>../</relativePath> </parent> To make them include the outer one.

Categories : Maven

Sonar configuration in multimodule maven project using tycho for unit tests and jacoco for coverage
First, you must tell the JaCoCo agent to report all coverage data into one common file. Second, you tell the Sonar JaCoCo plugin to read the coverage data from the aggregated file. To do so, set the properties "jacoco.destFile" and "sonar.jacoco.reportPath" in your parent pom.xml to the same absolute path, e.g.: <properties> <jacoco.destFile>/home/jenkins/jobs/my.project/workspac

Categories : Maven

how to attach additional binary artifacts without type with maven build-helper-maven-plugin
Just use the correct configuration which can be read in the documentation: <project> ... <build> <plugins> <plugin> <!-- add configuration for antrun or another plugin here --> </plugin> ... <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>build-helper-maven-plugin</arti

Categories : Maven

Tycho - Building a p2 repository by resolving features from a Maven repository
I am pretty impressed by your thorough analysis. You've almost got everything covered which is possible with the current Tycho version (0.22.0) - except for the solution which is so unintuitive that I wouldn't have expected anyone to be able to guess it (see below). Note however that there is a small fix required to also make the solution work for SNAPSHOT artifacts. But first, I'd like to provid

Categories : Maven

Skipping maven plugin for any version
Does configuring through pluginManagement solve your issue? ... <build> ... <pluginManagement> <plugins> <plugin> </plugin> </plugins> </pluginManagement> ... </build>

Categories : Maven

Maven jar with classpath in manifest
Instead of maven-assembly-plugin, I use maven-shade-plugin in combination with maven-jar-plugin for the same purpose. <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-shade-plugin</artifactId> <version>2.2</version> <executions> <execution>

Categories : Maven

Apache Maven Error : Could not transfer artifact org.apache.maven.plugins:maven-clean-plugin:pom: 2.5 to central
I think you need to set up a maven proxy in your settings.xml properly. Have a look (for example) in your web browser and see how it is set up. From the documentation on Configuring a proxy: <proxy> <active>true</active> <protocol>http</protocol> <host>proxy.somewhere.com</host> <port>8080</port> <username>proxyuser</usern

Categories : Maven

How to deploy application on JoNaS in a Docker container
It sounds like you want to expose the Cargo port from the Docker container so that Jenkins can connect to the Docker host IP on that port to get into the container. See http://docs.docker.com/reference/run/#expose-incoming-ports for usage. For example, if the Cargo port was 6767, you might run the container with -p 6767:6767 which would allow Jenkins to connect to port 6767 on the Docker host IP (

Categories : Maven

does an external script in rpm-maven-plugin have access to maven properties
The properties are not directly accessible, but you can use the maven-resources-plugin copy-resources goal to apply filters while copying from your scripts directory into target. Your scriptFile configuration would then need to be changed to point to the copied resource under target.

Categories : Maven

How to handle two dependent maven projects in Gerrit?
Use different artifact versions with mvn install on each step if you are storing artifacts locally. B-1.1.0 uses A-2.2.0 You update your library code. Update its version in POM-file too. Let's assume, it is A-3.2.0 now, but your project is still using A-2.2.0. Everything works. You need new features from A-3.2.0. Update your B project to adjust new API usage and increase its version and depen

Categories : Maven

Unable to run "mvn verify clean --offline" in a fresh Maven installation
To work off-line with Maven, you need a local Maven repository which has all the needed artifacts. Maven automatically downloads them when you are building without the --offline switch. If you have a machine without Internet access, you can still build your project in the following way: Build the on a machine with Internet access. Copy the local Maven repository ~/.m2/repository/ from the on-li

Categories : Maven

maven-jaxb2-plugin: how to accomplish this xjc command-line in the pom.xml?
Disclaimer: I am the author of the maven-jaxb2-plugin. So your compilation depends on the order of the schema files in the XJC command? Hm, interesting. Why? Please post mvn -X clean generate-sources log in such cases. It really seems that Maven does not maintain the order of the file patterns as I also get: schemas=[file:/.../src/main/resources/local/ObaCcLocationReport.xsd, file:/..

Categories : Maven

Value not displayed in floatingBox.jelly - Jenkins plugin development
Your jelly code needs to look like this <j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler" xmlns:d="jelly:define" xmlns:l="/lib/layout" xmlns:t="/lib/hudson" xmlns:f="/lib/form" xmlns:i="jelly:fmt" xmlns:local="local"> <j:set var="lastResult" value="${from.lastResult}"/> <div class="content"> <h2>GT Metrix Summary</h2> <j:if test="${l

Categories : Maven

How to retrieve from Maven repositories that require access credentials?
Did you try to define these repos in your settings.xml? You define these repos as "servers". There, you can define the credentials for these servers as well...

Categories : Maven

Where do generated DEPENDENCIES files come from?
I have made an example to show how this works: <build> <plugins> <plugin> <artifactId>maven-remote-resources-plugin</artifactId> <executions> <execution> <goals> <goal>process</goal> </goals> <configuration> <resourceBundles

Categories : Maven

Liferay maven dependency could not be resolved
You need to add those dependencies to your own Maven Repository. If you don't already use a Repository Proxy: now is the time! (it really helps with lots of things). Sonatype Nexus or Artifactory are the most known ones. Both are good. Choose the one you like (but choose one). I think this maven plugin has (or had?) a goal to upload the artifacts from the Enterprise Edition to the Repository Prox

Categories : Maven

Gemfile.lock equivalent in Maven and gradle
You are not correct here. If you explicitely state <version>1.0.1</version> in your pom, it is garanteed that this version will be used over transitive dependencies that could use different version.

Categories : Maven

How does Tycho bind its goals to the Maven lifecycle
Tycho is using Maven lifecycle hooks to do the dependency resolution before the actual reactor build starts. These lifecycle hooks are only available to Maven build extension and IIRC Tycho was one of the reasons they were introduced in Maven 3.0. Tycho's implementation of the lifecycle hook is in the class TychoMavenLifecycleParticipant. The goals that are being executed during the normal react

Categories : Maven

Building project in maven : Want to avoid few modules
It's perfectly reasonable and valid to build select modules in a project as long as you understand the implications. You can try all these options from both your IDE and command line. You have a few choices: 1) If you feel it's easy to mention the modules you want to build in a reactor every time you run the build, use the -pl/--projects reactor option. You may even need to know about the --also

Categories : Maven


Recently Add
capture maven wagon:exist output
wildfly-maven-plugin --> No plugin found for prefix 'wildfly'
Struts - Environment-based config
Spring MVC: Webapp deploys differently using Tomcat rather than Jetty
JSF 2 value not getting parsed in XHTML
Output from maven dependency:tree, which version will override
Versioning releases in Maven
how to configur sigar with libsigar-x86-linux.so automatically in maven project
How to create multi module project in maven ? so that all the code base of child projects can be in parent one
Sonar configuration in multimodule maven project using tycho for unit tests and jacoco for coverage
how to attach additional binary artifacts without type with maven build-helper-maven-plugin
Tycho - Building a p2 repository by resolving features from a Maven repository
Skipping maven plugin for any version
Maven jar with classpath in manifest
Apache Maven Error : Could not transfer artifact org.apache.maven.plugins:maven-clean-plugin:pom: 2.5 to central
How to deploy application on JoNaS in a Docker container
does an external script in rpm-maven-plugin have access to maven properties
How to handle two dependent maven projects in Gerrit?
Unable to run "mvn verify clean --offline" in a fresh Maven installation
maven-jaxb2-plugin: how to accomplish this xjc command-line in the pom.xml?
Value not displayed in floatingBox.jelly - Jenkins plugin development
How to retrieve from Maven repositories that require access credentials?
Where do generated DEPENDENCIES files come from?
Liferay maven dependency could not be resolved
Gemfile.lock equivalent in Maven and gradle
How does Tycho bind its goals to the Maven lifecycle
Building project in maven : Want to avoid few modules
© Copyright 2017 spot7.org Publishing Limited. All rights reserved.