Build issue with yshool project

27 views
Skip to first unread message

Ratha

unread,
Apr 3, 2012, 12:42:03 PM4/3/12
to ySchool
Hi;
I took checkout and tried to build the project(Did online build)..But
build breaks due to some missing jars[1]..

How did you overcome this issue? seems that defined repositories in
the pom doesn't contain these particular libs..

[1] Error;

[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Failed to resolve artifact.

Missing:
----------
1) com.sun.jdmk:jmxtools:jar:1.2.1

Try downloading the file manually from:
http://java.sun.com/products/JavaManagement/download.html

Then, install it using the command:
mvn install:install-file -DgroupId=com.sun.jdmk -
DartifactId=jmxtools -Dversion=1.2.1 -Dpackaging=jar -Dfile=/path/to/
file

Alternatively, if you host your own repository you can deploy the
file there:
mvn deploy:deploy-file -DgroupId=com.sun.jdmk -
DartifactId=jmxtools -Dversion=1.2.1 -Dpackaging=jar -Dfile=/path/to/
file -Durl=[url] -Drepositor
yId=[id]

Path to dependency:
1) org.yarlithub.yschool:event-scheduling:jar:1.0-SNAPSHOT
2) log4j:log4j:jar:1.2.15
3) com.sun.jdmk:jmxtools:jar:1.2.1

2) com.sun.jmx:jmxri:jar:1.2.1

Try downloading the file manually from the project website.

Then, install it using the command:
mvn install:install-file -DgroupId=com.sun.jmx -
DartifactId=jmxri -Dversion=1.2.1 -Dpackaging=jar -Dfile=/path/to/file

Alternatively, if you host your own repository you can deploy the
file there:
mvn deploy:deploy-file -DgroupId=com.sun.jmx -DartifactId=jmxri -
Dversion=1.2.1 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -
DrepositoryId=
[id]

Path to dependency:
1) org.yarlithub.yschool:event-scheduling:jar:1.0-SNAPSHOT
2) log4j:log4j:jar:1.2.15
3) com.sun.jmx:jmxri:jar:1.2.1

3) javax.jms:jms:jar:1.1


-Ratha

Jason Jebanesan

unread,
Apr 4, 2012, 10:26:26 AM4/4/12
to ysc...@googlegroups.com
Hi Ratha

Did you have internet while you build the project? and what is you maven version?


regards,
Jason

vijayaratha vijayasingam

unread,
Apr 4, 2012, 10:53:36 AM4/4/12
to ysc...@googlegroups.com
Internet is working fine :)..
Actual issue is, those are java libraries, because of the licensing issue maven could not download them..
I have edited the pom locally, and builds fine now..How were you able to build it? You manually downloaded and installed in your local repo..?
BTW i would like to commit the pom fix ..Will i be granted the commit rights?
Else do you need the patch?
What is the procedure to get commit right?

Thanks
-Ratha

vijayaratha vijayasingam

unread,
Apr 4, 2012, 11:01:44 AM4/4/12
to ysc...@googlegroups.com
Forgot to mention, maven2 and maven3 give same issue...

Jeyakumaran Chandrasegaram

unread,
Apr 4, 2012, 6:58:44 PM4/4/12
to ysc...@googlegroups.com
Ratha,

I assume, Jason must have got the dependencies in his local repository ..

Jason .. Can you back up your maven local repo and cleaned it. Then run the build please. if it breaks add the source repository appropriately.

@Gayathri is it the same case for you?

JK

Jason Jebanesan

unread,
Apr 4, 2012, 9:57:21 PM4/4/12
to ysc...@googlegroups.com
Ratha,

What was the change you made in the pom file? The thing that is puzzling me is that com.sun.jmx:jmxri:jar:1.2.1 is used by log4j. Security issue you got must be on the ssl for the java.net repository.

anyway i have changed the log4j version and committed it, now that particular jar is not needed.

Thanks for pointing it out.

Jason

Jason Jebanesan

unread,
Apr 4, 2012, 10:19:08 PM4/4/12
to ysc...@googlegroups.com
Ratha,

You can work on the git Fork and when your ready to merge with the main branch you can just make a "Pull Request " and we will pull the changes in.


Jason

vijayaratha vijayasingam

unread,
Apr 5, 2012, 12:57:05 AM4/5/12
to ysc...@googlegroups.com
Hi Jason;
Yes changing the log4j version also fixes the issue..I locally excluded the dependencies like as [1];

I followed this blogpost[2] which explains the cause of this issue..

[1]  <dependency>
            <groupId>log4j</groupId>
            <artifactId>log4j</artifactId>
            <version>1.2.16</version>
            <exclusions>
                <exclusion>
                    <groupId>javax.mail</groupId>
                    <artifactId>mail</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>javax.jms</groupId>
                    <artifactId>jms</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>com.sun.jdmk</groupId>
                    <artifactId>jmxtools</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>com.sun.jmx</groupId>
                    <artifactId>jmxri</artifactId>
                </exclusion>
            </exclusions>
        </dependency>


[2] http://developerbits.blogspot.com/2010/07/maven-sun-jar-issues-javamail-jms-jmx.html

Thanks
-Ratha

Gayathiry Arulanantham

unread,
Apr 6, 2012, 2:27:22 AM4/6/12
to ysc...@googlegroups.com
Sorry for the late reply.
I did pull request from GIT using netbeans. With initial setup there were no issues.
All worked fine. After adding new jars there were some issues as Ratha acca mentioned.
--
GAYATHIRY A

Reply all
Reply to author
Forward
0 new messages