Re: [m2] maven does not launch on ubuntu 9.10

2009-11-30 Thread Adrian Herscu
Thanks for your fast reply, Brett. Currently I have: p...@ubuntu-desktop:~$ java -version java version 1.6.0_16 Java(TM) SE Runtime Environment (build 1.6.0_16-b01) Java HotSpot(TM) Client VM (build 14.2-b01, mixed mode, sharing) p...@ubuntu-desktop:~$ javac -version javac 1.6.0_16

Re: Problem running unit tests from maven (JPA related)

2009-11-30 Thread sim085
Wayne, Thank you very much for your help. I solved the problem using the first link you suggested. Because that thread might not be very clear I decided to offer an explanation here. Basically the problem was because in my pom.xml file I had the following parts; repository

Re: Problem running unit tests from maven (JPA related)

2009-11-30 Thread sim085
mickknutson wrote: Do you have an error trace? Problem solved :) For future reference (in case anyone else has this problem) I am going to put the error trace here. I solved the problem using the link provided by Wayne Fay - http://forums.java.net/jive/message.jspa?messageID=226931

RE: filter resources with version of a certain dependency

2009-11-30 Thread Andreas Ebbert-Karroum
Hi, when I don't receive a reply on a question, I'm always uncertain what the reason for that is: * Was the question or problem unclear? * Is the answer so obvious that nobody cares to reply? * Is the answer so difficult, or the solution impossible without inventing something new, that nobody

Problem with the release:perform

2009-11-30 Thread Jouko Johansson
Hi, I tried to execute the release:perform goal. When the execution reaches to deploy -task segment, there's a error. INFO] [ERROR] BUILD ERROR [INFO] [INFO] [INFO] [INFO] Failed to configure plugin parameters for:

Re: Problem running unit tests from maven (JPA related)

2009-11-30 Thread Stephen Connolly
2009/11/30 sim085 sim...@hotmail.com: Wayne, Thank you very much for your help. I solved the problem using the first link you suggested. Because that thread might not be very clear I decided to offer an explanation here. Basically the problem was because in my pom.xml file I had the

Re: [m2] maven does not launch on ubuntu 9.10

2009-11-30 Thread Brett Randall
Hi Adrian, I'm sure you've seen the unresolved bug 542162 on the Debian lists. Can you confirm - have you tried downloading the Maven binary bundle from maven.apache.org, or are you still trying to run the Ubuntu/Canonical/Debian-upstream bundle? What does `which mvn` produce? I recommend you

Re: filter resources with version of a certain dependency

2009-11-30 Thread Anders Hammar
I think that you can get the version of a specific dependency through Groovy script by using the groovy-maven-plugin. Not sure if you can set a maven property from a groovy script though. Tried to find any good docs on the plugin but couldn't, sorry. Some example config for that plugin that loops

RE: filter resources with version of a certain dependency

2009-11-30 Thread Andreas Ebbert-Karroum
Hi Anders, thanks for sharing your idea, which is really interesting. It tells me that at least the information is available, but not accessible with the standard maven property resolution algorithm. Would be interesting to find out if it can be easily patched it. Let's see where in the

Metadata of maven-archetype-plugin causes error.

2009-11-30 Thread Thorsten Gawantka
Hello, there seems to be an error in the method the metadata of maven-archetype-plugin in central maven repository are served. We noticed that we cannot proxy the plugin with our nexus repo manager. So we investigated the problem. We startet to look at the file with a webbrowser and every

Filtering plugin executions by packaging type?

2009-11-30 Thread Michal Lefler
Hi. I'm using a pretty large maven tree, and I ran into two problems when trying to configure plugins at the top level project. These two problems are related to the fact that I wanted the plugins to be executed only on jar packaging projects, and not on pom packaging projects, but didn't know

The plugin 'org.apache.com.plugins:maven-eclipse-plugin' does not exist or no valid version could be found

2009-11-30 Thread Hannelore Brijs
MessageI have installed m2eclipse, and tried to execute this command: mvn eclipse:eclipse Then I got this error: The plugin 'org.apache.com.plugins:maven-eclipse-plugin' does not exist or no valid version could be found What is wrong?

Re: Prevent a plugin executing for each module in a multi-module build

2009-11-30 Thread Pankaj Tandon
Wendy Smoak wrote: One way, I know to achieve this is to configure the site plug-in in each child project with an inherited=false. But that is a bit crummy. What happens if you configure inherited=false in the parent? That didn't help. Here is my project structure:

Maven 2: How can I avoid hard-coding the version multiple times?

2009-11-30 Thread laredotornado
Hi, I'm using Maven 2.2. In my maven project, I have this fragment in my pom.xml at the project root ... nameMyco GA Capitol Tours/name descriptionMyco GA Capitol Tours/description inceptionYear2009/inceptionYear groupIdMyco.galc.capitol.tours/groupId

Re: Maven 2: How can I avoid hard-coding the version multiple times?

2009-11-30 Thread Joe Hindsley
Hi Dave, If you want to inherit the parent's groupId and version values, you simply remove them from the child's pom definition. In your case, the child pom would look like: parent groupIdMyco.galc.capitol.tours/groupId artifactIdMyco-galc-capitol-tours/artifactId

Re: Maven 2: How can I avoid hard-coding the version multiple times?

2009-11-30 Thread Arnaud HERITIER
Not in Maven 2.X Will be possible in Maven 3.x But personally I don't see the problem to have them if you use the release plugin and if required the versions plugin to update them. Arnaud Héritier Software Factory Manager eXo platform - http://www.exoplatform.com --- http://www.aheritier.net On

Re: Maven 2: How can I avoid hard-coding the version multiple times?

2009-11-30 Thread Wayne Fay
You'll notice I have 1.0-SNAPSHOT hard-coded a couple of times in my webapp/pom.xml.  Is there any way I can replace that with something that will be automatically inherited from the parent? If you're using the release plugin, this is not generally a problem. So, what is your reason behind

Re: The plugin 'org.apache.com.plugins:maven-eclipse-plugin' does not exist or no valid version could be found

2009-11-30 Thread Martijn Dashorst
try groupid: org.apache.maven.plugins instead Martijn On Sat, Nov 28, 2009 at 8:24 PM, Hannelore Brijs hannelore_br...@hotmail.com wrote: MessageI have installed m2eclipse, and tried to execute this command: mvn eclipse:eclipse Then I got this error: The plugin

Re: Maven 2: How can I avoid hard-coding the version multiple times?

2009-11-30 Thread Johannes Schneider
You have several possibilities. - define properties and use them (properties...) - use dependencyManagement for multi module projects - avoid defining a own version in multi module projects (inherits the parent pom) Don't know your use case. But one of those methods should solve it. Sincerly,

Re: Maven 2: How can I avoid hard-coding the version multiple times?

2009-11-30 Thread laredotornado
Thanks, Joe. So we do keep the version element within the parent element? Thus, the version appears in both the pom.xml in the root and also in the webapp/pom.xml ? - Dave Joe Hindsley wrote: Hi Dave, If you want to inherit the parent's groupId and version values, you simply

Re: Maven 2: How can I avoid hard-coding the version multiple times?

2009-11-30 Thread Joe Hindsley
Dave, Yes. Child poms should always explicitly name their parents. The reason for this is that you might have a parent pom that exists in the repository and not in your directory structure. In order for maven to be able to find that pom, it will need the repository 'coordinates'. An example

Managing dependencies which are not in the Reposistory

2009-11-30 Thread Andrew Birchall
Hello, We have a Maven 2 project and one of the libraries we need to add is Jasper Reports. We need to use the latest release of Jasper Reports 3.2.6 However this library doesn't exist in a Maven Repository. How do we manage this dependency and all its transitive dependencies? (i.e. all the

Where are Sun java jars in any public maven2 repo?

2009-11-30 Thread jvsrvcs
I'm looking for the latest and greates servlet.jar so I can put a dependency in my maven2 pom.xml and am pointed by this page: http://maven.apache.org/guides/mini/guide-coping-with-sun-jars.html to http://download.java.net/maven/2/javax/servlet/ But nothing but

Re: [m2] maven does not launch on ubuntu 9.10

2009-11-30 Thread Adrian Herscu
Solved. I extracted the http://www.apache.org/dyn/closer.cgi/maven/binaries/apache-maven-2.2.1-bin.tar.gz/apache-maven-2.2.1/bin/m2.conf file: main is org.apache.maven.cli.compat.CompatibleMain from plexus.core set maven.home default ${user.home}/m2 [plexus.core] load

Re: Where are Sun java jars in any public maven2 repo?

2009-11-30 Thread Wayne Fay
What up?  Where do I find the latest servelet.jar in a maven2 repo? This may help: http://mvnrepository.com/search.html?query=servlet Otherwise ask on the Glassfish user list, or check the Geronimo artifacts in Central for it. Wayne

Re: Managing dependencies which are not in the Reposistory

2009-11-30 Thread Wayne Fay
We need to use the latest release of Jasper Reports 3.2.6 However this library doesn't exist in a Maven Repository. How do we manage this dependency and all its transitive dependencies? Complain to the JasperReports people until they upload a proper pom for that version (and the jar).

Re: [m2] maven does not launch on ubuntu 9.10

2009-11-30 Thread Adrian Herscu
Well something else does not work now :( p...@ubuntu-desktop:~$ mvn validate -e + Error stacktraces are turned on. FATAL ERROR: Unable to start the embedded plexus container Error stacktrace: org.codehaus.plexus.PlexusContainerException: Error starting container at

Re: Where are Sun java jars in any public maven2 repo?

2009-11-30 Thread Andrew Birchall
Can't you use the one in central? http://repo1.maven.org/maven2/javax/servlet/servlet-api/2.5/ 2009/11/30 jvsrvcs jvsr...@gmail.com: I'm looking for the latest and greates servlet.jar so I can put a dependency in my maven2 pom.xml and am pointed by this page:        

Re: Managing dependencies which are not in the Reposistory

2009-11-30 Thread Stevo Slavić
Herehttp://jasperforge.org/plugins/espforum/view.php?group_id=112forumid=102topicid=45277you can find instructions on how to setup jasperreports maven repository. It seems 3.6.2 hasn't been published there yet, but 3.6.0 is and 3.6.2-snapshot too. You can use 3.6.0 and wait for official 3.6.2 to

Invoke a different plugin goal based on profile

2009-11-30 Thread Jeff French
I have two related questions: 1. Can I define a profile that replaces the goal executed by a plugin, rather than add to it? 2. Can I override the goal invoked for a plugin without duplicating the entire plugin definition within a profile? I'm using the assembly plugin (bound to the package

[ANN] Animal Sniffer 1.4 Released

2009-11-30 Thread Stephen Connolly
The Mojo team is pleased to announce the release of Animal Sniffer version 1.4. This is the second release of Animal Sniffer (http://mojo.codehaus.org/animal-sniffer/) since it moved from java.net to the mojo project at codehaus. We have fixed a number of bugs

Re: Using the Maven Deploy Plugin

2009-11-30 Thread starver
Neil, In addition to other responses (use http, not file): 1. Check the repo url in your output. I think the trailing slash in your pom.xml url will result in two slashes in the actual url (id did in mine). 2. I assume the repo entry is a child of distributionManagement and that your id matches

Re: Invoke a different plugin goal based on profile

2009-11-30 Thread Stevo Slavić
If you give same id to executions, regular one and one in the profile, when profile is active it will override regular execution in its entirety (bound phase, goals, configuration, ...) Regards, Stevo. On Mon, Nov 30, 2009 at 9:08 PM, Jeff French j...@mdbconsulting.com wrote: I have two

Plugins: Goals without a phase

2009-11-30 Thread Paul Benedict
What phase is bound to a plugin's goal when no corresponding phase element is present in their plugin.xml? (If it is none, I didn't know this was possible. I would assume at least validate is run) Paul - To unsubscribe, e-mail:

Re: Invoke a different plugin goal based on profile

2009-11-30 Thread Jeff French
Thanks, Stevo. That make sense. I do have the same execution ID, but I must be doing something else wrong because both goals still run. I have both the main and profile plugin definitions inside a pluginManagement element in the parent POM, then just include the groupId and artifactId in the

Re: Maven 2: How can I avoid hard-coding the version multiple times?

2009-11-30 Thread Baptiste MATHUS
Err, this is exactly what we do. I might be wrong, but the only thing that's compulsory is the version of the referenced parent pom. If the child project has the same version (or the same groupId) you can just remove it from the child pom. This is what we have been doing for something like 6 or

Can you assign a different name/id to an antrun goal?

2009-11-30 Thread Jeff French
I'm using the antrun plugin to let developers run an application after it has been packaged. So far I can only run it like so: mvn antrun:run but would like to use a more appropriate name like: mvn run-server Is there a way to assign a unique name? Thanks. Jeff -- View this

Re: Maven 2: How can I avoid hard-coding the version multiple times?

2009-11-30 Thread Arnaud HERITIER
Yes you just put it in the parent part. The module doesn't need to redefine it. You inherit it from the parent. Each pom need to have the version at least one version defined in project/parent/version or in project/version Cheers, Arnaud Héritier Software Factory Manager eXo platform -

Re: Plugins: Goals without a phase

2009-11-30 Thread Stephen Connolly
if the mojo is annotated with @phase then the specified phase is the phase it will bind to if no phase is specified in the execution otherwise it will not be bound to any phase (i.e. it will not execute as part of any lifecycle) HTH -Stephen 2009/11/30 Paul Benedict pbened...@apache.org: What

Re: Using the Maven Deploy Plugin

2009-11-30 Thread Brian Fox
Are you trying to redeploy a release artifact that's already there? Nexus 1.4.x has redeployment disabled by default. Otherwise if the file was successfully uploaded you should see it right away in the repository, you may have to refresh the ui or browser. Use the nexus user list for additional

Re: Using the Maven Deploy Plugin

2009-11-30 Thread Brian Fox
Sorry, I misread your first email. You can't use the file: protocol to deploy to a remote server. Most likely if you poke around in the root of your disk, you'll find a new folder called myserver that contains the file you thought was deployed to Nexus. You want the http protocol. As far as the

Re: Plugins: Goals without a phase

2009-11-30 Thread Paul Benedict
Stephen, Without a @phase binding, what about when the plugin's goal is explicitly executed at the command line? Do any of Maven's phases get executed first? I suspect validate at least does. Paul On Mon, Nov 30, 2009 at 4:25 PM, Stephen Connolly stephen.alan.conno...@gmail.com wrote: if the

Re: Can you assign a different name/id to an antrun goal?

2009-11-30 Thread Anders Hammar
No. The syntax is mvn phase or mvn plugin:goal But you could create a shell script/bat file with a better name which executes mvn antrun:run. /Anders On Mon, Nov 30, 2009 at 23:10, Jeff French j...@mdbconsulting.com wrote: I'm using the antrun plugin to let developers run an application

maven downloading SNAPSHOTs which have not changed

2009-11-30 Thread ssenecal . work
I have been noticing that Maven is redownloading some SNAPSHOTs every day, despite the fact that the files have not changed. I ran my build using mvn -X clean package and I can see that an HTTP 304 is being returned (verified on the server), yet the file is downloaded anyway. Is there some

Re: Can you assign a different name/id to an antrun goal?

2009-11-30 Thread Barrie Treloar
On Tue, Dec 1, 2009 at 3:35 PM, Anders Hammar and...@hammar.net wrote: No. The syntax is  mvn phase or  mvn plugin:goal But you could create a shell script/bat file with a better name which executes mvn antrun:run. Or you could use a profile. mvn -Prun-server where the profile would

Re: Can you assign a different name/id to an antrun goal?

2009-11-30 Thread Barrie Treloar
On Tue, Dec 1, 2009 at 4:36 PM, Barrie Treloar baerr...@gmail.com wrote: On Tue, Dec 1, 2009 at 3:35 PM, Anders Hammar and...@hammar.net wrote: No. The syntax is  mvn phase or  mvn plugin:goal But you could create a shell script/bat file with a better name which executes mvn antrun:run.

Re: Plugins: Goals without a phase

2009-11-30 Thread Anders Hammar
No, if you specify a plugin:goal that's what is going to be executed. Maven's lifecycle is not being used. Try mvn clean:clean -X for instance and you'll see. /Anders On Tue, Dec 1, 2009 at 00:22, Paul Benedict pbened...@apache.org wrote: Stephen, Without a @phase binding, what about when

Re: Can you assign a different name/id to an antrun goal?

2009-11-30 Thread Stephen Connolly
unless your profile specifies a defaultGoal of validate and you bind your execution to the validate phase (hack) Sent from my [rhymes with tryPod] ;-) On 1 Dec 2009, at 06:07, Barrie Treloar baerr...@gmail.com wrote: On Tue, Dec 1, 2009 at 4:36 PM, Barrie Treloar baerr...@gmail.com wrote: