Matt Brown-20 wrote:
Why would you want Maven to NOT use the local repository? I believe it
does this so that every single goal/phase (compile, test, etc) does not
need to re-fetch artifacts it has already seen from the network.
As mentioned in my question, there are several
sounds like you are not using versions correctly.
-SNAPSHOT versions are for untested local stuff.
non-SNAPSHOT versions are pulled from repositories and have been
tested. They are only produced from a build machine, so no developer
should have a non-SNAPSHOT version unless it came from a
When in Szeged, why not come by to Novi Sad as well? :)
Regards,
Stevo.
2009/6/16 Tamás Cservenák ta...@cservenak.net
Also, two of us will be at University of Szeged on Friday 19th, doing
the same we'll be doing some demos and chatting with folks. The beer
will came later, most probably at
Stephen Connolly-2 wrote:
sounds like you are not using versions correctly.
-SNAPSHOT versions are for untested local stuff.
non-SNAPSHOT versions are pulled from repositories and have been
tested. They are only produced from a build machine, so no developer
should have a
Anders Hammar wrote:
Found this through Google:
http://www.gxdeveloperweb.com/Blogs/Bram-de-Kruijff/Maven-secrets-filtering-sources.htm
Not sure if it's the best way to do it though. Never tried filtering
java source code.
Thanks Anders for your reply.
Yep, I've been searching with Google
On 17 Jun 2009, at 08:29, Paolo Castagna wrote:
Anders Hammar wrote:
Found this through Google:
http://www.gxdeveloperweb.com/Blogs/Bram-de-Kruijff/Maven-secrets-filtering-sources.htm
Not sure if it's the best way to do it though. Never tried filtering
java source code.
Thanks Anders
On 16 Jun 2009, at 20:08, Nayan Hajratwala wrote:
sorry you're having so much trouble, robert -- i just tested 2.2.0-
RC3, and
it worked fine for me. Good luck on IRC!
I agree — I installed 2.2.0-RC3 onto my path a couple of days ago and
promptly forgot about it. :) I haven't noticed
Apologies for the indentation below; iPhone trouble.
Hi all.
I am relatively new to Maven and I have recently started working on
a project who's build is a bit... twisty.
In order to remove some custom stuff I am trying to upgrade Maven to
2.1.0 and to use version 2.3.0 of the install
2009/6/15 Peter Horlock peter.horl...@googlemail.com
Hello Stuart,
thanks for your reply.
Could you please send me your assembly plugin settings?
Hi Peter,
Unfortunately I don't have an assembly configuration I can share at the
moment - I use Pax-Runner to deploy my apps.
If you're still
Dominic Mitchell wrote at Mittwoch, 17. Juni 2009 10:02:
On 16 Jun 2009, at 20:08, Nayan Hajratwala wrote:
sorry you're having so much trouble, robert -- i just tested 2.2.0-
RC3, and
it worked fine for me. Good luck on IRC!
I agree — I installed 2.2.0-RC3 onto my path a couple of days
Hi
I actually use Tycho for a RCP bundle development with the 0.3.0-DEV-1819
release.
I use it in the manifest-first mode (of course) but I'd like to add a
dependency to another m2 module which is NOT an OSGI bundle. As pom files
are generated by Tycho, is it possible to add this dependency
hi,
I'm packaging a tar.gz with assembly, I included several filesets from my
project, but now I need to add some files/folders that are in a war (this
war is also taken as an overlay from the project in order to add the
necessary files in the main war package of the project).
I don't
You can use the maven-jar-plugin for generating more than one jar file
filtering the classes you want to include.
Example:
plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-jar-plugin/artifactId
executions
execution
Damon Silver wrote:
I managed to get it working (maven 2.0.9, maven-war-plugin 2.1-beta-1)
with
the following:
configuration
...
packagingExcludes**/*.bat,.classpath,**/*.java,pom.xml,.project,.settings/
**,**/*.sh,target/**/packagingExcludes
...
/configuration
Hope that helps.
2009/6/17 gorgophol benjamin.h...@inter.de
Stephen Connolly-2 wrote:
sounds like you are not using versions correctly.
-SNAPSHOT versions are for untested local stuff.
non-SNAPSHOT versions are pulled from repositories and have been
tested. They are only produced from a build
Thanks Stuart, I'll try to get help on that list.
Peter
Hi,
I configured the maven-eclipse-plugin so that it downloades the sources and
JavaDocs of all third party jars:
plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-eclipse-plugin/artifactId
version2.7/version
Hello,
I use the Cargo uberwar plugin. I also use the Maven release plugin. When I
run the prepare goal, It also update the first version dependency.
I specified the dependencies in the parent POM (dependencyManagement
section). For 'jar' or 'war' artefact, I don't specify the version in the
Hi,
I have a multi-modules project. One of these modules generates some source
code (from xsd, wsdl, etc) but I don't want to execute some plugins on this
module (checkstyle, pmd, sonar, etc).
In general, is it possible to skip plugin execution on a particuliar module
in a multi-modules project ?
Hi Christophe,
When launching the mvn sonar:sonar command on your multi-modules project,
you just have to add the following Sonar property
-Dsonar.skippedModules=${module_artifact_to_exclude} and you'll get what
you want.
Hope it helps,
Freddy
Freddy
I almost solved the problem, I tried once again using the dependencySets...
dependencySets
dependencySet
unpacktrue/unpack
includes
includewebapp-commons.war**/include
/includes
/dependencySet
/dependencySets
like this it works, I had
Problem solved:
dependencySets
dependencySet
includes
includewebapp-commons.war**/include
/includes
unpacktrue/unpack
unpackOptions
excludes
excludeWEB-INF/**/exclude
Hi everybody,
I am new with maven and I just downloaded it and tried to run a sample command,
but I get an error. I guess that maybe the error is because I need to configure
my proxy server in the settings.xml file, I made it, however I am still
receiving the same error. Any ideas what could
Then to install the deployed jar, replacing the normal target jar, use
something like this..
plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-install-plugin/artifactId
version2.3/version
executions
execution
idinstall-library/id
phaseinstall/phase
goals
goalinstall-file/goal
/goals
Thanks but is there a more general way to skip a plugin ?
Freddy Mallet wrote:
Hi Christophe,
When launching the mvn sonar:sonar command on your multi-modules
project,
you just have to add the following Sonar property
-Dsonar.skippedModules=${module_artifact_to_exclude} and you'll get
Not sure I understood this correctly. It appears that you want to have a
1..n RELEASE
repositories, that are access controlled. There are couple of ways you can
go about
it (I think):
- if you use a Repository Manager like Nexus, you can get what you want,
maintaining
the same settings.xml
On Tue, Jun 16, 2009 at 02:32:49PM +0200, Reinhard Nägele wrote:
There is a Jira ticket for this problem, which I provided a patch for
quite a while ago.
http://jira.codehaus.org/browse/MRELEASE-415
It'd be nice if the issue could get some attention by the developers.
Okay, thank you for
I am new with maven and I just downloaded it and tried to run a
sample command, but I get an error. I guess that maybe the error
is because I need to configure my proxy server in the settings.xml
file, I made it, however I am still receiving the same error. Any ideas
what could be the error?
Hi everyone.
I read here:
http://martijndashorst.com/blog/2009/05/29/maven-eclipse-plugin-woes-fixed/
that eclipse maven plugin 2.7 has a new feature such as such as
searching your workspace for projects that are snapshot dependencies,
and adding a project link instead of a jar dependency..
How
Thanks. It took me a while to figure this out. At first, I tried to create a
separate plugin for each client. However, only the first one executed.
Then, I tried to add a new execution definition to the maven-jar-plugin
artifact, but kept getting errors. I finally realized that each execution
Only so that you don't forget, the general Maven rule is one project,
one artifact. You could use classifiers to create more than one
artifact for a project, but I don't really see the benefit. Have
several projects is not bad (I think), it makes your code base
structured. Changes to one
Anders Hammar wrote:
Only so that you don't forget, the general Maven rule is one project,
one artifact. You could use classifiers to create more than one
artifact for a project, but I don't really see the benefit. Have
several projects is not bad (I think), it makes your code base
Thanks for the update.
We ended up using the maven-antrun-plugin to call an Ant script that
runs the WebSphere WsEjbDeploy task and then renames the resultant ejb
jar file to the correct name so that the default install configuration
finds the correct file to install.
Can you post the code you
This bundle has changed over time to make sure that an ASF release that
is created using Maven follows the rules for releases set up by the ASF.
The bundle has not been designed to be reused for software created
outside the ASF.
Henri Tremblay wrote:
I'll answer my own question.
It seems that
Why doesn't the OP just create his/her own bundle?? I just can't
understand what the point of all this discussion is. In the time that
has been wasted on this thread, the OP could have just copied the
original module and customized the velocity scripts within... UGH.
The stupid thing is like 3
That would really make this an Ant wolf in Maven disguise...
And wolf in this context is not anything good!
On Wed, Jun 17, 2009 at 20:47, Jörg Schaiblejoerg.schai...@gmx.de wrote:
Anders Hammar wrote:
Only so that you don't forget, the general Maven rule is one project,
one artifact. You
Well, a SUGGESTION for a future version of the bundle would be to use
${project.organization.name} for that line in the NOTICE. For Apache
projects, that would be ASF. For other projects, it would be whatever
organization they set. Thus, more generic and more usable outside the ASF.
Yes, this is an Ant project going over to Maven by order of High Lord of All
Matters Important. One of the things I have to do is keep the final output
as close to the Ant build's output as possible. Since I am the Maven
maven, I am the one stuck with this task and not the developer.
There are
I've found that it only works if your other projects:
1) have the same parent and you run the maven command from the parent
2) the other project is at the top level of your workspace. e.g.
MyWonderfulProject
\ pom.xml
MyMasterLib
\ pom
\ MySubModuleLib
\ pom.xml
From MyWonderfulProject, if
Hi again...
I'm working with Maven 2, JDK 1.4, Weblogic 8.1 SP3
I've a trouble with an embeded Ant script in my pom.xml. This script
generates a webservice using servicegen, but, after trying many
configuration I got out of my mind.
With the next configuration I've added some jars
With the next configuration I've added some jars (classworlds-1.1.jar,
weblogic.jar, tools.jar, webservices.jar, webserviceclient+ssl_pj.jar,
jasperreports-0.5.2.jar, HSReportEjb.jar, log4j-1.2.5.jar) to maven /lib
folder. But caused the error below
Maven does not pay attention to jars which
On Thu, Jun 18, 2009 at 6:05 AM, Jim Sellersjim.sell...@gmail.com wrote:
I've found that it only works if your other projects:
1) have the same parent and you run the maven command from the parent
They should be able to have different parents.
2) the other project is at the top level of your
Is there a way to get a dependency version in a property?
Something like this should work:
build
dependencies
dependency
groupIdjunit/groupId
artifactIdjunit/artifactId
version${junit.version}/version
scopetest/scope
/dependency
/dependencies
/build
...
properties
...
junit.version4.4/junit.version
...
/properties
I want the other way around :-)
I have a dependencyManagement tag and a dependency listed in there
(all in a parent pom).
Then, in a child module, I need the version of a dependency so I can put
that version info INTO a shell script.
I can see some things using ${project.artifacts}, I just
On Wed, Jun 17, 2009 at 5:06 PM, EJ Ciramellaecirame...@upromise.com wrote:
I want the other way around :-)
I have a dependencyManagement tag and a dependency listed in there
(all in a parent pom).
Then, in a child module, I need the version of a dependency so I can put
that version info
Hmmm - I cheated I guess. The jar in question is being put in a lib
directory and because I control that via the assembly descriptor, I just
use the outputFileNameMapping option and stripped out the version.
/shrug
-Original Message-
From: Wendy Smoak [mailto:wsm...@gmail.com]
Sent:
If it's a property in a parent pom that you explicitly set, it's available
as a property in the child pom, so you could access the version being used
via ${junit.version} in your script invocation.
-Original Message-
From: EJ Ciramella [mailto:ecirame...@upromise.com]
Sent: Wednesday,
Yep, I'm aware of the property option, just seems silly to add a
property (when it's just the version info for ONE dependency) - when the
version isn't truly needed.
Anyway - thanks all for the replies!
-Original Message-
From: Damon Silver [mailto:damon.sil...@diio.net]
Sent:
Same thing. With RC2 release failed but now with RC3 releases of
multi-module projects success :-).
- markku
Jörg Schaible wrote:
Dominic Mitchell wrote at Mittwoch, 17. Juni 2009 10:02:
On 16 Jun 2009, at 20:08, Nayan Hajratwala wrote:
sorry you're having so much trouble, robert
It's your call. Just please understand that even if it's possible
doesn't make it the right way of doing things.
I tried to think of issues with this approach (other than the
versioning thing I already mentioned) and the only thing I can think
of is if you have different dependencies for your
51 matches
Mail list logo