Re: Excluding a submodule from package/install phases.
Just for documentation purposes: - Netbeans sets an environment variable called NB_EXEC_MAVEN_PROCESS_UUID (AFAIK should be env.NB_EXEC_MAVEN_PROCESS_UUID in the profile). - I use this in $HOME/.mavenrc to extend MAVEN_OPTS with -Dorg.slf4j.simpleLogger.showDateTime=true when the variable is not set. - So when invoking Maven from the CLI I get relative timestamps which would make Netbeans Maven Console parser choke :-) Regards Mirko -- http://illegalstateexception.blogspot.com/ https://github.com/mfriedenhagen/ (http://osrc.dfm.io/mfriedenhagen) https://bitbucket.org/mfriedenhagen/ On Wed, Jan 22, 2014 at 5:49 PM, Todd Chapman wrote: > Thank you Curtis. That was very helpful. > > > On Tue, Jan 21, 2014 at 12:02 PM, Curtis Rueden wrote: > >> Hi Todd, >> >> > In our multi-module project we have one module that is only used for >> > development in our IDE. Is there a way to configure this project so >> > that it is always excluded from package phase? >> >> With Eclipse, you can do something similar using profiles: >> >> >> >> eclipse >> >> >> m2e.version >> >> >> >> my-eclipse-specific-module >> >> >> >> >> This excludes the "my-eclipse-specific-module" module completely from the >> command-line build. >> >> If you aren't using Eclipse, perhaps your IDE sets a similar property. >> >> Regards, >> Curtis >> >> >> On Tue, Jan 21, 2014 at 10:52 AM, Todd Chapman wrote: >> >> > Hello, >> > >> > In our multi-module project we have one module that is only used for >> > development in our IDE. Is there a way to configure this project so that >> it >> > is always excluded from package phase? >> > >> > Thanks, >> > >> > -Todd >> > >> - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
RE: How to configure maven
Sorry - the bad repo is in the rampart pom.xml file. I must have fat fingered the text search first time around. -Original Message- From: Walters, Jay [mailto:walte...@hmc.harvard.edu] Sent: Wednesday, January 22, 2014 11:49 AM To: 'Maven Users List' Subject: RE: How to configure maven Sorry, this is probably also relevant (and also does not look right). Is this a mirror gone bad? How do I configure where maven looks for the repository for apache files (and where is the right place). Downloading: http://shibboleth.internet2.edu/downloads/maven2/org/apache/axis2/a xis2-kernel/1.6.2/axis2-kernel-1.6.2.pom [WARNING] Checksum validation failed, expected http://shibboleth.internet2.edu/downloads/maven2/or g/apache/axis2/mex/1.6.2/mex-1.6.2-impl.jar -Original Message- From: Walters, Jay [mailto:walte...@hmc.harvard.edu] Sent: Wednesday, January 22, 2014 11:47 AM To: 'users@maven.apache.org' Subject: How to configure maven Sorry for asking such a easy question, but googling apache maven anything doesn't get to the answer too easily. I have a previously working local repository in my home\.m2 directory. I am on windows and JDK 1.6.0_21. I have previously used this with maven 2.2.1 and 3.0.4. I also downloaded a fresh maven 3.1.1 which has the same problem. I have no custom settings.xml file, I just have what comes in the zipfile downloads from the apache website. Today, I'm trying to build apache rampart 1.6.2 from source (downloaded yesterday) which wants to pull in apache axis jars/poms and also a file apache/8/pom.xml from an apache repository. Rather than fetching in the files I need I get the attached internet2 html page which breaks the build. Is there a way to configure this so apache stuff builds properly? - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Excluding a submodule from package/install phases.
Thank you Curtis. That was very helpful. On Tue, Jan 21, 2014 at 12:02 PM, Curtis Rueden wrote: > Hi Todd, > > > In our multi-module project we have one module that is only used for > > development in our IDE. Is there a way to configure this project so > > that it is always excluded from package phase? > > With Eclipse, you can do something similar using profiles: > > > > eclipse > > > m2e.version > > > > my-eclipse-specific-module > > > > > This excludes the "my-eclipse-specific-module" module completely from the > command-line build. > > If you aren't using Eclipse, perhaps your IDE sets a similar property. > > Regards, > Curtis > > > On Tue, Jan 21, 2014 at 10:52 AM, Todd Chapman wrote: > > > Hello, > > > > In our multi-module project we have one module that is only used for > > development in our IDE. Is there a way to configure this project so that > it > > is always excluded from package phase? > > > > Thanks, > > > > -Todd > > >
RE: How to configure maven
Sorry, this is probably also relevant (and also does not look right). Is this a mirror gone bad? How do I configure where maven looks for the repository for apache files (and where is the right place). Downloading: http://shibboleth.internet2.edu/downloads/maven2/org/apache/axis2/a xis2-kernel/1.6.2/axis2-kernel-1.6.2.pom [WARNING] Checksum validation failed, expected http://shibboleth.internet2.edu/downloads/maven2/or g/apache/axis2/mex/1.6.2/mex-1.6.2-impl.jar -Original Message- From: Walters, Jay [mailto:walte...@hmc.harvard.edu] Sent: Wednesday, January 22, 2014 11:47 AM To: 'users@maven.apache.org' Subject: How to configure maven Sorry for asking such a easy question, but googling apache maven anything doesn't get to the answer too easily. I have a previously working local repository in my home\.m2 directory. I am on windows and JDK 1.6.0_21. I have previously used this with maven 2.2.1 and 3.0.4. I also downloaded a fresh maven 3.1.1 which has the same problem. I have no custom settings.xml file, I just have what comes in the zipfile downloads from the apache website. Today, I'm trying to build apache rampart 1.6.2 from source (downloaded yesterday) which wants to pull in apache axis jars/poms and also a file apache/8/pom.xml from an apache repository. Rather than fetching in the files I need I get the attached internet2 html page which breaks the build. Is there a way to configure this so apache stuff builds properly? - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
How to configure maven
Sorry for asking such a easy question, but googling apache maven anything doesn't get to the answer too easily. I have a previously working local repository in my home\.m2 directory. I am on windows and JDK 1.6.0_21. I have previously used this with maven 2.2.1 and 3.0.4. I also downloaded a fresh maven 3.1.1 which has the same problem. I have no custom settings.xml file, I just have what comes in the zipfile downloads from the apache website. Today, I'm trying to build apache rampart 1.6.2 from source (downloaded yesterday) which wants to pull in apache axis jars/poms and also a file apache/8/pom.xml from an apache repository. Rather than fetching in the files I need I get the attached internet2 html page which breaks the build. Is there a way to configure this so apache stuff builds properly? - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: turns EAR into an OSGi
Thank you very much for all your responses. -- View this message in context: http://maven.40175.n5.nabble.com/turns-EAR-into-an-OSGi-tp5781929p5782017.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Maven add resource
I'm not so sure about maven-eclipse-plugin but in m2e,it only add the directory to the eclipse classpath if it exists. If the rest of your build is supposed to create it, try running with 'mvn package eclipse:eclipse' . On Wed, Jan 22, 2014 at 10:18 AM, PollerJava wrote: > Thanks a lot for your help. > > My requirement is to use Eclipse only as Editor and not to use any plugin > (Actually I don't know why) and a further college of mine does it like I > described at top but I don't know why it doesn't work for me. > > My Maven output is this: > > [INFO] > [INFO] > > [INFO] Building example-project 1.0-SNAPSHOT > [INFO] > > [INFO] > [INFO] --- maven-eclipse-plugin:2.9:clean (default-cli) @ example-project > --- > [INFO] Deleting file: .project > [INFO] Deleting file: .classpath > [INFO] Deleting file: .wtpmodules > [INFO] > [INFO] >>> maven-eclipse-plugin:2.9:eclipse (default-cli) @ example-project > >>> > [INFO] > [INFO] --- build-helper-maven-plugin:1.8:add-source (add-source) @ > example-project --- > [INFO] Source directory: > > /home/myname/EclipseWorkspaces/PlayGround/SpringCXF_Example_Project/example-project/src/main/generated > added. > [INFO] > [INFO] <<< maven-eclipse-plugin:2.9:eclipse (default-cli) @ example-project > <<< > [INFO] > [INFO] --- maven-eclipse-plugin:2.9:eclipse (default-cli) @ example-project > --- > [INFO] Using Eclipse Workspace: > /home/myname/EclipseWorkspaces/PlayGround/SpringCXF_Example_Project > [INFO] Adding default classpath container: > org.eclipse.jdt.launching.JRE_CONTAINER > [INFO] Not writing settings - defaults suffice > [INFO] Wrote Eclipse project for "example-project" to > > /home/myname/EclipseWorkspaces/PlayGround/SpringCXF_Example_Project/example-project. > [INFO] > [INFO] > > [INFO] BUILD SUCCESS > [INFO] > > [INFO] Total time: 2.497s > [INFO] Finished at: Wed Jan 22 10:08:09 CET 2014 > [INFO] Final Memory: 12M/210M > [INFO] > > > > So there is a line: > > Source directory: > > /home/myname/EclipseWorkspaces/PlayGround/SpringCXF_Example_Project/example-project/src/main/generated > added -> but the folder isn't there. > > Has anyone any idea what I'am doing wrong? > Thanks a lot for further help. > > All the best, > Poller > > > > > > -- > View this message in context: > http://maven.40175.n5.nabble.com/Maven-add-resource-tp5781977p5782014.html > Sent from the Maven - Users mailing list archive at Nabble.com. > > - > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > > -- Adrien Rivard
FW: How to include @inheritDoc from a dependent jar
Hi, Just checking one last time if someone has input about this or knows whom to contact. I have done the following in my pom.xml org.apache.maven.plugins maven-javadoc-plugin 2.8.1 aggregate true managed-objects:* aggregate When I run ' mvn clean site' it generates the javadoc and puts it in ../target/site/apidocs/ However when I run the 'mvn site:run' to check the site it seems not to load the new javadoc. Webserver still shows the old. Any ideas why and how I can make it show the latest? All hints appreciated! Br, //mike -Original Message- From: Mikael Petterson [mailto:mikael.petter...@ericsson.com] Sent: den 16 januari 2014 15:04 To: Maven Users List Subject: RE: How to include @inheritDoc from a dependent jar Hi, I realized one mistake. I use the following under build tag: org.apache.maven.plugins maven-javadoc-plugin true managed-objects:* I run 'mvn clean install' I can see that it is loading source files for all packages in my classes Loading source files for package ... Loading source files for package ... Loading source files for package ... Constructing Javadoc information... Standard Doclet version 1.7.0_21 Building tree for all the packages and classes... but not for depending classes!! What am I missing? Br //mike -Original Message- From: Mikael Petterson [mailto:mikael.petter...@ericsson.com] Sent: den 16 januari 2014 10:20 To: Maven Users List Subject: RE: How to include @inheritDoc from a dependent jar Ok so I have added all in my pom.xml org.apache.maven.plugins maven-project-info-reports-plugin 2.4 org.codehaus.mojo taglist-maven-plugin 2.4 org.apache.maven.plugins maven-javadoc-plugin 2.8.1 true How can I make sure that the javadoc plugin is executed ( under reporting). I tried: 'mvn site:run' But I don't get the source of depending jars ( I know source is available for them). Br, //mikael -Original Message- From: Stuart McCulloch [mailto:mccu...@gmail.com] Sent: den 15 januari 2014 12:38 To: Maven Users List Subject: Re: How to include @inheritDoc from a dependent jar On 15 Jan 2014, at 08:20, Mikael Petterson wrote: > Hi, > > New try :-) > > I have the following: > > Interface in dependency jar javadoc: > > /** > * Deletes the object found at the specified location. > * > * @param Object any type of object > * @throws InvalidObjectException lots of text > * @throws NoSuchObjectException lots of text > */ > public void delete (Object object)throws throws > InvalidObjectException, NoSuchObjectException; > > Implementing class: > > /** > * {@inheritDoc} > */ >@Override >public void delete(Object object) throws InvalidObjectException, > NoSuchObjectException { > //implementation of delete >} > > Is this correct or? Since this will not produce any javadoc for > implementation of delete ( last code). > > Do I need to do anything special in the maven javadoc plugin? The javadoc tool works primarily from source, and by default the maven javadoc plugin doesn't include the sources of dependencies -
Re: Maven add resource
Thanks a lot for your help. My requirement is to use Eclipse only as Editor and not to use any plugin (Actually I don't know why) and a further college of mine does it like I described at top but I don't know why it doesn't work for me. My Maven output is this: [INFO] [INFO] [INFO] Building example-project 1.0-SNAPSHOT [INFO] [INFO] [INFO] --- maven-eclipse-plugin:2.9:clean (default-cli) @ example-project --- [INFO] Deleting file: .project [INFO] Deleting file: .classpath [INFO] Deleting file: .wtpmodules [INFO] [INFO] >>> maven-eclipse-plugin:2.9:eclipse (default-cli) @ example-project >>> [INFO] [INFO] --- build-helper-maven-plugin:1.8:add-source (add-source) @ example-project --- [INFO] Source directory: /home/myname/EclipseWorkspaces/PlayGround/SpringCXF_Example_Project/example-project/src/main/generated added. [INFO] [INFO] <<< maven-eclipse-plugin:2.9:eclipse (default-cli) @ example-project <<< [INFO] [INFO] --- maven-eclipse-plugin:2.9:eclipse (default-cli) @ example-project --- [INFO] Using Eclipse Workspace: /home/myname/EclipseWorkspaces/PlayGround/SpringCXF_Example_Project [INFO] Adding default classpath container: org.eclipse.jdt.launching.JRE_CONTAINER [INFO] Not writing settings - defaults suffice [INFO] Wrote Eclipse project for "example-project" to /home/myname/EclipseWorkspaces/PlayGround/SpringCXF_Example_Project/example-project. [INFO] [INFO] [INFO] BUILD SUCCESS [INFO] [INFO] Total time: 2.497s [INFO] Finished at: Wed Jan 22 10:08:09 CET 2014 [INFO] Final Memory: 12M/210M [INFO] So there is a line: Source directory: /home/myname/EclipseWorkspaces/PlayGround/SpringCXF_Example_Project/example-project/src/main/generated added -> but the folder isn't there. Has anyone any idea what I'am doing wrong? Thanks a lot for further help. All the best, Poller -- View this message in context: http://maven.40175.n5.nabble.com/Maven-add-resource-tp5781977p5782014.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org