maven-2

Ant inheriting Maven properties

喜你入骨 提交于 2019-12-23 17:51:23
问题 I am considering converting an Ant/Ivy project to Ant/Maven-Ant-Tasks. I do not want to use Maven by itself because I need more control over the build process. Is there any way for the Ant build.xml file inherit properties set in the pom.xml file? I have been creating a generic build.xml file that can be used across several projects and loads a project-specific project.properties file, but it would be nicer if I could put all of those properties in the pom.xml file. Thanks. 回答1: I use the

Trouble with Eclipse

混江龙づ霸主 提交于 2019-12-23 17:41:27
问题 I installed Eclipse Helios and m2eclipse. Next I created a maven project. Now Eclipse goes crazy. It leaks all the time, goes in endless loops (continously 50% CPU), throws PermGen Space Errors and crashes. I can't work. I tried to substitute the JDK with an older version, the same with maven and the same with eclipse. I also changed the size of my PermGen Space. Has somebody an Idea what's wrong? Or does that remembers somebody about a known bug? May there be a problem with my Windows XP?

Building artifacts for multiple java architectures using Maven (anything better than profiles)?

流过昼夜 提交于 2019-12-23 17:26:25
问题 Having read about every posting and question that I can find, I'm stumped on finding a better way than just using profiles of doing the following. I need to take the same set of modules, and compile them for vastly different architectures (J2ME vs. J2SE), they need different dependencies for some libraries, and they need different source/target/debug settings at compilation time. Using profiles and classifiers, I can do this by running with one profile, cleaning, and running a build with the

Utility for downloading artifacts from maven repo without mvn/poms [closed]

寵の児 提交于 2019-12-23 13:32:18
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . Is there a maven client that isn't mvn (the binary included with the maven distribution) I could use to pull down an artifact from a maven repository without using a pom? I'd like to use a maven repository as the repo for our ops team to pick up builds (including snapshots of builds) but I don't want them to

maven plugin execution

倖福魔咒の 提交于 2019-12-23 12:34:07
问题 When will plugin execute if I don't specify a phase? for example that plugin <plugin> <groupId>com.vaadin</groupId> <artifactId>vaadin-maven-plugin</artifactId> <version>1.0.1</version> <executions> <execution> <configuration> <!-- if you don't specify any modules, the plugin will find them --> <!-- <modules> <module>learning.vaadin.gwt.ColorPickerWidgetSet</module> </modules> --> </configuration> <goals> <goal>update-widgetset</goal> </goals> </execution> </executions> </plugin> 回答1: It

Maven - Have an XSD as a dependency

心已入冬 提交于 2019-12-23 12:28:04
问题 We have one project that defines the message formats it produces with XSD files. What is the easiest way to make these XSD files as dependencies of another project? I was looking at using the maven-build-helper attach-artifact goal to attach my XSD files. Is there a better mechanism? 回答1: I don't know the attach-artifact goal but I did something like you asked for. I had wsdl and xsd files to write Webservice artifacts and its client artifacts with axis2. I put my wsdl and xsd in an own

Using Jython with M2Eclipse

泪湿孤枕 提交于 2019-12-23 09:38:16
问题 I currntly use M2Eclipse for the majority of my Java development and Pydev for Python/Jython development within Eclipse. I would like to use Jython to prototype and test classes within my Java projects. The M2Eclipse plugin manages all the dependencies defined in the Maven pom.xml file automatically. Is there anyway for Pydev to utilise these dependencies without having to import each jar separately? 回答1: Actually, I didn't get how you are working with Jython under Eclipse and where you need

A layout for maven project with a patched dependency

本秂侑毒 提交于 2019-12-23 09:37:06
问题 Suppose, I have an opensource project that depends on some library, that must be patched in order to fix some issues. How do I do that? My ideas are: Have that library sources set up as a module, keep them in my vcs. Pros: simple. Cons: some third party sources in my repo, might slow down build process, hard to find a patched place (though can be fixed in README) Have a module, like in 1, but keep patched source files only, compile them with orignal library jar in classpath and somehow

How can the Maven unique version string be customized?

99封情书 提交于 2019-12-23 09:35:07
问题 I'd like to know what options exist to customize the timestamp string used in Maven artifact deploys when <uniqueVersion>true</uniqueVersion> is set. Ideally, we'd like to include the changelist number from source control instead of a timestamp as it's a more dependable means of determining what features and bug fixes are in a given build. 回答1: I'd like to know what options exist to customize the timestamp string used in Maven artifact deploys when true is set. You can't customize it, the

Maven: Finding out whether running in a 32 or a 64 bit JVM

微笑、不失礼 提交于 2019-12-23 09:30:12
问题 How can I enable or disable a maven profile based on whether the VM that is executing maven is a 32 bit or a 64 bit JVM ? I tried this: <activation> <os> <arch>x86</arch> </os> </activation> or amd64 respectively to detect a 32/64 bit VM, but this fails on a 32 bit VM running on a 64 bit Windows as it activates the 64 bit profile. 回答1: In a Sun VM, check for the system property sun.arch.data.model <profiles> <profile> <id>32bitstuff</id> <activation> <property> <name>sun.arch.data.model</name