Hi,
We are using Maven 1 and have a need to provide a war dependency to a jar. I
found that this could be addressed using Maven war plug-in's 'attachClasses'
tag. I have the following snippet in Project.xml of the war module. But it
does not create the jar artifact which contains the class files /
A space maybe before the second -D ?
--
Olivier
Le 24 nov. 2011 06:26, "Rice Yeh" a écrit :
> Hi,
> I am using dependency:get to install a remote jar from the central
> repository to my local repository in a folder without a pom.xml with the
> following command:
>
> mvn dependency:get -X
> -Dr
Hi,
I am using dependency:get to install a remote jar from the central
repository to my local repository in a folder without a pom.xml with the
following command:
mvn dependency:get -X
-DrepositoryUrl=http://repo1.maven.org/maven2-DgroupId=org.apache.cxf
-DartifactId=cxf-rt-frontend-jaxrs -Dver
I've configured my application to search for configuration details in
properties files located on the classpath. Does anyone know how to
configure maven so that when "jetty:run" is executed it looks for
properties files in "${user.home}/${project.artifactId}/"?
Thanks.
-Ari
-
I have a multi-module maven project where the UI is Flex and the
backend is Java using Jetty for server. I'm using maven-jetty-plugin
to host in Jetty and
it was working with version 6.1.25, i.e. I could run the run/etc goals
in my war maven module.
I have one maven module that creates the swf an
Downloading maven 3.03 but the checksums are not matching up. Am I missing
something?
# md5sum apache-maven-3.0.3-bin.tar.gz
93d5d33c26f79977434bb16c4332a11f apache-maven-3.0.3-bin.tar.gz
# cat apache-maven-3.0.3-bin.tar.gz.md5
507828d328eb3735103c0492443ef0f0
# md5sum apache-maven-3.0.3-bin.
I have a fileSet element in my assembly.bin that looks like this:
resources/running.war
deploy/running.war
**/*
However, instead of putting the files in deploy/running.war, the plugin puts
it in deploy/running, leaving off the extension. I need the extension on the
output direc
I've noticed this exact same issue. It seems that you have to explicitly
define the values for all your configuration parameters (either in the test
plugin pom, or via setVariableValueInObject), even if they have a
default-value specified. Or am I missing something as well?
--
View this message in
Hi,
after a longer fight with my build...didn't saw that i had a classloader
problem (some dependencies which came via the new dependency (classes)) now
this works perfect
Many thanks for the support
Kind regards
Karl Heinz Marbaise
-
Kind regards
Karl Heinz Marbaise
http://www
Never mind. My bad. Mirrors always seem to through off my wgets.
Sorry to bother everyone.
On Wed, Nov 23, 2011 at 12:52 PM, Roger Spencer wrote:
> Think I had t subscribe to the mailing list before this goes through --
> which I've done.
>
>
> On Wed, Nov 23, 2011 at 12:47 PM, Roger Spen
Think I had t subscribe to the mailing list before this goes through --
which I've done.
On Wed, Nov 23, 2011 at 12:47 PM, Roger Spencer wrote:
> Downloading maven 3.03 but the checksums are not matching up. Am I
> missing something?
>
> # md5sum apache-maven-3.0.3-bin.tar.gz
> 93d5d33c26f799774
Hi,
have you tried to add a supplemental slash in outputDirectory ?
Kind regards
Karl Heinz Marbaise
-
Kind regards
Karl Heinz Marbaise
http://www.soebes.de
http://www.skmwiki.de
http://supose.org/wiki/supose
--
View this message in context:
http://maven.40175.n5.nabble.com/Maven-assem
Hi,
i've taken a look at your problemsthe first things which came to my mind
is that the repository you defined
(http://repository.jboss.org/nexus/content/groups/public//org/apache)
contains only SNAPSHOT's of the maven-surefire-plugin which is
wrong...(Maven Central is your friend)...
Furthe
Help! I have a fileSet element in my assembly.bin that looks like this:
resources/running.war
deploy/running.war
**/*
However, instead of putting the files in deploy/running.war, the plugin
puts it in deploy/running, leaving off the extension.
I need the extension
Hey guys,
I'm a little new to maven here so please bear with me. I'm using Maven
2.2.x on a windows system. I need some help here on a couple of different
facets. First off I am using the Eclipse IDE, and I have the m2eclipse
plugin installed. I have all of my env. variables and path set. whe
You can bind the MavenProject to your mojo through the ${project}
expression.
But you can also bind the ${project.build.resources} expression to access
the list of resources directories.
Jeff MAURY
On Wed, Nov 23, 2011 at 5:53 PM, krwell wrote:
> I am developing an in-house mojo to be used acro
I am developing an in-house mojo to be used across multiple projects. All of
our in-house projects are built off a similar framework that requires an
application.xml file. My problem is that mojo I am creating cannot find the
application.xml file in the calling project. In the calling project th
Hi
It should be really easy and straightforward thing to turn on the javac -g
option to generate debug information, but for some funny reason I cannot do it.
I tried "mvn -Dmaven.compiler.debug=true
-Dmaven.compiler.debuglevel=lines,vars,source compile"
but what I get is
[DEBUG] (f) compilerI
No attachments allowed? I'll send it to you directly.
On 23.11.2011 17:08, Asmann, Roland wrote:
> Here's a small example... Check if it works for you, because it
> definitely does for me...
>
> Roland
>
>
> On 23.11.2011 16:52, Karl Heinz Marbaise wrote:
> > Hi,
> >
> > Asmann, Roland wrote
>
Here's a small example... Check if it works for you, because it
definitely does for me...
Roland
On 23.11.2011 16:52, Karl Heinz Marbaise wrote:
> Hi,
>
> Asmann, Roland wrote
> >
> > If you use 'attachClasses', the JAR should NOT be created in the
> > lib-folder, but in the target. When usi
Hi
It should be really easy and straightforward thing to turn on the javac -g
option to generate debug information, but for some funny reason I cannot do it.
I tried "mvn -Dmaven.compiler.debug=true
-Dmaven.compiler.debuglevel=lines,vars,source compile"
but what I get is
[DEBUG] (f) compilerI
Hi,
Asmann, Roland wrote
>
> If you use 'attachClasses', the JAR should NOT be created in the
> lib-folder, but in the target. When using 'archiveClasses' it is created
> in the lib-folder.
It is correct that a file artifactid-version-classes.jar is created in the
target folder (with attachCla
> I have jaxb.index files at certain packages in main/java folder. By default
> maven does not copy this index file to classes folder in same package. So,
> i added below resources plugin.
>
> But, it is not working. Any advice, pls?
Can you not just move these files to src/main/resources?
Wayne
Hi,
I have jaxb.index files at certain packages in main/java folder. By default
maven does not copy this index file to classes folder in same package. So,
i added below resources plugin.
But, it is not working. Any advice, pls?
org.apache.maven.plugins
*maven*-resources-*plugin*
2.5
Hi Barrie
Barrie Treloar wrote:
> On Wed, Nov 23, 2011 at 7:16 AM, Paolo Castagna
> wrote:
>>
>> Barrie Treloar wrote:
>>> On Wed, Nov 23, 2011 at 3:49 AM, Paolo Castagna
>>> wrote:
>>>
>>> There are 5 dimensions to this field
>>> groupId, artifactId, type, version, classifier
>>>
>>> You have
>
If you use 'attachClasses', the JAR should NOT be created in the
lib-folder, but in the target. When using 'archiveClasses' it is created
in the lib-folder.
A dependency on that JAR should be on a JAR (not the WAR) and add
classifier 'classes'.
On 23.11.2011 14:42, Karl Heinz Marbaise wrote:
Hi,
i've looked into the wrong location oversight ... sorry ;-( the jar
file is created in the WEB-INF/lib/ folder and not in the target folder
but now i'm trying to use it as dependency for my integration test module
and use classes from therebut this seemed to be not working...
Strange, that's the same version I am using...
Could you post a part of the POM and maybe some output you get? Maybe we
can see something in there...
On 23.11.2011 14:29, Karl Heinz Marbaise wrote:
> Hi,
>
>
> Asmann, Roland wrote
> >
> > I just tried this on an old project, and with only the
On 11/23/2011 01:10 PM, Karl Heinz Marbaise wrote:
> Hi to all,
>
> i have a larger structure of modules which built a multi-module-build which
> contains (an excerpt of my structure) the following two modules where my
> problem is focused on:
>
> root
> +-- mod-war
> +-- mod-it
>
> where the
Hi,
Asmann, Roland wrote
>
> I just tried this on an old project, and with only the
> 'attacheClasses'-attribute, it works just fine for me...
>
> Might be a dumb question, but: are you using the right version of the
> plugin?
>
it's not a dump question... ;-)
I'm using maven-war-plugin (2.
I just tried this on an old project, and with only the
'attacheClasses'-attribute, it works just fine for me...
Might be a dumb question, but: are you using the right version of the
plugin?
Roland
On 23.11.2011 13:55, Karl Heinz Marbaise wrote:
> hi,
>
> i have added both parameters to the co
hi,
i have added both parameters to the configuration of the maven-war-plugin
but it doesn't create a separate jar file...so no luck...
Kind regards
Karl Heinz Marbaise
-
Kind regards
Karl Heinz Marbaise
http://www.soebes.de
http://www.skmwiki.de
http://supose.org/wiki/supose
--
View th
Hello Karl Heinz,
Where does it say that the sources must be in src/main/webapp? As with
all plugins, sources should be in src/main/java (like you have now).
I think you need the parameter 'attachClasses', I am not 100% sure if
'archiveClasses' is necessary as well.
I've used it before (albeit
The Maven team is pleased to announce the release of the Maven Archtetype 2.2
Architype is a collection of tools that allow you to create templates
for maven projects.
Release Notes - Maven Archetype - Version 2.2
** Bug
* [ARCHETYPE-390] - Several parameters of the create-from-project
moj
Hi,
first thanks for the answer, but the problem is my classes are located in
the src/main/java area and not in src/main/webapp folderThe
configuration for the war-plugin (archiveClasses) will only create a jar
from classes in the src/main/webapp folder...where i don't have any classes
only js
Hi Karl Heinz,
Look at the configuration for the WAR-plugin, you can have it create a
separate JAR for the classes, which you can then use as a dependency.
Roland
On 23.11.2011 13:10, Karl Heinz Marbaise wrote:
> Hi to all,
>
> i have a larger structure of modules which built a multi-module-bu
Hi to all,
i have a larger structure of modules which built a multi-module-build which
contains (an excerpt of my structure) the following two modules where my
problem is focused on:
root
+-- mod-war
+-- mod-it
where the mod-war obviously contains the WAR module with the web-application
(packa
Den 22.11.2011 13:35, skrev Stephen Connolly:
On 22 November 2011 08:51, Kristian Rosenvold
wrote:
Den 22.11.2011 09:36, skrev Stephen Connolly (in private message):
Does that major new piece include the per-method threading you
promised you'd deliver for 2.10 in return for me consolidating t
I wish to write a component to inject into my Maven Mojo whichis running
from an 'embedded' Maven deployment.
By embedded I mean I am starting up Plexus and Maven like this...
import org.apache.maven.Maven;
import org.apache.maven.cli.MavenLoggerManager;
import org.apache.maven.model.building.M
39 matches
Mail list logo