Hi Olivier,
Thanks for the advice. But I fixed the issue. I changed the doctype from:
!DOCTYPE log4j:configuration SYSTEM
quot;org/apache/log4j/xml/log4j.dtdquot;
to:
!DOCTYPE log4j:configuration PUBLIC quot;-//APACHE//DTD LOG4J
1.2//ENquot;
Hello,
When I run the command: mvn tomcat:run I get the following issue in the
console output:
2013-05-15 10:59:02,610 ERROR [ContextLoader] Context initialization failed
org.springframework.beans.factory.parsing.BeanDefinitionParsingException:
Configuration problem: Failed to import bean
Thanks Baptiste, I got it. Also, my initial post was a bit inaccurate as it
lacked the outputDirectorytarget/generated-sources/outputDirectory
element.
The following plugin
plugin
groupIdcom.mysema.maven/groupId
artifactIdmaven-apt-plugin/artifactId
Hello,
Yes, but then my source directory is not found, because it sits in the core/
child module as I explained in my original post.
Kind Regards,
Stephane
De : Baptiste MATHUS [via Maven] ml-node+s40175n575438...@n5.nabble.com
À : Stephane-3 mittiprove
I'm trying to use a plugin that should generate some source code.
But when I run the Maven build with the mvn generate-sources command, it
gives the following error:
[ERROR] Failed to execute goal
com.mysema.maven:maven-apt-plugin:1.0.4:process (default) on project
learnintouch: basedir
Thank you Andreas ! It solved the issue.
--
View this message in context:
http://maven.40175.n5.nabble.com/Multiple-build-arguments-tp5750700p5751511.html
Sent from the Maven - Users mailing list archive at Nabble.com.
-
To
Hello,
I have a pom.xml file with several profiles, one for MySql, one for H2, one
for HSQLDB and one for Oracle XE.
And I run a build, for example against MySql, with the command:
mvn clean install -Pmysql-db
Or against the Oracle XE with the command:
mvn clean install -Poracle-db
Now, all
In each profile I have the test source directory being specified:
profile
idmysql-db/id
properties
test.source.dirsrc/integration/java/test.source.dir
/properties
which contains the abstract test class loading the Hibernate or the JPA2
configuration file:
Hi Baptiste,
Thanks for that, I tried it, but got stuck in syntax error..
You'd have some example with the syntax to use ?
Kind Regards,
--
View this message in context:
http://maven.40175.n5.nabble.com/Multiple-build-arguments-tp5750700p5750816.html
Sent from the Maven - Users mailing
Hello,
Thanks for the input. But maybe my original post was not so clear. I already
have four profiles in my pom file. So if I factor in the choice between
hibernate and jpa I'll end up with eight profiles. This is why I posted here
asking for another way to gi.
Kind Regards,
--
View this
Hello,
What do you mean with to sub in another data-source ?
Also can you elaborate on how can someone messes up my classpath ?
What do you mean with to toss in a new injector ?
Kind Regards,
--
View this message in context:
Hi,
I'm trying to run a test against an Akka demo project but no test is
executed.
The whole project is here:
akka-pi.tar.gz
http://maven.40175.n5.nabble.com/file/n5742904/akka-pi.tar.gz
And the console output of the Maven build in debug mode:
ajeter.txt
Hi,
I have a build with a Maven profile and I can run in as a Run configuration
from within STS, the Spring Source Tool Suite Eclipse version.
I can also run it from the command line with the command:
mvn clean install -Pmysql-test -Dtest=NavbarLanguageDaoTest
But when I want to run it as a
Thanks for your sharing, I have posted on the Hibernate forum,
https://forum.hibernate.org/viewtopic.php?f=1t=1024833 Thanks for the
interest.
--
View this message in context:
Lucky you, think twice before upgrading that Oracle server :-)
--
View this message in context:
http://maven.40175.n5.nabble.com/Neater-way-to-include-exclude-DAO-tests-tp110827p5732983.html
Sent from the Maven - Users mailing list archive at Nabble.com.
Hi Samuli,
Yes, it's probably more of a Spring configuration question than a Maven one.
What I would like to avoid is having to create lots of DAO configuration
beans for nothing.
My aim is to create a DAO configuration bean and inject it only when there
is a requirement for a database server
Yes, it should be the same method signature, but with an implementation that
is specific to each database server.
I created another spring-hibernate-custom-dao.xml file in a
src/main/resources/oracle directory listed in the Maven oracle-test profile,
which contains the custom DAO bean definition:
My mistake... The custom DAO bean implementation class was missing the
implements NavbarLanguageCustomDao statement. I added it. No more exception
any more !
--
View this message in context:
Here is how I'm using the injected custom DAO bean method:
public ListNavbarLanguage findWithNavbar(Navbar navbar) {
if (navbarLanguageCustomDao != null) {
return navbarLanguageCustomDao.findWithNavbar(navbar);
} else {
Hi Dennis,
Thanks for the feedback. I'm impressed by the fact that you succeeded in not
using any different sql syntax for the different database servers out there.
I'm faced with the ordering by nulls first on MySql vs nulls last on
Oracle issue on resorted to a specific DAO method for Oracle
Hello Dennis,
I'm interested in how you set up your multi database servers with syntax
specifics project.
Could you elaborate on that ?
I have a MySql based project and am now trying to port it on Oracle but some
sql statements need specific syntax.
It would be nice to inject some Oracle
Hi,
I have a Spring Hibernate project with a DAO coded against a MySql database.
Most of the DAO methods would run on HSQLDB and on Oracle, except for some
that contain database server specific syntax.
I already use some Maven profiles to filter the database server data source
specific
Hi,
I have a Maven build that hangs and I wonder what to do to get some feedback
like a message or stack trace or dump..
I'm stuck trying to run some integration tests
http://forum.springsource.org/showthread.php?130859-Maven-build-hangs-on-simple-Roo-scriptp=426888posted=1#post426888
Thanks
Hello,
How can I find out if it is CPU or OI bound ?
It hangs before the very first test.
The test is an integration test, connecting to a MySql database schema.
For now my test is very simple:
@RooIntegrationTest(entity = Address.class)
public class AddressIntegrationTest {
@Before
I don't know what it is I was doing at the time, but I just gave a new fresh
look at the issue.
And this time it worked flawlessly the way I wanted.
I simply cut and pasted the following dependencies from the parent pom to
the child pom
dependency
groupIdmysql/groupId
So I removed the file spring-smtp-appender.xml
Then I added a debug property:
as in:
appender name=mailAppender class=org.apache.log4j.net.SMTPAppender
I also added the port property:
When I then ran the build I could see the
Hi Wayne,
In fact it was a strange java behavior.
After rebooting my pc Lenovo X60 with Linux Mint 12 the build worked fine.
The mails were sent containing the exceptions.
The issue is closed.
Thanks.
--
View this message in context:
It now works fine.
I was having a wrong path in the source dir property.
After chaging it to:
source${basedir}/generated/cxf/source
it now works as expected.
plugin
groupIdorg.codehaus.mojo/groupId
Hello,
Yes, there are lots of source files in this generated directory.
They were generated with the command wsdl2java
--
View this message in context:
http://maven.40175.n5.nabble.com/Added-source-directory-still-allows-for-compile-errors-tp5501630p5536890.html
Sent from the Maven - Users
For the record, and for those who might get stuck into it again, possibly
including me :-) here is the solution to the issue I had.
My project pom.xml file contained the element dependencyManagement instead
of the element dependencies as I had copied the project structure from
another one.
And
Sorry for the late answer, I had not seen your question.
I now saw it because the exact same issue showed up again a year later when
running the build on a new computer.
I had forgotten again to install this settings.xml file.
So I just copied it again in the .m2/ directory and it now works
I just found out what in the settings.xml file prevents this issue.
It is the directive:
activation
activeByDefaulttrue/activeByDefault
/activation
that makes the issue go away.
Removing this directive from the settings.xml file triggers the exception.
I wonder why..
--
Hi,
In my log4j.xml file if I have the following line:
appender-ref ref=mailAppender /
as in:
root
appender-ref ref=mailAppender /
/root
with the following appender:
appender name=mailAppender class=org.apache.log4j.net.SMTPAppender
Hi Mirko,
Correct, it's an Eclipse plugin, not a Maven one, I should have been more
careful in my naming it.
The question I still have though is: should I run any goal, like mvn
eclipse:m2eclipse for example, before going to Eclipse and doing a
dependency update ?
Thanks !
Stephane
--
View
I am using the m2e Maven plugin for Eclipse.
And so I guess I cannot run the goal mvn eclipse:eclipse but should run the
goal mvn eclipse:m2eclipse
As I was running Maven 2.2.1 and m2e requires Maven 2.4 I updated Maven.
I could not find any 2.4 version on the download website though.
So I
You were right. The class was not imported.
I add the statement:
import org.springframework.context.support.ClassPathXmlApplicationContext;
and the compilation passed fine.
What miss led me was that, under Eclipse, the maven dependencies for Spring
are not suggested.
Indeed, I installed the
Hello Mirko,
Thanks for your comment, but ùi think that it is what I already have.
Here is my current code...
In the parent pom.xml file:
dependencyManagement
dependencies
dependency
groupIdjunit/groupId
artifactIdjunit/artifactId
version4.4/version
Hi Wayne,
Sorry I missed the post update..
So, to answer your question, what am I trying to achieve here ?
I have this project which originally has one child module, called the core
module.
This core module takes care of the Dao layer.
And the setup for the dependencies are inherited from the
Sorry, I should have said right from the start that yes indeed I fisrt moved
(cut and pasted) the profile from the parent pom to the core child one.
I'm using profiles to test either against the live HSQL database, or against
a MySQL one.
The mysql-test profile is to test the dao layer, layer
Sorry Anders, I didn't really understand your message goal.. Do you want me
to send some pasted content ?
--
View this message in context:
http://maven.40175.n5.nabble.com/Multi-modules-and-profiles-tp4732786p4733452.html
Sent from the Maven - Users mailing list archive at Nabble.com.
Hello,
I have a maven project with different profiles, and I would like it to have
several modules.
One core module would take care of the Dao and Service layer, while
another view module would take care of the Presentation layer.
I have a working set of pom.xml files for the parent project and
mistake..
Kind Regards,
Stephane
De : Wayne Fay [via Maven] ml-node+3301286-284534167-63...@n5.nabble.com
À : Stephane-3 mittiprove...@yahoo.se
Envoyé le : Sam 11 décembre 2010, 7h 12min 46s
Objet : Re: Re : A classpath issue ?
And, again on the iMac, if this time
Hi,
I have a maven build that is doing fine on my old linux box.
Trying now to run it in the new iMac environment, I get an issue with a
spring xml file not being found.
It feels like the classpath is not correctly set.
The pom.xml file is:
project xmlns=http://maven.apache.org/POM/4.0.0;
The file does exist in the source directory:
stephane:learnintouch$ ll core/src/main/resources/
-rwxr-xr-x 1 stephane staff 607 9 déc 17:34 spring-data-source.xml
But it is nowhere to be found in the target directory:
stephane:learnintouch$ll core/target/classes/
drwxr-xr-x 3 stephane
I'm running the following version of maven:
stephane:learnintouch/$ mvn -version
Apache Maven 2.2.1 (r801777; 2009-08-06 21:16:01+0200)
Java version: 1.6.0_22
Java home: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
Default locale: fr_FR, platform encoding: MacRoman
OS name:
[via Maven] ml-node+3301035-833614543-63...@n5.nabble.com
À : Stephane-3 mittiprove...@yahoo.se
Envoyé le : Ven 10 décembre 2010, 22h 55min 14s
Objet : Re: A classpath issue ?
Hmm, I now see that you say it works on Linux. Maybe the resources section
outside the profiles isn't being replaced
.
De : Anders Hammar [via Maven] ml-node+3301035-833614543-63...@n5.nabble.com
À : Stephane-3 mittiprove...@yahoo.se
Envoyé le : Ven 10 décembre 2010, 22h 55min 14s
Objet : Re: A classpath issue ?
Hmm, I now see that you say it works on Linux. Maybe the resources section
outside
with the specified profile replacing the standard resources directory.
Stranges this is happening on this OSX maven..
De : Anders Hammar [via Maven] ml-node+3301035-833614543-63...@n5.nabble.com
À : Stephane-3 mittiprove...@yahoo.se
Envoyé le : Ven 10
Hello,
I get an unresolved dependency with Selenium.
Maven is looking for it in the wrong repository I think..
[INFO] [resources:resources {execution: default-resources}]
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered
resources, i.e. build is platform dependent!
[INFO]
49 matches
Mail list logo