Hi all,
I want to create an artifact based on an existing project. Unfortunately
the names for the directories are a little weird (can't change them,
it's naming-convention in my company!).
I have the following directories:
project-name-app -- the POM-project
|-- project-name
-project.html
(Hint use __artifactId__)
On Tue, Oct 19, 2010 at 2:55 PM, Asmann, Roland
roland.asm...@adesso.at wrote:
Hi all,
I want to create an artifact based on an existing project. Unfortunately
the names for the directories are a little weird (can't change them,
it's naming
Hi all,
I'm having some problems with the maven-resources-plugin. I am
responsible for our CI-builds and have a Hudson set up on a Linux
environment.
Now, our developers are using Eclipse on Windows and therefore have
inadvertently configured the resources to be encoded in 'Cp1252',
instead
Martin,
Danke, aber nicht genau was ich brauch... Wie ich konvertieren kann weiß
ich schon, ich will nur das Maven schreit wenn was nicht passt, und zwar
auf beide Systeme!
Sorry, for the other readers:
Thanks, but that's not what I was looking for... I know how to convert
the encodings, I just
-resources-plugin/resources-mojo.html#encoding
http://people.apache.org/~simonetripodi/
http://www.99soft.org/
On Mon, Nov 1, 2010 at 6:03 PM, Asmann, Roland roland.asm...@adesso.at
wrote:
Hi all,
I'm having some problems with the maven-resources-plugin. I am
responsible for our CI-builds
Hi,
As I've written in another reply in this thread, I have set
'project.build.sourceEncoding', but it isn't working!
Roland
On 02-11-10 18:52, Jörg Hohwiller wrote:
Hi Roland,
On 01.11.2010 18:03, Asmann, Roland wrote:
configure Maven to already fail the build on
Windows or have
working!
Roland
On 02-11-10 18:52, Jörg Hohwiller wrote:
Hi Roland,
On 01.11.2010 18:03, Asmann, Roland wrote:
configure Maven to already fail the build on
Windows or have it configured so that it works on Linux? I want the
behavior of the two builds
toughts but after all I am clue-less.
Regards
Jörg
On 02.11.2010 19:03, Asmann, Roland wrote:
Hi,
As I've written in another reply in this thread, I have set
'project.build.sourceEncoding', but it isn't working!
Roland
On 02-11-10 18:52, Jörg Hohwiller wrote:
Hi
Ha! Indeed, the output file on Windows contains garbled characters!
Great, so I know that the output is sh*t, but how to let Maven cry out
so those darn stubborn developers finally get the point?
Roland
On 02-11-10 19:22, Jörg Schaible wrote:
Jörg Hohwiller wrote:
Hi Roland,
sorry.
in there, it will probably
say the file is correct as well, right?
So, in all, it's a nice workaround, but still not an actual solution... :-(
Roland
On 02-11-10 19:53, Jörg Schaible wrote:
Hi Roland,
Asmann, Roland wrote:
Ha! Indeed, the output file on Windows contains garbled characters
Hi all,
I'm having some problems with properties in archetypes. I read that it
is possible to have files and directories renamed with properties
(http://jira.codehaus.org/browse/ARCHETYPE-191), but this seems to be
not working on modules.
I have a certain project-structure that must be used,
When the plugin asks you if the configuration is correct, answer 'N' and
fill out all values it then requests.
If it doesn't ask this, start it with added parameter '-Dinteractive=true'
On 08.11.2010 13:28, Benjamin Dreux wrote:
Hi
I would like to create an archetype with a property file.
I
Hi all,
For one of my customers, I have to come up with a solution to have maven
completely ignore certain artifacts and/or versions.
Does anybody have any ideas on how to do this?
I was thinking about using a preant-POM and the enforcer-plugin, but as
soon as I make an update, all projects
I fully agree with you, but as the saying goes 'the customer is king'...
Ah well, I'll give it another couple of days to tinker around and if
nothing else works, I'll tell them to just enforce one of the changes.
On 17.11.2010 11:43, Antonio Petrelli wrote:
2010/11/17 Asmann, Roland
Yes, the customer in this case is a larger company that is starting to
use Maven, or at least, starting to use it correctly now.
On 17.11.2010 12:29, Antonio Petrelli wrote:
2010/11/17 Asmann, Roland roland.asm...@adesso.at:
I fully agree with you, but as the saying goes 'the customer
feature. Then they can easily block specific
artifacts, effectively forcing the developers to change their dependencies.
Otherwise they will not be able to build...very effective! :-)
/Anders
On Wed, Nov 17, 2010 at 11:15, Asmann, Roland
roland.asm...@adesso.atwrote:
Hi all
Doesn't anybody have an idea?
On 06.11.2010 19:09, Asmann, Roland wrote:
Hi all,
I'm having some problems with properties in archetypes. I read that it
is possible to have files and directories renamed with properties
(http://jira.codehaus.org/browse/ARCHETYPE-191), but this seems
Hi all,
Does anybody know in which version the support for wtp 2.x was added?
And when will support for wtp 3.x be added?
Thanks!
--
Roland Asmann
Senior Software Engineer
adesso Austria GmbH
Floridotower 26. Stock T +43 1 2198790-27
Floridsdorfer Hauptstr. 1 F +43 1
Hi,
Try something like this:
plugin
artifactIdmaven-invoker-plugin/artifactId
configuration
goals
goalclean/goal
goaleclipse:clean/goal
goaleclipse:eclipse/goal
goalinstall/goal
/goals
noLogtrue/noLog
streamLogstrue/streamLogs
properties
Oops, misread your mail... Please ignore this post!
Roland
On 07.12.2010 10:40, Asmann, Roland wrote:
Hi,
Try something like this:
plugin
artifactIdmaven-invoker-plugin/artifactId
configuration
goals
goalclean/goal
goaleclipse:clean/goal
goaleclipse:eclipse/goal
goalinstall/goal
Hi all,
I was wondering if anybody ever had this problem...
I have a customer who is running a machine with a SUN JDK and one with
an IBM JDK. Now, we've noticed there are some differences between the
two, so I thought it would be best to release their artefacts for both
JDKs... Question is,
On 07.12.2010 11:29, Stephen Connolly wrote:
On 7 December 2010 10:14, Asmann, Roland roland.asm...@adesso.at wrote:
Hi all,
I was wondering if anybody ever had this problem...
I have a customer who is running a machine with a SUN JDK and one with
an IBM JDK. Now, we've noticed
On 07.12.2010 11:29, Stephen Connolly wrote:
On 7 December 2010 10:14, Asmann, Roland roland.asm...@adesso.at wrote:
Hi all,
I was wondering if anybody ever had this problem...
I have a customer who is running a machine with a SUN JDK and one with
an IBM JDK. Now, we've noticed
On 07.12.2010 14:33, Jörg Schaible wrote:
Hi Stephen,
Stephen Connolly wrote:
On 7 December 2010 10:37, Asmann, Roland roland.asm...@adesso.at wrote:
On 07.12.2010 11:29, Stephen Connolly wrote:
On 7 December 2010 10:14, Asmann, Roland roland.asm...@adesso.at
wrote:
Hi
On 09.12.2010 11:29, Stephen Connolly wrote:
you need to add an exclusion on the dependency that is being brought in by
profile activation.
It was a mistake that profiles include the dependency section as there is
all manor of issues.
The profile gets activated based on the environment
:
On 09/12/2010 7:52 AM, Asmann, Roland wrote:
On 09.12.2010 11:29, Stephen Connolly wrote:
you need to add an exclusion on the dependency that is being
brought in
by
profile activation.
It was a mistake that profiles include thedependency section as
there
is
all
How about configuring a single job to check-out and build just one
module? Would mean that you have lots of jobs (probably one for every
module), but that way the big job wouldn't need to be triggered (don't
forget to turn of polling and the subversion-hook!).
Then you could run the big job at
Hi all,
Could someone tell me what the differences between 2.0, 2.1, 2.2 and 3.0
are? I am currently running on 2.0.9 and 2.0.10 (depending on the
project) and I was wondering if I should start migrating.
Currently I am not allowed to upgrade to 3.0 (a 2.x version is still
mandatory), but
Hi all,
I'm writing an enforcer-rule, that should check if my parent is the
LATEST version. How can I get the actual version for 'LATEST'?
Thanks!
--
Roland Asmann
Senior Software Engineer
adesso Austria GmbH
Floridotower 26. Stock T +43 1 2198790-27
Floridsdorfer Hauptstr. 1
Currently I am not using this, but I want the enforcer to check which
version 'LATEST' is and tell the user he should update to that version!
On 17-12-10 17:04, Brian Fox wrote:
Don't use RELEASE or LATEST.
On Fri, Dec 17, 2010 at 7:43 AM, Asmann, Roland
roland.asm...@adesso.at wrote:
Hi
Hi all,
I've been trying to get some projects running on my Hudson server, abd
am running into problems. I've hunted down the problem to being the
version of Maven that I use!
On my Hudson I am running both 2.0.10 (for some older projects) and
2.2.1. On both these versions I have a project
Sorry, I got the location of the directories wrong... They were last but
are now first!
On 20.12.2010 14:47, Asmann, Roland wrote:
Hi all,
I've been trying to get some projects running on my Hudson server, abd
am running into problems. I've hunted down the problem to being the
version
, Roland wrote:
Sorry, I got the location of the directories wrong... They were last but
are now first!
On 20.12.2010 14:47, Asmann, Roland wrote:
Hi all,
I've been trying to get some projects running on my Hudson server, abd
am running into problems. I've hunted down the problem to being
Hi all,
I was playing around with the resource-plugin to copy several resources
around in my project, and found a problem with the plugin.
It appears that the parameter 'includeEmptyDirs' is not always (!) being
obeyed. From what I can see, it works when I configure several resources
and do
Hi all,
I was wondering if it is possible in Maven 2.2.1 to setup 2 mirrors that
will take all my requests. I have the first one configured to take all
release-versions, the second to handle snapshots.
Now, the problem is that when I tell the first one to mirror '*', the
second mirror never
Advance Mirror Specification.
/Anders
On Wed, Feb 23, 2011 at 12:18, Asmann, Roland
roland.asm...@adesso.atwrote:
Hi all,
I was wondering if it is possible in Maven 2.2.1 to setup 2 mirrors that
will take all my requests. I have the first one configured to take all
release-versions
I haven't tried that, but what I read from the Maven-pages, it doesn't
understand wildcards like that... But I can try though...
Then again, it would only work if the repositories are actually named
like that, and I can't always influence that (3rd party!)...
Ah well, for now I'll take the
On 23.02.2011 18:40, Marc Rohlfs wrote:
I haven't tried that, but what I read from the Maven-pages, it doesn't
understand wildcards like that... But I can try though...
I thought it would work, but I am not sure - I have to admit ...
Then again, it would only work if the repositories
Hi all,
I'm writing a plug-in and currently need a list of all available
versions for a specific artifact. I've found this method:
ArtifactMetadataSource.retrieveAvailableVersions
which I thought would do this. However, this method does not give the
list of available SNAPSHOTs.
In my plug-in
Hi all,
I am currently creating several archetypes and was wondering what the
best way is to share data.
Some of my archetypes are up to 90% the same and I don't want to copy
around all the files they share. Wouldn't be a problem the first time,
but of course all updates should then be copied
Hi all,
I had this feeling that my Maven was using the wrong settings.xml file
and when running help:effective-settings, it indeed shows me the wrong
configuration.
Now, I looked in all the normal places where settings.xml files are
looked for, but I can't seem to find where Maven is seeing
Hi all,
I've been looking through Google to find a plugin to run JMeter from
Maven. It seems there are two main plugins, one of which seems to have
several branches.
Has anybody worked with any of them? If so, could you tell me which one
is the best to use? And is any of them available in a
On 18.03.2011 13:23, Jeff MAURY wrote:
On Fri, Mar 18, 2011 at 12:03 PM, Asmann, Roland
roland.asm...@adesso.at mailto:roland.asm...@adesso.at wrote:
Hi all,
I've been looking through Google to find a plugin to run JMeter from
Maven. It seems there are two main plugins, one
Hi Siegfried,
True, but if you're already on Maven, why would you want to go back to Ant?
Roland
On 18.03.2011 13:56, Siegfried Goeschl wrote:
Hi Roland,
you can always fall back to use the JMeter Ant integration
Cheers,
Siegfried Goeschl
On 18.03.11 13:38, Asmann, Roland wrote
I'd say that your Nexus is configured incorrectly/incomplete...
It is OK to mirror everything to Nexus, but then you have to make sure
that Nexus is able to retrieve *all* artifacts you need!
On 23.03.2011 18:09, Hahn, Christopher (SAN DIEGO) wrote:
Is this the problem (from the console):
IT says 'connection refused', are you sure you can currently reach your
Nexus?
On 23-03-11 19:39, Hahn, Christopher (SAN DIEGO) wrote:
???
What can make Hello World fail:
==
D:\tempmvn archetype:generate
Because that is Maven's default output, no matter if you are using nexus
or not! If you run in debug, it should (when correctly configured) show
that it is trying to download from 'central (url to your nexus here)'.
On 23-03-11 19:43, Hessick, Michael wrote:
If you are using Nexus, then why
Hi all,
I am using Maven 2.2.1 and I need to have my build run until the very
end because I am running integration tests that start and stop my JBoss.
Currently, when a test has a failure/error, the build quits and my JBoss
keeps on running. I tried adding the '-fae' parameter, but this does
your
app server before verifying. The plugin site describes this quite well.
/Anders
On Fri, Mar 25, 2011 at 15:21, Asmann, Roland
roland.asm...@adesso.atwrote:
Hi all,
I am using Maven 2.2.1 and I need to have my build run until the very
end because I am running integration
Hi all,
I am running Maven 2.2.1 and am using the resources-plugin 2.4.3 and for
some reason Maven only replaces 6 instances of my 7 variable definitions
(or better said: 30 of my 35 variables).
I tries setting the delimiter (since this was a bug in 2.4 if I remember
correctly), but this
OK, found it... It seems the bug with '@' from the 2.4 release still
isn't fixed (correctly).
I found that I have 7 '@' in my file and the variables *after* the 7th
'@' weren't replaced!
In my tries with the delimiters, I forgot to tell Maven not to use the
defaults -- this did the trick for
I found that I have 7 '@' in my file and the variables *after* the 7th
'@' weren't replaced!
To clarify: removing one or adding one worked like a charm!
--
Roland Asmann
Senior Software Engineer
adesso Austria GmbH
Floridotower 26. Stock T +43 1 2198790-27
Floridsdorfer
On 30.03.2011 18:11, Olivier Lamy wrote:
Hello,
I'm interested to have a sample project to reproduce :-).
Can you attach it to a jira issue ?
Thanks!
Here you go: http://jira.codehaus.org/browse/MRESOURCES-141
--
Roland Asmann
Senior Software Engineer
adesso Austria GmbH
Floridotower 26.
On 30.03.2011 18:28, Asmann, Roland wrote:
On 30.03.2011 18:11, Olivier Lamy wrote:
Hello,
I'm interested to have a sample project to reproduce :-).
Can you attach it to a jira issue ?
Thanks!
Here you go: http://jira.codehaus.org/browse/MRESOURCES-141
Another addition:
I re
Check the life-cycle phases and choose one that is just *before* 'package'.
On 04.04.2011 10:26, Nguyen Tien Luong wrote:
Here is the backtrace of MVN INSTALL
[INFO] [war:war]
[INFO] Packaging webapp
[INFO] Assembling webapp[webapp] in [C:\Documents and
Settings\webapp\target\webapp]
or it is the way maven doing?
Luong
From: Asmann, Roland roland.asm...@adesso.at
To: users@maven.apache.org users@maven.apache.org
Sent: Mon, 4 April, 2011 10:32:35
Subject: Re: Assembling webapp only, but not make WAR file
Check the life-cycle phases and choose one
to
generate a
new WAR file, it's painful T_T
So there is no solution for my problem then ?
Luong
From: Asmann, Roland roland.asm...@adesso.at
To: users@maven.apache.org users@maven.apache.org
Sent: Mon, 4 April, 2011 11:06:07
Subject: Re: Assembling
:x
Luong
From: Asmann, Roland roland.asm...@adesso.at
To: users@maven.apache.org users@maven.apache.org
Sent: Mon, 4 April, 2011 11:26:39
Subject: Re: Assembling webapp only, but not make WAR file
I believe you should try the war:exploded, this should do
Doesn't it create the files or are your projects not in Eclipse?
You must import the projects yourself after the build, the plugin does
*not* do this for you!
On 19.04.2011 17:14, Fernando Wermus wrote:
Hi all,
I have a pom which is a multimodule proyect. I am using maven plugin
eclipse for
Can you post your configuration (if any) and the command you issue to
run Maven?
On 19.04.2011 17:44, Fernando Wermus wrote:
What it does not create are the files for each eclipse project. Thus I
cannot make the import.
2011/4/19 Asmann, Roland roland.asm...@adesso.at
Doesn't it create
Are you sure that your scm and maven-release-plugin/tagBase are
correctly set?
On 19.04.2011 18:01, Brent Smith wrote:
Hello,
I'm running into an issue when I do a release:prepare on a multi-module
project where the tagging phase is tagging the parent of the trunk. I found
a bug report
Would it be OK if it runs after the archetype has been created? Afaik
you can't have it run automatically, but you could add the parameter
'goals' to the call 'archetype:generate' to run your mojo...
http://maven.apache.org/archetype/maven-archetype-plugin/generate-mojo.html#goals
On
That looks correct to me...
And thinking about it, tagBase can't be the reason for this, since the
tag is actually in the right place.
I'm afraid I don't know what else it could be... Maybe you could run a
release with debug-output and read something out of that? If not, you
could post it so
Hello Fernando,
You can call me 'Roland', that is my first name. ;-)
If I understand correctly, you have a POM-file on your computer and run
Maven on it. This will download/checkout/copy/... everything to your
computer.
Now, I presume that the POM you are using is *not* the one you call
Just use the character '/', it works on Windows!
On 20-04-11 21:45, Zilvinas Vilutis wrote:
Hi maven users!
I'm trying to execute a java command and pass a path to a file as an argument:
plugin
groupIdorg.codehaus.mojo/groupId
artifactIdexec-maven-plugin/artifactId
configuration
to contain / in the output, but it generates the path with \
slashes, e.g. C:\path to myproject\target\classes\orm.properties
Regards
Žilvinas Vilutis
Mobile: (+370) 652 38353
E-mail: cika...@gmail.com
On Wed, Apr 20, 2011 at 12:57 PM, Asmann, Roland
roland.asm...@adesso.at wrote
\... etc :)
Žilvinas Vilutis
Mobile: (+370) 652 38353
E-mail: cika...@gmail.com
On Wed, Apr 20, 2011 at 2:57 PM, Asmann, Roland
roland.asm...@adesso.at wrote:
What I meant was: don't use ${file.separator} and write '/' in your POM.
Or do you have a reason you need the variable
It seems gmaven might be able to help you out here:
http://maven.40175.n5.nabble.com/Exporting-Ant-properties-to-Maven-td510023.html#a510117
http://pastebin.com/XsAdbbcY
Roland
On 21.04.2011 12:14, Asmann, Roland wrote:
I see your problem now.
Would it be a problem for you to use ant to run
How about you don't let the assembly-plugin copy your resources, but
have the resources-plugin do it?
Roland
On 21.04.2011 13:31, David Delbecq wrote:
Thanks for the hint, but not an option. The bat does not only call the
jar file, it actually does some logic on parameters, call several
You might want to configure it to work around a bug though:
artifactIdmaven-resources-plugin/artifactId
configuration
delimiters
delimiter${*}/delimiter
/delimiters
useDefaultDelimitersfalse/useDefaultDelimiters
/configuration
Roland
On 21.04.2011 13:38, Asmann, Roland wrote
The way I would do it, is create a directory called
'src/main/filter-resources' (or something similar, just NOT the default
'src/main/resources'!) and then configure the resource-plugin to run
'resources:copy-resources' to eg 'target/filtered-resources'. With
filtering turned on of course. :-)
Take a look at the invoker-plugin, goal 'run' [1].
Roland
[1] http://maven.apache.org/plugins/maven-invoker-plugin/run-mojo.html
On 04.05.2011 14:56, motes motes wrote:
I have the following projects (physically separated in svn) with the
following structure:
a
|-- a.parent
|-- pom.xml
I have never used the 'setupInclude' and 'pomInclude' myself, I use
something along these lines:
plugin
artifactIdmaven-invoker-plugin/artifactId
configuration
goals
goalclean/goal
goalinstall/goal
/goals
javaHome${java.home}/javaHome
noLogtrue/noLog
Not 100% sure about this one, but you could try it with the
dependency-plugin [1]. I believe it does not allow system-dependencies
in its configuration, but judging from the sentence
The artifact version is optional. If not set, the plugin will attempt
to resolve it from the project
be there.
:-/
I think I just need to shell out to ant...
-Original Message-
From: Asmann, Roland [mailto:roland.asm...@adesso.at]
Sent: Wednesday, May 11, 2011 12:04 PM
To: Maven Users List
Subject: Re: Nested artifacts
Not 100% sure about this one, but you could try
Hi,
You could perhaps try the unpack goal... You do have to add all the
dependencies again, but that one should take the order in which the
artifacts are listed.
Roland
On 12-05-11 15:52, David Bräutigam wrote:
Hello,,
i have the following strange problem with the unpack-dependencys in my
Hi all,
I have this profile defined in a parent-POM:
profile
iddefault-code-coverage/id
activation
file
existssrc/main/java/exists
/file
/activation
/profile
Now, in several child-projects it will not be activated, because there
are no sources (WAR, EAR or simple
OK, so why isn't this one activated? It should be imho...
On 10.06.2011 15:53, Stephen Connolly wrote:
profiles are not inherited... the results of activating them in the
reactor are inherited
On 10 June 2011 14:48, Asmann, Roland roland.asm...@adesso.at wrote:
Hi all,
I have
the statement profiles are not inherited is not strictly
true. Activation with file does not work on an inherited basis.
But direct activation at the command line with -P does work, even if
the profile is defined in a parent pom.
On Fri, Jun 10, 2011 at 9:03 AM, Asmann, Roland
roland.asm...@adesso.at
.
But direct activation at the command line with -P does work, even if
the profile is defined in a parent pom.
On Fri, Jun 10, 2011 at 9:03 AM, Asmann, Roland roland.asm...@adesso.at
wrote:
OK, so why isn't this one activated? It should be imho...
On 10.06.2011 15:53, Stephen
/java does NOT exist and you
are expecting it to work in child projects where src/main/java DOES exist
?
If option 2, it will not work this way because the profile with cobertura
configuration will not be inherited in the children
On Fri, Jun 10, 2011 at 11:43 AM, Asmann, Roland
roland.asm
think that profiles are
inherited, when it is actually the effects of the profile that are
inherited.
I hope that makes sense for you
-Stephen
On 10 June 2011 15:58, Asmann, Roland roland.asm...@adesso.at wrote:
I am indeed using option 2, and I understand that the profile
influence all child-projects and I don't want to force all developers to
change much in their POMs. They are already chagrined that they have to
extend my POM, although they are starting to see the use of a common
parent...
On 10-06-11 23:01, Wendy Smoak wrote:
On Fri, Jun 10, 2011 at 10:40 AM, Asmann
You won't see that, because the profiles in a parent are *not* shown in
this list!
This threw me off on a couple of occasions as well!
On 10-06-11 23:13, David Durham wrote:
On Fri, Jun 10, 2011 at 3:37 PM, Joakim Olssonjoa...@unbound.se wrote:
Hmmm...We have a profile for packaging up our
True. Simple explanation is that I don't want the plugin to run on our
integration-tests, because they do a lot of stuff during the phase
'generate-test-resources' and 'process-test-resources'. And since these
tests don't have sources, I figured using a profile would be the easiest
way. That,
Hi all,
I configured the invoker-plugin in my POM to use the settings-file in
${maven.home}/conf/settings.xml -- which works fine for local development.
However, when running my Projects on Jenkins, I have configured the
project with a different settings-file, since the Maven on the server
I have to admit: no, not yet. I have to put a settings-file somewhere
that throws me an error, otherwise I'll never know if it works.
I'll give that a try tomorrow, and update this thread according.
Roland
On 21-06-11 19:11, Anders Hammar wrote:
Have you tried executing your Maven build
' is NOT overriding the
configuration in the POM!
So not a Jenkins issue, but one with Maven itself!
I'm running Maven 2.2.1 and am using m-invoker-p 1.5.
Any ideas/suggestions?
Roland
On 21.06.2011 19:57, Asmann, Roland wrote:
I have to admit: no, not yet. I have to put a settings-file somewhere
Hmmm... On one side it sounds very logical, on the other it doesn't...
At least it explains a couple of other issues I was having -- although
they weren't influencing my build this much.
Thanks!
On 22-06-11 21:12, Stephen Connolly wrote:
ahh. you have configured the plugin directly. to get
Hi all,
I am trying to read a pom.xml and instantiate it as a MavenProject for
testing. I am able to read it using the Xpp3Reader and then I gave the
Model to a MavenProject.
The problem now, is that most of my attributes are not set. The most
important one for me (at the moment) is the
That won't work for me, I don't want to run the whole build.
I just want to have an instantiated MavenProject and call methods on it,
not run the build.
On 26-06-11 16:45, Ansgar Konermann wrote:
Am 26.06.2011 16:07, schrieb Asmann, Roland:
I am trying to read a pom.xml and instantiate
Hi,
I am having some issues explaining to the m-eclipse-p that my project is
actually a java-project and needs to be generated with a .classpath and
java-nature.
The problem I am facing is that the project is actually of type
'maven-archetype', but I would really like to see my resources and
Hi,
I am trying to setup a project by configuring the archetype-plugin in my
POM. The problem I am running into is that I don't know how to tell the
archetype about 'groupId', 'artifactId' and 'version' for the new
project... Is there any way I can set these for the plugin?
Thanks,
--
Try configuring release:prepare to do an 'install' instead of just a
'verify'... There's (still?) a problem with releasing a WAR or EAR
package in Maven...
Roland
On 29.07.2011 15:23, Tiago António Neves wrote:
Hi all,
I’m using codehaus jboss-packaging-maven-plugin to get a sar. I’m then
Hi Karl Heinz,
Look at the configuration for the WAR-plugin, you can have it create a
separate JAR for the classes, which you can then use as a dependency.
Roland
On 23.11.2011 13:10, Karl Heinz Marbaise wrote:
Hi to all,
i have a larger structure of modules which built a
Hello Karl Heinz,
Where does it say that the sources must be in src/main/webapp? As with
all plugins, sources should be in src/main/java (like you have now).
I think you need the parameter 'attachClasses', I am not 100% sure if
'archiveClasses' is necessary as well.
I've used it before
I just tried this on an old project, and with only the
'attacheClasses'-attribute, it works just fine for me...
Might be a dumb question, but: are you using the right version of the
plugin?
Roland
On 23.11.2011 13:55, Karl Heinz Marbaise wrote:
hi,
i have added both parameters to the
Strange, that's the same version I am using...
Could you post a part of the POM and maybe some output you get? Maybe we
can see something in there...
On 23.11.2011 14:29, Karl Heinz Marbaise wrote:
Hi,
Asmann, Roland wrote
I just tried this on an old project, and with only
If you use 'attachClasses', the JAR should NOT be created in the
lib-folder, but in the target. When using 'archiveClasses' it is created
in the lib-folder.
A dependency on that JAR should be on a JAR (not the WAR) and add
classifier 'classes'.
On 23.11.2011 14:42, Karl Heinz Marbaise wrote:
Here's a small example... Check if it works for you, because it
definitely does for me...
Roland
On 23.11.2011 16:52, Karl Heinz Marbaise wrote:
Hi,
Asmann, Roland wrote
If you use 'attachClasses', the JAR should NOT be created in the
lib-folder, but in the target. When using
1 - 100 of 114 matches
Mail list logo