Questions tagged [maven-source-plugin]

26 questions
38
votes
4 answers

How to continuously build and deploy feature branches with Maven?

My team is using feature branches to implement new features and continuously deploys snapshot builds into a remote repo for our users to use. Thus 'deploy' really only means 'distributing to a remote Maven repository'. We're currently only running…
16
votes
2 answers

maven-source-plugin not work for kotlin

I am trying to use maven-source-plugin to create a source.jar for my kotlin project, but seems the maven-source-plugin not work well for kotlin project. when i run "mvn source:jar", the output message always says: [INFO] No sources in project.…
Ace.Yin
  • 693
  • 1
  • 7
  • 19
11
votes
3 answers

How to deploy the sources file with the jar using deploy:deploy-file

I have the following plugins for creating a -sources.jar and deploying a specific named jar to a repository. org.apache.maven.plugins maven-source-plugin
Yoztastic
  • 792
  • 1
  • 6
  • 20
7
votes
3 answers

How to enable maven profile when built version is not -SNAPSHOT?

I'm trying to use the gitflow-helper-maven-plugin extension for my maven builds. Therefore I'd like to configure my project in order to run some extra steps when building a release version and skipping them while compiling a SNAPSHOT one, but I…
5
votes
3 answers

How to create jar archive of projects sources with maven

I include the following snippet in a projects object model org.apache.maven.plugins maven-source-plugin 2.1.2 according to maven.apache.org the…
Matthias
  • 3,228
  • 2
  • 23
  • 40
4
votes
3 answers

Maven deploy + source classifiers

I'm trying to deploy a Maven artifact with a classifier. Since I need both the sources and the JAR (I'm using it from GWT), I would like to get artifact-version-classifier.jar and artifact-version-classifier-sources.jar. However, it works fine with…
ninja.user
  • 372
  • 3
  • 10
4
votes
4 answers

Where can I obtain the maven-source-plugin?

I checked out an open-source project from SourceForge's SVN source control using the Eclipse Maven plugin. After it checks out, I get this error in the pom.xml file: Error resolving version for plugin …
Thomas Owens
  • 107,741
  • 94
  • 299
  • 427
4
votes
2 answers

Maven Release Plugin deployment of sources.jar and javadoc.jar

I use maven release plugin for generating release of my project. I do not want to generate Javadoc all time I build. On the other hand when I call release:perform I would like if maven would generate sources.jar and javadoc.jar and would deploy it…
3
votes
1 answer

No sources in project. Archive not created

I use maven-source-plugin to generated java-source. However doing "mvn clean ; mvn package" does not generate a project-sources.jar in the target directory. org.apache.maven.plugins
v11
  • 1,684
  • 4
  • 24
  • 47
3
votes
1 answer

Maven plugin dependency - using the source plugin in all my poms

I would like to configure the use of the maven source plugin for all our projects. The way our projects are currently configured we have a parent pom that is inherited by all the projects. So, in order for all projects to use the maven source…
IceMan
  • 1,310
  • 16
  • 35
2
votes
1 answer

Maven - How can I package sources of all dependencies when packaging

So I understand how I can package dependencies into my executable JAR, using jar-with-dependencies descriptor for maven-assembly-plugin. However, I want to also create a source bundle(s), that not only includes sources of my project, but sources of…
Waqas Ilyas
  • 2,891
  • 14
  • 27
2
votes
1 answer

Exclude packages while generating sources jar in Maven

I would like to generate a sources jar but without some packages in my project. Now I have this in my pom.xml org.apache.maven.plugins
jam
  • 1,113
  • 1
  • 10
  • 24
1
vote
1 answer

Purpose of maven-source-plugin and maven-javadoc-plugin?

I've been doing some research on the maven source and javadoc plugins, and I wanted to inquire a bit about the usage of each. I understand conceptually how the plugins work, and what they do. What I'm confused about, is why you would want to bundle…
Sam Levin
  • 3,015
  • 7
  • 24
  • 43
1
vote
2 answers

need maven plugin configuration for building aggregate source jar

I've been fighting with this for a while and reading a lot of docs pages and other questions but still can't get it to work. In my ORMLite project, I have a ormlite-core project which has core functionality and then a -jdbc and -android projects…
1
vote
1 answer

How to keep the maven structure when creating source-jar

I am using the maven-source-plugin to pack the sources of the project. Normally you get all from the main/java and main/resources packed together into one root. What I want is to keep the project structure in the final -source.jar - like…
VeikkoW
  • 757
  • 6
  • 11
1
2