use getResource to get the URL of the resource and then parsethe URL
to find the file path
On 07/05/2009, Pete Siemsen wrote:
> That seems reasonable, but I still don't understand how to make it work.
>
> The program I'm trying to test is like a compiler. It reads source
> files that can contain
so what should i do???
BRIAN FOX-5 wrote:
>
> set MAVEN_OPTS = -Xmx512m for example. It can't be done directly from the
> cli.
>
> On Thu, May 7, 2009 at 1:39 AM, shrimpywu wrote:
>
>>
>> Before i run my program like this
>>
>>
>>org.codehaus.mojo
>>exec-mav
You're shoving a square peg into a round hole by doing this. You won't get
much, if any of the benefits of Maven without using a repository.
On Wed, May 6, 2009 at 4:00 PM, tubin gen wrote:
> I have some of the jar files modified and kept them under folder ext-lib,
> there jars files are needed
No, that would be a bug.
On Thu, May 7, 2009 at 9:01 PM, James Crawford wrote:
> On Thu, 2009-05-07 at 20:34 -0400, Brian Fox wrote:
> > Yeah, someone else was looking for this too. If you supply a patch, i'll
> > integrate it.
>
> We are currently on Maven 2.0.4 so I can't even build the latest
On Thu, 2009-05-07 at 20:34 -0400, Brian Fox wrote:
> Yeah, someone else was looking for this too. If you supply a patch, i'll
> integrate it.
We are currently on Maven 2.0.4 so I can't even build the latest
source.
If I get time I will produce a patch when we finally upgrade to
a more recent ver
Yeah, someone else was looking for this too. If you supply a patch, i'll
integrate it.
On Thu, May 7, 2009 at 8:28 PM, Manos Batsis wrote:
> James Crawford wrote:
>
>> I did look at dependency:build-classpath but I could only
>> see how it outputs the class path to a file.
>>
>>
>
> Probably not
James Crawford wrote:
I did look at dependency:build-classpath but I could only
see how it outputs the class path to a file.
Probably not the best idea as I've been up straight wy too long, but
it should take you 15 minutes to change the source so that an env
property is stored.
Manos
I did look at dependency:build-classpath but I could only
see how it outputs the class path to a file.
>From the web page:
"This goal will output a classpath string of dependencies
from the local repository to a file or log."
Is there anyway to get access to it as a property?
I guess I could a
Brian Fox wrote:
It will resolve the conflicts, but here no conflict exists from Maven's
point of view. The groupid is part of the coordinates so they appear to be
the same. Jdom should insert a "relocation" pom to solve these issues. Your
recourse is to use an exclusion.
Assuming the group was t
Your compiler should be aware of the resource it is working on and not only
of the input stream. This is a common case when dealing with embeded
resource. Look at XML parsers for example.
Regards
Jeff MAURY
On Fri, May 8, 2009 at 12:39 AM, Pete Siemsen wrote:
> That seems reasonable, but I stil
That seems reasonable, but I still don't understand how to make it work.
The program I'm trying to test is like a compiler. It reads source
files that can contain "include" statements. When it parses such a
statement, the program needs to open the include file and start
parsing statements
No, just reupload the new jars in the repository manager ( updating the
version number) and update the versions number in the pom.xml ..
Or ask the other team to use the repository manager, seems a better practice
to me :)
On Thu, May 7, 2009 at 3:57 PM, fachhoch wrote:
>
> but what if my jar a
I have to profiles in my pom.xml. The first profile does a scm:update in a
workingDirectory using the connectionUrl. This works just fine.
Then later during the same build within Hudson, another profile is triggered
which is also using the maven scm plugin. Now I would like to commit
(checkin) a
I covered some strategies in this area here[1] and there are some other
how-tos here[2]
[1]
http://www.sonatype.com/people/2009/01/best-practices-for-releasing-with-3rd-party-snapshot-dependencies/
[2] http://www.sonatype.com/people/2009/04/summary-of-maven-how-tos/
On Mon, May 4, 2009 at 12:10 P
I wonder if it's waiting for some password input. Make sure you have a
server setting with the proper credentials for scp.
On Tue, May 5, 2009 at 6:33 PM, Harper, Brad wrote:
> While performing a deployment from the release plugin, I see
>
>
>
> [INFO] [INFO] [install:install]
>
> [INFO] [INFO]
I think this will help you understand it better:
Think of inheritance as including the contents of the parents inside your
own pom. (obviously merging occurs). I used to be a C programmer so I refer
to this as #include-ing the contents.
Therefore the result of inheritance is that it updates your l
set MAVEN_OPTS = -Xmx512m for example. It can't be done directly from the
cli.
On Thu, May 7, 2009 at 1:39 AM, shrimpywu wrote:
>
> Before i run my program like this
>
>
>org.codehaus.mojo
>exec-maven-plugin
>
>
>
On Thu, May 7, 2009 at 9:55 AM, fachhoch wrote:
>
> I need it both for compile and runtime please suggest me how i can do this
> with ant run ?
If you need the jars to compile, then they need to be listed as
dependencies. The repository and dependency management are big parts
of Maven, it simply
take a look at dependency:build-classpath
On Thu, May 7, 2009 at 3:11 AM, James Crawford wrote:
> Hi,
>
> I need to be able to get access to the runtime class path
> in my tests when invoked from the maven-surefire-plugin.
>
> I can set system properties for the surefire plugin but I
> can't find
> [INFO] Compilation failure
> D:\dev\workspace\kronos-migration\ampc\src\main\java\com\posadas\amp\support\MailAlert.java:[17,18]
> package javax.mail does not exist
Add a dependency in your pom.xml file on a jar which provides
javax.mail.*. If you aren't sure what dependency to add, use the
www.
It will resolve the conflicts, but here no conflict exists from Maven's
point of view. The groupid is part of the coordinates so they appear to be
the same. Jdom should insert a "relocation" pom to solve these issues. Your
recourse is to use an exclusion.
Assuming the group was the same, you would
Hi everyone...
I'm trying to migrate a project with Ant for build tasks to Maven2.
� Oracle 9i and Oracle 10g
� Java 1.4
� Web Logic 8.1 SP3
� Maven
The project depends on some related projects like:
+paretProject
--+project1
+src
--+project2
+src
--+project3
+src
The first st
On Thu, May 7, 2009 at 1:10 PM, Ylan Segal wrote:
> I have a conflict with a jdom dependency: Two versions are appearing in my
> classpath.
>
> The problem arises because my project uses the follwing two dependencies:
>
>
>
> jdom
> jdom
> 1.1
>
>
> rome
> rom
I have a conflict with a jdom dependency: Two versions are appearing in
my classpath.
The problem arises because my project uses the follwing two dependencies:
jdom
jdom
1.1
rome
rome
0.9
Now, rome in turn uses:
jdom
jdom
That is exactly one of the advantages of a company repo. The other
team can just use mvn deploy and each of your developers can retrieve
the new dependency. That is one of the keypoints of maven: dependency
management.
Hth,
Nick Stolwijk
~Java Developer~
Iprofs BV.
Claus Sluterweg 125
2012 WS Ha
but what if my jar are updated every week , some other team is working on
them and whenever we find bugs or for any enhancements they will release
new jars , so if I set up my company repository every time a new release
should be updated to my repository ny workaround for this ?
Nick Stolwi
Setting op a company repository is easy and really, it's the only way
that will really work. Just get a copy of Nexus, Artifactory or
Archiva.
Hth,
Nick Stolwijk
~Java Developer~
Iprofs BV.
Claus Sluterweg 125
2012 WS Haarlem
www.iprofs.nl
On Thu, May 7, 2009 at 9:40 PM, fachhoch wrote:
>
>
but the probelm is we have releases for these other jar files frequently
and every time I have to install them isnt there any other way to tell maven
to include these jar files into the war file ?
Wayne Fay wrote:
>
>> I have some jar files inside my project folder , and I want maven to
>> in
1 we do not have a common repository , so every user who wants to work with
the project must do the same , and workaround does not include system
scope jar into war file , please help with any other workaround
Nick Stolwijk-4 wrote:
>
> Install[1]/deploy[2] the jar files in your local or
> I have some jar files inside my project folder , and I want maven to
> include them inside WEB-INF/lib , I know one way to include is to create a
Use "mvn install:install-file" to put the jar files in your local repo
cache and/or "mvn deploy:deploy:file" to put the jar files in your
"corporat
Install[1]/deploy[2] the jar files in your local or company repository
and add a dependency. A workaround is to add a dependency with scope
system and set a path like this:
tubin.gen
your-jar-name
1.0
system
${project.basedir}/lib/your-jar.jar
[1] http://ma
I have some jar files inside my project folder , and I want maven to
include them inside WEB-INF/lib , I know one way to include is to create a
custom ant task but the problem is maven creates a version number inside
target ,my project is audit and when I see the target folder I see audit-1
,
You could decompile it to try
I did bought Sothink SWF Decompiler is quite helpful.
VELO
On Thu, May 7, 2009 at 1:06 PM, Gordon Cody wrote:
> Hi Jeff
>
> Its actually much uglier than that in my opinion. In builds done a few
> seconds
> apart there are not just a few bytes that show as
I need it both for compile and runtime please suggest me how i can do this
with ant run ?
Wendy Smoak-3 wrote:
>
> On Wed, May 6, 2009 at 1:00 PM, tubin gen wrote:
>> I have some of the jar files modified and kept them under folder ext-lib,
>> there jars files are needed by my application, ca
Check out
http://maven.apache.org/guides/introduction/introduction-to-optional-and-excludes-dependencies.html
-Original Message-
From: tubin gen [mailto:fachh...@gmail.com]
Sent: Thursday, May 07, 2009 11:52 AM
To: users@maven.apache.org
Subject: exclude transitive dependency
My project
My project needs spring-modules-osworklow.jar , this module has dependency
to spring-mock , the spring-mock has the same classes as spring-test and
this has more classes , so I want to exclude transitive dependency for
spring-mock , please tell me how to do this ?
Try
org.apache.maven.plugins
maven-release-plugin
2.0-beta-9
...
false
On Thu, May 7, 2009 at 10:01 AM, Nord, James wrote:
> Hi all,
>
> I recently updated to use the mave-source-plu
Hi Jeff
Its actually much uglier than that in my opinion. In builds done a few seconds
apart there are not just a few bytes that show as different but large chunks of
the swf. I have even seen it generate files that are different in size
(by 1 byte)
which really surprised me.
Regards, Gord
On T
Hi all,
I recently updated to use the mave-source-plugin:2.1 with the following
config
maven-source-plugin
2.1
attach-sources
verify
jar-no-fork
test-jar-no-fork
Hi,
Is it possible to generate a download page, where users can download the
artifacts of the project, during the site generation?
Thanks
Daniel
-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional comma
The jar file in question is a 3:de part jar that we can't and should not
change. The application depends on the jar for a certain specific
operation, but not for the building and testing of the module itself.
Don't ask me why, not my idea :)
We use the jar only to Acceptance test the applicati
Hi Matt,
Sorry for the late reply
Yes, please create the jiras
Raphaël
2009/4/29 mraible
>
> I've been using archetype:create-from-project to create archetypes and have
> noticed some issues:
>
> 1. The generated archetype has a version of 1.0-SNAPSHOT. I want the
> archetype's version to be
One solution is simple: create a Maven meta-project:
4.0.0
com.agipi
metaproject-extranet
pom
1.0.0
../project1
../project2
[...]
../project10
- Calling "mvn clean" on this meta-project cleans all modules
- Calling "mvn package" on this meta-project calls "mv
Having played with flex-mojos, I remember that the MXML Flex compiler seems
to put the current date in the generated SWF and it may be binary encoded so
a simple diff will not clearly expose the difference.
Regards
Jeff MAURY
2009/4/30 Nick Stolwijk
> Ah, those swf files were generated. :) I th
Gordon,
This is a flex compiler issue, I already notice that too so time ago. If
you compile the same MXML several times you will get different results
at some point they will repeat... initially I thought was some bug on
flexmojos (flex plugin for maven), but then I start to try mxmlc and no
Can the tests be in a separate jar? If so they could include the original jar
with the code to test but exclude dependencies as needed.
Steven
-Original Message-
From: Henrik [mailto:hen...@team11.org]
Sent: Thursday, May 07, 2009 6:04 AM
To: users@maven.apache.org
Subject: Exclude depe
Maybe the following link to another posting showing the same problem makes my
problem more clear:
http://www.mail-archive.com/d...@maven.apache.org/msg75016.html
Maybe some more general question can help. Is there a running example that
shows how to invoke a java ant task with a thirdparty main
In our organization, we use SVN with the lock mechanism as the SCM
During the release process, we invoke the maven release plugin. The
useEditMode property has been enabled in the plugin's configuration.
While invoking the "prepare" goal, we got an error stating
"[WARNING] Provider svn does no
As explained in the documentation, provided is "much like compile", and
"[...] available on the compilation and test classpath.
Cheers.
2009/5/7 Fabien Kruba
> Hi.
>
> did you tried "provided" scope instead?
>
> Hi,
>>
>> I was wondering if there is a way to remove a dependency from the test
>
I don't think it is. The only existing scopes are those listed here:
http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html#Dependency_Scope
I guess you can file an enhancement request for this use, but I'm not sure
it would really make sense. Since you're likely to
Hi.
did you tried "provided" scope instead?
Hi,
I was wondering if there is a way to remove a dependency from the test
classpath when using runtime
I want to make sure that the jar file is only used when running the
application and not when testing it.
So it really comes down to, I want to
Hi,
for the first part of yor question,
my guess is that you should try glassfish repository
https://maven-repository.dev.java.net/nonav/repository/
There are more "standards" reference artifacts
javax.ejb
ejb-api
3.0
Regards
Fabien
Configuring a standalone EJB3 client
Hi,
I am
Hi,
I was wondering if there is a way to remove a dependency from the test
classpath when using runtime
I want to make sure that the jar file is only used when running the
application and not when testing it.
So it really comes down to, I want to have the dependency (jar file) but
i don't wa
Hi,
I need to be able to get access to the runtime class path
in my tests when invoked from the maven-surefire-plugin.
I can set system properties for the surefire plugin but I
can't find anyway that I can get access to the class path.
For example I want to do something like the following to
set
54 matches
Mail list logo