just need a sanity check here :-)
I'm trying to test some updates to an archetype. So I've edited a
particular file, for example, such as the following:
$ emacs my-archetype/src/main/resources/archetype-resources/src/main/
resources/Properties
I've cleaned my local repo of the artifacts
Are there any other version of your archetype in
~/.m2/repository/my/groupId/my-archetype?
With regards,
Nick Stolwijk
~Java Developer~
Iprofs BV.
Claus Sluterweg 125
2012 WS Haarlem
www.iprofs.nl
On Wed, Apr 22, 2009 at 10:25 AM, Lachlan Deck lachlan.d...@gmail.com wrote:
On Wed, Apr 22, 2009 at 10:25 AM, Lachlan Deck lachlan.d...@gmail.com wrote:
$ cd ~/
$ mkdir test cd test
$ mvn -o archetype:generate -DarchetypeCatalog=local
...
Choose archetype:
1: local - my-archetype (Yada yada)
...
Choose a number: (1/2/3/4): 1
Define value for groupId: :
On 22/04/2009, at 6:35 PM, William Ghelfi wrote:
On Wed, Apr 22, 2009 at 10:25 AM, Lachlan Deck
lachlan.d...@gmail.com wrote:
$ cd ~/
$ mkdir test cd test
$ mvn -o archetype:generate -DarchetypeCatalog=local
...
Choose archetype:
1: local - my-archetype (Yada yada)
...
Choose a number:
On 22/04/2009, at 6:27 PM, Nick Stolwijk wrote:
Are there any other version of your archetype in
~/.m2/repository/my/groupId/my-archetype?
No. I deleted the dir prior to installing.
With regards,
Nick Stolwijk
~Java Developer~
Iprofs BV.
Claus Sluterweg 125
2012 WS Haarlem
www.iprofs.nl
Hi All,
when I do a 'mvn install' and the maven jar/ejb plugin is configured to use a
classifier e.g.
...
plugin
artifactIdmaven-jar-plugin/artifactId
configuration
classifierdev/classifier
/configuration
/plugin
...
only the .jar file gets installed in the local repository.
Could you try it with the debug option (-X). Maybe that shows what jar
file gets extracted.
Hth,
Nick Stolwijk
~Java Developer~
Iprofs BV.
Claus Sluterweg 125
2012 WS Haarlem
www.iprofs.nl
On Wed, Apr 22, 2009 at 10:45 AM, Lachlan Deck lachlan.d...@gmail.com wrote:
On 22/04/2009, at 6:27
On 22/04/2009, at 7:15 PM, Nick Stolwijk wrote:
Could you try it with the debug option (-X). Maybe that shows what jar
file gets extracted.
I just identified the problem. In a properties file I had the
following in the archetype:
##
# Some section heading
Good Morning,
I want to add org.apache.log4j.logger to a Java Netbeans Project, using the
codehaus plugin.
In the line:
private static final Logger LOG =
Logger.getLogger(DivisionUtil.class);
I use the right button, and select the option: Search Dependency at Maven
Repository for
Hi,
The filtering of the files in the archetype plugin is done using Velocity.
This means that ech filtered file is a Velocity template.
# is a comment char in velocity.
If your file has no filtering to be done on it (don't use properties asked
by the plugin), consider putting it in a
I am pretty new to maven and I am trying to use the maven scm plugin to add
files and then commit to a bare git repository (located on the file system).
In my pom, I have:
scm
connectionscm:git:file://localhost/tmp/stuff.git/connection
Hi:
I have another query regarding maven site generation, in
particular how does one create links that open in a new window? I'm
seeing the icon for indicating that a link opens in a new window in
skin resources and would like my javadocs, test coverage reports and
others to open in a new
It looks as though you are trying to add everything in the src dir but
the plugin is complaining that it does not know what it is you want to
add... I would try passing the optional includes property to the
plugin configuration to see if that changes things.
On Wed, Apr 22, 2009 at 8:27 AM, Sean
Hi
I'm using maven2 for dependency management. I have one project that contains
some java files and some jsp files and another project, a web project, that
depends on the first project. How do I access the jsp files from the web
project? I can see that the jsp files are added to
Hi,
I have maven project in which I build my java source files and execute JUnit
test cases on it. Now, I want to find out the code coverage and have installed
JCoverage maven plugin.
What steps I have to follow to configure the JCoverage maven plugin
Thanks Regards,
Chirag Trivedi
On Wed, Apr 22, 2009 at 8:40 AM, Ryan Connolly ryn...@gmail.com wrote:
It looks as though you are trying to add everything in the src dir but
the plugin is complaining that it does not know what it is you want to
add... I would try passing the optional includes property to the
plugin
I would personally use Cobertura plugin as according to the JCoverage
plugin site, it is deprecated and no longer maintained.
http://maven.apache.org/maven-1.x/plugins/jcoverage/index.html
On Wed, Apr 22, 2009 at 8:46 AM, Chirag Trivedi
chiragincont...@yahoo.com wrote:
Hi,
I have maven
How about using */** for includes? Also, maybe run using -e to see
the stack trace if available? That may help you debug this issue as
well.
On Wed, Apr 22, 2009 at 9:00 AM, Sean Davis seand...@gmail.com wrote:
On Wed, Apr 22, 2009 at 8:40 AM, Ryan Connolly ryn...@gmail.com wrote:
It looks
Hi!
The short answer is: why not simply call git-add [files], git-commit, git-push ?
If you use SVN you also wouldn't use mvn scm:add, isn't?
The long answer is: I honestly have no clue why this happens :)
I get the fileSet.getFileList() in the executeAddCommand and simply add all the
files
Hello experts,
how do you set up the process if you use RELEASE for a dependency in a
POM, and work with VCS branches ? What is your best practice? Probably a
branch will have to adress another, older version of an artifact, actually
it has to adress a stable, tagged version. What happens if on
Hi,
Is there a way to create team project set (*.psf) file from pom when
executing mvn eclipse:eclipse?
Thanks,
Vladimir
-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail:
I'm using maven2 for dependency management. I have one project that contains
some java files and some jsp files and another project, a web project, that
Assuming both projects are using War packaging, you would simply use
War Overlays:
Hi
I have pom which calls ant build file,
ant build file has some echo statements
After upgrading from 1.2 to 1.3 ant output to console is not visible anymore
and also end message from maven about successful build are also gone.
on command line looks like script is simply terminated.
At the
Try these two links -
http://maven.apache.org/plugins/maven-war-plugin/examples/skinny-wars.html
http://docs.codehaus.org/display/MAVENUSER/Solving+the+Skinny+Wars+problem
-Kyle
On Tue, Apr 21, 2009 at 11:39 PM, RaviPotnuru ravi_mai...@yahoo.co.inwrote:
I have an EAR project for which the
Is there any good samples out there showing how to share properties
between multiple modules?
I.e:
Parent POM
Module1
Module2
Basically both module share common database connection properties so
instead of filtering in both, I would like to filter on the parent and
propagate to the
I read it fast so maybe I missed something but I don't think I would create
modules with only tests in the hopes you will move the source there
someday. Generally speaking the maven way would be to refactor out the
source and the tests into modules and then add the new dependencies as you
go. I
You can set any number of properties in the parent, that all the modules
inherit.
properties
prop1value/prop1
prop2value/prop2
/properties
On Wed, Apr 22, 2009 at 9:20 AM, Anastasios Angelidis
voo...@videotron.cawrote:
Is there any good samples out there showing how to share
And each individual module should have filtering on right?
David Hoffer wrote:
You can set any number of properties in the parent, that all the modules
inherit.
properties
prop1value/prop1
prop2value/prop2
/properties
On Wed, Apr 22, 2009 at 9:20 AM, Anastasios Angelidis
And each individual module should have filtering on right?
If you want to share them, what would you be filtering out?
-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail:
Sometime we build the entire project sometimes just individual modules.
Each module has it's own filters right now.
Basically if the parent filter exists then use that one. If only
building an individual module then use it's filter.
Grant Rettke wrote:
And each individual module should
2009/4/22 Michael Hüttermann mich...@huettermann.net
Hello experts,
how do you set up the process if you use RELEASE for a dependency in a
POM, and work with VCS branches ?
you stop using RELEASE for a dependency.
RELEASE corresponds to the last released version... so if you release, in
If anything I see problems in untangling the rats nest of dependencies
between code and tests if you don't just pull each one out one by one.
Since the tests will initially have the entire dependency tree available,
you could have a situation that tests fail to compile as you move the main
code
Unfortunately version ranges have so many bugs i don't find them useful
either. The problem with version ranges is that they will, in most cases,
include snapshots although that's both not intended and violates the version
range spec.
-Dave
On Wed, Apr 22, 2009 at 10:05 AM, Stephen Connolly
If anything I see problems in untangling the rats nest of dependencies
between code and tests if you don't just pull each one out one by one.
Since the tests will initially have the entire dependency tree available,
you could have a situation that tests fail to compile as you move the main
code
A
you want to use the value from the parent if the parent is in the current
reactor but if the parent is not in the current reactor, you want to use the
value from the child?
Is that what you are trying to do?
-Stephen
2009/4/22 Anastasios Angelidis voo...@videotron.ca
Sometime we build
The Mojo team is pleased to announce the first beta-release of Sonar maven
plugin.
This plugin allows to analyse sources and extract measures to Sonar, an
open-source platform to manage code quality.
See http://mojo.codehaus.org/sonar-maven-plugin for details.
Have fun
ok, I see, thanks! There is another concept using a generic version:
snapshots. What do you do with your SNAPSHOTs while branching then? Do you
go through all your POMs and dependencies replacing the snapshot token
with the real snapshot version including timestamp? You can say ok, I
will never
Which is where using properties and the versions-maven-plugin comes to the
rescue
project
...
dependencies
...
dependency
groupIdcom.foobar/groupId
artifactIdfoobar-core/artifactId
version${foobar-version}/version
/dependency
dependency
groupIdcom.foobar/groupId
versions:lock-snapshots
and then
versions:unlock-snapshots
to turn them back to normal before reintegrating your branch
2009/4/22 Michael Hüttermann mich...@huettermann.net
ok, I see, thanks! There is another concept using a generic version:
snapshots. What do you do with your SNAPSHOTs
We use snapshot for all versions while developing then when release time
comes we release (maven release plugin) each project, starting at the lowest
dependency and work our way up to the top. The release plugin will
automatically update each project to the next snapshot version, as well as
SCM
I should point out that I never use timestamp snapshots... but then we build
everything locally, and our CI server does not deploy snapshots... we had
too many issues with both random snapshot updates, and non-full builds
2009/4/22 Stephen Connolly stephen.alan.conno...@gmail.com
I think (actually I hope) he's talking about between releases.
trunk might be moving rapidly, so you fork a branch to work on a feature...
you don't want the changes to the artifacts from trunk screwing with your
build until you are ready to merge the branch back to trunk...
If he's got some
Ahhh,
A plugin to fix version range problems, I'll have to ckeck this out.
-Dave
On Wed, Apr 22, 2009 at 10:41 AM, Stephen Connolly
stephen.alan.conno...@gmail.com wrote:
Which is where using properties and the versions-maven-plugin comes to the
rescue
project
...
dependencies
...
2009/4/22 David Hoffer dhoff...@gmail.com
Ahhh,
A plugin to fix version range problems, I'll have to ckeck this out.
-Dave
On Wed, Apr 22, 2009 at 10:41 AM, Stephen Connolly
stephen.alan.conno...@gmail.com wrote:
2009/4/22 David Hoffer dhoff...@gmail.com
On Wed, Apr 22, 2009 at
starting at lowest dependencies and work the way ... having a pretty big
build system this sounds like a nightmare. Just only using the maven
release plugin on the top level isn't enough right ?!
Michael
We use snapshot for all versions while developing then when release time
comes we
I know this seems like a strange request, but what is the best way to convert a
Maven 2 project to Maven 1? Our development team was going to start to move to
Maven 2, but the plans have changed. Unfortunately, I've already built all of
my code using Maven 2. I need to know how to convert my
I guess we need to separate 3rd party dependencies and internal
dependencies.
In general you do not want to depend on a -SNAPSHOT version of a third party
dependency...
for example in between releases, there is no way I'd switch from
log4j-1.2.15 to log4j-1.2.16-SNAPSHOT ___unless___ there was a
Sorry, I might not be clear on the big problem you are trying to solve. The
release plugin works for us. Its used for each dependency you need to
release. We try to limit snapshot usage overall, that's just for things a
project is actively changing, else use a released version.
The 'biggest'
It depends...
if your build is reliable and never fails... if all your components always
have the same version number... if all your modules are in the same tree...
then yes the the release plugin will sort it out for you.
however, if you have a long flakey build (we have one that is about 4
2009/4/22 David Hoffer dhoff...@gmail.com
Sorry, I might not be clear on the big problem you are trying to solve.
The
release plugin works for us. Its used for each dependency you need to
release. We try to limit snapshot usage overall, that's just for things a
project is actively
Bash the manager over the head until he changes his mind
;-)
-Stephen
2009/4/22 Michael K. Craghead mcragh...@yahoo.com
I know this seems like a strange request, but what is the best way to
convert a Maven 2 project to Maven 1? Our development team was going to
start to move to Maven 2, but
Yes, just updating the pom to remove the manual parts is a great step
forward.
-Dave
On Wed, Apr 22, 2009 at 11:35 AM, Stephen Connolly
stephen.alan.conno...@gmail.com wrote:
2009/4/22 David Hoffer dhoff...@gmail.com
Sorry, I might not be clear on the big problem you are trying to solve.
Do you know you will be the latest one on this list to use maven 1 :p
2009/4/22 Stephen Connolly stephen.alan.conno...@gmail.com
Bash the manager over the head until he changes his mind
;-)
-Stephen
2009/4/22 Michael K. Craghead mcragh...@yahoo.com
I know this seems like a strange
And has the manger mandated all code shall be written in C? Strange indeed.
-Dave
On Wed, Apr 22, 2009 at 11:37 AM, Stephen Connolly
stephen.alan.conno...@gmail.com wrote:
Bash the manager over the head until he changes his mind
;-)
-Stephen
2009/4/22 Michael K. Craghead
Unfortunately that won't work this time. Our effort is just a very small part
of a much larger project. I was looking forward to using 2 and had gotten use
to m2eclipse.
Michael K. Craghead
From: Stephen Connolly stephen.alan.conno...@gmail.com
To: Maven
I'm sure, but stillI don't have a choice.
Michael K. Craghead
From: nicolas de loof nicolas.del...@gmail.com
To: Maven Users List users@maven.apache.org
Sent: Wednesday, April 22, 2009 1:40:02 PM
Subject: Re: Converting to Maven 1.x
Do you know you will
It hasn't gone that far...So should I to assume from the responses that there
is no good or easy way to convert to Maven 1?
Michael K. Craghead
From: David Hoffer dhoff...@gmail.com
To: Maven Users List users@maven.apache.org
Sent: Wednesday, April 22, 2009
Never used m1, no idea.
-Dave
On Wed, Apr 22, 2009 at 11:48 AM, Michael K. Craghead
mcragh...@yahoo.comwrote:
It hasn't gone that far...So should I to assume from the responses that
there is no good or easy way to convert to Maven 1?
Michael K. Craghead
why not just use an ant script to call m2
that way your build is ok, and m1 can be used to build everything
(every problem can be solved by adding a layer of indirection)
Sent from my [rhymes with myPod] ;-)
On 22 Apr 2009, at 18:49, David Hoffer dhoff...@gmail.com wrote:
Never used m1,
Besides starting from scratch? No. Maven 1.x is dead for all intents and
purposes.
Michael K. Craghead wrote:
It hasn't gone that far...So should I to assume from the responses that there
is no good or easy way to convert to Maven 1?
Michael K. Craghead
Hi David and Stephen,
Thank you for the feedback!
Modules should have their tests with them, that is the ideal lifecycle
and nothing would add value in the path that I was wondering.
I believe that my train of though largely reflected a lack of
internalization of the Maven way of doing things.
You should explain to your manager the costs incurred for using Maven
1.x will be higher because it's harder for our community to support
Maven 1.x at this point. There might be a few committers left here who
maintain Maven 1.x projects but I would imagine the interest is pretty
low here
Hi,
By default, we need to exclude some classes from inclusion in the JAR
file. It looks like in jar:jar I can use the excludes property to
specify this.
The thing is that, sometimes we do want to include these classes. I am
wondering what is the best way to allow for condition inclusion of
put the exclusion in a profile
Sent from my [rhymes with myPod] ;-)
On 22 Apr 2009, at 20:17, Grant Rettke gret...@acm.org wrote:
Hi,
By default, we need to exclude some classes from inclusion in the JAR
file. It looks like in jar:jar I can use the excludes property to
specify this.
The
On Wed, Apr 22, 2009 at 2:21 PM, Stephen Connolly
stephen.alan.conno...@gmail.com wrote:
put the exclusion in a profile
Thanks.
-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail:
The Maven team is pleased to announce the release of the Maven Source Plugin,
version 2.1
This plugin is used to create jar of the project source files.
http://maven.apache.org/plugins/maven-source-plugin/
You should specify the version in your project's plugin configuration:
plugin
Hi ,
I added maven ant run plugin to my project POM.xml. Then I ran mvn clean
install antrun:run.
I do not see the javadoc target getting generated. The plugin is not working
as expected. Any ideas ?
My project has various modules inside it. Following change was made in
project\pom.xml
bind the execution to the pre-site phase
Sent from my [rhymes with myPod] ;-)
On 22 Apr 2009, at 22:40, huser mpinj...@atxg.com wrote:
Hi ,
I added maven ant run plugin to my project POM.xml. Then I ran mvn
clean
install antrun:run.
I do not see the javadoc target getting generated. The
I guess if that's what you call them lol
So yes if the .properties file is in the parent then use that one. If
it's in the child module use the child one.
Stephen Connolly wrote:
A
you want to use the value from the parent if the parent is in the current
reactor but if the parent is
hmmm
I suspect that what you'd need is profiles
you could activate a profilein the child if the file is present
On 22/04/2009, Anastasios Angelidis voo...@videotron.ca wrote:
I guess if that's what you call them lol
So yes if the .properties file is in the parent then use that one. If
it's
The Maven Findbugs team would like to announce the release of the Maven
Findbugs Plugin version 2.0.1
This plugin allows the developer to run Findbugs analysis against a
Maven project and produce site output in HTML to match other site
reports. There are options to produce other XML outputs
On Wed, Apr 22, 2009 at 11:20 PM, Vladimir Blagojevic
vblag...@redhat.com wrote:
Hi,
Is there a way to create team project set (*.psf) file from pom when
executing mvn eclipse:eclipse?
What are these files used for?
I've never heard of them.
I think the short answer is that it doesn't at the
It allows one to group related projects in eclipse. So, theoretically,
after creating all projects from pom files in eclipse:eclipse can create
psf file. Users would them import all these projects in workspace by
selecting Import-Team Project Set and selecting the psf file.
Should be very
hmmm, maybe I should reformulate in something simpler.
Hope someone that understand source and javadoc plugins is gonna pity
me:wistle:
Basically, I expect from both source and javadoc plugin, to create the
source and javadoc jars.
Then, when invoking install or deploy, I expect all artifacts,
Short answer: because maven does not guarantee the execution order
within a phase.
Long answer:
maven-install-plugin:install installs all the artifacts that are
attached to the current module in the current build reactor into the
local repository.
maven-javadoc-plugin:jar creates a jar of the
75 matches
Mail list logo