project 1 « Development « Maven/Ant Q&A

Home
Maven/Ant Q&A
1.Ant
2.artifact
3.dependency
4.deploy
5.Development
6.eclipse
7.glassfish
8.hudson
9.integration
10.jetty
11.junit
12.m2eclipse
13.module
14.netbeans
15.package
16.plugin
17.POM
18.repository
19.svn
Maven/Ant Q&A » Development » project 1 

1. Including non-Java sources in a Maven project    stackoverflow.com

I'm starting on a project that I expect will include a substantial amount of non-Java code (mostly shell and SQL scripts). I would still like to manage this project with Maven. What ...

2. Using Maven for project distribution    stackoverflow.com

I have an Project that I distribute by sending out large packages. I'd like to know if there is a user friendly way of using Maven to distribute updates of the ...

3. How do I send myself by mail a backup of a project using maven?    stackoverflow.com

Before my pet projects become serious enough to deserve real version control (and its headaches) I like to just email myself the sources after I worked for a while. How can ...

4. Using maven to build/deploy/use projects with JNI    stackoverflow.com

I am trying to use maven to build a project that depends on a JNI wrapper around the OpenCV computer vision library. I've been able to "maven-ize" the OpenCV wrapper ...

5. Maven Run Project    stackoverflow.com

Is there a Maven "phase" or "goal" to simply execute the main method of a Java class? I have a project that I'd like to test manually by simply doing something ...

6. What is the benefit of splitting aggregator and parent projects?    stackoverflow.com

I've read that it's supposedly a good idea to split an aggregator project (the one with all the module declarations) from the parent/dependency project (the one with all the shared or ...

7. Building non-webapp maven2 based project with extra non-essential files and batch files    stackoverflow.com

I'm just beginning to grasp the setup of maven2 while porting over a simple project of mine. I've ran through the package command line example on the Sonatype web ...

8. How do I properly setup a multi-module Maven project with sliding release cycles    stackoverflow.com

I'm trying to work out the best way to setup our multi-module Apache Maven project in a way that allows for disparate release cycles of modules, and doesn't introduce dependency issues ...

9. Static code analysis tool to detect code duplication in Maven projects    stackoverflow.com

After I found out that there's no plugin for Simian in Maven 2, we turned to CPD, but it doesn't perform as well as Simian (observed in our Ant projects ...

10. Maven configuration for two projects    stackoverflow.com

Hi: I am having a project A being built with mvn assembly:assembly which gives me a jar file with dependencies. This project basically gets a file path and converts it to XML. Now ...

11. Using Maven for Coldfusion project    stackoverflow.com

I have to deal with what is pretty ugly and large blob of ColdFusion code which up to this day is maintained by direct modifications on production server (don't ask). I ...

12. Recomended solution for splitting up Maven projects?    stackoverflow.com

What is the best way to split up a large enterprise project in Maven? It's easy enough to understand how to partition things vertically like this...

  1. You have a DAO project
  2. The ...

13. Configure continuum 1.2.3 with maven2 project; "Username isn't defined."    stackoverflow.com

I use continuum 1.2.3 to build maven projects. On a fresh continuum installation, I added a pom by upload. I try to build, and get the following error:

Exception:
Exception while executing ...

14. Using Maven for C/C++ projects    stackoverflow.com

I'm putting Maven build around cluster of amateur, poorly written and frankly - primitive C/C++ code (meaning some C, some C++). Problem is - there's lots of it in circulation currently ...

15. Maven - which projects or techologies you are using it for?    stackoverflow.com

I've been leading rather large project that strives to "Mavenize" various testing apps produced by the engineering tools group over past 5+ years to test and optimize our home-built database. So ...

16. Integrating Maven & Non-maven projects    stackoverflow.com

I'm currently working on two projects simultaneously:

  • My main project (built with maven)
  • A spike of an open source project, which my main project depends on (not build with maven)
How do ...

17. Maven - making child projects that can be independent of their parent    stackoverflow.com

I'm a bit of a Maven newb, and I'm trying to setup a maven project that builds several child projects, but still allows someone to just grab one of the child ...

18. maven open source project    stackoverflow.com

Please, I want to test CVS and Maven tools within an existing project so: is there any open source project that I can check out from its "CVS" and build it with ...

19. Starting a new Maven project, what landmines to avoid?    stackoverflow.com

I'm starting a new project. I intend to use Maven for the first time. From reading previous threads, the folks who like Maven have me convinced... but the folks ...

20. How to check project boundaries access in Maven projects    stackoverflow.com

I have a set of Maven projects and I'd like to define access rules.
For example, projects Database and Cache may only be accessed by project DataLayer, but not from project UiLayer. ...

21. Maven: Combine web projects    stackoverflow.com

I have following Maven projects set up:

  • PM-Core
  • PM-Web (with a dependency to PM-Core)
Now, this project is used for several clients but for each client there are some small differences: mostly differences in ...

22. Maven usage for a SmartClient project    stackoverflow.com

What's the best way to setup Maven for a project that has a SmartClient architecture? Consider the following packages:

  • myproject.core
  • myproject.server
  • myproject.client
Of course there are several sub-packages in each. Client and Server ...

23. Generating sources by running a project's java class in Maven    stackoverflow.com

I'm converting a largish Ant build to Maven. As part of the Ant build, we have several steps which created Java classes by invoking one of the project's classes, simplified as:

javac ...

24. C# Project Management with Maven    stackoverflow.com

Anyone had experience of managing C# based projects with Maven? If yes , please tell me a few words about it , how weird would it be to create such a setup. Thanks ...

25. maven report on licenses your project depends on    stackoverflow.com

I've got a big multi-module project, and I'd like to generate a report that shows all the licenses of all the things the project depends on. I looked at tattletale, but it ...

26. Maven multi-module project with many reports: looking for an example    stackoverflow.com

Is there an open source project that can serve as a good example on how to use the maven site plugin to generate reports? I would prefer it to

  • consist ...

27. Multi-module project in maven    stackoverflow.com

I have some multi-module project. Some modules are packaged as wars and some as jars. When I start from the root module : mvn war:exploded I thought it would apply the step ...

28. How to access a XML file in a maven project so it stays available when packaged    stackoverflow.com

I currently started working on a maven web-app project that needs to be launched with the jetty:run-exploded goal for development/debugging in eclipse. Now, I have an XML file which contents I need ...

29. Should be a groupId unique in multimodule project?    stackoverflow.com

I have a maven multimodule project. What the best practices for creating groupId? Can I use one common groupId for all modules or unique per each?

30. Maven - 'all' or 'parent' project for aggregation?    stackoverflow.com

For educational purposes I have set up a project layout like so (flat in order to suite eclipse better):

-product
 |
 |-parent
 |-core
 |-opt
 |-all
Parent contains an aggregate project with core, opt ...

31. Building a maven child project that depends on another projects child project with Bamboo    stackoverflow.com

I have two maven projects Project AAA * AAA-Core * AAA-Other Project BBB * BBB-Core * BBB-AAA-specific I want to create a build plan in Bamboo to build the BBB-AAA-specific project. The plan configuration is such that this ...

32. Recommended ways of Importing a maven project to IDE?    stackoverflow.com

Many IDEs supports to import maven projects directly, but maven has a maven-eclipse-plugin, when you run :

mvn eclipse:eclipse
It will generate eclipse project settings ,then you can import as generic ...

33. How to use Maven in my Java Project and Why?    stackoverflow.com

I am trying to figure out the use of Maven and I got many articles describing its features and uses. But I am just not able to understand the ...

34. Building same project in Maven with different artifactid (based on JDK used)    stackoverflow.com

I have a scenario wherein my project needs to be compiled in different JDKs and the resulting artifact name should be different based on the JDK used. For example if the ...

35. Maven2 IDEA project, how to manually add to web-inf/lib folder?    stackoverflow.com

With intelliJ IDEA, how do I manually add a .jar to my web-inf/lib folder? It is a maven project and I have been adding .jar's via pom.xml thus far. I manually dropped the ...

36. Maven Project - github    stackoverflow.com

Is it possible to publish your site reports to github? For instance, I run Checkstyle, Findbugs, Cross Reference, and other plugins and would like to have that publicly available. ...

37. Two distinct projects with a shared dependent project in maven    stackoverflow.com

I have two projects, "appA" and "appB", that each depend on a third project, "common". I'm in the process of moving them from ant to maven, but I'm having some difficulty ...

38. How do you use Maven to share source code for two projects?    stackoverflow.com

I have a large Java Web Application project using Maven and I need to start a new project that will share most of the same code (so I don't have to ...

39. Can I calculate and check java project code coverage through Maven?    stackoverflow.com

Possible Duplicate:
How to get Cobertura to fail M2 build for low code coverage
I would like to calculate code coverage of my Java code base ...

40. copy files from my project with maven    stackoverflow.com

Is it possible that I copy folders from my project to a certain location during some maven phase? and does anybody know how?

41. How to remove/update maven project    stackoverflow.com

New to Maven. Ok so I used Maven to package up my project, but one of the files had some test information in it. I would like to change that file but ...

42. Working with Multiple Maven Projects Simultaneously    stackoverflow.com

Project 1: Foo Project 2: Bar If Foo depends on Bar, and both are in Maven, how do you work on Bar and Foo, so that if you need to make a small ...

43. How to list active sub-modules in a Maven project?    stackoverflow.com

I have a complex project where there are many directories that have POM files, but only some of which are sub-modules (possibly transitively) of a particular parent project. Obviously, Maven knows the ...

44. Why does maven site:site fail in a multi-module project?    stackoverflow.com

I have a Maven-3 multi-module project:

/root
  pom.xml
  /bar
    pom.xml
  /foo
    pom.xml
Module foo depends on module bar, and they both have the same ...

45. Why breaking down a Maven project to sub-modules?    stackoverflow.com

What are the main possible reasons of breaking down a Maven project to sub-modules?

46. Looking for a demo project to present Maven    stackoverflow.com

I'd like to introduce Maven to my fellow coworkers who mostly use Ant to build their projects. One of my goal would be to show them the benefit of building a ...

47. Why maven doesn't generate project reports?    stackoverflow.com

It's Maven 3.0. I'm creating a new project:

mvn archetype:create
Then I'm creating a file site/site.xml:
<project name="foo">
  <body>
    <menu name="Overview">
      <item name="Introduction" href="index.html" />
 ...

48. Maven multi-module project and unix/lf lineEnding issue    stackoverflow.com

I am very new to Maven and running into a problem that I can't figure out. I have a multi-module project setup. In one of the sub-modules, I have some Unix ...

49. How to link source from outside of maven project?    stackoverflow.com

In Maven, is it possible to link additional dependent java src from outside the project folders, so that when we build our main package, maven may include such classes into final ...

50. How to generate different deployables from the same Maven project?    stackoverflow.com

I have a situation that I'm sure must be fairly common. I have some Maven-built applications that deploy to different types of application server - like Tomcat, JBoss, etc. The build processes ...

51. How to create a cross project source release with Maven    stackoverflow.com

I have a project I need to release the source for. The problem I have is that I need to create a source release for all code that we have developed. ...

52. Building a maven project with external JNI libraries    stackoverflow.com


I'm developing a program on MacOSx that uses third party jar files that all use JNI to call C functions. How can I include those on my build path and set the ...

53. Maven multi-module project - how to run an operation after all submodules have finished    stackoverflow.com

I have a multi module maven project and I'd like to be able to run an operation (antrun) after all submodules have finished their execution. In my projects I build RPMs from ...

54. Where to keep a GPG secret key for a Maven project in CI environment?    stackoverflow.com

I'm trying to use maven-gpg-plugin:sign in order to sign project artifacts before deployment to Sonatype OSS repository. The question is where shall I keep my secret key secring.gpg:

  1. In continuous ...

55. Maven3 Issues with building a multi-module enterprise project    stackoverflow.com

I just migrated from Maven2 to Maven3 and I'm able to build each module individually or all the modules in one shot by calling mvn clean install. However, in Maven2, since ...

56. What does the --projects flag do in Maven?    stackoverflow.com

I have a Maven project which has many a set of customer-specific modules of which one is used. The command to execute this build is as follows:

mvn clean install --projects ...

57. maven project running problem    stackoverflow.com

How To resulve this problem i have update my java version to java6u23 but it will still create problem so what should i do i dont know much more about ...

58. Managing .NET project with Maven    stackoverflow.com

I am new to Maven, but I'm trying to use it to manage a .NET project. I am using the command

mvn dotnet:compile
but this is the error that I am getting
org.apache.maven.lifecycle.LifecycleExecutionException: Please ...

59. maven force rebuild of dependent projects    stackoverflow.com

I have a multimodule maven project. the service module depends on domain module using dependency tag. Every time i build the service module, i want it to automatically build the domain ...

60. Creating and using Webservices in same maven project    stackoverflow.com

I'm trying to build a maven project, an OSGi bundle, which contains Webservices. I'm using JAX-WS with all the @WebService annotations to specify the webservices I have. To load these Webservices ...

61. building different projects into 1 project using maven    stackoverflow.com

I have a project which has 20 different projects this was build using ant.now i want to move it to maven build.I have created jars for all the 20 projects + ...

62. Building non-java project    stackoverflow.com

I'm trying to build non-java project, it basically has some folders and subfolders I want to include in the jar is that possible ?

63. Hierarchy of project in maven    stackoverflow.com

Situation with inheritance in maven. I want create hierarchy of projects. Something like main POM <- module1 <- module2. I trying in my main POM to define module1 with <module> module1</module>. In module2 ...

64. How to use auto generated code in Maven project    stackoverflow.com

We've a requirement where we need to auto generate the code and use it in another project. I'm using following code for autogenerating the code. But doing a "maven package" only ...

65. Converting a large Java project to use maven    stackoverflow.com

I am converting a large Java project to use maven. I have a LOT of inter dependencies to work out, but I would like to get it off the ground ...

66. best way extend an existing java/maven project    stackoverflow.com

I'm extending an existing java app, with both pure java modules and a war. For the war, I'm using the maven-war-overlay method, which automatically includes my own extension files over the ...

67. Maven 3, maven-site-plugin, how to configure reportPlugins in a multi-module project    stackoverflow.com

With Maven 3, the site plugin has changed regarding reporting. In the maven 2, the reporting section had the an "inherited" element. For example:

<reporting>
  <plugins>
    <plugin>
  ...

68. generating maven project inheritance/aggregation diagram    stackoverflow.com

Anyone knows if it is possible to easily generate maven project inheritance/aggregation diagrams like those found in the link below? http://sonatype.com/books/maven-book/reference/figs/web/pom_real_multi.png "Figure 3.5. Enterprise Multi-module vs. Inheritance" The image was taken from ...

69. Where is project timeline for Maven 3.1 available?    stackoverflow.com

One feature of Maven 3 I am eagerly awaiting is automatic parent versioning, that is, no longer needing to hardcode the parent version in every child pom.xml. This feature is apparently coming ...

70. Applying Maven to a project    stackoverflow.com

I've been asked to apply Maven to a project. After browsing a dozen sites it appears that it's quite vast and I'm not familiar as I'd like with similar tools like ...

71. Execute multiple maven project from MS bat file?    stackoverflow.com

I need to build 3 independent maven projects using a build.bat file. I have tried (executed from the build folder - see below):

cd ../projectA
mvn clean install -U
cd ..
cd ../projectB
mvn clean install ...

72. How to structure Maven3 project to produce inputs to generate-sources in another project?    stackoverflow.com

I need to generate a few small text files that will be used as inputs during generate-sources phase of another project (data files input to FMPP/FreeMarker). The generator is Java ...

73. Moving project to Java EE 6 in Maven    stackoverflow.com

Currently my company wants to update multiple web projects to Java EE 6 platform and also supports Java EE 5 for old customers too. How should we layout my maven projects ...

74. Create SWT Maven project without having to provide platform specific SWT binaries    stackoverflow.com

I'm trying to build a (nearly) platform independent SWT Maven archetype to build SWT applications out of. It should automatically download the needed SWT libraries depending on the platform. This is ...

75. Using Hive in a maven project    stackoverflow.com

I have a project that I am migrating from ant to maven. The project makes use of a lightly-customized Hive build. I figured I would just import this build ...

76. Project after Mavenizing     stackoverflow.com

Today is the day i (with little hesitation) mavenized my project. All is well, things compile, but OMG .. what happened to my project layout? "src" is repeated twice, one is a ...

77. How to generate a combined Maven site from unrelated projects?    stackoverflow.com

I would like to create a general overview of several Maven projects in the form of a website generated with the Maven site goal. The projects are part of different ...

78. Using maven to connect to a local project    stackoverflow.com

I have two projects in eclipse:

  1. framework: A general library used in several projects.
  2. client: A project that uses framework.
client is quite large, possibly larger than framework at this point. ...

79. Maven: Does project inheritance or aggregation better support this scenario?    stackoverflow.com

I am porting a project from ant to maven. The project consists of a core set of classes which gets jar'd and used by 3-4 other subprojects. Importantly (I ...

80. Maven installation and using in project without Internet conncetion    stackoverflow.com

I'm new to maven project. I'm changing an ant project to maven project. To install the 3rd party jar's in maven local repository, I used install command. Its trying to download the resource jar.pom. I ...

81. How do I create a Play! Framework web project with Maven?    stackoverflow.com

Is there a Maven archetype out there to create a Play! Framework Java web application? Thanks

82. Not able to generate .class file in maven project    stackoverflow.com

Not able to create .class files in the target folder after building.I maven for building the app, clean install cmd not creating the .class files , could any onetell me ...

83. Maven project + maven-site-plugin not working    stackoverflow.com

I'm currently working with maven-site-plugin using Maven 3. The plugin is generating all the report as expected but due to my project layout (shown below), the main site shown does not ...

84. Project building using maven    stackoverflow.com

I am building my project using maven I am getting following error ...can any one tell why it is happening? My internet connection is ok is there any proxy setting problem? [INFO] ...

85. Defining webapp styles in central maven project    stackoverflow.com

Is there a possibility to place a web-app style (CSS files and images) in a reusable maven project? To use this "style-projects" with other WAR projects. Best regards Stefan

86. Add maven to existing project    stackoverflow.com

When I started my project, I wasn't aware of Maven.. I realized to importance of it after the project had already grown to a pretty large size. At that time I ...

87. Is Maven used in real projects?    stackoverflow.com

In my small company Maven is something new. I wonder Is Maven used in real big or larger serious projects ?

88. maven project to java project    stackoverflow.com

I am new to maven. I had downloaded a maven project from SVN. I figured it out that it was not as a java project in SVN itself. Result is, when ...

89. How can i integrate Tika in my Lucene project?    stackoverflow.com

I want to integrate Apache Tika in my java project. I need to get text from different file formats (excel, doc, ppt, and more..) After some reading I understand that the only ...

90. Any pattern for using Maven to checkout/patch/build a non-maven based open source project?    stackoverflow.com

I need to have a small patch applied to the sources of an open source project before we can use the library it generates. I'd like to automate this as ...

91. Refer to Maven project paths from Java    stackoverflow.com

I need to programmatically gather some paths inside a Maven project, in particular to refer to the project artifact. Using

URL MyClass.class.getClassLoader().getResource(String name)
works for a path relative to the target/classes folder of the ...

92. Generate distribution from Maven project    stackoverflow.com

I want to build an application distribution with Maven. I have a module in my project which holds the main source code. I decided to build the application distribution from this ...

93. How to add protocol buffers support to a maven project ?    stackoverflow.com

How to integrate protocol buffers with a maven project ? Couldn't find any information for maven users on the protocol buffers page. I need to add PB support to ...

94. How to get Maven project BaseDir() from java Code    stackoverflow.com

How to get Maven project basedir() from my Java code?

95. Maven targets in multimodule projects    stackoverflow.com

I have a multi-module project with several subprojects, one of which uses the maven android plugin:

                ...

96. Maven - hangs on building a project    stackoverflow.com

I am using maven to build projects that may or may not have children (not sure if that is related). I have many projects before this one that build fine, ...

97. Using Reflection in maven project    stackoverflow.com

Here is mavenized project stucture

Proj1
--Module 1
----Submodule 1
------Submodule1-child1
------com.module1.submodule1.child1
------Submodule1-child2
------com.module1.submodule1.child2
----Submodule 2
------com.module1.submodule2
--Module 2
----Submodule 3
------com.module2.submodule3
----Submodule 4
------com.module2.submodule4
In each submodule there are no. of classes. What I suppose to do is create one more class in submodule 4, ...

98. Maven for static web projects    stackoverflow.com

I want to use Maven capabilities for my static web projects containing images, javascript and/or css files. I don't wanna consider anything about Java, jar packaging, ... Basically, I need:

  • "minify" resources: i.e.: some ...

99. How can I bulid an mondrian project with maven?    stackoverflow.com

i found those quick start on the web,but all of them told how to build a mondrian project by ant?And i want to put the mondrian in my maven project?Also i ...

100. Java to Maven project conversion related details    stackoverflow.com

I am having a java project with a ant build file, using this ant file i create an ejb of the project and deploy it on the jboss server. Now I am ...

java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.