maven-plugin

Jboss 7.x redeploy option

笑着哭i 提交于 2019-12-25 02:50:19
问题 I was looking for hard-deploy option in Jboss &.x but I believe that option is no longer supported in Jboss 7.x what I found was this Jboss link containing latest plugins . I have decided to use Jboss-as:redeploy option.It seems to work perfectly for me- kind of replacement for hard-deploy.But when I check my Jboss/standalone/deployment folder the timestamp of war is not updated.But code changes are reflected in the application.below is the maven plugin code that I am using <plugin> <groupId

How to use maven profile and overlays to build and package with specified project from multiple?

南楼画角 提交于 2019-12-25 02:25:51
问题 I have one web project called MyWebProject which having sub modules also and packaging as POM, I have other two simple java project called SimpleJavaProject1 and SimpleJavaProject2 which having packaging as JAR. I am having dependency for both in web peoject. So I have to use Maven Profile and Overlays such way, that when I will build and package my web project with profile JavaProject1 then web project includes SimpleJavaProject1 in its war and when I said JavaProject2 then it should include

Where is org.codehaus.mojo:mojo-sandbox:pom:5-SNAPSHOT?

╄→尐↘猪︶ㄣ 提交于 2019-12-25 02:20:01
问题 I'm trying to use the javascript-maven-plugin from the codehause's mojo project. When I execute any plugin goal, the following error is shown saying that mojo-sandbox-5-snapshot.pom has not been found. I have tried with some repositories, including: nexus.codehaus.org/snapshots/ nexus.codehaus.org/content/groups/snapshots-group/ snapshots.repository.codehaus.org/ with no lucky. [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Failed to

List dependencies of maven project in desired format

只谈情不闲聊 提交于 2019-12-25 01:37:39
问题 Am trying to generate dependency tree in maven, making use of below command $ mvn dependency:tree -DoutputType=dot Output looks like below [INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building test 1.0 [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-dependency-plugin:2.8:tree (default-cli) @ test --- [INFO] digraph "com.a:test:jar:1.0" { [INFO] "com.a:test

Building an OSGI plugin bundle(with transitive dependencies) using Maven on Eclipse

允我心安 提交于 2019-12-24 20:16:15
问题 I am running an application using an OSGI framework and run configuration on eclipse.I am developing a plugin to add to the main application. However, the plugin bundle has a load of transitive dependencies, some of which are OSGI bundles and some are not. However it looks like the OSGI framework expects all the dependencies to be OSGI bundles. It is a huge pain to convert all third party transitive dependencies into OSGI bundles. I was trying to embed all transitive dependent jars into the

Java Maven Mojo : Complex Map Attribute

♀尐吖头ヾ 提交于 2019-12-24 16:44:08
问题 The example of map attribute for a mojo mentioned in maven.apache.org is quite simple as it defines a Map with a String as a key and as a value as specified below : /** * My Map. */ @Parameter private Map myMap; and it's assigned configuration would look like this : <myMap> <key1>value1</key1> <key2>value2</key2> </myMap> What I am trying to achieve is a more advanced map which takes a String as a key and my own defined class Person as value: /** * My Advanced Map. */ @Parameter private Map

Maven plugin MOJO API in term of parameters

℡╲_俬逩灬. 提交于 2019-12-24 16:42:26
问题 From my understanding the MOJO relative to the compile goal of the maven-compiler-plugin defines its own parameters,just like any other MOJO plugins. For example it should have a parameter defined somewhat like the following: /** @parameter default-value="${project.build.sourceDirectory}" */ private String sDir; So these parameters definitions represent a kind of API for the MOJO, that we can set in various way, mainly from the execution tag. Please,correct me if I'm wrong. My question is:

Maven plugin failed after upgrading Jenkins to 1.505

半城伤御伤魂 提交于 2019-12-24 16:26:13
问题 I have upgraded my Jenkins server to 1.505 but unexpectedly building with Maven plugin is not working and it throws an exception in the Jenkins logs Error injecting constructor, java.lang.NoClassDefFoundError: hudson/ivy/AntIvyBuildWrapper and after an hour googling this issue I found that Maven plugin guys upgrade their code base and it failed on an "optional" dependency, so I added the "optional plugin" but still it fails silently without any exception in the Jenkins logs. the error appears

Maven NAR plugin lots of errors in Windows.h when updating to 3.3.0

狂风中的少年 提交于 2019-12-24 12:34:13
问题 There is this simple program: #pragma comment(lib, "user32") #include <windows.h> int main() { MessageBox(NULL, "hello world", "", 0); return 0; } And this simple pom.xml: <?xml version="1.0" encoding="UTF-8"?> <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>lmiguelmh.test</groupId> <artifactId

Not getting values from properties files in context.xml file

这一生的挚爱 提交于 2019-12-24 12:08:11
问题 I am unable to retrieve value from .properties file into my context.xml pom.xml ( didn't mention dependencies ) <project xmlns="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"> <modelVersion>4.0.0</modelVersion> <groupId>com</groupId> <artifactId>myproj</artifactId> <version>0.1.1</version> <packaging>war</packaging> <name>myproj</name> <url>http://maven