I have two (Eclipse-) projects. Project A depends on project B, but the projects aren't nested i.e. project A is not a subproject of project B. Apache Ivy is responsible for the dependency management.
When I run the compile task in Project A, is there any way to trigger the compile task (in project B) automatically (for example if the jar file of project B doesn't exist)?
Thanks a million in advance.
You need to use the ivy task buildlist.
Related
I have 3 projects in my solution.
As part of the build process in TFS I generate 3 NuGet pacakges by using the GeneratePackageOnBuild property in my project file (new csproj for VS 2017).
Project1
Project2
Project3
|_ ProjectReference Project1.csproj
|_ ProjectReference Project2.csproj
I have 2 different builds. One for preview and another one for final builds.
When using the one for preview I add -preview-<BuildId> to all projects.
The generated NuGet packages are successfully generated with this version. But the package dependencies are generated without the preview suffix.
How can I tell MSBuild to generate the dependencies with the right version?
UPDATE:
It seems like the nuspec files that are generated at build time are created based on project.assets.json I have conditional properties in project imports for versioning and it seems that when project.assets.json is generated the variables for conditions don't exist for referenced projects and generating the wrong dependency version which then flows into the automatically generated nuspec file for the package.
I have a project A which is in grails. I need to use project A as dependency in my other grails project B. Can a jar be created of project A and used as dependency in project B?
Can a jar be created of project A and used as dependency in project B?
Yes. The typical way to do this is by making project A a plugin, but you can bundle any Grails application up as a Jar and reference its classes from any other JVM app, including other Grails applications.
I am new to Plugin development and hence facing this issue.
I have 2 plugin projects and both the projects are part of a feature project. I want to set up an ANT build which could build the feature project and publish it to an URL or File system.
Here is the scenario:
Plugin Project A isDependentOn -> Plugin Project B.
For both these project, I wrote build files which builds them properly.
Now I created a Feature project and included both these plugins into it. However I am not able to correctly write the ANT build file or may be I am not sure of the complete process.
Any help would be greatly appreciated.
Thanks in advance. Cheers !!!
Its better use Maven with Tycho to build eclipse features and plugins in headless mode.
Refer the link Eclipse Tycho and Using Tycho
I have a project, which is building with maven 3. While building project maven downloads a lot of dependencies (jars). I want to build all this dependencies from source-jars, which I get from maven repository with maven dependency plugin.
But this source jars doesn't contain any pom or other things for building. How I can build them with maven??
You can't. You need to get the source from the project's source repository. The source-jars are just for helping developers debug dependencies.
I am trying to compile a j2ee project, and the solution file includes many source projects, libraries. some of source projects have dependency with other source projects. And this compile task will be done by using ant task. is there third party library allows me to do this task quickly?
next step after compiling will be export to ear file.
Thanks for helping.
You can do it using Grand, Ant2dot or VizAnt