use maven in eclipse without m2eclipse

2009-12-04 Thread maven apache
Hi; These days I was confusing with some problems about the m2eclipse,so I wonder if I can use maven without m2elcipse.? For example,when I use m2eclipse after I add a dependency I click "maven - update dependencies" ,now what to do without the m2elicpse for updating dependencies? And other command

Re: Building using different files based on a build flag?

2009-12-04 Thread Wayne Fay
> Reason: Unable to download the artifact from any repository >  org.apache.maven.plugins:maven-enforcer-plugin:pom:1.0 What makes you think there is a 1.0 version of this plugin? http://mvnrepository.com/artifact/org.apache.maven.plugins/maven-enforcer-plugin Wayne -

Re: Building using different files based on a build flag?

2009-12-04 Thread laredotornado
Sweet! This looks like the answer to my problems, except that when I include the plugin in my pom.xml, I'm not able to download it. What repository should I be using? Here is what I get ... mvn clean install jboss:redeploy [INFO] Scanning for projects... Downloading: http://repo1.maven.org/mav

Re: To Skip some execution with mvn install and mvn assembly:assembly

2009-12-04 Thread Anders Hammar
Not sure what you mean by "assembly target". Have you bound the assembly plugin to some phase but want to skip it?! You cannot unbind a plugin, but some plugins provide some configuration option to turn tem off (like surefire for skipping tests). So you need to know which plugin it is you want to d

Re: maven-jar-plugin version 2.3 MANIFEST.MF SNAPSHOT problem

2009-12-04 Thread Dennis Lundberg
Stephen Duncan Jr wrote: > I see that http://jira.codehaus.org/browse/MJAR-28 was "fixed" in the 2.3 > release. From my perspective, this seems to have broken things, including a > viable working system I had using 2.2. > > In 2.3 I have several SNAPSHOT dependencies, but when I build a jar with

Re: How to include unattached HTML pages to maven site?

2009-12-04 Thread Dennis Lundberg
jimmi4664 wrote: > My build generates some HTML documentation, but as part of normal "site > reporting". One phase of the build just creates some HTML files under a > given directory. > > I would like to include this as one selection under my "Project reports". > How could I do this? > > > *) In

RE: Warning while generating archetype

2009-12-04 Thread Qureshi,Shahzad [Ontario]
That was it, thank you For anyone looking for the same issue I had the following in my archetype-metadata.xml src/main/resources **/*.xml **/*.properties src/main/resources **/* So I was copying all the .xml and .properties files but then the next files

Re: Checksum errors

2009-12-04 Thread Wayne Fay
>>Friends don't let friends use the dev.java.net repo... Are you sure >>you need it to build Spring? If so, good luck! (And why are you trying >>to build Spring anyway?) >> >>This artifact (and many others) should be in Central. > > Ok, thanks for the response.  Now, how do I fix it?  I installed m

Re: Warning while generating archetype

2009-12-04 Thread Stevo Slavić
Probably thisis archetype plugin code which logs these warning. Check, your archetype's "archetype-metadata.xml" I suspect there is one or more overlapping file

Warning while generating archetype

2009-12-04 Thread Qureshi,Shahzad [Ontario]
Hi all, I used archetype:create-from-project goal to create an archetype from a project of mine, worked perfectly. Installed the archetype and used it to create a project, which all worked fine However, I get following warnings when I create a project using the above mentioned archetype and I

Re: To Skip some execution with mvn install and mvn assembly:assembly

2009-12-04 Thread Laurent PELLEGRINO
Thanks it works in order to skip tests :-) However I don't found how to skip assembly target when I execute mvn install. Is it possible ? 2009/12/3 Anders Hammar : > Does this work: > http://maven.apache.org/plugins/maven-surefire-plugin/test-mojo.html#skipTests > > /Anders > > On Thu, Dec 3, 200

maven-jar-plugin version 2.3 MANIFEST.MF SNAPSHOT problem

2009-12-04 Thread Stephen Duncan Jr
I see that http://jira.codehaus.org/browse/MJAR-28 was "fixed" in the 2.3 release. From my perspective, this seems to have broken things, including a viable working system I had using 2.2. In 2.3 I have several SNAPSHOT dependencies, but when I build a jar with addClasspath, only one of those is

Re: Building using different files based on a build flag?

2009-12-04 Thread Wayne Fay
> If someone doesn't specify "-Denv=" in the build command, how can you warn > them that they must include this parameter rather than the build "failing > spectacularly". The enforcer plugin can help with that: http://maven.apache.org/enforcer/enforcer-rules/requireProperty.html Wayne --

Script generation using Maven

2009-12-04 Thread Ray . Mcdermott
Folks I am wondering of you can help me I would like to be able to generate some script actions based on a list of changed files for a build Let say I have two new files checked out of subversion (these are the new / updated files): file0.txt file1.txt # ** updated file2.txt file3.txt # *

Re: Ant Task: Nullpointer Exception

2009-12-04 Thread Vinicius Carvalho
Actually fixed this, by using pom inside the instead of using pomrefid. Anyway, I started using instead, but its downloading all dependencies everytime. Not using my local repository. Why is that? Regards On Fri, Dec 4, 2009 at 1:03 PM, Vinicius Carvalho wrote: > Hello there! I'm trying to in

Re: Ant Task: Nullpointer Exception

2009-12-04 Thread Wayne Fay
>                 > >                         > > java.lang.NullPointerException >        at org.apache.maven.artifact.ant.Pom.getArtifact(Pom.java:133) Does this help you see why it failed? Wayne - To unsubscribe, e-mail: user

Re: Building using different files based on a build flag?

2009-12-04 Thread laredotornado
I found this documentation related to profiles -- http://maven.apache.org/guides/introduction/introduction-to-profiles.html and it was very helpful. It left me with one lingering question. If someone doesn't specify "-Denv=" in the build command, how can you warn them that they must include this

Ant Task: Nullpointer Exception

2009-12-04 Thread Vinicius Carvalho
Hello there! I'm trying to integrate my build.xml with some artifacts managed by maven. Here's What I've done so far:

Re: Create multiple JARs from different src directories

2009-12-04 Thread Gajo Csaba
Hello, I don't know specifically for the JAR plugin, but according to its website at http://maven.apache.org/plugins/maven-jar-plugin/usage.html you can configure which files to include/exclude. So you could create separate elements for each jar file you want to generate, and set their confi

Re: Compilation error(try source -1.5)

2009-12-04 Thread Anders Hammar
Sure: http://maven.apache.org/plugins/maven-compiler-plugin/examples/set-compiler-source-and-target.html Specify 1.5 as source and target. /Anders On Fri, Dec 4, 2009 at 15:29, martin mikeln wrote: > Hi! > > I try to build some project(actually i try to make single JAR file with > "mvn package

Compilation error(try source -1.5)

2009-12-04 Thread martin mikeln
Hi! I try to build some project(actually i try to make single JAR file with "mvn package" code) and i am getting compilation error and almost all lines have some kind of same error(ex. Generics are not supported in source -1.3,..., try source -1.5). I think source means source of JDK, so I look

Create multiple JARs from different src directories

2009-12-04 Thread florian . grunow
Hi there! I'm quite new to maven and have the following question: Maven generates test JARs from the test directories that can be specified via the build-helper-maven-plugin. Is it possible to generate seperate JARs (for integration tests in my case) from different test folders? I don't want e

Re: maven parameter

2009-12-04 Thread Anders Hammar
To be used within the pom and filtering? http://docs.codehaus.org/display/MAVENUSER/MavenPropertiesGuide /Anders On Fri, Dec 4, 2009 at 14:47, maven apache wrote: > 2009/12/4 Anders Hammar > > > Normally, if it is a property used by a plugin, it is documented in the > > plugin's doc. However,

Re: maven parameter

2009-12-04 Thread maven apache
2009/12/4 Anders Hammar > Normally, if it is a property used by a plugin, it is documented in the > plugin's doc. However, for the configId and configDirectory properties that > you talk about,* I think that they are something GeoServer specific and > not > for a plugin. Possibly they are used in

Re: maven parameter

2009-12-04 Thread Anders Hammar
Normally, if it is a property used by a plugin, it is documented in the plugin's doc. However, for the configId and configDirectory properties that you talk about, I think that they are something GeoServer specific and not for a plugin. Possibly they are used in the pom or during filtering. /Ander

How to include unattached HTML pages to maven site?

2009-12-04 Thread jimmi4664
My build generates some HTML documentation, but as part of normal "site reporting". One phase of the build just creates some HTML files under a given directory. I would like to include this as one selection under my "Project reports". How could I do this? *) In practise the documentation is gen

maven 3 inheritance

2009-12-04 Thread Erlend Hamnaberg
Hi. I am testing out maven 3 on our project. I heard from Jason's presentation on JavaZone that you are supposed to be able to have versionless parent elements. Trying to build the attached project, makes it fail. In maven 2 we could inherit properties, this doesn't seem to work anymore. Can som

Re: how to make reactor greedy?

2009-12-04 Thread Andrew Gaydenko
On Friday 04 December 2009 13:50:46 Baptiste MATHUS wrote: > Hi, > > Could you rephrase your need? Not sure to understand. > > Just a guess, wouldn't the mvn -amd or -am option fit your need? > > Cheers Hi! There are modules B (self-contained) and C (depends on B). Let's do clean and install.

Re: how to make reactor greedy?

2009-12-04 Thread Baptiste MATHUS
Hi, Could you rephrase your need? Not sure to understand. Just a guess, wouldn't the mvn -amd or -am option fit your need? Cheers 2009/12/3 Andrew Gaydenko > Hi! > > Say, I have top pom (packaging pom) with two modules - B and C (both jar > packaging). B is self-containd, C depends on B. Afte