Re: Ant Tasks for Maven - install sources, javadoc

2008-10-26 Thread Adrian Tarau

Thanks,

Indeed the use of classifier solved the problem. After I wrote the post I
realized what's the use of classifier :)

Additional jar with all Velocity dependencies means a second jar which
contains Velocity classes and all dependencies. I've used classifier for
this one too it it worked great.


Wayne Fay wrote:
 
 Essentially, you use the same mvn install:install-file command, but add:
 -Dclassifier=sources
 or
 -Dclassifier=javadoc
 depending on what you are trying to install.
 
 As for the additional jar with all Velocity dependencies, I'm unsure
 whate exactly you're talking about. Can you explain this a little
 more, especially where did this Jar come from and what is in it?
 
 Wayne
 
 On Sat, Oct 25, 2008 at 8:35 PM, Adrian Tarau [EMAIL PROTECTED]
 wrote:

 I'm trying(without success) to deploy Velocity artifacts into a Maven
 repository and I cannot figure out how to add aditional artifacts like
 sources, javadoc and also an aditional jar with all Velocity
 dependencies.

 I was able(following some example) to install Velocity main artifact, but
 my
 luck stopped here.

 Any examples how to do this?

 Thanks.

 --
 View this message in context:
 http://www.nabble.com/Ant-Tasks-for-Maven---install-sources%2C-javadoc-tp20170156p20170156.html
 Sent from the Maven - Users mailing list archive at Nabble.com.

 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Ant-Tasks-for-Maven---install-sources%2C-javadoc-tp20170156p20173732.html
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Ant Tasks for Maven - install sources, javadoc

2008-10-25 Thread Adrian Tarau

I'm trying(without success) to deploy Velocity artifacts into a Maven
repository and I cannot figure out how to add aditional artifacts like
sources, javadoc and also an aditional jar with all Velocity dependencies.

I was able(following some example) to install Velocity main artifact, but my
luck stopped here.

Any examples how to do this?

Thanks.

-- 
View this message in context: 
http://www.nabble.com/Ant-Tasks-for-Maven---install-sources%2C-javadoc-tp20170156p20170156.html
Sent from the Maven - Users mailing list archive at Nabble.com.


RE: Add dependencies via plugin.jelly

2005-03-08 Thread Adrian Tarau

Hi Eric,

Yes you can. I had the same need to add dynamic dependency.

I can give you a short explanation how to do it.

You can create a Java bean class which has a property 'project' of type
Project, and in your maven.xml you can initialize the bean and set the
current

j:new var=bean className=com.xxx.maven.ArtifactBean/
j:set target=${ bean } property=project value=${pom}/

Having access to the maven project you can add Dependency classes in the
dependency list of the project.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 08, 2005 3:34 PM
To: users@maven.apache.org
Subject: Add dependencies via plugin.jelly

Hi all,

 

This is my third attempt on the subject and I'll try to make my question
clearer (and the mail's title).

 

I'm currently developing a plug-in and I want to know if it's possible
to add a dependency to the project.xml using the plugin.jelly file?

 

Thanks in advance,

 

Eric

 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: How to specify Plugin Dependencies???

2004-12-09 Thread Adrian Tarau

I had the same need for a project. In the same project I build jars,
war, ear and because those jars was not in project.xml and the ear
plugin create the application.xml only from dependiencies I made a small
tool to inject dynamic dependiences before running the ear goals; and it
works well

-Original Message-
From: Brett Porter [mailto:[EMAIL PROTECTED] 
Sent: Thursday, December 09, 2004 2:28 PM
To: Maven Users List
Subject: Re: How to specify Plugin Dependencies???

Currently, runtime dependencies are treated the same as build time
dependencies - you'll need to specify them in the plugin's
project.xml.

If you need to pass them to ant tasks in the plugin, you should setup
a classpath using those dependencies (look for getDependencyPath).

Cheers,
Brett

On Thu, 9 Dec 2004 13:38:39 -0500, Helck, Christopher [EMAIL PROTECTED]
wrote:
 
 I'm writing a plugin which has runtime dependencies. How do I specify
 them? I don't need the dependencies when I build the plugin, only when
 it is used.
 
 Thanks,
 C. Helck
 
 The information contained in this e-mail is confidential. This e-mail
is intended only for the stated addressee.  If you are not an addressee,
you must not disclose, copy, circulate or in any other way use or rely
on the information contained in this e-mail. if you have received this
e-mail in error, please inform us immediately and delete it and all
copies from your system.
 
 EBS Dealing Resources International Limited. Registered address: 10
Paternoster Square, London EC4M 7DY, United Kingdom. Registered number
2669861.
 
 EBS Dealing Resources, Inc, registered in Delaware. Address: 535
Madison Avenue, 24th Floor, New York, NY 10022, USA, and One upper Pond
road, Building F - Floor 3, Parsippany, NJ 07054, USA.
 
 EBS Dealing Resources Japan Limited, a Japanese Corporation. Address:
Asteer Kayabacho Bldg, 6th Floor, 1-6-1, Shinkawa, Chuo-Ku,  Tokyo
104-0033, Japan.
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Maven Idea plugin

2004-12-08 Thread Adrian Tarau
I have a small problem with idea plugin. I have project where I have an
artifact with type ejb.
 
Why the type ejb is not included in the project libraries? In fact it is
a jar.


Loading a POM

2004-11-29 Thread Adrian Tarau
Hi,
 
I'm trying to load a POM with a piece of code found in the test files :
 
Project project = MavenUtils.getProject(new 
File(maven/test/maven/project1.xml));
project.initialize(); 
 
but I get a strange exception(the POM is valid because is teke it from a 
project) :
 
annot evaluate method: setPomVersion on bean: null of type: 
org.apache.maven.project.Project with value: 3 of type: java.lang.String
Cannot evaluate method: setId on bean: null of type: 
org.apache.maven.project.Project with value: dax-components-maven of type: 
java.lang.String
Cannot evaluate method: setName on bean: null of type: 
org.apache.maven.project.Project with value: DAX Components - Maven of type: 
java.lang.String
Cannot evaluate method: setGroupId on bean: null of type: 
org.apache.maven.project.Project with value: dax-components of type: 
java.lang.String
Cannot evaluate method: setPackage on bean: null of type: 
org.apache.maven.project.Project with value: com.daxtechnologies.maven of type: 
java.lang.String
Cannot evaluate method: setDeveloperConnection on bean: null of type: 
org.apache.maven.project.Repository with value: scm:cvs:pserver:[EMAIL 
PROTECTED]:/cvsreposit:components/maven of type: java.lang.String
Cannot evaluate method: setUrl on bean: null of type: 
org.apache.maven.project.Repository with value:  of type: java.lang.String
Body event threw exception
java.lang.IllegalStateException: either id or (groupId and artifactId) must be 
provided for a dependency
at org.apache.maven.project.Dependency.getId(Dependency.java:116)
at org.apache.maven.project.Dependency.toString(Dependency.java:313)
at java.lang.String.valueOf(String.java:2131)
at java.lang.StringBuffer.append(StringBuffer.java:370)
at 
org.apache.commons.betwixt.expression.MethodUpdater.update(MethodUpdater.java:135)
at 
org.apache.commons.betwixt.io.BeanCreateRule$1.body(BeanCreateRule.java:584)
at org.apache.commons.digester.Rule.body(Rule.java:240)
at 
org.apache.commons.digester.Digester.endElement(Digester.java:1034)
at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1712)
at org.apache.crimson.parser.Parser2.content(Parser2.java:1963)
at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1691)
at org.apache.crimson.parser.Parser2.content(Parser2.java:1963)
at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1691)
at org.apache.crimson.parser.Parser2.content(Parser2.java:1963)
at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1691)
at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:667)
at org.apache.crimson.parser.Parser2.parse(Parser2.java:337)
at 
org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:448)
at org.apache.commons.digester.Digester.parse(Digester.java:1527)
at 
org.apache.maven.MavenUtils.getNonJellyProject(MavenUtils.java:204)
at org.apache.maven.MavenUtils.getProject(MavenUtils.java:144)
at org.apache.maven.MavenUtils.getProject(MavenUtils.java:123)
at org.apache.maven.MavenUtils.getProject(MavenUtils.java:110)
at 
com.daxtechnologies.maven.ArtifactBuilderBeanTest.testAdd(ArtifactBuilderBeanTest.java:23)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at junit.framework.TestCase.runTest(TestCase.java:154)
at junit.framework.TestCase.runBare(TestCase.java:127)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:118)
at junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
at junit.textui.TestRunner.doRun(TestRunner.java:116)
at 
com.intellij.rt.execution.junit2.IdeaJUnitAgent.doRun(IdeaJUnitAgent.java:57)
at junit.textui.TestRunner.start(TestRunner.java:172)
at 
com.intellij.rt.execution.junit.TextTestRunner2.startRunnerWithArgs(TextTestRunner2.java:23)
at 
com.intellij.rt.execution.junit2.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:97)
at 
com.intellij.rt.execution.junit2.JUnitStarter.main(JUnitStarter.java:31)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 

RE: Loading a POM

2004-11-29 Thread Adrian Tarau

Hi again,

I found on the web that the log4j level should be set on WARN or INFO and the 
problem disappear, but...

Now I get another exception...
My test class is:

protected void setUp() throws Exception {
// I don't know if I must set this property
System.setProperty(basedir, System.getProperty(user.dir));
}

public void testAdd() throws Exception {
String basedir = System.getProperty(basedir);
assertNotNull(The system property basedir was not defined., basedir);
Project project = MavenUtils.getProject(new File(basedir, 
maven/test/maven/project1.xml));
project.initialize();
}

and the exception is : 


java.lang.NullPointerException
at java.io.File.init(File.java:180)
at 
org.apache.maven.jelly.MavenJellyContext.resolveRelativePath(MavenJellyContext.java:700)
at 
org.apache.maven.jelly.MavenJellyContext.resolveRelativePaths(MavenJellyContext.java:694)
at org.apache.maven.MavenUtils.createContext(MavenUtils.java:787)
at org.apache.maven.MavenUtils.getNonJellyProject(MavenUtils.java:212)
at org.apache.maven.MavenUtils.getProject(MavenUtils.java:144)
at org.apache.maven.MavenUtils.getProject(MavenUtils.java:123)
at org.apache.maven.MavenUtils.getProject(MavenUtils.java:110)
at 
com.daxtechnologies.maven.ArtifactBuilderBeanTest.testAdd(ArtifactBuilderBeanTest.java:27)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at 
com.intellij.rt.execution.junit2.JUnitStarter.main(JUnitStarter.java:31)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:78)

-Original Message-
From: Adrian Tarau 
Sent: Monday, November 29, 2004 10:37 AM
To: [EMAIL PROTECTED]
Subject: Loading a POM

Hi,
 
I'm trying to load a POM with a piece of code found in the test files :
 
Project project = MavenUtils.getProject(new 
File(maven/test/maven/project1.xml));
project.initialize(); 
 
but I get a strange exception(the POM is valid because is teke it from a 
project) :
 
annot evaluate method: setPomVersion on bean: null of type: 
org.apache.maven.project.Project with value: 3 of type: java.lang.String
Cannot evaluate method: setId on bean: null of type: 
org.apache.maven.project.Project with value: dax-components-maven of type: 
java.lang.String
Cannot evaluate method: setName on bean: null of type: 
org.apache.maven.project.Project with value: DAX Components - Maven of type: 
java.lang.String
Cannot evaluate method: setGroupId on bean: null of type: 
org.apache.maven.project.Project with value: dax-components of type: 
java.lang.String
Cannot evaluate method: setPackage on bean: null of type: 
org.apache.maven.project.Project with value: com.daxtechnologies.maven of type: 
java.lang.String
Cannot evaluate method: setDeveloperConnection on bean: null of type: 
org.apache.maven.project.Repository with value: scm:cvs:pserver:[EMAIL 
PROTECTED]:/cvsreposit:components/maven of type: java.lang.String
Cannot evaluate method: setUrl on bean: null of type: 
org.apache.maven.project.Repository with value:  of type: java.lang.String
Body event threw exception
java.lang.IllegalStateException: either id or (groupId and artifactId) must be 
provided for a dependency
at org.apache.maven.project.Dependency.getId(Dependency.java:116)
at org.apache.maven.project.Dependency.toString(Dependency.java:313)
at java.lang.String.valueOf(String.java:2131)
at java.lang.StringBuffer.append(StringBuffer.java:370)
at 
org.apache.commons.betwixt.expression.MethodUpdater.update(MethodUpdater.java:135)
at 
org.apache.commons.betwixt.io.BeanCreateRule$1.body(BeanCreateRule.java:584)
at org.apache.commons.digester.Rule.body(Rule.java:240)
at 
org.apache.commons.digester.Digester.endElement(Digester.java:1034)
at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1712)
at org.apache.crimson.parser.Parser2.content(Parser2.java:1963)
at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1691)
at org.apache.crimson.parser.Parser2.content(Parser2.java:1963)
at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1691)
at org.apache.crimson.parser.Parser2.content(Parser2.java:1963)
at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1691)
at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:667

RE: Loading a POM

2004-11-29 Thread Adrian Tarau

What I want is just to load a POM and eventually to make a jellybean to add 
dynamical dependencies to a POM(useful for me to inject in application.xml some 
ejb and jar dependencies which are made in the same project).

So if you have a small example which just load the POM, please tell me.

-Original Message-
From: Jason van Zyl [mailto:[EMAIL PROTECTED] 
Sent: Monday, November 29, 2004 10:13 AM
To: Maven Users List
Subject: Re: Loading a POM

On Mon, 2004-11-29 at 10:36, Adrian Tarau wrote:
 Hi,
  
 I'm trying to load a POM with a piece of code found in the test files :

What information are you trying to extract?

If you are trying to extract some simple pieces of information then I
will take this opportunity to whip up an example using the maven-model
package to show how to read in POMs. The maven-model package simply
reads in the POM, it does not deal with any inheritance issues or
interpolation ... so if that suits your needs then I'll whip something
up for you.


-- 
jvz.

Jason van Zyl
[EMAIL PROTECTED]
http://maven.apache.org

happiness is like a butterfly: the more you chase it, the more it will
elude you, but if you turn your attention to other things, it will come
and sit softly on your shoulder ...

 -- Thoreau 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Getting the status 'BUILD FAILED' from maven

2004-11-29 Thread Adrian Tarau
How can I force the maven to stop de build process, and display a message about 
why the build was failed from a Java Bean called from build.xml?


Add dynamic dependiences

2004-11-24 Thread Adrian Tarau
Hi,
 
I want to build an ear, and in the ear I want to put a war or jar which is not 
define in the dependences (it is build in this project).
 
It is possible to add it in the dependences so the ear plugin will see it? Or I 
need to write Java code for this?
 
Thanks.


RE: maven.jar.includes could not work?

2004-11-23 Thread Adrian Tarau

No, the jar plugin is ok, the maven.jar.incluse is set latter.
The problem was that I set when building the main jar the explude path, and 
when I tried to set the filters for the second jar, the exclude path cannot be 
set with jelly:set only with maven:set.

Now it works :) Thanks for help.

-Original Message-
From: Eric Giguere [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 23, 2004 9:27 AM
To: Maven Users List
Subject: Re: maven.jar.includes could not work?

Hello
I think that the support for the include property in the jar plugin was 
lost during a merge for version 1.6 of the plugin, its a feature I've 
submitted earlier and it got lost.

Check in the plugin.jelly file  around the use of the jar tag, you 
should see in the jar:jar goal:
ant:jar
  jarfile=${maven.build.dir}/${maven.final.name}.jar
  basedir=${maven.build.dest}
  index=${maven.jar.index}
  compress=${maven.jar.compress}
  excludes=${maven.jar.excludes}

Replace this by:
ant:jar
  jarfile=${maven.build.dir}/${maven.final.name}.jar
  basedir=${maven.build.dest}
  index=${maven.jar.index}
  compress=${maven.jar.compress}
  excludes=${maven.jar.excludes}
  includes=${maven.jar.includes}

This will fix the problem.

Hope it helps
Eric.

 
Adrian Tarau wrote:

Hmmm, it doesn't work.

I use it like this: in a postGoal jar:jar I want to call again the jar:jar 
goal with some properties changed to create another jar. For that I must 
changed maven.jar.includes and maven.jar.excludes to put a different classes 
in this second jar.

postGoal name=jar:jar
j:if test=${jar_second_loop != 'true'}
j:set var=oldMavenFinalName value=${maven.final.name} /
j:set var=maven.final.name 
 value=${pom.artifactId}-j2ee-${pom.currentVersion}/
echoBuilding J2EE Notification JAR: ${maven.final.name}/echo
attainGoal name=j2ee-jar:prepare-jar-filters/
j:set var=jar_second_loop value=true/
attainGoal name=jar:jar/
j:set var=maven.final.name value=${oldMavenFinalName}/
/j:if
/postGoal

and 

goal name=j2ee-jar:prepare-jar-filters
maven:set plugin=maven-jar-plugin property=maven.jar.includes 
 value=${notification.j2ee.includes}/
j:set var=maven.jar.excludes value=${oldJarExcludes}/
/goal



-Original Message-
From: Brett Porter [mailto:[EMAIL PROTECTED] 
Sent: Monday, November 22, 2004 5:25 PM
To: Maven Users List
Subject: Re: maven.jar.includes could not work?

Depending on when you are calling that, you may need to use

maven:set plugin=maven-jar-plugin property=maven.jar.includes
value=com/xxx/yyy/** /

- Brett


On Mon, 22 Nov 2004 17:21:46 -0500, Adrian Tarau
[EMAIL PROTECTED] wrote:
  

Hi,

I want to change maven.jar.includes from build.xml and I set the include 
pattern but the jar doesn't have any class inside(only the manifest).

The pattern is j:set var=maven.jar.includes value=com/xxx/yyy/**/

Thanks.





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


  



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Create 2 jars for a project

2004-11-22 Thread Adrian Tarau

I can use the ant:jar but I want to use the code behind the jar:jar goal 
which add to Manifest.MF a lots o useful information extracted from POM. One 
solution it will be to add it also in maven.xml but is not so beautiful.

Do you know if I can make a postGoal fro jar:jar, change the jar plugin 
properties, call again jar:jar goal but skiping the postGoal the second time?. 
Can be a pre or post goal skipped programmatic?
 

-Original Message-
From: Eric Giguere [mailto:[EMAIL PROTECTED] 
Sent: Monday, November 22, 2004 3:56 PM
To: Maven Users List
Subject: Re: Create 2 jars for a project

Sure it is, but not wihout some extra jelly code.

Do it with the Ant Jar tag in your maven.xml or you can make one project 
as a subproject of the other using the reactor component.
But be aware that if you do, you will loose the maven.artifact. The 
artifact of a maven project is, by default, unique. A single jar.

We have a project here that builds over 30 jars and its not really an 
issue. The product we build is not a simple artifact anyway so nowhere 
in our build is the unique artifact refered.

Hope it helps.
Eric.

Adrian Tarau wrote:

Hi,
 
It is possible to create 2 jars in the same maven project?
 
Thanks.

  




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Create 2 jars for a project

2004-11-22 Thread Adrian Tarau

Thanks for the tips; I think the first one with the flag is better.
First of all, I will be synchronized with all the updates made to the JAR 
plugin and second the project is already included into a multiproject and the 
multiproject solution is not so good.

-Original Message-
From: Eric Giguere [mailto:[EMAIL PROTECTED] 
Sent: Monday, November 22, 2004 4:14 PM
To: Maven Users List
Subject: Re: Create 2 jars for a project

Yes, I gues it can be done if you program this accordingly with a flag.
But instead of doing this and having to cope with some maybe unwanted 
behavior from calling jar:jar twice and trying to fool the plugin, you 
could take the jelly code in the jar plugin and use it directly in your 
project?

You know what, maybe my approach I took with the legacy project could 
fit you more.
Create a master project that is responsible for compiling all you 
sources. Then, pass control to 2 sub-projects that will take care of 
producing the jars on the classes build by the master project. It 
involves setting this in the sub-projects:

parent.base.dir=${basedir}/../..-- depends on where you put you 
sub-project

#
# maven default source directory override to get parent's instead
#
maven.build.dir=${parent.base.dir}/target
maven.src.dir=${parent.base.dir}/src/java

With this, all projects will use the same sources and same classes. So 
your master compiles, sub-projects jar using all maven built in mechanism.

What do you think?
Eric.


Adrian Tarau wrote:

I can use the ant:jar but I want to use the code behind the jar:jar goal 
which add to Manifest.MF a lots o useful information extracted from POM. One 
solution it will be to add it also in maven.xml but is not so beautiful.

Do you know if I can make a postGoal fro jar:jar, change the jar plugin 
properties, call again jar:jar goal but skiping the postGoal the second time?. 
Can be a pre or post goal skipped programmatic?
 

-Original Message-
From: Eric Giguere [mailto:[EMAIL PROTECTED] 
Sent: Monday, November 22, 2004 3:56 PM
To: Maven Users List
Subject: Re: Create 2 jars for a project

Sure it is, but not wihout some extra jelly code.

Do it with the Ant Jar tag in your maven.xml or you can make one project 
as a subproject of the other using the reactor component.
But be aware that if you do, you will loose the maven.artifact. The 
artifact of a maven project is, by default, unique. A single jar.

We have a project here that builds over 30 jars and its not really an 
issue. The product we build is not a simple artifact anyway so nowhere 
in our build is the unique artifact refered.

Hope it helps.
Eric.

Adrian Tarau wrote:

  

Hi,

It is possible to create 2 jars in the same maven project?

Thanks.

 






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


  



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



maven.jar.includes could not work?

2004-11-22 Thread Adrian Tarau
Hi,
 
I want to change maven.jar.includes from build.xml and I set the include 
pattern but the jar doesn't have any class inside(only the manifest).
 
The pattern is j:set var=maven.jar.includes value=com/xxx/yyy/**/
 
Thanks.


RE: maven.jar.includes could not work?

2004-11-22 Thread Adrian Tarau
Hmmm, it doesn't work.

I use it like this: in a postGoal jar:jar I want to call again the jar:jar goal 
with some properties changed to create another jar. For that I must changed 
maven.jar.includes and maven.jar.excludes to put a different classes in this 
second jar.

postGoal name=jar:jar
j:if test=${jar_second_loop != 'true'}
j:set var=oldMavenFinalName value=${maven.final.name} /
j:set var=maven.final.name 
value=${pom.artifactId}-j2ee-${pom.currentVersion}/
echoBuilding J2EE Notification JAR: ${maven.final.name}/echo
attainGoal name=j2ee-jar:prepare-jar-filters/
j:set var=jar_second_loop value=true/
attainGoal name=jar:jar/
j:set var=maven.final.name value=${oldMavenFinalName}/
/j:if
/postGoal

and 

goal name=j2ee-jar:prepare-jar-filters
maven:set plugin=maven-jar-plugin property=maven.jar.includes 
value=${notification.j2ee.includes}/
j:set var=maven.jar.excludes value=${oldJarExcludes}/
/goal



-Original Message-
From: Brett Porter [mailto:[EMAIL PROTECTED] 
Sent: Monday, November 22, 2004 5:25 PM
To: Maven Users List
Subject: Re: maven.jar.includes could not work?

Depending on when you are calling that, you may need to use

maven:set plugin=maven-jar-plugin property=maven.jar.includes
value=com/xxx/yyy/** /

- Brett


On Mon, 22 Nov 2004 17:21:46 -0500, Adrian Tarau
[EMAIL PROTECTED] wrote:
 Hi,
 
 I want to change maven.jar.includes from build.xml and I set the include 
 pattern but the jar doesn't have any class inside(only the manifest).
 
 The pattern is j:set var=maven.jar.includes value=com/xxx/yyy/**/
 
 Thanks.
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Problems downloading dependencies in 1.0.1

2004-11-18 Thread Adrian Tarau
Hi,
 
I'm using Maven 1.0 and I want to switch to release 1.0.1 but I have some 
problems with some dependencies.
 
We have a local repository, mirrored after ibiblio/maven and I get an error 
when it tries to download some jars added by me in the repository manually.
All the jars that came from ibiblio are downloaded ok
 
Question: How can I activate detailed report on downloading dependencies (I saw 
something on a maillist)
 
Attempting to download sje-config.jar.
Getting URL:
http://scm.zrh.swissre.com:8080/releases/sje/jars/sje-config.jar
Received status code: 200
last-modified = Tue, 30 Mar 2004 12:14:47 GMT (1080648887000)
7/7K
7K downloaded
Local timestamp: -1
Remote timestamp: 1080648887000
 
The only report I get is: 
 
Attempting to download .jar.
 
Fail .
 


RE: Problems downloading dependencies in 1.0.1

2004-11-18 Thread Adrian Tarau

Hi,

Yes, it is a multi project and I checked the settings for the repository.
The settings are only in the multiproject project.xml(You can see it bellow) 
and the sub-projects doesn't override this properties. As I told you with Maven 
1.0 everything works, but with 1.0.1 is not working.

maven.repo.remote=our_server,http://www.ibiblio.org/maven
maven.repo.central=our_server
maven.repo.central.directory=.maven/repository

-Original Message-
From: Jean-Marc Lavoie [mailto:[EMAIL PROTECTED] 
Sent: Thursday, November 18, 2004 11:31 AM
To: Maven Users List
Subject: RE: Problems downloading dependencies in 1.0.1


That looks like my first experience with the properties not being
inherited. Check if you have a sub project that rely on the
maven.repo.remote property being inherited from the parent
project.properties . In wich cases, ibilio repository will be used
instead of your repository, jars originnally from ibilio will be
downloaded from ibilio, and your special jars won't be found in ibilio.

Regards
Jean-Marc

-Original Message-
From: Adrian Tarau [mailto:[EMAIL PROTECTED] 
Sent: Thursday, November 18, 2004 11:19 AM
To: [EMAIL PROTECTED]
Subject: Problems downloading dependencies in 1.0.1

Hi,
 
I'm using Maven 1.0 and I want to switch to release 1.0.1 but I have
some problems with some dependencies.
 
We have a local repository, mirrored after ibiblio/maven and I get an
error when it tries to download some jars added by me in the repository
manually.
All the jars that came from ibiblio are downloaded ok
 
Question: How can I activate detailed report on downloading dependencies
(I saw something on a maillist)
 
Attempting to download sje-config.jar.
Getting URL:
http://scm.zrh.swissre.com:8080/releases/sje/jars/sje-config.jar
Received status code: 200
last-modified = Tue, 30 Mar 2004 12:14:47 GMT (1080648887000) 7/7K 7K
downloaded Local timestamp: -1 Remote timestamp: 1080648887000
 
The only report I get is: 
 
Attempting to download .jar.
 
Fail .
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Problems downloading dependencies in 1.0.1

2004-11-18 Thread Adrian Tarau

Thanks, I thought was something broken in this release. I think I will wait for 
the next release(version 1.0 works ok).

-Original Message-
From: Jean-Marc Lavoie [mailto:[EMAIL PROTECTED] 
Sent: Thursday, November 18, 2004 12:27 PM
To: Maven Users List
Subject: RE: Problems downloading dependencies in 1.0.1


Property inheritance in 1.0.1 is partly broken, there have been some post on it 
already and a Jira filed on this issue. The value does not get inherited, so 
you use ibiblio repository without knowing it, and of course it does not 
contain your custom jars. 

On my work projects, we will wait for 1.0.2 as we have lots of multiproject 
using properties. In my pet-projects at home I use 1.0.1 but I copied the 
missing properties in my subprojects. It's a choice to wait or adapt your 
project. Either way, it's a small price to pay for this wonderfull tool :) . If 
you upgrade to 1.0.1, 2 days ago Jörg Schaible submitted some script on the 
list to modify the project.properties files. See 
http://jira.codehaus.org/BrowseProject.jspa?id=10030 for 1.0.2 details, and 
http://jira.codehaus.org/browse/MAVEN-1501 for this particular isssue.
 
Hope it clarify the issue.
Regards,
Jean-Marc


-Original Message-
From: Adrian Tarau [mailto:[EMAIL PROTECTED] 
Sent: Thursday, November 18, 2004 11:39 AM
To: Maven Users List
Subject: RE: Problems downloading dependencies in 1.0.1


Hi,

Yes, it is a multi project and I checked the settings for the repository.
The settings are only in the multiproject project.xml(You can see it bellow) 
and the sub-projects doesn't override this properties. As I told you with Maven 
1.0 everything works, but with 1.0.1 is not working.

maven.repo.remote=our_server,http://www.ibiblio.org/maven
maven.repo.central=our_server
maven.repo.central.directory=.maven/repository

-Original Message-
From: Jean-Marc Lavoie [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 18, 2004 11:31 AM
To: Maven Users List
Subject: RE: Problems downloading dependencies in 1.0.1


That looks like my first experience with the properties not being
inherited. Check if you have a sub project that rely on the
maven.repo.remote property being inherited from the parent
project.properties . In wich cases, ibilio repository will be used
instead of your repository, jars originnally from ibilio will be
downloaded from ibilio, and your special jars won't be found in ibilio.

Regards
Jean-Marc

-Original Message-
From: Adrian Tarau [mailto:[EMAIL PROTECTED] 
Sent: Thursday, November 18, 2004 11:19 AM
To: [EMAIL PROTECTED]
Subject: Problems downloading dependencies in 1.0.1

Hi,
 
I'm using Maven 1.0 and I want to switch to release 1.0.1 but I have
some problems with some dependencies.
 
We have a local repository, mirrored after ibiblio/maven and I get an
error when it tries to download some jars added by me in the repository
manually.
All the jars that came from ibiblio are downloaded ok
 
Question: How can I activate detailed report on downloading dependencies
(I saw something on a maillist)
 
Attempting to download sje-config.jar.
Getting URL:
http://scm.zrh.swissre.com:8080/releases/sje/jars/sje-config.jar
Received status code: 200
last-modified = Tue, 30 Mar 2004 12:14:47 GMT (1080648887000) 7/7K 7K
downloaded Local timestamp: -1 Remote timestamp: 1080648887000
 
The only report I get is: 
 
Attempting to download .jar.
 
Fail .
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]