Parent project version
Is there a way to use the version of a parent project in its childrens projects? Arthur Rodrigues Stilben - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
ear
How is the model of an ear project at Maven? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Error ear
Hi, I have a problem in my ear project. I made something like that: dependency groupIdmath.ssj/groupId artifactIdcolt/artifactId version1.2.0/version typejar/type /dependency dependency groupIdjfree/groupId artifactIdjcommon/artifactId version1.0.12/version typejar/type /dependency dependency groupIdSaiph.SaiphST/groupId artifactIdSaiphST-ejb/artifactId version1.0/version typejar/type /dependency Until the Saiph dependency, it's all ok. But in that dependency, an error is shown: C:\SaiphMaven\SaiphST_ear\SaiphSTmvn compile [INFO] Scanning for projects... [INFO] [INFO] Building SaiphST [INFO]task-segment: [compile] [INFO] Downloading: http://repo1.maven.org/maven2/math/ssj/colt/1.2.0/colt-1.2.0.pom Downloading: http://repo1.maven.org/maven2/Saiph/SaiphMaven/1.0/SaiphMaven-1.0.p [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Failed to resolve artifact. GroupId: Saiph ArtifactId: SaiphMaven Version: 1.0 Reason: Unable to download the artifact from any repository Saiph:SaiphMaven:pom:1.0 from the specified remote repositories: central (http://repo1.maven.org/maven2) [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: 12 seconds [INFO] Finished at: Thu Jan 24 16:42:39 GMT-03:00 2008 [INFO] Final Memory: 2M/5M [INFO] What can I do to resolve it? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Inser jar file in repository
How can I do to insert a jar file in repository? Arthur Rodrigues Stilben - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RES: Inser jar file in repository
I have a project A that depends of B.jar file. That B.jar is already done, I just want to put it in repository so that I can use it in project A. Arthur Rodrigues Stilben De: Wendy Smoak [EMAIL PROTECTED] Enviado: quarta-feira, 23 de janeiro de 2008 12:57 Para: Maven Users List Assunto: Re: Inser jar file in repository On Jan 23, 2008 6:50 AM, Arthur Rodrigues Stilben [EMAIL PROTECTED] wrote: How can I do to insert a jar file in repository? What jar? What repository? Either the install or deploy plugin may help, depending on what problem you're trying to solve. Tell us more about the situation so we can help. -- Wendy - 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]
Config MANIFEST.MF
How can I configure the MANIFEST.MF in the Maven ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
example section MANIFEST
How can I produce a manifest file like this: Manifest-Version: 1.0 Ant-Version: Apache Ant 1.6.5 Created-By: 1.4.2_10-b03 (Sun Microsystems Inc.) Built-By: lukas Maven-Version: 1.1-beta-3-SNAPSHOT Name: org/apache/maven Extension-name: org.apache.maven Specification-Title: Create jar files Specification-Vendor: Apache Software Foundation Specification-Version: 1.8 Implementation-Title: org.apache.maven Implementation-Vendor: Apache Software Foundation Implementation-Version: 1.8-SNAPSHOT Arthur Rodrigues Stilben - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
section MANIFEST
How can I insert a section in MANIFEST? Arthur Rodrigues Stilben - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Sorry
I feel so sorry about my insistence. But I have a little problem that still can't resolve. I want to put a section at the menisfest using this code: build !--defaultGoalpackage/defaultGoal-- plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-jar-plugin/artifactId configuration archive manifestEntries !--modedevelopment/mode url${pom.url}/url-- Java-Version${java.version}/Java-Version Build-Platform${os.name} ${os.arch} ${os.version}/Build-Platform Built-By${user.name}/Built-By Class-Path${manifest.classpath} SaiphST-ejbClient.jar/Class-Path section Namebr/com/saiph/st/ejb/Name Specification-TitleSaiphST-ejb API/Specification-Title Specification-Version${saiph.rel}_${saiph.ver}/Specification-Version Specification-VendorExtend.Net Ltda./Specification-Vendor Implementation-Titlebr.com.saiph.st.ejb/Implementation-Title Implementation-Version${saiph.rel}_${saiph.ver} ${TODAY}/Implementation-Version Implementation-VendorExtend.Net Ltda./Implementation-Vendor /section /manifestEntries /archive /configuration /plugin /plugins /build Informations above section are shown, but inside not. I just want to put a section in the file. How can I do it? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RES: Sorry
Thank you for help! Arthur Rodrigues Stilben De: Kalle Korhonen [EMAIL PROTECTED] Enviado: terça-feira, 22 de janeiro de 2008 15:36 Para: Maven Users List Assunto: Re: Sorry This works: manifestSections manifestSection namecom/company/mine/name manifestEntries Currently using it. Kalle On 1/22/08, Arthur Rodrigues Stilben [EMAIL PROTECTED] wrote: I feel so sorry about my insistence. But I have a little problem that still can't resolve. I want to put a section at the menisfest using this code: build !--defaultGoalpackage/defaultGoal-- plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-jar-plugin/artifactId configuration archive manifestEntries !--modedevelopment/mode url${pom.url}/url-- Java-Version${java.version}/Java-Version Build-Platform${os.name} ${os.arch} ${os.version }/Build-Platform Built-By${user.name}/Built-By Class-Path${manifest.classpath} SaiphST-ejbClient.jar /Class-Path section Namebr/com/saiph/st/ejb/Name Specification-TitleSaiphST-ejb API/Specification-Title Specification-Version${saiph.rel}_${saiph.ver }/Specification-Version Specification-VendorExtend.NetLtda./Specification-Vendor Implementation-Titlebr.com.saiph.st.ejb /Implementation-Title Implementation-Version${saiph.rel}_${saiph.ver} ${TODAY}/Implementation-Version Implementation-VendorExtend.NetLtda./Implementation-Vendor /section /manifestEntries /archive /configuration /plugin /plugins /build Informations above section are shown, but inside not. I just want to put a section in the file. How can I do it? - 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]
Source Dir
I wan to know if is it possible to use more than one source dir using the task sourceDirectory. Arthur Rodrigues Stilben - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RES: JDK 1.5 java.lang.Enum Buid Failure using Maven 2.0.8
I would like to know how can I do to use two kinds of packages in the same file. For example, I have an app.class and I want to create an app.jar and an app.war file. How can I do that? Arthur Rodrigues Stilben De: Wayne Fay [EMAIL PROTECTED] Enviado: segunda-feira, 10 de dezembro de 2007 19:48 Para: Maven Users List Assunto: Re: JDK 1.5 java.lang.Enum Buid Failure using Maven 2.0.8 Zip up a small sample project, create a JIRA issue, and attach it. Then someone can look at your issue more closely. Wayne On 12/10/07, William Hoover [EMAIL PROTECTED] wrote: No takers? -Original Message- From: William Hoover [mailto:[EMAIL PROTECTED] Sent: Saturday, December 08, 2007 8:13 PM To: users@maven.apache.org Subject: JDK 1.5 java.lang.Enum Buid Failure using Maven 2.0.8 I am using JDK 1.5 / Maven 2.0.8 and am attempting mvn clean install on a simple project that contains the following snippet: ... public final Class? extends Enum? extends IDTOPhase getDTOPhaseLifeCycleStrategy(){ return someEnumClass; } ... for(java.lang.Enum? extends IDTOPhase phase : getDTOPhaseLifeCycleStrategy().getEnumConstants()){ ... } ... The problem is that this compiles w/o a problem using ANT (or Eclipse build), but fails using Maven. I get the error: ... incompatible types found : java.lang.Enum? extends IDTOPhase required : java.lang.Enum? extends IDTOPhase I even set the maven-compiler-plugin to ensure compilation in 1.5 plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-compiler-plugin/artifactId version2.0.2/version configuration source1.5/source target1.5/target /configuration /plugin Any clue??? 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]
Package war and jar
I would like to know how can I do to use two kinds of packages in the same file. For example, I have an app.class and I want to create an app.jar and an app.war file. How can I do that? Arthur Rodrigues Stilben De: Wayne Fay [EMAIL PROTECTED] Enviado: segunda-feira, 10 de dezembro de 2007 19:48 Para: Maven Users List Assunto: Re: JDK 1.5 java.lang.Enum Buid Failure using Maven 2.0.8 Zip up a small sample project, create a JIRA issue, and attach it. Then someone can look at your issue more closely. Wayne On 12/10/07, William Hoover [EMAIL PROTECTED] wrote: No takers? -Original Message- From: William Hoover [mailto:[EMAIL PROTECTED] Sent: Saturday, December 08, 2007 8:13 PM To: users@maven.apache.org Subject: JDK 1.5 java.lang.Enum Buid Failure using Maven 2.0.8 I am using JDK 1.5 / Maven 2.0.8 and am attempting mvn clean install on a simple project that contains the following snippet: ... public final Class? extends Enum? extends IDTOPhase getDTOPhaseLifeCycleStrategy(){ return someEnumClass; } ... for(java.lang.Enum? extends IDTOPhase phase : getDTOPhaseLifeCycleStrategy().getEnumConstants()){ ... } ... The problem is that this compiles w/o a problem using ANT (or Eclipse build), but fails using Maven. I get the error: ... incompatible types found : java.lang.Enum? extends IDTOPhase required : java.lang.Enum? extends IDTOPhase I even set the maven-compiler-plugin to ensure compilation in 1.5 plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-compiler-plugin/artifactId version2.0.2/version configuration source1.5/source target1.5/target /configuration /plugin Any clue??? 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]
I can't run ant
Hi, I have an ant script with no errors and I tried to run it using a POM file. I made a POM archive like this: project modelVersion4.0.0/modelVersion groupIdcom.teste/groupId artifactIdmy-project/artifactId version1.0/version build plugins plugin artifactIdmaven-antrun-plugin/artifactId executions execution goals goalrun/goal /goals phasecompile/phase configuration ant antfile=build.xml target name=test/ /ant /configuration /execution /executions /plugin /plugins /build /project So, I used the DOS and run the command mvn antrun:run at the dir that contains the POM.xml and build.xml files. The message below occurred: [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'antrun'. [INFO] [INFO] Building Unnamed - com.teste:my-project:jar:1.0 [INFO]task-segment: [antrun:run] [INFO] [INFO] [antrun:run] [INFO] Executing tasks [INFO] Executed tasks [INFO] [INFO] BUILD SUCCESSFUL [INFO] [INFO] Total time: 1 second [INFO] Finished at: Fri Dec 07 19:55:34 GMT-03:00 2007 [INFO] Final Memory: 2M/4M [INFO] but, in fact, the build.xml didn't run. I would like to test just on target of my build.xml: target name=compile description=builds files in ${generated.dir} and ${source.dir} directories mkdir dir=${binary.dir}/ javac destdir=${binary.dir} debug=on deprecation=on src path=${generated.dir}/ src path=${source.dir}/ classpath path=${project.class.path}/ /javac /target How can I do it? Arthur Rodrigues Stilben - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Run ant archive
How can I run an ant archive (build.xml) using maven? Arthur Rodrigues Stilben - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Create dir
I would like to know how can I create a directory in the windows using maven. Arthur Rodrigues Stilben - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]