Questions tagged [maven-source-plugin]

24 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…
21
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
  • 845
  • 2
  • 9
  • 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
  • 862
  • 2
  • 8
  • 21
8
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

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
  • 382
  • 3
  • 10
5
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
  • 114,398
  • 98
  • 311
  • 431
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,458
  • 4
  • 27
  • 46
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
  • 2,124
  • 7
  • 26
  • 54
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,398
  • 16
  • 35
2
votes
2 answers

maven release:perform failing to even try to generate javadoc or sources

Since moving to Java 11 quite a while ago now, the maven release plugin fails to generate javadoc alongside the built artifact. My configuration for both in parent pom (and compiler plugin, in case relevant):
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
  • 3,116
  • 1
  • 17
  • 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,253
  • 1
  • 12
  • 26
2
votes
2 answers

maven sources plugin includes configuration

I have a maven project with a non standard configuration: $> tree . ├── pom.xml ├── symbolic-link-to-sources -> ../src └── target ├── maven-archiver …
jolivier
  • 7,380
  • 3
  • 29
  • 47
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,326
  • 7
  • 30
  • 44
1
2