I have 2 completely separate projects where one depends on the other. I've very recently mavenized the main project but can mavenise the dependency if absolutely necessary.
Originally these were Netbeans projects, with the main project having several modules. What I liked is that I could declare the dependency as a dependent project. Th...
Does anyone notice that after enabling Maven dependency management in Eclipse for a project, the refactor item on the context menu of Java editor disappears for that project?
Is there a solution to that? A patch or upgrade? Or a kludge?
Further Info:
Need to further assert that the context menu on project/package explorer is unaffected...
I am trying to figure out how to aggregate my maven dependencies in a multi-module project. For example, if I have:
root pom/project1
root pom/project2
and I run mvn dependency:copy-dependencies, I end up with the dependencies in:
root pom/project1/target/dependency
root pom/project2/target/dependency
What I really want is that if...
I maintain the build process for a large (> 500,000 LOC) Java project. I've just added a Sonar analysis step to the end of the nightly builds. But it takes over three hours to execute ... This isn't a severe problem (it happens overnight), but I'd like to know if I can speed it up (so that I could run it manually during work hours if d...
I am trying to setup the assembly plugin for a large multi-module project. The goal right now is to just get all of my artifacts into a directory. Here is my descriptor:
<assembly
xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="h...
Hi all,
From my observation, the logger name assigned to plugin seems to be auto-determined by maven, which is somthing like removing -maven- or -maven-plugin in the artifact name.
Is there any way that I can declare the logger name my plugin will use? Because my plugin artifact id was something like
foo-bar-maven-hello-world
And th...
I have a nice JAR of some custom FindBugs detectors I'd like to use with the FindBugs Maven plugin. There is a way to do this with the plugin via the <pluginList> configuration parameter, but that only accepts local files, URLs, or resources.
The only way I found for doing so is to somehow copy my JAR to a local file (maybe via the Depe...
Hello,
I've been trying to get a simple skeleton app to run (and commit to the DB) using JPA, MySQL, Hibernate & Maven, however I'm having problems.
Listed below are my 2 trivial classes, my pom.xml, and my META-INF/persistence.xml
I can build the project without any problem (mvn clean install), however running it (mvn exec:java -Dexe...
We have a Nexus repository, that holds our software (surprise ...). In our IDEs, we added the repositories, so we can navigate them in a visual manner.
Problem: the IDE uses the .index folder (with it's gz file), which is currently updated every night.
What I want is: if anyone adds an artifact, the .index should be updated automatical...
Hi,
I have a maven project which library should also be an OSGi bundle with an
declarative service. I added the OSGI-INF folder with the service.xml inside
src/java/resources which will be added to the jar. But: When I start the project as equinox project, where I want to check if the service is loaded, I get the error that the OSGI-INF...
I have two projects: One "pure" maven project and another PDE project which I build with maven3/tycho.
Now I would like to use some of the bundles that I build from the PDE project (using maven 3) in the pure maven project.
My first idea was to use maven3 to deploy the bundles to a nexus server and then read them from the server with t...
Hello,
is it possible to get a logfile of the maven-build process with not using a pipe-operator? I mean the output that normally comes in console window like that:
[INFO] ------------------------------------------------------------------------
[INFO] Building base_project 01.00.000
[INFO] ----------------------------------------------...
I have an Ant project with JUnit test suite in it. There is no source code but test runs over jars in the classpath. My requirement is to write a pom.xml from the same Ant project in additional to build.xml and run the same JUnit test suites. Now when running Maven, I'm getting this...
[INFO] [surefire:test]
[INFO] Surefire report dire...
I'm modifying an existing maven2 project and I would like to create the database structure if I notice it is missing.
I sort-of know how to do this in ant, I could query the database and if the table is missing I could execute the query.
But, maven is a different thing. I found a SQL plugin to run the script, but I don't know where o...
I have a Java EE 6 Wicket application deployed with maven using IntelliJ IDEA 9.0.3 on glassfish v3.0.1. I use slf4j-log4j12-1.5.6 with slf4j-api-1.5.8 and log4j-1.2.16 for logging.
It was previously working fine when I deployed through netbeans or eclipse, however when I deploy with IntelliJ IDEA my log4j.properties file is ignored an...
I am using the maven release plugin. Problem is simple: I don't want to do a deploy on release:perform. I actually want to execute a shell script that will do the deploy for me. So I have two things to accomplish:
1 - Somehow disable the default "deploy" goal from release:perform
2 - Somehow make release:perform call the exec:exec plug...
I have the exec-maven-plugin installed. If I do mvn exec:exec it works fine. But if I set the goals of release:perform to install and exec:exec, it fails. Below the pom and the error:
<plugin>
<artifactId>maven-release-plugin</artifactId>
<version>2.0</version>
<configuration>
<tag...
I am trying to add class path in MANIFEST.MF in maven2 with following code but it is unable to add it.
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.5</source>
...
See plugin config from pom.xml below.
I can do:
mvn myplugin:myGoal
Which runs myGoal (both executions I suppose) but I want to be able to choose either the first or the second executions independently.
I know I can add an id to the execution element, but how do I refer to that id on the command line. I'd like to get to something whi...
Hi
I'm using Maven in Eclipse with the m2Eclipse plugin.
I'm very confused about how this is supposed to build within eclipse.
The on-the-fly compiling works as normal (i.e. as if without maven) so if you have an error it will be highlighted.
But when I want to run a junit for example, any changes to the code are only picked up after...