maven-plugin

Handling multiple artifacts from single maven project

a 夏天 提交于 2019-12-12 02:32:59
问题 I have a maven project that produces many artifacts. Of course it is kind of against maven best practice (one pom one artifact), but it is Adobe Flex project that produces many *swf modules and it is really makes no sence to create a separate project for each module. For me it would be very convinient to handle all swf modules as a single zip archive eg. zip archive would be my artifact. So I am looking for the way to pack and unpack my zip artifact with maven. If you have any ideas, please

Downsides of using Shade plugin relocation feature

痞子三分冷 提交于 2019-12-12 01:14:57
问题 To resolve jar conflicts in my application, I use the shaded plugin's relocation feature. It works for me, but i feel it is a hack. I would like to understand the downsides of using the relocation feature if any. 回答1: The main issue is that it can fail in cases where the package name is directly defined (not just imported). For example, if you are using reflection and instantiating the a class by its name (including the package name) it will generate the wrong one. Similar problems can occur

Maven and Android SDK Deployer issue with Mediarouter

一个人想着一个人 提交于 2019-12-11 23:26:58
问题 I am simply trying to setup maven on my machine to build Android projects. I have maven 3.1.1. And have installed all platforms from the Android SDK Manager. When I do: mvn clean install on Maven-Android-SDK-Deployer , Everything seems to work until it encounters Compatibility v7 Mediarouter Library and then the build fails. See the logs below: [INFO] ------------------------------------------------------------------------ [INFO] Building Android Compatibility Extra V7 Mediarouter Library 2.4

Deployed null when using embedded glassfish server

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-11 22:55:46
问题 after reading several tutorials (e.g. ocpsoft, oracle) I started to use embedded glassfish for running my hello-world app. It does work with the remote server but for some reason nothing is deployed when using the embedded server. 1.) "Cannot find javadb client jar file, derby jdbc driver will not be available by default." I am using derby and although e.g. variable AS_DERBY_INSTALL is set and exported it seems the jars cannot be found. Why? 2.) "INFO: Deployed null" Why is my app not

How to use profiles or targets to get the values from xml properties file using a template file

孤街浪徒 提交于 2019-12-11 20:27:26
问题 Using Maven or Ant wanted to get the values from an xml file and replace it by its variables using targets/profiles. properties.xml looks like this: <?xml version="1.0" encoding="UTF-8"?> <variables> <variable id="Title"> <book.01>abc</book.01> <book.02>def</book.01> <ebook.03>ghi</book.01> <ebook.04>klmn</book.01> </variable> <variable id="Author"> <book.01>john</book.01> <book.02>jack</book.01> <ebook.03>simi</book.01> <ebook.04>laura</book.01> </variable> </variables> Using Maven or Ant if

Creating Maven plugin written in Groovy 1.8

ⅰ亾dé卋堺 提交于 2019-12-11 19:35:36
问题 I'm attempting to create a maven plugin using groovy. I'd like to use groovy version 1.8 or higher. I've followed these instructions and got things working if I use: <groupId>org.codehaus.groovy.maven</groupId> <artifactId>gmaven-plugin</artifactId> <version>1.0-rc-4</version> This build my plugin and I'm able to use it in other projects. However, this gives an older version of groovy (1.5.7). To switch to a newer version, I tried using a new version and providerSelection: <plugin> <groupId

Running features cucumber in parallel in different browser using selenium testNG

人走茶凉 提交于 2019-12-11 18:17:32
问题 How can i run cucumber features using testNG and selenium or cucumber-JVM i'm new in this but after my researsh i think that cucumber jvm doesn't work in paralell for me i added also the surefire plugin now i try to test with TESTNG my testNg.xml : <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd"> <suite name="run test in parallel Suite" parallel="tests" verbose="1" configfailurepolicy="continue" thread-count="2"> <listeners> <listener classname

Eclipse - How to bypass the standard directory structure (src/main/java) in maven?

六月ゝ 毕业季﹏ 提交于 2019-12-11 17:42:51
问题 I am converting my existing project into maven but the point at which I am getting stuck is that I don't want to use the standard src/main/java structure. I thought How to edit the directory structure in Maven? might help, but from what I understood it gives a way to append a directory path before src/main/java . This is the solution suggested in post that I am referring to: <sourceDirectory>${project.basedir}/src/main/java</sourceDirectory> <testSourceDirectory>${project.basedir}/src/test

How to define a new kind of scope in Maven?

点点圈 提交于 2019-12-11 16:15:57
问题 In order tell the Flexmojo Maven plugin that your project should use a particular theme, it is necessary to add a scope "theme" dependency to your project like this: <dependency> <groupId>com.adobe.flex.framework</groupId> <artifactId>spark</artifactId> <version>4.1.0.16076</version> <type>swc</type> <scope>theme</scope> </dependency> This works fine, but produces the following scary looking warning: [WARNING] Some problems were encountered while building the effective model for com.mycorp

Change output directory for apt-maven-plugin

孤街浪徒 提交于 2019-12-11 15:58:47
问题 I am using apt-maven-plugin to process some Beehive Netui annotations before building a war. The output of the apt processing is a _pageflow directory which contains struts config files (xml text) and the like. The problem is that it is being output in whatever directory I run maven from, not in the ${project.build.directory}/classes directory which is what I want. I tried setting the outputDirectory and the resourceTargetPath properties, but neither changed this behavior. Is there another