Yes, it's simple enough.
Have a look at this pom:
http://code.google.com/p/swjang00/source/browse/trunk/kims_2.5/pom.xml?r=17
See how the maven.compiler.target is a variable? All you'd have to do
is define two profiles, one for 1.5, one for 1.6. and away you go. You
can have the 1.5
This topic is discussed pretty frequently on this list, I'd encourage
you to search the archives.
Here's one thread from a week ago:
date Aug 17, 2008 8:28 PM
subject Building same source with 1.4 and 1.5 jdks
Wayne
On 8/26/08, Peter Horlock [EMAIL PROTECTED] wrote:
No, you don't understand,
Hm, maybe I still have not been explixit enough -
I know how to tell maven that I am using a certain JVM on the current
system, even with profiles.
But I want maven itself to switch the java version (to use another
executable) it uses - so something like:
mvn package -PJVM5
mvn package -PJVM6
http://docs.codehaus.org/display/MAVENUSER/Compile+and+Test+with+Different+JDK+Versions
http://hudson.gotdns.com/wiki/display/HUDSON/Maven2+project+and+JDK5
Wayne
On 8/26/08, Peter Horlock [EMAIL PROTECTED] wrote:
Hm, maybe I still have not been explixit enough -
I know how to tell maven
Geoffrey Wiseman wrote:
On Tue, Aug 26, 2008 at 10:30 AM, Sven Vlieghe
[EMAIL PROTECTED]wrote:
I agree, that was a setup I was originally planning to do. However, each
time a dependency-version increases, this would result in having to
increase
the base-pom too. That pom would have to
Hello,
I'm a maven uber-newby. Been playing with it since 2 days ago :)
Currently I need to set up an HTTP visible maven repo on a resource
constrained box. It has some linux - don't know the distro, and an old
Apache 1.3 web server. I tried to simply designate a directory to be the
repo and
Hello group,
I have a multi-module project and I want to use the same jalopy (code
formatting)
settings for all the modules. I tried to add the following to the main pom.xml:
plugins
...
plugin
groupIdorg.codehaus.mojo/groupId
artifactIdjalopy-maven-plugin/artifactId
You'll have to look into mod_dav or similar for apache. That'll give
you http put.
Or, you can run something like Archiva in standalone mode, using the
embedded jetty. (That'll give you an mirror of other repos as well,
among with some other nice features)
On 27/08/2008, at 5:36 PM,
Sorry, for the confusing message, I hit a gmail shortcut that sent the
mail out prematurely.
So, again: I tried adding the following configuration to the main pom.xml:
plugin
groupIdorg.codehaus.mojo/groupId
artifactIdjalopy-maven-plugin/artifactId
version1.0-alpha-1/version
Hi,
i have a problem with maven dependency for hiberante. Hibernate site
show, that the hibernate-core 3.3.0, hibernate-anatationen-3.4.0
released. But i can't it's downloaded from repo1. Why?
Alexander Vaysberg
-
To
Talk to the hibernate guys—projects are responsible themselves for
ensuring uploads to the central repo. This is not an issue for the
maven team.
Martijn
On Wed, Aug 27, 2008 at 10:14 AM, Alexander Vaysberg [EMAIL PROTECTED] wrote:
Hi,
i have a problem with maven dependency for hiberante.
as far as I remember, Hibernate deploys its artifacts to its own
repository.
So you have to add that repository to your settings.xml etc in order to
be able to access latest Hibernate jars.
I bet someone will upload to central repo later... but you have to wait.
:P
adrian
-Original
Brian Fox wrote:
Hi, I blogged about this with examples. I can't copy and paste on the
iPhone but you can find it at http://blogs.Sonatype.com/brian
I discovered a number of blogs explaining how to do it, but none of them
worked.
After some testing it turned out that if you tried to
In both the the parent and child pom, there's no version 2.2. The only
version that is mentioned is 2.4.3.
However, I took a look in the repository and that gave some info.
Here's the output that I think is relevant:
ls
2.2
2.3
2.4.2
2.4.3
maven-metadata-apache.incubating.releases.xml
The Maven team is pleased to announce the release of the Maven Javadoc
Plugin, version 2.5
The Maven Javadoc Plugin is a plugin that uses the javadoc tool for
generating javadocs for the specified project.
http://maven.apache.org/plugins/maven-javadoc-plugin/
You should specify the version in
Hi,
The Maven team is pleased to announce the release of the Maven SCM , version
1.1.
http://maven.apache.org/scm
This version includes two new scm providers : AccuRev and Git.
Release Notes - Maven SCM - Version 1.1
** Sub-task
* [SCM-401] - Fix parseHostAndPort() for Bazaar too
** Bug
Hi,
How to instantiate a logger from code which do not access to mojo.getLog() ?
If I use SystemStreamLog logger, my debugging logs are always displayed.
What's the right way to get logger, except passing it from the mojo
through all classes and methods calls ?
Thanks,
PS : I've read in
Hi Dennis,
I swept my local repo first and then ran the build as you recommended using
the -X option.
These are all the doxia versions that end up being downloaded into my local
repo:
1.0-alpha-7
1.0-alpha-8
1.0-alpha-9
1.0-alpha-10
1.0-alpha-11
But from the build log alone I can't figure out
On Wed, Aug 27, 2008 at 12:22 PM, Julien CARSIQUE [EMAIL PROTECTED] wrote:
What's the right way to get logger, except passing it from the mojo through
all classes and methods calls ?
Put it in a ThreadLocal.
Jochen
--
Look, that's why there's rules, understand? So that you think before
you
Hi,
i have a problem with maven. I need in pom the local repository path.
Can i it have?
properties
repo-jar${settings.localRepository}/xxx/xx.jar
/properties??
Alexander Vaysberg.
-
To unsubscribe, e-mail: [EMAIL
On Wed, Aug 27, 2008 at 3:36 AM, Todor Boev [EMAIL PROTECTED] wrote:
Currently I need to set up an HTTP visible maven repo on a resource
constrained box. It has some linux - don't know the distro, and an old
Apache 1.3 web server. I tried to simply designate a directory to be the
repo and
BTW, the last version of hibernate is at jboss repo:
http://repository.jboss.com/maven2/
On Wed, Aug 27, 2008 at 4:29 AM, Adrian Shum [EMAIL PROTECTED] wrote:
as far as I remember, Hibernate deploys its artifacts to its own
repository.
So you have to add that repository to your settings.xml
Wendy Smoak-3 wrote:
Atlassian has a 'Maven Upload Plugin' though I can't find the docs
atm. And recently Don created a plugin for testing against multiple
servers-- check the list archives for the past couple of weeks.
Hi Wendy.
I've found the docs on the reference that you gave, but
ChrisGWarp wrote:
Wendy Smoak-3 wrote:
Atlassian has a 'Maven Upload Plugin' though I can't find the docs
atm. And recently Don created a plugin for testing against multiple
servers-- check the list archives for the past couple of weeks.
Hi Wendy.
I've found the docs on the
Hi,
do you really need HTTP PUT for your repo? Can you not do scp or even
file? Also, maybe you want to use maven-proxy, which is old, but very
lightweight, stable and and can serve from a custom repository plus acts
as a cache for repo1 (central), which saves you bandwidth and time.
Also,
Hey Todor,
You can simply use SSH (SCP) to move your artifacts up to the
repository. Your Linux box is probably already running sshd.
Todor Boev wrote:
Hello,
I'm a maven uber-newby. Been playing with it since 2 days ago :)
Currently I need to set up an HTTP visible maven repo on a
On Wed, Aug 27, 2008 at 12:24 AM, Sven Vlieghe [EMAIL PROTECTED] wrote:
That I could, however we have this policy that we cannot have snapshot
dependencies on released projects. I'll verify if this is the same for
snapshot parents. If so, the snapshot parent will be the way to go.
You'll need
Stefan Seidel wrote:
Hi,
do you really need HTTP PUT for your repo? Can you not do scp or even
file? Also, maybe you want to use maven-proxy, which is old, but very
lightweight, stable and and can serve from a custom repository plus
acts as a cache for repo1 (central), which saves you
On Wed, Aug 27, 2008 at 4:08 AM, Alexander Vaysberg [EMAIL PROTECTED] wrote:
i have a problem with maven. I need in pom the local repository path. Can i
it have?
properties
repo-jar${settings.localRepository}/xxx/xx.jar
/properties??
The location of the local repo is developer-specific, so
Sven,
I did some thing like you are describing. We used one version number for 30
or so modules. We ran maven like this:
mvn install -DbuildVersion=1.1-DEVELOPERNAME-SNAPSHOT
Then in the poms...
dependency
groupIdmy.group.id/groupId
artifactIdtest-program/artifactId
Hi John,
I found something, but I can't ensure it is caused by 2.0.10-RC11. I
have a Maven plug-in that extends the lifecycle and adds a new kind of
package. It also uses some Ant tasks. When I build the plug-in with
2.0.10-RC* (I tried with RC1, RC2 and RC11) the build works. But when I
try
Hi John,
I compared the contents of the artifacts generated by 2.0.9 and
2.0.10-RC11 and they are different. The latter doesn't have the Ant
build file and has a different plug-in descriptor.
Another difference is the version of maven-plugin-plugin. Maven 2.0.9
uses 2.4.1 and Maven
Ok, we're finally getting moving on this.
I've added this to my POM file for the ear. I want the ear file uploaded as
part of the package phase.
build
plugins
plugin
groupIdcom.atlassian.maven.plugins/groupId
Wendy Smoak schrieb:
I need it for SE-JPA. I have a model core-jpa and for child module i
need in persistence.xml for element jar-file/jar-file the
core-jpa.jar and this core-jpa is in repository. The JPA search not in
classpath, i must it setting.
Alexandre Vaysberg.
On Wed, Aug 27, 2008
I would like to build my project skipping my acceptance tests, but still run
my unit tests. This seems simple enough if I alter the includes/excludes
for the surefire plugin, but I want to make this decision at the command
line. Essentially what I want is a property like this:
On Wed, Aug 27, 2008 at 7:33 AM, Bryan Young [EMAIL PROTECTED] wrote:
I would like to build my project skipping my acceptance tests, but still run
my unit tests. This seems simple enough if I alter the includes/excludes
for the surefire plugin, but I want to make this decision at the command
We have recently switched to the scrum development process, and are forced
to rethink our maven versioning scheme. There will be multiple scrum teams
working with the same code-base. Each team will aim to have a release each
sprint, but occasionally a release will be planned for one sprint but
I don't know what this means:
[WARNING]
WARNING
This Maven runtime contains a LifecycleExecutor component with an
incomplete configuration.
LifecycleExecutor class: org.apache.maven.lifecycle.LifecycleExecutorInterceptor
Missing component requirement:
So you are creating a jar with correct dependence classes and run test base
on that jar? Not sure how can I do that... would you sure you pom.xml for me
to refer to?
Andrew Robinson-5 wrote:
I used the maven assembly plugin to pull in the correct Jar. I have
all 3 jars (linux, Mac and
We are doing something similar. I am guessing that you are putting the various
sprint teams on separate branches and merging them in when you need to create a
combined release. Or are you actually producing alternative versions of you
product?
If the former, then the first blush response
We have separate working branches for each team. After a version is released
it is merged into the trunk. There is only one current production version
of each application. Our software is developed for internal use so no need
to maintain previous versions.
P'Simer, Dana (Matrix) wrote:
That's disappointing to hear. I would imagine separating
integration/acceptance tests is a fairly common
issue.
Altering the layout of the source tree isn't really an option for me (big
corporate environment).
The link you sent had an interesting idea. If I exclude the Acceptance
Tests from
I often get duplicate Java compiler errors when building with Maven.
Has anybody else seen this? Here's how to reproduce:
mvn archetype:create -DarchetypeGroupId=org.apache.maven.archetypes -
DgroupId=com.mycompany.app -DartifactId=my-app
Then change App.java to this:
package
My pom is huge, but here are some snippets:
...
properties
...
eclipse-version3.3.2/eclipse-version
/properties
...
dependencies
...
!-- JFace and SWT: --
dependency
groupIdorg.eclipse/groupId
artifactIdeclipse-jface/artifactId
version${eclipse-version}/version
Forgot my win32.xml that is in my src/main/assembly/jar folder:
?xml version=1.0 encoding=UTF-8?
assembly
xmlns=http://maven.apache.org/POM/4.0.0;
xsi:schemaLocation=http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/assembly-1.1.0-SNAPSHOT.xsd;
Hey,
I think you can rename your acceptance tests with some thing like
*AcceptenceTest*.java and then create different profiles for build with and
without acceptence test. See profiles in maven documentation. Probably
while running normal build you will like to exclude **/*AcceptenceTest*.java
Is there an option in Maven (mvn install or other commands) to include the
source files with the compiled classes in the target folder?
Thanks in advance,
Raja.
--
View this message in context:
http://www.nabble.com/Include-source-with-the-compiled-files-tp19186956p19186956.html
Sent from the
Thanks. This is exactly the information I was looking for. The link Wendy
sent me had a fairly
good example of this, but I think I needed the extra explanation.
On Wed, Aug 27, 2008 at 1:17 PM, Mohit Manrai [EMAIL PROTECTED] wrote:
Hey,
I think you can rename your acceptance tests with
When I tried you project locally I noticed that the Clover plugin pulled
in 1.0-alpha-10. You could try commenting that out to see if it is the
problem.
Giovanni Azua wrote:
Hi Dennis,
I swept my local repo first and then ran the build as you recommended using
the -X option.
These are all
The Maven team is pleased to announce the release of the Maven Invoker,
version 2.0.10
This shared component fires up a Maven build in a new JVM.
http://maven.apache.org/shared/maven-invoker/
Release Notes - Maven Shared Components - Version maven-invoker 2.0.10
** New Feature
*
I have a Nexus repository setup up to act as a mirror (for both internal corp
and remote access). However, to restrict access I have enabled Basic HTTP Auth
via my Apache HTTPD. Is there a tag within the settings.xml mirror that I can
add username and password to get past the authentication? I
Please use [EMAIL PROTECTED] for Nexus questions. We're happy to
answer your questions there!
On 27-Aug-08, at 10:31 AM, Timothy James Pinet wrote:
I have a Nexus repository setup up to act as a mirror (for both
internal corp and remote access). However, to restrict access I have
enabled
Please ask your Nexus questions here [EMAIL PROTECTED] We're
happy to answer your questions over there.
On 27-Aug-08, at 8:45 AM, Borut Bolčina wrote:
Hi,
I noticed in chapter 16.5 Configuring Nexus that Active Directory is
mentioned. Is it possible to use AD with Nexus? Any info
For any tool you see saying they support Nexus indexes make sure they
are using our APIs. We guarantee nothing in the way of the format, but
we have gone to excruciating lengths to make sure the API we have
provided is super stable. Anything that tries to read the indices
directly will
Would that be essentially two artifacts deployed from the same POM, then?
What's the rationale for allowing a custom 'finalName' in the configuration of
the assembly plugin, if this can't be deployed?
-Nathan
-Original Message-
From: Brett Porter [mailto:[EMAIL PROTECTED]
Sent: Sun
Hi there,
Our multimodule reactor builds seem to build fine with RC11. The builds
include:
1. conventional J2EE jar/ejb/war/ear composition;
2. OSGI bundles via the maven-bundle-plugin;
3. Assembly of eclipse RCP applications
Cheers
Steve C
--
View this message in context:
ChrisGWarp wrote:
Hi All.
I would like to copy the produced artifact of the package step (in
this case an ear file) to a remote unix server.
How do I do this?
In this case I need to copy the ear file to a remote unix machine
(under ant I used pscp from
eems like a (minor) bug in Maven itself - it is logging both the exception
and the nested compile exception (shown by running with -e).
It should just show the actual failure.
Can you file this in JIRA under MNG if it isn't already?
Thanks,
Brett
2008/8/28 Trevor Harmon [EMAIL PROTECTED]
I
You'd probably have to copy them in there using antrun in the
process-sources phase.
A better solution might be to use the sources plugin to create a separate
source JAR though?
- Brett
2008/8/28 raja72 [EMAIL PROTECTED]
Is there an option in Maven (mvn install or other commands) to include
2008/8/28 Beyer,Nathan [EMAIL PROTECTED]
Would that be essentially two artifacts deployed from the same POM, then?
Sorry, I misremembered. The build-helper will only attach with the same
artifact ID but you can change the type and classifier. This makes sense
since the POM would otherwise be
ChrisGWarp wrote:
Bernhard David [EMAIL PROTECTED] wrote on 18/06/2008 16:21:06:
Hello,
I think you just need to declare src/main/application as a resource
folder in your pom -
resources
resource
directorysrc/main/application/directory
/resource
and it should work
That will certainly require a custom resources plugin, or contribution to
the current filtering code to make it possible to have alternate filtering
mechanisms.
There's some related work to add configuration encryption to the Maven
core/plugins being discussed - so this might be an additional use
The general approach used here can be seen in the checkstyle plugin - the
configuration is able to be provided at either a file, URL, or within a
repository artifact. The last option is the best since it makes advantage of
Maven's resolution and local caching but also makes it referencable from
It seems your central files are very out of date, as you can see here:
http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-surefire-plugin/maven-metadata.xml
Do you have a proxy or repository manager caching it?
This still seems unusual, since from Maven 2.0.9 onwards the version of the
Hi All.
Currently, I have a setup such as this in my POM:
connectionscm:svn:http://svn.warpspeed.com.au/svn/repos/GPDB/trunk/connection
developerConnectionscm:svn:http://userid:[EMAIL
PROTECTED]/svn/repos/GPDB/trunk/developerConnection
How can I remove the userid and password
Yup, it's simple. It's one of those things that took me a while to
figure out as well.
servers
server
idsvn.warpspeed.com.au/id
usernameusername/username
passwordpassword/password
/server
Hi All.
In a multi module project, do we need to specify the SCM section
individually in each section's pom (pointing to the exact path of each
module in the scm) or can we just specify it in the (root) pom (the one that
lists each module) and maven will work the rest out for itself?
-Chris
--
On Wed, Aug 27, 2008 at 8:51 PM, ChrisGWarp [EMAIL PROTECTED] wrote:
In a multi module project, do we need to specify the SCM section
individually in each section's pom (pointing to the exact path of each
module in the scm) or can we just specify it in the (root) pom (the one that
lists each
Somre more info about going offline:
http://stubbisms.wordpress.com/2008/08/28/maven-is-to-ant-as-a-nail-gun-is-to-hammer-and-nails-you-need-to-move-on/
Eric Parpal wrote:
My working network has no connection to internet (no way).
I download and copied the part of www.ibiblio.org/maven2
Some more info about going offline:
http://stubbisms.wordpress.com/2008/08/28/maven-is-to-ant-as-a-nail-gun-is-to-hammer-and-nails-you-need-to-move-on/
Eric Parpal wrote:
My working network has no connection to internet (no way).
I download and copied the part of www.ibiblio.org/maven2 that
Some more info about going offline:
http://stubbisms.wordpress.com/2008/08/28/maven-is-to-ant-as-a-nail-gun-is-to-hammer-and-nails-you-need-to-move-on/
Paul Hepworth-4 wrote:
Hi
I'm trying to set up Maven for multiple users on a network not connected
to the internet.
I've run all the
Some info about taking plugins offline and add target option to go-offline
goal http://jira.codehaus.org/browse/MDEP-177
http://stubbisms.wordpress.com/2008/08/28/maven-is-to-ant-as-a-nail-gun-is-to-hammer-and-nails-you-need-to-move-on/
-
___
Haikal Saadh-2 wrote:
Yup, it's simple. It's one of those things that took me a while to
figure out as well.
servers
server
idsvn.warpspeed.com.au/id
usernameusername/username
passwordpassword/password
Wendy Smoak-3 wrote:
On Wed, Aug 27, 2008 at 8:51 PM, ChrisGWarp [EMAIL PROTECTED]
wrote:
In a multi module project, do we need to specify the SCM section
individually in each section's pom (pointing to the exact path of each
module in the scm) or can we just specify it in the (root)
74 matches
Mail list logo