Hi guys,
please help me in getting the solution.
1) i had put many jars like struts1.2.9.jar , junti.jar etc in a lib
folder. then make it as colib.ear.
2) Then try to install as
mvn install:install-file –DgroupId=repackage.oracle.ebilling
–DartifactId=colib
Hi,
I am trying to get the local repository directory with localRepository
parameter but the result is not the expected:
[local] - file://C:\Documents and Settings\miroslav\.m2\repository
The problem is that before the directory there is a prefix [local] -
file:// which is the problem.
Try ${settings.localRepository} instead.
- Brett
On 16/10/2008, at 5:57 PM, Miroslav Nachev wrote:
Hi,
I am trying to get the local repository directory with
localRepository parameter but the result is not the expected:
[local] - file://C:\Documents and Settings\miroslav\.m2\repository
I able to build the project successfully.I get a target folder created.But i
donot find any class files created for the project.Here is my sample pom.xml
file:
project xmlns=http://maven.apache.org/POM/4.0.0;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
Based on the information you are providing, it is nearly impossible to
tell you what's going on/wrong/missing/etc in your specific project.
Are your Java source files in src/main/java?
When you run mvn compile, what happens? Does it say BUILD
SUCCESSFUL near the bottom of the output?
When you
Based on what you've said, I'd guess that the artifacts you are
depending on have not been installed in your local repo cache as yet.
Go into the directories where your various dependencies are located
and run mvn install on each one. Then go to your war project and try
mvn install again.
I have similar issue as Wendy, and inherited = false did not do the trick.
I use custom assembly (format=dir), no descriptorRef in configuration, and I
still get jar with dependencies built. I can see logs, result jar and a lot
of time spent to build it.. in my case it's even cheaper to have
Your approach will not work. The Java compiler does not know how to
find compiled Java classes inside Jars inside Ears. Effectively, you
cannot depend on an EAR in another project.
Instead, you need to depend directly on the Struts artifacts in this project.
There may be a way to make this work
Try mvn -X install to see more debugging information that may help
figure out what is going on.
Wayne
On Wed, Oct 15, 2008 at 10:20 PM, Bhargava [EMAIL PROTECTED] wrote:
Hi,
I am using maven-2.0.8 with java-1.5.0_15 and maven jspc plugin of
tomcat5. My pom.xml entry for jspc looks like
Hi,
if i have lots of jars and rather than mentioning eah arifacts there
should be one approach to bundle many jar in some jar or war and getting the
reference in the dependancy tag.
Wayne Fay wrote:
Your approach will not work. The Java compiler does not know how to
find compiled
Hi,
if i have lots of jars and rather than mentioning eah arifacts there
should be one approach to bundle many jar in some jar or war and getting the
reference in the dependancy tag.
Wayne Fay wrote:
Your approach will not work. The Java compiler does not know how to
find compiled
Hi,
if i have lots of jars and rather than mentioning eah arifacts there
should be one approach to bundle many jar in some jar or war and getting the
reference in the dependancy tag.
Wayne Fay wrote:
Your approach will not work. The Java compiler does not know how to
find compiled
Hi Wayne,
Sorry to miss this information.I have a folder called classes in the target
folder.It has the entire java files used in my project.I should instead have
class files right?Please let me know.
Wayne Fay wrote:
Based on the information you are providing, it is nearly impossible to
Hey,
I am building a fat-jar bundling all dependencies using an Maven assembly
plugin. To ensure afterwards that this jar is tested I would like to run all
its tests against the jar file.
I played around with the surefire:plugin and additionalClasspathElements plus
testClassDirectory -
hilco wrote:
Nonsense, you can create any kind of combination using svn:externals.
If you're happy to live with the pain of svn:externals then that's something
that's going to work for you. Two paragraphs of warnings at the end of the
snv book page describing them is enough to scare me
First time i created a project using
mvn archetype:create -DgroupId=com.careertales -DartifactId=careertales
-DarchetypeArtifactId=maven-archetype-webapp.
I got a folder structure as :
src/main
-- resources
-- webapp
In resources folder,i placed a simple java file(Test.java) which just
You don't say which container you're using. We just had this problem with
WebLogic (the EAR file that we deploy was very large, leading to deployment
times of 30+ minutes). Our solution to this was to place as many of the JARs
as possible in the system classpath (a classpath that the
Hi all,
We have a problem with DependencyManagement and range constraints; the
version in DependencyManagement seems to override all ranges defined
elsewhere (as if they have never been there). What we need, is that range
constraints still apply to guarantee compatibility between the
Hi,
Can you please let me know in which version of maven is MNG-624 issue
fixed? I have tried 2.0.9 and 2.1.0-M1.
http://jira.codehaus.org/browse/MNG-624
Regards,
Shakun
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
Jan K schrieb:
First time i created a project using
mvn archetype:create -DgroupId=com.careertales -DartifactId=careertales
-DarchetypeArtifactId=maven-archetype-webapp.
I got a folder structure as :
src/main
-- resources
-- webapp
In resources folder,i placed a simple java file(Test.java)
Hi,
I was looking for a maven plugin that would adjust end-of-line characters on
predefined set of files. I found this ant task [1] which suites my need, but
then at [2] I am reading:
Some Ant expressions have their respective counterparts in Maven. Thus, one
can simply invoke the corresponding
On Thu, Oct 16, 2008 at 7:41 AM, Shakun Gupta [EMAIL PROTECTED]wrote:
Hi,
Can you please let me know in which version of maven is MNG-624 issue
fixed? I have tried 2.0.9 and 2.1.0-M1.
http://jira.codehaus.org/browse/MNG-624
The fix version on the issue is 3.0.
- Geoffrey
--
Geoffrey
On Thu, Oct 16, 2008 at 8:17 AM, Geoffrey Wiseman
[EMAIL PROTECTED] wrote:
On Thu, Oct 16, 2008 at 7:41 AM, Shakun Gupta [EMAIL PROTECTED]wrote:
Hi,
Can you please let me know in which version of maven is MNG-624 issue
fixed? I have tried 2.0.9 and 2.1.0-M1.
I am sorry that I am opening up and old thread and that I am also hijacking
it. But this guy had the exact same problem as I do, but never posted his
error trace. So I will do that instead.
Is there anyone who can help out, please do!
[INFO] Scanning for projects...
[INFO]
Hi,
Instead of use moduleSets try to use fileSets if possible, something
like this:
fileSets
fileSet
directorysrc/main/something/directory
outputDirectory/outputDirectory
includes
include**/*.ext/include
/includes
Is there any possiblity of adding our own dependencies in maven?
Thomas Lutz wrote:
Jan K schrieb:
First time i created a project using
mvn archetype:create -DgroupId=com.careertales -DartifactId=careertales
-DarchetypeArtifactId=maven-archetype-webapp.
I got a folder structure as :
It seems like I made a very basic mistake.
The directorysrc/main/something/directory was simpy incorrect and the
assemby-plugin could not find anything there.
My bad...
/Johannes
/Johannes
Ricardo Nascimento wrote:
Hi,
Instead of use moduleSets try to use fileSets if possible, something
Thanks all for the help.
I am making use of WebLogic10 for deploying my web service (created with
Apache CXF).
I don't want to include anything in classpath. I want to make ear file which
can be deployed to any weblogic server without changing server
configuration.
Thanks,
Nitin B
--
View
On Wed, Oct 15, 2008 at 10:14 PM, svenson [EMAIL PROTECTED] wrote:
I use mvn install.
I just mean that when I use packagingwar/packaging in my POM file my
classes for some uncertain reason don't resolve classes from other libraries
though I use dependency.../dependency.
Notice that we're
Hello,
To circumvent bug MNG-3092 (1), I applied the patch file given in the JIRA
issue to all possible versions of org.apache.maven:maven-artifact. This
resulted in patched versions 2.0, [2.0.2-2.0.9] in my local repository.
(1) http://jira.codehaus.org/browse/MNG-3092
After doing this, I
Hi,
I want to exclude a class org.apache.cxf.js.rhino.DOMMessageProvider from
cxf-2.1.2.jar.
cxf-2.1.2.jar is my one of the depenendency in POM.
dependencies
. .
dependency
groupIdorg.apache.geronimo.configs/groupId
artifactIdcxf/artifactId
version2.1.2/version
/dependency
. . .
I went through the site given by arnaud.It is really useful for as i am new
maven.
It get the following message in the console:
[INFO] OldArchetype created in dir:
/home/jano/CVS/margadarsi/ct3/src/careertales
[INFO]
[INFO]
On Thursday 16 October 2008 Jan K wrote:
I went through the site given by arnaud.It is really useful for as i am
new maven.
Through the whole book? Really?
It get the following message in the console:
[INFO] OldArchetype created in dir:
/home/jano/CVS/margadarsi/ct3/src/careertales
[INFO]
Dear Maven users, I have 2 questions:
1) Can I query the archived mailinglists? I can browse the archives
(http://mail-archives.apache.org/mod_mbox/maven-users/), but cannot
seem to find a way to search through them.
2) I would like to create my own packaging type, with my own life
cycle. How
Any news on a release date for 2.0.10?
Brian E. Fox wrote:
Sorry, I assumed you were looking for the conclusion to the RCs
previously sent out as 2.0.10. Yes there will be a release of 2.0.10
with only bug fixes, but it hasn't started the process yet so it's still
several weeks away.
I've ask the same question befere, here is the answer from Simone, and
that give me lots of help, I hope it can help you too:
Hi 陈思淼,
I'm not a Maven developer but I did a custom packaging. You have to
follow these steps :
- Create a plugin (mojo) project
- In this plugin project,
On Thu, Oct 16, 2008 at 7:56 AM, Martijn Morriën [EMAIL PROTECTED] wrote:
Dear Maven users, I have 2 questions:
1) Can I query the archived mailinglists? I can browse the archives
(http://mail-archives.apache.org/mod_mbox/maven-users/), but cannot
seem to find a way to search through them.
component
role
org.apache.maven.artifact.handler.ArtifactHandler
/role
role-hintmagma/role-hint
implementation
org.apache.maven.artifact.handler.DefaultArtifactHandler
/implementation
configuration
the maven definitive book is very useful for the beginner of maven ,maybe
you should read it through.
2008/10/16 Jan K [EMAIL PROTECTED]
Is there any possiblity of adding our own dependencies in maven?
Thomas Lutz wrote:
Jan K schrieb:
First time i created a project using
mvn
There are ways to do this. Bundling everything in an EAR and expecting
it to work is not one of them.
One way to do this would be to create a separate project with
packaging pom and then specify all the dependencies there
(individually). Then in your ear project, add a dependency on that
project
I don't want to include anything in classpath. I want to make ear file which
can be deployed to any weblogic server without changing server
configuration.
In that case, excluding dependencies which were brought in
transitively may not be the world's best idea. Surely, many of those
artifacts
I want to exclude a class org.apache.cxf.js.rhino.DOMMessageProvider from
cxf-2.1.2.jar.
cxf-2.1.2.jar is my one of the depenendency in POM.
This is not trivial, unless you simply repackage your own version of
this jar with that file removed and then add it back to the Maven
repo.
But I
Hello all,
I have never worked with maven before, but I have read about it and seems
interesting. I have tested it with wicket, gwt, j2ee and webapp archetypes and
I found that maven could be a huge time saver for the projects in the company
I am working for.
I have a particular project
What build server? With Hudson, you could just set another build step
to run ant's junit task immediately after Maven ran.
Wayne
On Thu, Oct 16, 2008 at 2:37 AM, [EMAIL PROTECTED] wrote:
Hey,
I am building a fat-jar bundling all dependencies using an Maven assembly
plugin. To ensure
Hi,
I am trying to manually install a maven-plugin
(http://code.google.com/p/maven-timestamp-plugin/).
Can anyone help me?
Just wasted over an hour reading the docs and googling, but I must be
missing something obvious.
(And of course, the maven documentation sucks.)
-
--
What have you tried? How do you know it didn't work?
I don't know about that specific plugin, but generally, you should be
able to grab the source and then run mvn install to put it into your
repo.
Wayne
On Thu, Oct 16, 2008 at 9:45 AM, Some user [EMAIL PROTECTED] wrote:
Hi,
I am trying to
Hi David,
I think you nearly get the point.
Your idea is fine of what to do.
But i would have adde a pom.xml file in 'somedir'
of packaging type 'pom' in which i would have defined
3 modules.
And in each of the 3 modules' poms, i would have refeerenced
the somedir's pom as parent.
For a good
Hello people.
i'm having a problem with a EAR Packaging.
my pom is configured to put all libs at ear /lib dir, and to remove all
of then from war WEB-INF/lib dir.
Now I'm trying to put only one lib at WEB-INF/lib, because this a
solution to my jboss UCL problem, and I cant do it.
follow my pom
We are considering trying to use the special RELEASE version in our pom
files. I think in order to generate reproducible builds though the
RELEASE version needs to be locked down to the actual latest release
version as specified in the metadata. Once the release has been
performed, the version
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hi,
I have looked around but fail to find any docs on how to activate a
certain proxy (configured in my settings.xml) from the command line.
The docs for settings.xml hints that this could (should?) be possible.
Anyone used this or know if it is
I found the following work around to this problem: scp -r target/site/*
thiagolm,[EMAIL PROTECTED]:/home/groups/f/fl/floggy/htdocs
Until the problem isn't be solved I will update the site using two steps:
mvn clean site and then using the scp command.
Thiago Moreira
On Tue, Oct 7, 2008
Hi,
I have a standalone application that needs to be run on a production
machine. I'm using the maven assembly plugin to create a zip file that
contains all of the dependencies. So far so good, however, I need a script
that can be invoked on the production machine (from a cron job).
I can
Well, my show had to go on. I had to resort to revving, building and
deploying each module one-by-one. Ouch!
If anyone can bring relief to my suffering, I would be greatly appreciative.
-Ryan
On Wed, Oct 15, 2008 at 12:46 PM, Ryan Heaton [EMAIL PROTECTED] wrote:
Hi.
I just converted my
I added a maven-assembly-plugin section to our build and bound it to the
package phase. Now, if I run goals clean install the tests all get
run twice. I don't see any reason for it, though. Can someone point me
in the direction of a good solution?
Thanks,
Dave
do mvn -N install in the parent folder first and then mvn install
2008/10/16 Ryan Heaton [EMAIL PROTECTED]:
Well, my show had to go on. I had to resort to revving, building and
deploying each module one-by-one. Ouch!
If anyone can bring relief to my suffering, I would be greatly
the release plugin generates a resolve pom that it commits to the tag... that
has the actual version...
there are caveats to its use like: it does not preserve exclusions and removes
ranges but other than that it should be ok
On Fri, 17 Oct 2008 07:22:25 Hayes, Peter wrote:
We are considering
Thanks, that helps, but the build still fails on the install with the
same error because child3 still depends on child1 which isn't
installed yet.
However, this does somewhat simplify my procedure...
New procedure:
1. mvn release:prepare (build will fail with message described
below, but the
alexworden ,
did you add this to your manifest:
Class-Path: foo.jar bar.jar
and is your folder looks like this:
appfolder
|_ myExecJar.jar
|_ foo.jar
|_ bar.jar
??
check out this
http://java.sun.com/docs/books/tutorial/deployment/jar/downman.html
it may help you
Hi,
I have a
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hi,
I have a similar setup, only I declare the dependency versions in the
parent pom (using dependency management). Of course, not tried to use
a property there
(define the versions explicitly), but maven happily updates the
dependency management
I actually tried that (declaring the dependency versions in the pom),
but it still doesn't work. Do your modules have interdependencies?
Are you using Maven 2.0.9?
-Ryan
On Thu, Oct 16, 2008 at 2:16 PM, Johan Lindquist [EMAIL PROTECTED] wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
lookup appassembler plugin
On Thu, Oct 16, 2008 at 1:13 PM, supareno [EMAIL PROTECTED] wrote:
alexworden ,
did you add this to your manifest:
Class-Path: foo.jar bar.jar
and is your folder looks like this:
appfolder
|_ myExecJar.jar
|_ foo.jar
|_ bar.jar
??
check out this
On Oct 16, 2008, at 12:59 PM, Raphaël Piéroni wrote:
For a good idea of a multi module project, you could refer to platina:
http://platina.svn.sf.net/svnroot/platina/platina-archetype/
Doesn't seem to be anything there.
Trevor
follow the trunk
and there will be a multimodule project
Regards,
Raphaël
2008/10/16 Trevor Harmon [EMAIL PROTECTED]:
On Oct 16, 2008, at 12:59 PM, Raphaël Piéroni wrote:
For a good idea of a multi module project, you could refer to platina:
I didn't see anything under trunk, either.
Raphaël Piéroni wrote:
follow the trunk
and there will be a multimodule project
Regards,
Raphaël
2008/10/16 Trevor Harmon [EMAIL PROTECTED]:
On Oct 16, 2008, at 12:59 PM, Raphaël Piéroni wrote:
For a good idea of a multi module project,
Please ignore. Another profile was pulling jar-with-dependencies.
doballve wrote:
I have similar issue as Wendy, and inherited = false did not do the trick.
I use custom assembly (format=dir), no descriptorRef in configuration, and
I still get jar with dependencies built. I can see logs,
I take that back. The second time around it showed up.
David C. Hicks wrote:
I didn't see anything under trunk, either.
Raphaël Piéroni wrote:
follow the trunk
and there will be a multimodule project
Regards,
Raphaël
2008/10/16 Trevor Harmon [EMAIL PROTECTED]:
On Oct 16, 2008, at
I would recommend not using modules to do the release... just release each
project independently...
if you find version management becomes an overhead then use ranges to make it
a bit simpler...
On Fri, 17 Oct 2008 09:16:03 Johan Lindquist wrote:
Hi,
I have a similar setup, only I declare
why do you have snapshot versions for parents?
On Fri, 17 Oct 2008 09:42:10 Raphaël Piéroni wrote:
follow the trunk
and there will be a multimodule project
Regards,
Raphaël
2008/10/16 Trevor Harmon [EMAIL PROTECTED]:
On Oct 16, 2008, at 12:59 PM, Raphaël Piéroni wrote:
For a good idea
Why don't you just run install during release:prepare?
http://maven.apache.org/plugins/maven-release-plugin/examples/run-goals-before-commit.html.
By default, install is not run (because it's not really released yet; but
typically causes issues with multi-module builds that use dependency plugin
Alex,
I too went through this problem and hopefully I can be of some assistance to
you. It seems you are close to a solution, but I would like to offer a
different approach from the executable jar.
Within your assembly descriptor, you can output your dependent jars into a
desired folder
I have two enetity beans and I sometimes get an error
IllegalArgumentException : [EMAIL PROTECTED] Entity bean not found.
Sometimes it works if I do a clean install from the command line.
My persistence.xml file is located in src/main/resource/META-INF , so the
classpath should not be an issue.
Thanks Tommy - I was searching all over for that java property. I thought you
had to specify each and every jar file on the classpath.
For the record, I found a workaround. I was having Spring pick up my
properties files from the classpath via :
bean id=myPropsConfig
Hi supareno,
I'm trying not to have to manipulate the manifest by hand. It is generated
by the maven-jar-plugin and contains all the dependencies I need. I also
need to be able to speficy where the properties files are located for each
target platform. I posted my own solution to this.
Thanks
I picked this up yesterday. I'm going to look at one more fix for
toolchains, then start the (likely much shorter) RC process.
- Brett
On 17/10/2008, at 1:57 AM, PaulG wrote:
Any news on a release date for 2.0.10?
Brian E. Fox wrote:
Sorry, I assumed you were looking for the conclusion
is it about the same with 2.1-M1?
-Dan
On Thu, Oct 16, 2008 at 5:57 PM, Brett Porter [EMAIL PROTECTED] wrote:
I picked this up yesterday. I'm going to look at one more fix for
toolchains, then start the (likely much shorter) RC process.
- Brett
On 17/10/2008, at 1:57 AM, PaulG wrote:
You can see in JIRA which changes are applied. It is a subset of the
2.1.0-M1 changes, for those that are not ready to take that step yet.
- Brett
On 17/10/2008, at 12:03 PM, Dan Tran wrote:
is it about the same with 2.1-M1?
-Dan
On Thu, Oct 16, 2008 at 5:57 PM, Brett Porter [EMAIL
Yes, you'll need to read the comments that show where the prototype
occurred, but it is not part of a current release.
- Brett
On 16/10/2008, at 11:18 PM, Geoffrey Wiseman wrote:
On Thu, Oct 16, 2008 at 8:17 AM, Geoffrey Wiseman
[EMAIL PROTECTED] wrote:
On Thu, Oct 16, 2008 at 7:41 AM,
When used as a dependency type, something like the compiler plugin
will add it to the classpath. If it's not meant to be used in that way
(eg, WAR), it won't be.
- Brett
On 17/10/2008, at 3:02 AM, sean chen(陈思淼) wrote:
component
role
That rings a bell - and that would explain why it works for me - my root
pom (not the project root pom - declared a long while back) defines this
for the release plugin. Apologies for the misleading post ...
Cheers,
Johan
Kalle Korhonen wrote:
Why don't you just run install during
79 matches
Mail list logo