Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build Forge javadoc and sources in one zip archive #283

Closed
wants to merge 1 commit into from

Conversation

ivannov
Copy link
Member

@ivannov ivannov commented Jan 27, 2013

No description provided.

@gastaldi
Copy link
Member

Hum, looks nice, but isn't possible to use these assembly xmls in the dist module ? Why the need for another module ?

@ivannov
Copy link
Member Author

ivannov commented Jan 28, 2013

Hey George,

To your first question: we unpack two sets of dependencies in this pom: one for javadoc and another one for the sources. They have different project dependencies, that is why I decided to have them explicitly in each execution.

I didn't get your second question. If it is why do we need the forge-javadoc project, it is because in order to build javadoc and source archive, the packaging type of the project should be jar, while that of dist is pom. I asked you several months ago (wow, how long time it took :-)) and you and Loncoln told me to leave it 'pom'.

Cheers,
Ivan

@lincolnthree
Copy link
Member

I think it would be best to add this as another zip file w/classifier to the forge distribution module:

Currently we have:

forge-distribution-1.2.1.Final.zip

I think we should in the same project have:

forge-distribution-1.2.1.Final-javadoc.zip
forge-distribution-1.2.1.Final-sources.zip

@gastaldi
Copy link
Member

👍

@ivannov
Copy link
Member Author

ivannov commented Mar 19, 2013

Hi folks,

Actually this commit does exactly this what you requested. I looked at the maven repository and found there the following:

forge-distribution-1.2.1-SNAPSHOT.zip
forge-distribution-1.2.1-SNAPSHOT-javadoc.zip
forge-distribution-1.2.1-SNAPSHOT-sources.zip

Looking at the maven-metadata-local.xml:

org.jboss.forge
forge-distribution
1.2.1-SNAPSHOT
.......

sources
zip
1.2.1-SNAPSHOT
20130127195628


javadoc
zip
1.2.1-SNAPSHOT
20130127195628

......

And if you look at this page:
http://maven.apache.org/plugins/maven-assembly-plugin/assembly.html

you will see there that the ID of the assembly (in the respective XML) is actually the classifier of the deployed artifact.

That's why I think that this commit fulfills the requirements.

Cheers,
Ivan

@lincolnthree
Copy link
Member

Wooo! Awesome! Sounds good, then!

On Tue, Mar 19, 2013 at 4:44 PM, Ivan St. Ivanov
notifications@github.comwrote:

Hi folks,

Actually this commit does exactly this what you requested. I looked at the
maven repository and found there the following:

forge-distribution-1.2.1-SNAPSHOT.zip
forge-distribution-1.2.1-SNAPSHOT-javadoc.zip
forge-distribution-1.2.1-SNAPSHOT-sources.zip

Looking at the maven-metadata-local.xml:

org.jboss.forge
forge-distribution
1.2.1-SNAPSHOT
.......

sources
zip
1.2.1-SNAPSHOT
20130127195628

javadoc
zip
1.2.1-SNAPSHOT
20130127195628

......

And if you look at this page:
http://maven.apache.org/plugins/maven-assembly-plugin/assembly.html

you will see there that the ID of the assembly (in the respective XML) is
actually the classifier of the deployed artifact.

That's why I think that this commit fulfills the requirements.

Cheers,
Ivan


Reply to this email directly or view it on GitHubhttps://github.com//pull/283#issuecomment-15141871
.

Lincoln Baxter, III
http://ocpsoft.org
"Simpler is better."

@gastaldi
Copy link
Member

There is one caveat: the javadoc module is always built, and not when the release profile is invoked. This slows down the build and it's rather unnecessary

@lincolnthree
Copy link
Member

That should be easy to fix?

On Wed, Mar 20, 2013 at 12:53 PM, George Gastaldi
notifications@github.comwrote:

There is one caveat: the javadoc module is always built, and not when the
release profile is invoked. This slows down the build and it's rather
unnecessary


Reply to this email directly or view it on GitHubhttps://github.com//pull/283#issuecomment-15188339
.

Lincoln Baxter, III
http://ocpsoft.org
"Simpler is better."

@ivannov ivannov closed this Apr 2, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants