No, don't use profiles. They are evil and shouldn't be used!
Please remember that Maven is a build tool. Don't try to do too much.
If the Java program is to be run during build, then you should bind that
plugin to the build lifecycle. You would then just have to execute "mvn
install" for example.
Hi,
Thank you for sharing. I like some of the things you do in the script, like
squashing the commits.
Since no one responded I ALS wrote some tooling that takes the output of
dependency:tree from multiple projects, merges it, and given a target
artefact writes a bash script for all SNAPSHOT depend
Yup, Idea 1 is right, thx !
--
View this message in context:
http://maven.40175.n5.nabble.com/Multiple-versions-of-same-local-jar-tp5773089p5773104.html
Sent from the Maven - Users mailing list archive at Nabble.com.
-
To uns
Do you mean that you always want to run this program whenever you build it? Or
you only want to run it when you activate the profile? Unless you do something
unusual, "install" will always cause the jar to be created and installed in
your local repository.
You might try adding to your pom somet
I really do not understand any of the documentation related to the
plugin.
If I do something like:
$mvn -P deploy
I need to:
1. build the project (meaning I just want target/myproj.jar to exist
2. Run a java program like: $java -jar target/myproj.jar
so I want to create a profile that wi
berc46 wrote:
> Hi,
>
> I'm using Maven for a Web project within Eclipse.
>
> The project uses some libraries from the Maven repository, and 3 of my
> libraries, which I've added to my local repository with the mvn
> deploy:deploy-file command.
>
> Whenever I package my .war file in Eclipse, I
Idea 1:
You started of with one version and build your war multiple times while
updating the version. Maven does not automatically clean the WEB-INF/lib
folder in your target folder. Try a "mvn clean install" instead of just a
"mvn install".
Idea 2:
You have multiple versions of your lib in your d
Hi,
I'm using Maven for a Web project within Eclipse.
The project uses some libraries from the Maven repository, and 3 of my
libraries, which I've added to my local repository with the mvn
deploy:deploy-file command.
Whenever I package my .war file in Eclipse, I end up with an archive that
conta
Hi Ian,
Sorry for the delay in reply.
> I have a source tree releasing multiple artifacts, all on different
> release cycles, semantically versioned and depending on one another in
> a tree.
My group has a very similar situation -- multiple different source trees,
actually. I don't know of any t
Hi Andrew,
Cool, glad you got it working. And if you get sick of passing the FQCN you
can of course do something like:
com.my.stuff.${jdb}
Regards,
Curtis
On Tue, Oct 15, 2013 at 12:31 PM, Andrew Pennebaker
wrote:
> Ah, forgot to add the full namespace to the main class. This works:
>
> $ c
Ah, forgot to add the full namespace to the main class. This works:
$ cat pom.xml
...
org.codehaus.mojo
exec-maven-plugin
jdb
-classpath
${jdb}
Hi Andrew,
> Exception occurred: java.lang.ClassNotFoundException
> (uncaught)"thread=main", java.net.URLClassLoader$1.run(), line=202 bci=73
Not sure what to tell you. I tested it with my project and was able to
launch my app from jdb as usual; see:
https://github.com/imagej/imagej/commit/8cfe0f
12 matches
Mail list logo