Hello everyone,
I would like to have one configuration file in properties format.
Configuration differs in some parts between prod and dev profiles. For
example:
conf.properties for prod env:
keyA=valueAP
keyB=valueBP
keyC=valueCP
conf.properties for dev env:
keyA=valueAD
keyB=valueBD
Hi,
Mark Hobson wrote:
An alternative to filtering the same resource is to split it into two
and profile it. So you'd move src/main/resources/conf.properties to,
say:
* src/main/profiles/prod/resources/conf.properties
* src/main/profiles/dev/resources/conf.properties
Actually, I
I tried to follow instructions from:
http://www.nabble.com/Maven-2-EAR%2C-WAR%2C-EJB-Common-Dependencies-t1013415.html
and
http://www.nabble.com/RE%3A-Best-Practice---Maven-with-WSAD-or-RAD6-p2509735.html
and
http://www.nabble.com/RE%3A-m2-war-dependencies-in-ear-p054.html
using
Is it a bug in the maven-war-plugin?
From plugin sources:
for ( Iterator iter = artifacts.iterator(); iter.hasNext(); )
{
Artifact artifact = (Artifact) iter.next();
// TODO: utilise appropriate methods from project builder
ScopeArtifactFilter filter =
Hi,
WAR POM
plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-war-plugin/artifactId
configuration
warSourceDirectorywebApplication/warSourceDirectory
warSourceExcludes
Hello,
In my war project I use java library which requires native dll library.
I created following:
project
modelVersion4.0.0/modelVersion
groupIdcom.domain/groupId
artifactIdlibraryx-api/artifactId
packagingjar/packaging
namelibraryx/name
version1.0/version
Hi,
You got it right, your solution looks fine. Just check for typos, just like
how you declared the native library as a dependency of your jar artifact.
I have it right at my files, I just changed this in my email to make it
general.
The problems seems to be in the war plugin - it
Hello,
[INFO]
[ERROR] BUILD ERROR
[INFO]
[INFO] There are some test failure.
Because of some failed junit-tests the whole maven build
I'm not saying that dependencies should have properties again, but I am
saying that it is the responsability of the war pom.xml to describe
which dependencies it will include itself and which ones should be
provided by its containg ear.
I was thinking also about war projects which can be
Hello,
Another way to test is to pick up the following integration build instead:
http://maven.zones.apache.org/~maven/builds/branches/maven-2.0.x/m2-20060105.071501.tar.gz
Using above build I tried mvn deploy with following configurations:
1. on the windows machine under cygwin shell using
I'd like to announce an initial release of Mevenide Netbeans 2.0. It's IDE
integration for Maven2 project management and build tool. It allows to open
Maven2 projects in the IDE directly, helps with writing the Maven project
files etc. A Continuum integration server plugin is also included,
Hello,
I have a problem with running surefire tests when I have commons-logging
in my classpath. I get java.lang.NoClassDefFoundError:
org/apache/commons/logging/LogFactory.
I am subscriber of this list and I think I saw a solution here (adding
something to the
Hello,
I have parent pom.xml with following lines:
modelVersion4.0.0/modelVersion
groupIdcom.mydomain.projectX/groupId
artifactIdprojectX/artifactId
packagingpom/packaging
version1.0-SNAPSHOT/version
scm
connection
scm:svn:svn://mydomain.com/svnrepo/projectX/trunk/
Hello,
I would like to have something like this in my pom.xml
build
resources
resource
directorysrc/main/resources/directory
filteringtrue/filtering
/resource
/resources
/build
and in src/main/resources/app.properties:
app.buildTime=${currentTime}
to get current time (the
Hello,
How can I turn on resources filtering for files in the src/main/webapps
directory? I need to filter web.xml and other xml descriptors.
Best regards,
Piotrek
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
Hello,
I would like to setup my own central repository with Facelets jar and
configure its pom with all dependencies. I see that it requires JSF API.
I would like to use MyFaces or Sun's Reference Implementation. I think
that I should include in the Facelets pom only JSF API dependency since
Hello,
I would like to know what I should use as my dependency if I want to use
myfaces. I browsed http://ibiblio.org/maven2/myfaces/ and found:
myfaces-all
myfaces-api
myfaces-impl
myfaces-jsf-api
myfaces
I would like to use version 1.1.1 but none of the poms declared for any
version has
Hello,
dependencies
dependency
groupIdmyfaces/groupId
artifactIdmyfaces-api/artifactId
version1.1.1/version
/exclusions
/dependency
dependency
groupIdmyfaces/groupId
Hello,
I'm building ear artifact.
I've got packagingear/packaging in my pom, but when I use 'mvn package'
only subprojects (modules) are build. Build of ear archive is skipped.
Actually, if you use modules in the pom, the packaging should be set
to pom, and ear project should be one of the
Hi,
How should I handle artifact with web resources? Lets assume that I
create JSF web UI components which consists of Java classes packaged in
the Jar file and web resources (images, css and javascript library
files). Shouldn't be there something like web-resources packaging type
Hi Mark,
Hi Piotr,
There's a similar issue open regarding including artifacts at the
root-level of a war:
http://jira.codehaus.org/browse/MNG-896
This would be for applets, JNLP apps, etc. but could be extended to
explode specified dependencies as well - maybe worth adding your use
case there
http://jira.codehaus.org/browse/MNG-896
BTW: when is it expected to be solved?
Best regards,
Piotrek
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hi,
How can I get a property with current date or time as property in the
form as with ${pom.version}? I would like to use it in the pom.xml.
Best regards,
Piotrek
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
Hi,
From http://maven.apache.org/reference/plugins/scm/scmurl.html
scm:cvs:protocol[:host]:CVS root:CVS module
I cannot see any place for port number...
(scm:cvs:pserver:spssoww11:2401:/cvs/ocatest:gduapi).
Best regards,
Piotrek
Hi,
Ok I got it, it's because after my failed attempt, the file
release.properties was created and the url was stocked in it. So the plugin
used this url and didn't care about all the changes I made to
pom.xmlafterwar. To make it work again, I just had to delete this
file, so the
plugin would
Hi,
We upgraded to a jsch that was supposed to have fixed it, but it seems
to have gotten worse.
The main workaround at this point is to use scpexe:// or ftp:// instead.
http://maven.apache.org/guides/mini/guide-deploy-ftp.html details
using ftp - the steps for scpexe (wagon-ssh-external) are
Hello,
There exists an m2 plug-in for Eclipse and I will probably release it
next week sometime. It supersedes anything in Mevenide as far as m2
goes. It will be a preview but it needs a little work before it's
released.
Is it possible to checkout sources of this Eclipse plugin and take a
Hello,
The source is within
http://svn.apache.org/repos/asf/maven/components/trunk
look under maven-plugins/maven-eclipse-plugin.
Just a little misunderstanding. I was talking about plugin for Eclipse
to execute maven 2 goals from Eclipse IDE and not about maven 2 plugin
to create .classpath
No, for that you will Mevenide - however, I believe Mevenide does not
support m2 yet.
As Jason van Zyl wrote:
There exists an m2 plug-in for Eclipse and I will probably release it
next week sometime. It supersedes anything in Mevenide as far as m2
goes. It will be a preview but it needs a
Hi,
I would like to make sure that I understand maven 2 philosophy
correctly. This is how I work with versions and SVN now:
1. Working with version 1.0-SNAPSHOT in svn.myhost.com/projectA/trunk
2. I want to release stable version so I use mvn release:prepare and mvn
release:perform using as
Hello,
(I was writing to this mailing list before partially about this problem:
Demo application based on JBoss DVD trailblaizer)
I tried to create following project:
project xmlns=http://maven.apache.org/POM/4.0.0;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
Hello,
I wanted to create template project structure for EJB3 application based
on the DVD trailblaizer from JBoss site
(http://trailblazer.demo.jboss.com/DVDTrail/).
I used Maven2 2.0-beta-1-SNAPSHOT -
I created structure which is available at http://piotr.radzisz.com/maven2/
I would like
Additional info: Maven 2 revision I used is: 278636.
And one additional question:
Can I specify version in the parent pom and use inherited value in
subprojects or I have to specify version separately in every pom.xml?
Best regards,
Piotrek
Additional info: Maven 2 revision I used is: 278636.
And one additional question:
Can I specify version in the parent pom and use inherited value in
subprojects or I have to specify version separately in every pom.xml?
You do not have to specify the version in the pom, it will use the
34 matches
Mail list logo