Is it possible to write something from inside the test to surefire-reports/MyClass.txt ? Any kind of logger etc ? There is a Reporter in TestNG:
Reporter.log("Something here");
and the message appears under test method in report. Is there something similiar in JUnit
...
I'm adding Google App Engine, Spring and Tiles2 to same project, for some reason Apache Maven gives this error.
Missing artifact org.apache.commons:com.springsource.org.apache.commons.collections:jar:3.2.1:compile
here is my pom.xml where i include dependency:
<dependency>
<groupId>org.apache.commons</groupId>
<ar...
I'm making Google App Engine project with SpringSource Tool Suite. I made project without maven and added libraries to lib folder and I got Spring Framework work perfectly. But the I tried to make project that uses Maven, adn I when I tried to run my app on development server it cannot find any classes.
So what should I do, so that my d...
In my project , there is a spring XML config that utilizes ehcache to cache method returns.
xml snippet :
http://www.springmodules.org/schema/ehcache http://www.springmodules.org/schema/cache/springmodules-ehcache.xsd
<ehcache:config configLocation="classpath:ehcache.xml"/>
<ehcache:proxy id="explainRetriever" refId="explainR...
C:\source\myproject>mvn jetty:run
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building AppFuse Spring MVC Application
[INFO] task-segment: [jetty:run]
[INFO] ------------------------------------------------------------------------
[INFO] Preparing jetty:run
[WA...
I have a maven-managed project with some modules.
One module contains some native codes inside "src/main/resources/native" directory.
Second module packages all related modules to a WAR file.
Here comes the question : How to copy the "native/" directory (and its sub-directories) in first module to WEB-INF/native directory in the second ...
I am running a Maven (2) release build with with: mvn -f release.xml clean deploy
and want to get the currently running pom file name (release.xml) into a property or mojo.
Is it possible?
...
Hi,
since I've inserted the option <lineEnding>unix</lineEnding> into my fileSets and files in my Maven assembly plugin configuration, strange files are placed in my tar.
They look as following:
ignore.me.1499711160.filtered.903528596.formatted
run.sh.2124782621.filtered.1130667884.formatted
Do you know why this occurrs?
...
I am quite frustrated with sbt and pk11/steps
(Why are these things never work out of the box for me?)
I am just trying to run "jetty-run", but i got so many dependency errors, it's not fun anymore.
I am stuck with unresolved dependencies for sjson 0.3
Does anyone know which mvn repo can I get sjson 0.3 from?
...
I want to find a maven native (i.e. without calling external programs) to inject the svn revision in the war manifest.
Does anybody know a way to do that?
I found mention to how to add the subversion revision to manifests in jar files but not with war files.
I searched SO but could not find this issue specifically.
...
Can anyone explain me if the version is specified as auto as mentioned below for the dependencies
<version>auto</version>
how does it get resolved to the latest from the maven repository?
I see that some file when mvn exectutes an temporary file called auto-pom.xml is generated where all the auto is replaced with proper latest revis...
Is there a way to specify the artifact version outside of the POM file?
I have 2 CI projects that build an artifact. One builds a "stable" development version from a 'develop' branch and the other builds an unstable version which is the result of merging all active feature branches into the develop branch. I want the stable version to ...
I'm getting ready to deploy the first release of our software, version 1.0. Once it's out to our customer, inevitably, some bugs will be found. When I fix those bugs though, I'm not sure what "best practice" is for versioning it. When I release the fixes, would that be an entirely new version (in maven), such as 1.01 (or whatever the inc...
I have a maven project that converts text files of a specific format to another format.
For testing I have put in src/test/resources a large amount of test files.
I also have another project that uses the first one to do the conversion and then do some extra stuff on the output format. I also want to test this project against the same ...
I have two maven projects:
project-api
project-impl
project-impl's POM specifies a dependency on project-api. The top level aggregation pom lists modules project-api and project-impl.
If I run compile at top level, the dependencies resolves correctly. If I run compile at project-impl, then it can't find dependency project-api. ...
I've seen some people use the maven-sql-plugin to do this. But it seems like a task that is better suited for DBUnit....perhaps at the beginning of an entire test suite.
What's the best practice here?
...
I have a maven-managed project with some modules (with jar package) , each module contains its "persistence.xml" in its META-INF directory.
Another module take responsibilities to package these modules into a war file . But I find no way to "combine" these "persistence.xml" into one file ...
Is it possible ?
Thanks in advanced.
...
I want to use Guice 2 with Wicket 1.4. There is a "wicket-guice" package, which uses Guice 1. Can someone give me an example how to configure Wicket to use Guice 2 for injection (with Maven).
As you can see blow, I've found a solution, but I wonder, if it would be better to use Guice Servlets and register the whole Wicket Application as...
Hi,
I'm developing a Maven plugin that will have provide 5 goals. You can either execute goals 1-4 individually, or execute goal5, which will execute goals 1-4 in sequence. I've been looking for a way to reuse (i.e. invoke) one Maven goal from within another, but haven't found it yet.
Of course, I could just have goalX delegate to Clas...
I'm using Maven on the command line, and my build takes a while to complete (1-2min).
I'm looking for a possibility to hook into the END of the build and trigger a specific command (start a program by ant, etc.) when the build is finished - dependent to the outcome of my build (Successful/Failed).
My goal is that my computer just plays...