On Wed, Apr 22, 2009 at 7:21 PM, Michael K. Craghead
wrote:
> 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 bu
Since nobody answered my question I'll try to explain why I think this is a
problem. I use profiles and filters to adjust e.g. persistence.xml files to a
given environment, e.g. dev, staging, prd. Because the persistence.xml file is
part of the installed artifact I use classifiers to distinguish
Hi there,
I have a large multi module project which is working well.
Now i'm trying to enhance this with a things which is in relationship
with the database...
Ok i decided to take a look at the sql-maven-plugin to execute some SQL
statements before an integration test is run (simply delete t
You are missing a space in your sql query after the *.
-ketil
On Thu, Apr 23, 2009 at 10:47 AM, Karl Heinz Marbaise wrote:
> Hi there,
>
> I have a large multi module project which is working well.
> Now i'm trying to enhance this with a things which is in relationship with
> the database...
>
>
And table is a reserved word in sql, so you should insert your real
table name there.
-ketil
On Thu, Apr 23, 2009 at 10:47 AM, Karl Heinz Marbaise wrote:
> Hi there,
>
> I have a large multi module project which is working well.
> Now i'm trying to enhance this with a things which is in relation
Hi,
You are missing a space in your sql query after the *.
I changed it..."SELECT * FROM table", but the reaction was the same and
i excepted nothing else, cause the syntax does not require a space...
On the other hand the problem seemed to more located into the area of
the lifecycle cause th
Hi,
And table is a reserved word in sql, so you should insert your real
table name there.
Yes of course i know...in the real example here i have a real table
name, but i don't want to write real names in the post into the mailing
list...
Kind regards
Karl Heinz Marbaise
-ketil
On Thu, Apr 2
Hi,
I am working on a requirement to resolve and download the transitive closure of
a set of maven artifacts. The plan is to use a pom.xml with
"pom". That pom will contain the set of artifacts as
dependencies together with some repository definitions from where the artifacts
can be downloaded
H...
what I would do is run two executions of the jar plugin...
execution #1 generates the artifact without a classifier but excludes the
persistance.xml
execution #2 generates the artifact with the classifier and includes the
persistance.xml
That would at least work around your issue (as y
maven 1.x tests encoding problems
Hi guys!
I've broken my head with it. I can't setup UTF-8 symbols to be correctly
rendered for tests.
I see following strings at ..\target\test-reports\*
TEST-${my_project_name}.GeneralTestSuite.txt* :
...
values (142,'','BL');
(142,'?','VK');
...
H
Well, the exception raised is caused by an SQLException, and it seems
to say that you have an illegal argument in your query if my german is
not all wrong.
Caused by: java.sql.SQLException: Ungłltige Argumente in Aufruf
-ketil
On Thu, Apr 23, 2009 at 11:08 AM, Karl Heinz Marbaise wrote:
> Hi,
>
Hi,
Well, the exception raised is caused by an SQLException, and it seems
to say that you have an illegal argument in your query if my german is
not all wrong.
Caused by: java.sql.SQLException: Ungłltige Argumente in Aufruf
Correct...(Your knowledge of german is not wrong ;-))...
But now i si
Hi all, I'm having issues with the Archetype plugin.
I've made an archetype that sets up a 'skeleton' application, which can be
packaged as an OSGI module and distributed. This works fine, no problems
there (yet, and the problems that were there I have managed to solve).
The next step is to add
Hello,
I'm facing an issue mentioned in bug [1] and [2] that causes a wrong
extension in the eclipse .settings files. This problem still exists in
the 2.6 release.
I submitted a patch quite a while ago and would like to know, if there
are some plans to commit the patch or fix the problem in anothe
On Thu, Apr 23, 2009 at 4:52 PM, Alexandr Khlystov wrote:
> maven 1.x tests encoding problems
>
> Hi guys!
>
> I've broken my head with it. I can't setup UTF-8 symbols to be correctly
> rendered for tests.
>
> I see following strings at ..\target\test-reports\*
> TEST-${my_project_name}.GeneralTe
Hi Maven cracks
At a customer site there is a custom, company-wide dictionary available for
spellchecking. This dictionary is managed in an proprietary application from
where you can export it. For the webapp we're building we need to transform this
dictionary into a very simple format: a single
why my previous email is not published to the list?
--
Best regards,
Alexandr Khlystov
hello,
I have to run with one Maven command two different processes one for
prepare SQL data in java, and second to import it into mysql. I'm not
able to run it with configuration I have provide:
org.codehaus.mojo
Thomas Marti wrote:
Now all is well & nice and this script even performs sufficently given
about 1.6
million dictionary entries (~38MB). But of course it's not really the
Maven way to do things, especially because it's not portable. You need
to have some kind of Unix-like enviroment in place f
Hi,
Do you have declared servlet-api as a dependency in your pom? If yes, which
version?
Regards,
Julien
- Message d'origine
De : Alexander Vaysberg
À : Maven Users List
Envoyé le : Jeudi, 23 Avril 2009, 13h55mn 55s
Objet : M2 and Eclipse
Hi,
i have a Problem with M2Plugin in E
So any good samples anywhere?
Stephen Connolly wrote:
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 wrote:
I guess if that's what you call them lol
So yes if the .properties file is in
Each execution should have its own id.
Thus:
>
execute-javatoddl
>
>java
>
Hi,
i have a Problem with M2Plugin in Eclipse. If I generate the project
with mvn eclipse:m2eclipse then the
org.eclipse.wst.common.project.facet.core.xml has :
But, if I used the in Eclipse "Update Project Configuration" than I have:
The Problem ist jst.web version="2.5"
Forgot my previous message.
According to [1] it seems it is not based on servlet-api version but on
compiler version.
[1] : http://docs.codehaus.org/display/M2ECLIPSE/Maven+To+WTP
Julien
- Message d'origine
De : Julien HENRY
À : Maven Users List
Envoyé le : Jeudi, 23 Avril 2009,
maven embedded
2009/4/23 Todor Boev
> Hi,
> I am working on a requirement to resolve and download the transitive
> closure of a set of maven artifacts. The plan is to use a pom.xml with
> "pom". That pom will contain the set of artifacts as
> dependencies together with some repository definition
> So any good samples anywhere?
Regarding profiles? Yes. The definitive guide is a good place to start.
http://www.sonatype.com/books/maven-book/reference/profiles.html
I would recommend looking through the entire book and keep a link to it
handy ;-).
---
http://www.lmgtfy.com/?q=maven+profile+activation
2009/4/23 Anastasios Angelidis
> So any good samples anywhere?
>
>
> Stephen Connolly wrote:
>
>> 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, Ana
Hi Manos
Manos Batsis wrote:
Thomas Marti wrote:
That shouldn't be a problem, even windows can play along using cygwin.
If you really need out-of-the-box portability just patch up a custom
plugin that does the same through java code.
That's all true. But that's not really the point here...
10x
This looks promising.
You happen to know if I can use it to only download the dependencies? I don't
want to build a project because this downloads a bunch of maven plugins, which
get mixed with the dependencies :(
Stephen Connolly wrote:
maven embedded
2009/4/23 Todor Boev
Hi,
I am wo
yes, i have 2.4
Julien HENRY schrieb:
Hi,
Do you have declared servlet-api as a dependency in your pom? If yes, which
version?
Regards,
Julien
- Message d'origine
De : Alexander Vaysberg
À : Maven Users List
Envoyé le : Jeudi, 23 Avril 2009, 13h55mn 55s
Objet : M2 and Eclipse
On Thu, Apr 23, 2009 at 7:43 AM, Thomas Marti wrote:
> I was very suprised that I haven't been able to find plugins to achieve a
> few simple tasks like merging/concating files together, replacing random
> strings (that aren't properties) in resources, and finally sorting files.
Necessity is the
You now know all that I know
2009/4/23 Todor Boev
> 10x
> This looks promising.
> You happen to know if I can use it to only download the dependencies? I
> don't want to build a project because this downloads a bunch of maven
> plugins, which get mixed with the dependencies :(
>
>
> Stephen Conn
ok, and how I can it's management?
Julien HENRY schrieb:
Forgot my previous message.
According to [1] it seems it is not based on servlet-api version but on
compiler version.
[1] : http://docs.codehaus.org/display/M2ECLIPSE/Maven+To+WTP
Julien
- Message d'origine
De : Julien HENR
On Thu, Apr 23, 2009 at 10:13 PM, Thomas Marti wrote:
> Hi Manos
>
> Manos Batsis wrote:
>>
>> Thomas Marti wrote:
>> That shouldn't be a problem, even windows can play along using cygwin. If
>> you really need out-of-the-box portability just patch up a custom plugin
>> that does the same through
It seems that if in maven-compiler-plugin configuration you have
1.5 1.5 then the web version will be 2.5.
See the mapping file here:
http://svn.sonatype.org/m2eclipse/branches/raghu/org.maven.ide.eclipse.wtp.facet/src/org/maven/ide/eclipse/wtp/facet/jst.web.properties
Regards
- Message
but, if i have a project with 1.5 jdk and must using the 2.4 web server?
Julien HENRY schrieb:
It seems that if in maven-compiler-plugin configuration you have 1.5
1.5 then the web version will be 2.5.
See the mapping file here:
http://svn.sonatype.org/m2eclipse/branches/raghu/org.maven.ide.ec
Why I can't publish email to this group?? I've sent 2, and none is arrived.
--
Best regards,
Alexandr Khlystov
They're arriving it is just that GMail doesn't show them to you until
someone replies. It takes a little getting used to, but you'll
appreciate it, eventually.
-Wes
On Thu, Apr 23, 2009 at 9:37 AM, Alexandr Khlystov
wrote:
> Why I can't publish email to this group?? I've sent 2, and none is arri
I have seen this one and another from you asking the same thing...
On Thu, Apr 23, 2009 at 9:37 AM, Alexandr Khlystov
wrote:
> Why I can't publish email to this group?? I've sent 2, and none is arrived.
>
> --
>
> Best regards,
> Alexandr Khlystov
>
--
�...@n
---
Ok, got you. Thanks for reply.
Though it is strange functionality in gmail.
On Thu, Apr 23, 2009 at 8:42 PM, Wes Wannemacher wrote:
> They're arriving it is just that GMail doesn't show them to you until
> someone replies. It takes a little getting used to, but you'll
> appreciate it, eventuall
Thanks for reply, I was told few minutes later, that gmail doesn't show
unresponded letters. ( I mean I can't see my own letter from inbox )
On Thu, Apr 23, 2009 at 8:42 PM, Ryan Connolly wrote:
> I have seen this one and another from you asking the same thing...
>
> On Thu, Apr 23, 2009 at 9:37
Hi,
I had the same problem running caveat emptor in eclipse. The explanation
was touched on earlier in this thread but not identified as the reason.
The compiled classes have been placed alongside the source file folders in
Eclipse. And this means the class files cannot be loaded for the TestN
On Thu, Apr 23, 2009 at 6:52 AM, Alexandr Khlystov
wrote:
> Thanks for reply, I was told few minutes later, that gmail doesn't show
> unresponded letters. ( I mean I can't see my own letter from inbox )
Nabble.com helps if you're unsure if an email made it to the group or not...
Wayne
-
If you look in the Sent folder, they always show up there
---
Thank You…
Mick Knutson, President
BASE Logic, Inc.
Enterprise Architecture, Design, Mentoring & Agile Consulting
p. (866) BLiNC-411: (254-6241-1)
f. (415) 685-4233
Website: http://baselogic.com
Linked IN: http://linkedin.com/in/mic
Thanks, nabble.com helps.
Thanks, I saw it in the sent folder, but I wanted to be sure that it is
achieved the mail list.
On Thu, Apr 23, 2009 at 9:12 PM, Mick Knutson wrote:
> If you look in the Sent folder, they always show up there
>
>
> ---
> Thank You…
>
> Mick Knutson, President
>
> BASE
Good point. According to me, m2eclipse should rely on servlet API version
instead of Java version. Perhaps should you open a bug on m2eclipse tracker:
https://issues.sonatype.org/browse/MNGECLIPSE
Regards,
Julien
- Message d'origine
De : Alexander Vaysberg
À : Maven Users List
Env
Thanks Stan
I'm also posting this to the list...
Stan Devitt wrote:
If you use the groovy maven plugin,then the following …
code comes close to what you need.
def resultfile = new File( "result" );
if ( resultfile.exists() ) resultfile.delete();
new File( "src/main/dictionary").e
Argh, was to quick with the send button...
The two maven plugins are:
http://www.stephenduncanjr.com/projects/xpathreplacement-maven-plugin
http://code.google.com/p/maven-replacer-plugin/
But xpathreplacement-maven-plugin seems more XML-oriented and the
replacer-plugin would need a bit of impro
Hi Manos
Manos Batsis wrote:
Thomas Marti wrote:
That shouldn't be a problem, even windows can play along using cygwin.
If you really need out-of-the-box portability just patch up a custom
plugin that does the same through java code.
That's all true. But that's not really the point here.
The md5 sum of the org.codehaus.woodstox:stax2-api:3.0.1:jar is the
same as the one coming from repository.codehaus.org, but the repo1 jar
file doesn't generate the same MD5. The codehaus hosted jar *does*
generate the correct MD5 sum.
Martijn
-
> I was just very suprised that I haven't been able to find plugins to achieve
> a few simple tasks like merging/concating files together, replacing random
> strings (that aren't properties) in resources, and finally sorting files.
You're the first person who needed to do this as part of their bui
I have attached pic of (version 1.5.7) GroovyConsole running
%DOJO_HOME%\dojo-release-1.0.0\dojox\validateregexp.js
How would Maven automate this process?
Danke/Merci
Martin
__
Verzicht und Vertraulichkeitanmerkung / Note de déni et de confidentiali
I just reviewed it.Thx for your help.
Can you also provide an integration test to validate the issue ?
If you give me ne, I'll apply them on 2.7
Cheers,
Thx
On Thu, Apr 23, 2009 at 1:03 PM, Steffen Grunwald <
steffen.grunw...@gmail.com> wrote:
> Hello,
>
> I'm facing an issue mentioned in bug [1
Hi,
I added pre-site. POM looks like this:
org.apache.maven.plugins
maven-antrun-plugin
1.3
pre-site
Hi All:
I was hoping someone out there in maven-users land would have
some insight into how to manage database changes in a team environment
that utilizes a dev db, a beta db used by apps built via continuous
integration, a release candidate db, and a production db. I have
looked briefly at l
One of the nice things about maven projects is that you download them
and they just work.
Assuming the dictionary source files are already broken down by letters
of the alphabet, then the following 5 lines of code does most of it.
(Note that the sed scripts are pretty close to just a line by line
Hello all,
Does anybody know whether there is a parser in the Maven project that
parses dependency ID
(::[:]:) and returns an
Artifact object?
If yes, in which module/class can I look at the implementation?
Thanks!
-
To unsubscr
Hi
You can find an example of partial archetype in
http://svn.apache.org/repos/asf/maven/archetype/trunk/archetype-common/src/test/archetypes/partial-1.0/
You can find some unit tests using that archetype in
http://svn.apache.org/repos/asf/maven/archetype/trunk/archetype-common/src/test/java/org/
Hi there,
after a longer break i found the issue based on the suggestions of You...
${database.username}
it simply has to be changed into ${database.user} so it was simply not
using the correct propertyfor the username...
I was a little bit confused based on the stack trace...;-(
Ma
On Wed, Apr 22, 2009 at 2:03 AM, Niklas Grossmann wrote:
> Hi All,
>
> when I do a 'mvn install' and the maven jar/ejb plugin is configured to use a
> classifier e.g.
> ...
> only the .jar file gets installed in the local repository. If I don't use a
> classifier the pom gets installed alongside
with it bound to the pre-site phase it will now always run before site
just go
mvn site
and it will run your ant task for you
I suspect you are not understanding how the maven lifecycle works and
you are thinking that maven 2 is just a fancy ant (maven 1 is a fancy
ant, maven 2 is not)
-Stephe
My standard formula for dev and ci is to use an in-memory hsqldb that is
auto-seeded in an object-oriented way at start up. For updating production
databases I rely on a mixture of Hibernate update and custom code similar to
auto-seeding (in case datatypes/values need to be transformed). For the
la
The Mojo team is pleased to announce the release of the Versions Maven
Plugin, version 1.0-alpha-3.
The Versions Plugin has the following goals.
* versions:display-dependency-updates scans a project's dependencies and
produces a report of those dependencies which have newer versions available
Is there a way to set the default locale to be used in JUnit tests run by
maven-surefire-plugin? I've tried adding "-Duser.language=nn" and
"-Duser.country=NN" to the maven command issued, but is does not affect the
test runs.
The issue at hand is, ofcourse, tests failing due to formatting variati
On Thu, Apr 23, 2009 at 11:03 AM, Stan Devitt wrote:
>
> org.codehaus.groovy.maven
> gmaven-plugin
>
>
> generate-resources
>
> execute
>
>
>
Jason van Zyl wrote:
> 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
CDATA is character data
instructs the parser to leave everything inside [] alone
http://en.wikipedia.org/wiki/CDATA
Martin
__
Disclaimer and Confidentiality/Verzicht und Vertraulichkeitanmerkung / Note de
déni et de confidentialité
This message is
On Thu, Apr 23, 2009 at 4:13 PM, Martin Gainty wrote:
> CDATA is character data
> instructs the parser to leave everything inside [] alone
> http://en.wikipedia.org/wiki/CDATA
The demo code doesn't use it. Have you found that the code gets mucked with?
---
We use the carbon five plug-in: http://code.google.com/p/c5-db-migration/
http://code.google.com/p/c5-db-migration/
-- Each module stores its migration scripts in src/main/db/migrations
-- The migration is performed during process-test-resources phase. (This
will vary depending on your needs)
--
lol I know about profiles and I'm using them. I'm just trying to picture
how I would everything together...
So if I understand correctly...
I create profile called module 1
I create profile called module 2
And in the parent I activate both?
And while building individual, I activate one or the
Jeff, thanks alot for sharing this with me... at first glance it looks
like a viable solution that just may work for us... The only thing I
would be wary of in this situation would be that all of the migration
scripts would be database dependent because of the various syntaxes.
Liquibase uses XML s
Hello Arnaud,
> Can you also provide an integration test to validate the issue ?
> If you give me ne, I'll apply them on 2.7
Great. There you go. I attached the testcase to [1].
Thanks, Steffen
[1] http://jira.codehaus.org/browse/MECLIPSE-455
---
Hi, I just enabled all snapshots for plugins, and a side effect of
this was to pull down
org.apache.maven.plugins:maven-eclipse-plugin:2.7-SNAPSHOT version of
eclipse plugin.
Now, my project breaks in eclipse b/c it sets the JDK to be (I think)
the system default (which is JDK 1.5), but my maven-c
That's why we suggest locking down your plugin versions in your poms.
Then you'll have controll over which ones you get as snapshots.
See here for more info:
http://www.sonatype.com/people/2008/04/maven-209-released/
The eclipse plugin does not seem to be one that has a default in the
super pom
Hi all,
I'm having a strange problem with profiles which seems to have just
manifest itself (sadly timed with upgrading to Team City 4.5, but I
can reproduce it locally now too).
Anyway, I'm trying to build an aggregated project with a profile
turned on via the command line.
My project layout is
And getting stranger...
The trunk profile only gives properties:
trunk
true
1.2.0
1.2.0
When I change to my launchpad-tests module, and run mvn
help:effective-pom, I see these proper
Hi mraible,
I removed the aspectj-maven-plugin from my pom.xml like u said but when I
run mvn cobertura:cobertura command ,some errors occur :
[]
[INFO]
[ERROR] FATAL ERROR
[INFO]
---
Hi Brian -- I'm trying to emulate your blog:
http://www.sonatype.com/people/2008/04/how-to-share-resources-across-projects-in-maven/
for sharing resources across a multi-module project. It is a grand
trick, but one that doesn't seem to be working for me.
I have the config project setup just fine
On Fri, Apr 24, 2009 at 11:41 AM, Davis Ford
wrote:
> Hi, I just enabled all snapshots for plugins, and a side effect of
> this was to pull down
> org.apache.maven.plugins:maven-eclipse-plugin:2.7-SNAPSHOT version of
> eclipse plugin.
>
> Now, my project breaks in eclipse b/c it sets the JDK to be
My apologies Barrie...this is the con entry:
User error. Somehow my eclipse default JDK/JRE setting got switched
back to JDK 5. When I refreshed using mvn eclipse:eclipse it resets
the JDK back to default JRE_CONTAINER -- whereas only the project was
set previously on 6. Its the IDE setting t
I don't see anything obvious. Can you attach some build logs? The dep
plugin is pretty verbose about what it's doing so it should hopefully be
obvious.
On 4/23/2009 10:54 PM, Davis Ford wrote:
Hi Brian -- I'm trying to emulate your blog:
http://www.sonatype.com/people/2008/04/how-to-share-reso
I think it had something to do with my recent plugin snapshot issues.
I wiped out my local repo. Turned off plugin snapshots on my
settings.xml, and rebuilt -- and now it is working. Very nice tip,
btw!
On Thu, Apr 23, 2009 at 11:08 PM, Brian Fox wrote:
> I don't see anything obvious. Can you a
Is there a way in Maven 2.0.9 to end up with forward slashes in a
file/directory pathname on the Windows platform when filtering a property
such as ${project.parent.basedir}?
I need to supply a file URL for a Hibernate URL specified in a
persistence.xml configuraton file. The following property s
On Fri, Apr 24, 2009 at 12:37 PM, Davis Ford
wrote:
> My apologies Barrie...this is the con entry:
>
>
>
> User error. Somehow my eclipse default JDK/JRE setting got switched
> back to JDK 5. When I refreshed using mvn eclipse:eclipse it resets
> the JDK back to default JRE_CONTAINER -- whereas
Hello,
When using the maven-archetype-webapp goal, wasn´t the archetype plugin
supposed to generate src/main/Java and test/Java directories ?!?
I am using Maven 2.1.0 (r755702; 2009-03-18 16:10:27-0300)
Thank you
hi Steffen,
Thx a lot.
I'll apply it soon (I'll try this WE)
cheers
Arnaud
On Fri, Apr 24, 2009 at 2:24 AM, Steffen Grunwald <
steffen.grunw...@gmail.com> wrote:
> Hello Arnaud,
>
> > Can you also provide an integration test to validate the issue ?
> > If you give me ne, I'll apply them on
86 matches
Mail list logo