maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alan Gutierrez <a...@blogometer.com>
Subject Re: Publishing Source and Javadoc to Local Repository
Date Sun, 01 Jun 2008 22:44:58 GMT
On Jun 1, 2008, at 5:21 PM, Martijn Dashorst wrote:
> See the maven source plugin, and attach it to the jar execution phase
> (iirc.) you can see one example of the definition in action in the
> Wicket parent pom:
> http://svn.apache.org/repos/asf/wicket/trunk/pom.xml

Thank you for your help.

That is placing the Jars in the local repository. However, I'm still  
not able to use the source and Javadoc when I regenerate my Eclipse  
projects for a dependent project.

I'm running...

mvn install

In the project directory.

and....

mvn eclipse:clean && mvn eclipse:eclipse -DdownloadSources=true - 
DdownloadJavadocs=true

In the dependent directory.

I've placed the output of mvn install and the generated .classpath  
file below.

[alan@velenje core]$ mvn install
[INFO] Scanning for projects...
[INFO]  
------------------------------------------------------------------------
[INFO] Building binder
[INFO]    task-segment: [install]
[INFO]  
------------------------------------------------------------------------
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:testCompile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [surefire:test]
[INFO] Surefire report directory: /Users/alan/svn/open/binder/core/ 
target/surefire-reports

-------------------------------------------------------
  T E S T S
-------------------------------------------------------
Running com.agtrz.binder.DocumentBinderTestCase
Tests run: 2, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 0.048  
sec

Results :

Tests run: 2, Failures: 0, Errors: 0, Skipped: 1

[INFO] [jar:jar]
[INFO] Preparing source:jar
[WARNING] Removing: jar from forked lifecycle, to prevent recursive  
invocation.
[INFO] No goals needed for project - skipping
[INFO] [source:jar {execution: attach-sources}]
[INFO] Building jar: /Users/alan/svn/open/binder/core/target/ 
binder-0.1-sources.jar
[INFO] Preparing javadoc:jar
[WARNING] Removing: jar from forked lifecycle, to prevent recursive  
invocation.
[WARNING] Removing: jar from forked lifecycle, to prevent recursive  
invocation.
[INFO] No goals needed for project - skipping
[INFO] [javadoc:jar {execution: attach-sources}]
2 warnings
[INFO] Javadoc Warnings
[WARNING] /Users/alan/svn/open/binder/core/src/main/java/com/agtrz/ 
binder/Binder.java:56: warning - @todo is an unknown tag.
[WARNING] /Users/alan/svn/open/binder/core/src/main/java/com/agtrz/ 
binder/Binder.java:124: warning - @param argument "documentClass" is  
not a parameter name.
[INFO] Building jar: /Users/alan/svn/open/binder/core/target/ 
binder-0.1-javadoc.jar
[INFO] [install:install]
[INFO] Installing /Users/alan/svn/open/binder/core/target/ 
binder-0.1.jar to /Users/alan/.m2/repository/com/agtrz/binder/0.1/ 
binder-0.1.jar
[INFO] Installing /Users/alan/svn/open/binder/core/target/binder-0.1- 
sources.jar to /Users/alan/.m2/repository/com/agtrz/binder/0.1/ 
binder-0.1-sources.jar
[INFO] Installing /Users/alan/svn/open/binder/core/target/binder-0.1- 
javadoc.jar to /Users/alan/.m2/repository/com/agtrz/binder/0.1/ 
binder-0.1-javadoc.jar
[INFO]  
------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO]  
------------------------------------------------------------------------
[INFO] Total time: 7 seconds
[INFO] Finished at: Sun Jun 01 17:41:28 CDT 2008
[INFO] Final Memory: 10M/20M
[INFO]  
------------------------------------------------------------------------


<classpath>
   <classpathentry kind="src" path="src/main/java"/>
   <classpathentry kind="src" path="src/main/resources" excluding="**/ 
*.java"/>
   <classpathentry kind="output" path="target/classes"/>
   <classpathentry kind="con"  
path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
   <classpathentry kind="var" path="M2_REPO/args4j/args4j/2.0.8/ 
args4j-2.0.8.jar" sourcepath="M2_REPO/args4j/args4j/2.0.8/ 
args4j-2.0.8-sources.jar"/>
   <classpathentry kind="var" path="M2_REPO/com/agtrz/binder/0.1/ 
binder-0.1.jar"/>
   <classpathentry kind="var" path="M2_REPO/junit/junit/4.4/ 
junit-4.4.jar" sourcepath="M2_REPO/junit/junit/4.4/junit-4.4- 
sources.jar">
     <attributes>
       <attribute value="jar:file:/Users/alan/.m2/repository/junit/ 
junit/4.4/junit-4.4-javadoc.jar!/" name="javadoc_location"/>
     </attributes>
   </classpathentry>
   <classpathentry kind="var" path="M2_REPO/net/sf/saxon/saxon/8.7/ 
saxon-8.7.jar"/>
   <classpathentry kind="var" path="M2_REPO/net/sf/saxon/saxon-dom/ 
8.7/saxon-dom-8.7.jar"/>
</classpath>




--
Alan Gutierrez | alan@blogometer.com | http://blogometer.com/ | 504  
717 1428
Think New Orleans | http://thinknola.com/



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Mime
View raw message